6 Application example: Modbus TCP
6.3 Communication examples: Modbus TCP
XI/ON: XNE-GWBR-2ETH-MB
10/2011 MN05002008Z-EN
www.eaton.com
127
6.3.7
Setting of outputs
Setting outputs is either done via the packed station process output data or via the module
specific process output data (64 byte per module). The following example shows the access
via the packed process output data, registers 0×0800 to 0×09FF.
Example:
Module 2, XN-2DO-24VDC-0.5A-P
→
setting the output channels 2:
1
In order to determine the register to be written, firstly the process image length of the intel-
ligent output modules has to be read out.
Process data length, intelligent outputs:
Function code 04: register 0×1010
Value: 0×
60
= 96 bits = 6 registers
Figure 58:
reading out the
process data
length of intelli-
gent outputs
Table 65:
process data
length of intelli-
gent modules
Module
Process output
Words/ registers
7
XN-2AO-I(0/4...20MA)
2
9
XN-1SSI
4
Total
6 registers