Loading...
Modbus TCP/IP Driver Manual
Page 23 of 23
Appendix C. Reference
Appendix C.1. Data Types
If Node parameter Address_Type is set as ADU or PDU, then Data_Type must be specified as follows.
Address_Type ADU:
Address range
Data_Type
Function Code (Write)
Function Code (Read)
1 65536
Coil
15
1
1 65536
Discrete_Input
n/a.
2
1 65536
Input_Register
n/a.
4
1 65536
Holding_Register
16
3
Address_Type PDU:
Address range
Data_Type
Function Code (Write)
Function Code (Read)
0 65535
FC01
15
1
0 65535
FC02
n/a.
2
0 65535
FC04
n/a.
4
0 65535
FC03
16
3
Address_Type Modicon_5digit:
When a Modbus address range is specified, a particular Data Type is implied (defaults shown below).
Address range
Data_Type
Function Code (Write)
Function Code (Read)
00001 09999
Coil
5,15
1
10001 19999
Discrete_Input
n/a.
2
30001 39999
Input_Register
n/a.
4
40001 49999
Holding_Register
6,16
3
Appendix C.2. Single Writes
If writing multiple registers, the write function will 16.
If writing multiple coils, the write function will 15.
If writing a single register, the write function will be 6 unless Write_FNC parameter is set to “Multiple”.
If writing a single coil, the write function will be 5 unless Write_FNC parameter is set to “Multiple”.
Appendix C.3. Driver Error Messages
Message
Description/Action
MB_TCP:#01 FYI. Server
response extra bytes
ignored. Cnt=%d %#x
This message is printed when the TCP frame contains more bytes than a
single Modbus_TCP message but insufficient extra bytes to form a second
complete Modbus message. There is no explanation for the 'padding'
bytes, but since the Driver ignores the extra bytes and processes the
complete message correctly, the message can be ignored. The driver
prints this message once. It is suppressed on subsequent occurrences.
MB_TCP:#02 FYI. Master
poll extra bytes ignored.
Cnt=%d %#x
MB_TCP:#03 Err. TCP
Frame has multiple
MB_TCP messages.
Ignored 2nd
The driver has detected enough bytes in the TCP frame for two complete
Modbus_TCP messages. The second message is ignored. If this is a
problem, re-configure the remote node so that only one Modbus_TCP
message is contained in a single TCP frame. The driver prints this
message once. It is suppressed on subsequent occurrences.
Loading...
Terms of Use | Privacy Policy | DMCA Policy
2006-2020 Rsmanuals.com