Rockwell-automation 1771-DB BASIC MODULE Manual de usuario Pagina 201

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 394
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 200
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
Vista de pagina 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 393 394

Comentarios a estos manuales

Sin comentarios