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

  • 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 203
Chapter
Call Routines 0–68
12
12 -14
This routine converts a value from BASIC floating point format to
6-digit, signed, PLC BCD number in a 2 word format and places the
converted value in the block-transfer-read buffer. See also CALL 13.
See Chapter 8 for more information.
Input and Output Arguments
This routine has two input arguments and no output arguments. The first
input value is the data or variable. The second input value is the number of
the word (1–64) to receive the converted value in the block-transfer-read
buffer. The sign bit is bit number 16.
Syntax
PUSH
value to be converted
PUSH
word location (1–64) that receives the value
CALL 23
Example
>
10 W=567321
>
20 PUSH W
>
30 PUSH 3
>
40 CALL 23
CALL
23:
BASIC Floating Point to
6-Digit, Signed, Fixed
Decimal BCD
Chapter
Vista de pagina 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 393 394

Comentarios a estos manuales

Sin comentarios