Manual
Table Of Contents
Data Access to OsiSense® XG Stations
34
EIO0000000046 04/2013
Write Command Example
This example describes a write command of two words from address 5 to the
OsiSense
®
XG station at @ 3.
The table below illustrates the data to sent to the Output Data Buffer:
The table below illustrates the station answer in the Input Data Buffer (after a toggle
of the bit 0 of the write trigger register (3rd register of the Output Data Buffer) and a
detection of a change in the counter of Write commands (3rd register of the Input
Data Buffer):
2 Toggle the Command trigger bit (2nd register of the Output Data Buffer for read -
3rd register of the Output Data Buffer for write).
The command is sent to the OsiSense
®
XG station.
3 Test the Counter of Read or Write commands (2nd or 3rd register of the Input Data
Buffer), when the OsiSense
®
XG station has answered to the command, the splitter
box increments this register.
4 The answer can be read by the PLC.
Note: The error status bit of the 5th register of the Input Data buffer (bit 15) must
be tested to know if the command was successful or if an error has been detected
(see Diagnostic (see page 50)).
Step Action
Register Description Value
4 Slave address 0003h
5 Start address 0005h
6 Quantity of registers 0002h
7 Quantity of bytes 0004h
8 Data 1 0123h
9 Data 2 4567h
Register Description Value
3 Counter of write commands (5th writing
command in this example)
05h
4 Address of the station (Total Data
bytes received is not applicable)
xx03h (only the LSB is valid for a
write command)