User manual
IEC61131 User and Reference Manual
April 22, 2008
343
setmbip
Set Modbus IP Protocol Settings
The setmbip function is used to configure settings for a Modbus IP protocol. This function
block is used by the SCADAPack 330, SCADAPack 350 and SCADAPack 32 controller
series only.
typeProtocol
setmbip
set
mstrIdleTimeout
Q
enableServer
port
srvrIdleTimeout
Arguments
Inputs
Type
Description
set
Boolean
Sets the protocol settings when TRUE. Set this input
to FALSE once the settings has been set.
typeProtocol
Integer
Modbus IP Protocol
1 = Modbus/TCP
2 = Modbus RTU over UDP
3 = Modbus ASCII over UDP
enableServer
Boolean
Enable Protocol Server
TRUE = Enable server
FALSE = Disable server
port
Integer
Protocol Port Number: 1 to 65534
Modbus/TCP: Default = 502
Modbus RTU over UDP: Default = 49152
Modbus ASCII over UDP: Default = 49153
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. This allows
the slave device to free unused connections while
the master application may retain the connection
allocation.
0 = disable timeout and let application close the
connection.
TCP protocols only. Not used by UDP protocols.