Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 83

Advertising
background image

Chapter 6

PLC-5/VME Processor
Communications Commands

6-14

Integer Example
The first byte is the data-type field (field a), the 2-byte element contains
the data (field b).

01001010

Bit 76543210

00000010

00000000

a

b

ID = 4 for integer
Size = 2 bytes per element

LS

MS

value = 254

Floating-Point Example
The first two bytes are the data-type field (field a), the 4-byte element
contains the data (field b) which is single precision IEEE.

10010100

Bit 76543210

00001000

11111110

a

b

ID in next one byte
Size = 4 bytes per element

LS

MS

value not computed

11111110

11111110

11111110

ID = 8 for floating point

Control Structure Example
The first byte is the data-type field (field a), the 6-byte element contains
the data (field b).

01110110

Bit 76543210

00000000

00000000

a

b

ID = 7 for control,
Size = 6 bytes

value = 0

00000000

00000000

00000000

word 0 (LS)

(MS)

word 1 (LS)

(MS)

00000000

(MS)

word 2 (LS)

Advertising