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

  • 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 227
Chapter
Call Routines 0–68
12
12 -38
Use this routine to convert 3.3-digit BCD from the PLC processor to
BASIC floating point. See also CALL 26.
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 first word (3.3-digit BCD is sent to the BASIC
module in two processor words) of the write-block-transfer buffer you
want to convert from 3.3-digit, signed, fixed decimal BCD to BASIC
floating point. The maximum values allowed are +
999999. The output
argument is the value converted into BASIC floating point format.
The sign bit is bit number 16.
Syntax
PUSH number of word (1 – 64) to be converted
CALL
39
POP converted value
Example
>
10 PUSH X
> 20 CALL 39
> 30 POP Y
CALL 39 : 3.3-Digit Signed,
BCD to BASIC Floating
Point
Chapter
Vista de pagina 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 393 394

Comentarios a estos manuales

Sin comentarios