Table 13- 132 MB_CLIENT instance data block user accessible static variables
Variable
Blocked_Proc_Timeout
MB_Unit_ID
RCV_TIMEOUT
Connected
Table 13- 133 MB_CLIENT protocol errors
STATUS
Response code to
(W#16#)
Modbus client
(B#16#)
8381
01
8382
03
8383
02
8384
03
8385
03
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
Data type Default
description
Real
3.0
Amount of time (in seconds) to wait upon a blocked Modbus client
instance before removing this instance as being ACTIVE. This can
occur, for example, when a client request has been issued and then
application stops executing the client function before it has completely
finished the request. The maximum S7-1200 limit is 55 seconds.
Word
255
Modbus unit identifier:
A Modbus TCP server is addressed using its IP address. As a result,
the MB_UNIT_ID parameter is not used for Modbus TCP addressing.
The MB_UNIT_ID parameter corresponds to the slave address in the
Modbus RTU protocol. If a Modbus TCP server is used for a gateway to
a Modbus RTU protocol, the MB_UNIT_ID can be used to identify the
slave device connected on the serial network. The MB_UNIT_ID would
be used to forward the request to the correct Modbus RTU slave ad-
dress.
Some Modbus TCP devices may require the MB_UNIT_ID parameter to
be initialized within a restricted range of values.
Real
2.0
Time in seconds that the MB_CLIENT waits for a server to respond to a
request.
Bool
0
Indicates whether the connection to the assigned server is connected
or disconnected: 1=connected, 0=disconnected
Modbus protocol errors
Function code not supported
Data length error
Data address error or access outside the bounds of the MB_HOLD_REG address area
Data value error
Data diagnostic code value not supported (function code 08)
Communication processor and Modbus TCP
13.8 Legacy Modbus TCP communication
1255