Call 17: 4-digit bcd to basic floating point, Call 18: re-enable control c break function – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 201

Chapter
Call Routines 0–68
12
12 -11
Use this routine to convert 4-digit BCD from the PLC processor to BASIC
floating point. See also CALL 27.
See Chapter 8 for more information.
Input and Output Arguments
This routine has one input and one output argument. The input argument is
the number (1-64) of the word in the block-transfer-write buffer you want
to convert from 4-digit BCD to BASIC floating point format.
The maximum value allowed is 0-9999. The output argument is the value
converted into BASIC floating point format.
Syntax
PUSH
number of word (1 – 64) to be converted
CALL 17
POP
converted value
Example
> 10 PUSH X
> 20 CALL 17
> 30 POP Y
Use CALL 18 to re-enable the
Ctrl
+
C
break function for LIST (page
10 -9) and RUN (page 10 -19) operations. Execute CALL 18 in a BASIC
program or from Command mode.
Important: When
Ctrl
+
C
is disabled, you are unable to stop
program execution through a BASIC command. Cycling power re-enables
Ctrl
+
C
checking until the program once again disables
Ctrl
+
C
.
To stop program execution, you must cycle power and press
Ctrl
+
C
before you execute the line that disables
Ctrl
+
C
. You can change
JW4 (page 1 -6) to the default position to stop a program that has
Ctrl
+
C
disabled.
Input and Output Arguments
This routine has no input or output arguments.
Syntax
CALL 18
Example
> 90 CALL 18
CALL 17: 4-Digit BCD to
BASIC Floating Point
Chapter
CALL 18: Re-Enable Control
C Break Function