Libraries
9.3 Modbus RTU library
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
487
9.3.2.4
Modbus RTU master execution error codes
The high numbered error codes (starting with 101) are errors that are returned by the
Modbus slave device. These errors indicate that the slave does not support the requested
function or that the requested address (either data type or range of addresses) is not
supported by the Modbus slave device.
The low numbered error codes (1 through 12) are errors that are detected by the
MBUS_MSG instruction. These error codes generally indicate a problem with the input
parameters of the MBUS_MSG instruction, or a problem receiving the response from the
slave. Parity and CRC errors indicate that there was a response but that the data was not
received correctly. This is usually caused by an electrical problem such as a bad connection
or electrical noise.
MBUS_CTRL
error code
Description
0
No error
1
Invalid parity type
2
Invalid baud rate
3
Invalid timeout
4
Invalid mode
9
Invalid port number
10
Signal board port 1 missing or not configured