ModbusServiceStatus

The ModbusServiceStatus C function block provides the status of the
Modbus®
service.
prt_mss
TIP: To enable controller updates, perform a download operation after adding a ModbusServiceStatus function block.
This function block has these arguments:
Arguments
RST
BOOL
TRUE resets all status values to zero
INTS
INT
The internal status
SSTS
INT
The status of the
Modbus
service
ERR
STRING(64)
The description of the possible error codes:
  • Illegal function
  • Illegal data address
  • Illegal data value
  • Device failure
  • Acknowledge
  • Busy, rejected message
  • Nak—negative acknowledgment
  • Memory parity error
RCV
UDINT
The total number of received messages
RCVE
UDINT
The number of messages received with an error
REP
UDINT
The total number of messages replied to
REPE
UDINT
The number of messages replied to with an error
FUNC
USINT
The
Modbus
function of the last message
ADDR
UDINT
The Base
Modbus
address of the last message
CNT
UINT
The
Modbus
data count of the last message
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal