6 Application example: Modbus TCP
6.3 Communication examples: Modbus TCP
126
XI/ON: XNE-GWBR-2ETH-MB
10/2011 MN05002008Z-EN
www.eaton.com
Digital modules
The input data of the digital modules occupy 1 register (
register 0×0009)
:
Value: 0×
02
0×
05
– XN-2DI-24VDC-P
→
2 bits
– register 0×0009:
byte 0, bits 0 and 1 ("0×0
1
": input 0 = bit 0 = 1)
– XN-4DI-24VDC-P
→
4 bits
– register 0×0009:
byte 0, bits 2 and 5 ("0×0
4
": input 0 = bit 2 = 1)
XN-4DI-24VDC-P
→
4 bits
– register 0×0009:
byte 0, bits 6 and 7 ("0×00": input 0 and 1 = 0)
byte 1, bits 0 and 1 ("0×02": input 3 = 1)