9
Modbus protocol (Modbus/TCP)
Connection management
Manual – MOVIPRO
®
with EtherNet/IP™ or Modbus/TCP Fieldbus Interface
109
9.3.2 Closing a connection
A connection is deleted from the internal connection list under the following conditions:
• The keep-alive time is over. The server does no longer receive responses after-
wards.
• The socket returns a fault.
• The connection to the client has been disconnected.
If the connection was a controlling connection, no additional controlling connection
can be established. If no valid process output data has been sent within the
timeout interval, a fieldbus timeout is triggered.
The default keep-alive time is 10 seconds. If there is a controlling connection with the
set timeout interval > 5s, the keep-alive time is increased to 2 times the timeout inter-
val.
In a controlling connection, the fieldbus timeout is displayed in the unit after the set
timeout interval elapses during a break in the cable or an error in the socket. Then a
new controlling connection can be established.
9.3.3 Timeout response
The timeout monitoring time can be set in steps of 10 ms in a range between 0 s–
650s.
• 0s and 650s mean: Timeout monitoring is deactivated.
• 10ms – 649.09s means: Timeout monitoring is activated.
The timeout interval can be set as follows:
• Via register object 219E
hex
(8606
dec
)
• Via parameter access to index 8606 via register object 200
hex
–203
hex
• Via parameters in MOVITOOLS
®
MotionStudio (plug-in or in the parameter tree)
A change to the timeout interval (writing on index 8606) is activated after a re-boot.
The timeout monitoring is triggered when a controlling connection is activated. The
fieldbus driver cyclically checks whether the last process output data update was re-
ceived within the timeout interval.
If the timeout interval is set to 0s or 65000s, time monitoring is deactivated. No field-
bus timeout is detected in this case. This also applies when the controlling connection
is dropped.
In the event of a timeout, the timeout response is executed as programmed.
16998413/EN – 12/2016