Manual

Software Installation
44
EIO0000000046 04/2013
Read command example
This example describes a read command of two words from address 5 to the
OsiSense
®
XG station at address 3.
The table below illustrates the data to send to the output data buffer:
NOTE: For a read command, 27 words maximum can be read.
The table below illustrates the station answer in the input data buffer (after a toggle
of the command trigger byte %QW.x.y.1 and a detection of a change in the counter
byte %IW.x.y.0.1):
2 00 Write command count -
3 Total byte count Slave address 0503h
4 Command code Error code 9004h
Input
Word
(%IW)
Description Value
MSB LSB
Output
Word
(%QW)
Description Value
MSB LSB
0 Command word -
1 00 Read command trigger byte -
2NA NA -
3 00 Slave address 0003h
4 Start address 0005h
5 00 Quantity of registers 0002h
Input
Word
(%IW)
Description Value
MSB LSB
0 Status word -
1 00 Read command count -
2NA NA -
3 Total byte count Slave address 0903h
4 Command code Read data byte count 0304h
5 Read Data 1 0123h
6 Read Data 2 4567h