User manual
IEC61131 User and Reference Manual
April 22, 2008
345
setmtcp
Set Modbus/TCP Settings
The setmtcp function is used to configure settings for the Modbus/TCP protocol. This
function block is used by the SCADAPack 330, SCADAPack 350 and SCADAPack 32
controller series only.
port
setmtcp
set
maxSrvrConnects
Q
mstrIdleTimeout
srvrIdleTimeout
Arguments
Inputs
Type
Description
set
Boolean
Sets the Modbus/TCP settings when TRUE. Set this
input to FALSE once the settings has been set.
port
Integer
Port for Modbus/TCP protocol
Default = 502
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 = disable timeout and let user close the connection.
Default = 60
srvrIdleTimeout
Integer
The length of time, in seconds, that a server
connection will wait for a message before ending the
connection.
0 = disable timeout and let client close connection.
Default = 60
maxSrvrConnects
Integer
Maximum number of server connections up to the
capacity available (typical capacity is 20 connections)
Default = 20
Outputs
Type
Description
Q
Boolean
TRUE when set input is TRUE and operation is
successful.
FALSE when set input is FALSE.
FALSE when set input is TRUE and an invalid input
is used.