ModbusServiceStatus
The ModbusServiceStatus C function block provides the status of the
Modbus®
service.
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:
|
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