Listens to the modbus_read topic and offers a service informing about the active operation mode.
More...
#include <modbus_adapter_operation_mode.h>
|
void | modbusMsgCallback (const ModbusMsgInStampedConstPtr &msg_raw) |
| Called whenever a new modbus messages arrives. More...
|
|
Listens to the modbus_read topic and offers a service informing about the active operation mode.
Definition at line 38 of file modbus_adapter_operation_mode.h.
virtual prbt_hardware_support::ModbusAdapterOperationMode::~ModbusAdapterOperationMode |
( |
| ) |
|
|
virtualdefault |
OperationModes prbt_hardware_support::ModbusAdapterOperationMode::createUnknownOperationMode |
( |
| ) |
|
|
staticprivate |
void prbt_hardware_support::ModbusAdapterOperationMode::modbusMsgCallback |
( |
const ModbusMsgInStampedConstPtr & |
msg_raw | ) |
|
|
private |
Called whenever a new modbus messages arrives.
- Note
- Filters like for example the UpdateFilter can restrict the number of incoming messages.
-
The operation mode gets unknown in case:
- of a disconnect from the modbus server,
- the modbus message does not contain the expected registers,
- the modbus API version is incorrect.
Definition at line 46 of file modbus_adapter_operation_mode.cpp.
const ModbusApiSpec prbt_hardware_support::ModbusAdapterOperationMode::api_spec_ |
|
private |
std::unique_ptr<FilterPipeline> prbt_hardware_support::ModbusAdapterOperationMode::filter_pipeline_ |
|
private |
constexpr unsigned int prbt_hardware_support::ModbusAdapterOperationMode::MODBUS_API_VERSION_REQUIRED {2} |
|
staticprivate |
The documentation for this class was generated from the following files: