User manual
IEC61131 User and Reference Manual
April 22, 2008
332
protinfo
Protocol status
Description
The protinfo function block provides diagnostic data about a specific serial port. The status
information is written to integer variables. The integer variables are updated continuously
with data concerning the protocol status of the serial port.
comX
clear
protinfo
forma
cmdEr
check
mRspR
mCmdS
sCmdR
status
sRspS
msgsS
msgsF
Arguments
Inputs
Type
Description
comX
Integer
Communication port to read protocol status. Valid
values are 1 to 4.
clear
Boolean
Event counters are cleared when TRUE.
Event counters accumulate when FALSE.
Outputs
Type
Description
cmdEr
Integer
Protocol command errors are the number of received
messages containing an unsupported Modbus
function code. This is also the number of otherwise
valid commands that are rejected because of a
controller lock.