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

  • 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 104
Chapter
Data
Types
8
8 -5
SLC 16-Bit Unsigned Integer (SLC 16-Bit Binary)
This value requires one word of the processor data table. The data is
represented by 16 straight binary. The value ranges from 0 to 65,535.
If you use value less than 0, then the value placed in the output buffer is 0.
If you use a value greater than 65,535 the value placed in the output buffer
is 65,535. You are responsible for checking the range of the number before
conversion. Note that these calls are used with DH-485 calls. See CALL
15 (page 12 -9) and CALL 25 (page 12 -16).
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Integer Value
15031
16-Bit Binary (4 Hex Digits)
This value requires one word of the processor data table. The data is
represented by 16 straight binary bits. The value ranges from 0 to 65,535.
No sign, overflow or underflow bits are affected or decoded. If you use a
value larger than 65,535 or a negative number you get a BAD
ARGUMENT
error and program execution halts. See CALL 11 (page 12 -7) and CALL
21 (page 12 -13),
17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
Binary Value
15031
3-Digit, Signed, Fixed Decimal BCD
This value requires one word of the processor data table. The data is
represented by a 3-digit binary coded decimal integer. Overflow,
underflow and sign are also indicated. An underflow or overflow
condition sets the appropriate bit and a value of 000 is returned. The value
ranges from –999 to +999. Fractional portions of any number used with
the routine are truncated. See CALL 10 (page 12 -6) and CALL 20 (page
12 -12).
17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
not used
underflow bit (1 = value is fractional and between +1 & –1
(ie. +.999 to –.999)
sign bit (1 = negative; 0 = positive)
overflow bit (1 = value >+999 or < –999)
BCD Value
implied
decimal point
15032
D3 D2 D1
Vista de pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 393 394

Comentarios a estos manuales

Sin comentarios