User manual

IEC61131 User and Reference Manual
April 22, 2008
277
getmtcp
Get Modbus/TCP Settings
The getmtcp function is used to obtain the configured settings for the Modbus/TCP protocol.
This function block is used by the SCADAPack 330, SCADAPack 350 and SCADAPack 32
controller series only.
port
mstrIdleTimeout
getmtcp
statusOfServer
srvrIdleTimeout
maxSrvrConnects
Arguments
Inputs This function block has no inputs.
Outputs
Type
Description
statusOfServer
Integer
1 = Modbus/TCP server enabled
0 = Modbus/TCP server disabled
port
Integer
Port for Modbus/TCP protocol
mstrIdleTimeout
Integer
The length of time, in seconds, that a master
connection will wait for the user to send the next
command before ending the connection.
0 = timeout disabled to let user close the
connection.
srvrIdleTimeout
Integer
The length of time, in seconds, that a server
connection will wait for a message before ending
the connection.
0 = timeout disabled to let client close connection.
maxSrvrConnects
Integer
Maximum number of server connections.
See Also
setmtcp