Lenze · I/O system 1000 · Reference Manual · DMS 5.0 EN · 09/2016 · TD17 574
10 Modbus TCP communication
10.2 Access to the I/O system 1000
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
10.2.1 Access to the I/O area
Conventions:
• Modbus distinguishes between bit access and word access; bits = "coils" and words = "register".
• Bit inputs are called "input status" and bit outputs are called "coil status".
• Word inputs are called "input register" and word outputs are called "holding register"
Range definitions
Usually, the access under Modbus takes place via the ranges 0x, 1x, 3x and 4x.
0x And 1x serve to access digital ranges and 3x and 4x serve to access word ranges.
Since, however, no distinction is made between digital and analog data for the Lenze Modbus TCP
bus coupler, the following assignment applies:
0x: Bit area for master output; access via function code 0x01, 0x05, 0x0F
1x: Bit area for master input; access via function code 0x02
3x: Word range for master input; access via function code 0x04, 0x17
4x: Word range for master output; access via function code 0x03, 0x06, 0x10, 0x16, 0x17
Word =
Register
IN: "Input Register"
OUT: "Holding Register"
Bit =
Coil
IN: "Input Status"
OUT: "Coil Status"
3x:
0001h
1x:
0001h
1x:
0002h
1x:
0003h
IN
3x:
0002h
3x:
0003h
3x:
0004h
3x:
0005h
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9
3x:
0006h
...
3x:
0007h
3x:
0008h
3x:
0009h
Byte 10 Byte 11 Byte 12 Byte 13 Byte 14 Byte 15 Byte 16 Byte 17
4x:
0001h
OUT
4x:
0002h
4x:
0003h
4x:
0004h
4x:
0005h
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9
4x:
0006h
...
4x:
0007h
Byte 10 Byte 11 Byte 12 Byte 13
0x:
0001h
0x:
0002h
0x:
0003h
3x:
000Ah
Byte 18 Byte 19
...
4x:
0008h
4x:
0009h
Byte 14 Byte 15 Byte 16 Byte 17
4x:
000Ah
Byte 18 Byte 19
...