User manual
IEC61131 User and Reference Manual
April 22, 2008
283
getprot2
Get protocol settings method 2
Description
The getprot2 function block returns the protocol settings for a specific serial port. This
function supports Enron Modbus parameters.
comX
getprot2
stn
prtcltype
addrMode
SandFEnabled
EnEnabled
EnStn
Arguments
Inputs
Type
Description
comX
Integer
Communication port to get port protocol settings, 1 to 4.
Outputs
Type
Description
prtclType
Integer
Protocol type
0 = none
1 = Modbus RTU
2 = Modbus ASCII
3 = DF1 Full Duplex BCC
4 = DF1 Full Duplex CRC
5 = DF1 Half Duplex BCC
6 = DF1 Half Duplex CRC
7 = DNP
stn
Integer
Protocol station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
0 to 254 in DF1
addrMode
Integer
Protocol addressing mode
0 = standard
1 = extended
SandFEnabled
Boolean
Store and forward enable
Enable store and forward when set to TRUE.
Disables 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