Listens to the modbus_read topic and reacts to updated RUN_PERMITTED states.
More...
#include <modbus_adapter_run_permitted.h>
Listens to the modbus_read topic and reacts to updated RUN_PERMITTED states.
Definition at line 37 of file modbus_adapter_run_permitted.h.
void prbt_hardware_support::ModbusAdapterRunPermitted::modbusMsgCallback |
( |
const ModbusMsgInStampedConstPtr & |
msg_raw | ) |
|
Called whenever a new modbus messages arrives.
- Note
- Filters like for example the UpdateFilter can restrict the number of incoming messages.
-
A STOP1 is triggered in case:
- of a disconnect from the modbus server,
- the modbus message does not contain the expected registers,
- the modbus API version is incorrect,
- the RUN_PERMITTED state changes to false.
Definition at line 34 of file modbus_adapter_run_permitted.cpp.
const ModbusApiSpec prbt_hardware_support::ModbusAdapterRunPermitted::api_spec_ |
|
private |
constexpr unsigned int prbt_hardware_support::ModbusAdapterRunPermitted::MODBUS_API_VERSION_REQUIRED {2} |
|
staticprivate |
The documentation for this class was generated from the following files: