User manual

IEC61131 User and Reference Manual
April 22, 2008
346
setmtcpi
Set Modbus/TCP Interface
The setmtcpi function block is used to set the protocol interface settings used by all Modbus
IP protocols on the specified communication interface. See also the function setmtpi2 which
supports Enron Modbus parameters. This function block is used by the SCADAPack 330,
SCADAPack 350 and SCADAPack 32 controller series only.
ifType
stn
setmtcpi
set
SandFEnabled
Q
addrMode
Arguments
Inputs
Type
Description
set
Boolean
Sets the protocol interface settings for the selected
interface when TRUE. Set this input to FALSE once
the settings have been set.
ifType
Integer
Communication interface to set protocol settings.
100 = Ethernet
stn
Integer
Modbus station number.
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
Default = 1
addrMode
Integer
Modbus addressing mode
0 = standard
1 = extended
Default = 0
SandFEnabled
Boolean
Modbus Store and forward enable
TRUE = Enable store and forward.
FALSE = Disable store and forward.
Default = FALSE
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.
See Also
getmtcpi