User manual

IEC61131 User and Reference Manual
April 22, 2008
282
getprot
Get protocol settings
Description
The getprot function block returns the protocol settings for a specific serial port.
comX
getprot
stn
prtcltype
addrMode
SandFEnabled
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.
See Also
protinfo