User manual

IEC61131 User and Reference Manual
April 22, 2008
322
mbusinfo
Modbus Protocol Status
The mbusinfo function block provides diagnostic data about Modbus protocols for a specific
communication interface. Diagnostic information is totaled together for all Modbus protocols
active on the selected communication interface. When multiple Modbus IP connections exist
on the same interface, diagnostic information is totaled for all connections. This function
block is used by the SCADAPack 330, SCADAPack 350 and SCADAPack 32 controller
series only.
ifType
clear
cmdErrors
formatErrors
checksumErrors
mCmdSent
mRspRcvd
sCmdRcvd
sRspSent
msgsStored
mbusinfo
msgsForwarded
Arguments
Inputs
Type
Description
ifType
Integer
Communication interface to forward message from, as
master.
100 = Ethernet
1 = com1
2 = com2
3 = com3
4 = com4
clear
Boolean
Set to TRUE to clear all counters for selected interface.
Outputs
Type
Description
cmdErrors
Integer
Number of Modbus command errors on this
communication interface.
formatErrors
Integer
Number of Modbus format errors on this
communication interface.
checksumErrors
Integer
Number of Modbus checksum errors on this
communication interface.
mCmdSent
Integer
Number of master commands sent on this
communication interface.
mRspRcvd
Integer
Number of master command responses received on
this communication interface.