User manual

IEC61131 User and Reference Manual
April 22, 2008
279
getmtpi2
Get Modbus/TCP Interface method 2
The getmtpi2 function is used to obtain the protocol interface settings used by all Modbus IP
protocols on the specified communication interface. This function supports Enron Modbus
parameters. This function block is used by the SCADAPack 330, SCADAPack 350 and
SCADAPack 32 controller series only.
addrMode
SandFEnabled
getmtpi2
stn
ifType
EnEnabled
EnStn
Q
Arguments
Inputs
Type
Description
ifType
Integer
Communication interface to get protocol settings.
100 = Ethernet1
Outputs
Type
Description
stn
Integer
Modbus station number.
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
addrMode
Integer
Modbus addressing mode
0 = standard
1 = extended
SandFEnabled
Boolean
Modbus Store and forward enable
Enable store and forward when set to TRUE.
Disable store and forward when set to FALSE.
EnEnabled
Boolean
Enron Modbus enable
Enable Enron Modbus when set to TRUE.
Disables Enron Modbus when set to FALSE.
EnStn
Integer
Enron Modbus station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
Q
Boolean
TRUE when operation is successful.
FALSE when ifType is invalid. Operation is
unsuccessful.