21#ifndef DYNAMIC_MODBUS_MASTER_MODBUSERRORHELPER_H
22#define DYNAMIC_MODBUS_MASTER_MODBUSERRORHELPER_H
49 return "INVALID_RESPONSE";
52 return "ADDRESS_UNAVAILABLE";
55 return "SLAVE_NOT_SUPPORTED";
58 return "PORT_NOT_SUPPORTED";
61 return "INVALID_STATE";
70 return "ILLEGAL FUNCTION";
73 return "ILLEGAL DATA ADDRESS";
76 return "ILLEGAL DATA VALUE";
79 return "SLAVE DEVICE FAILURE";
85 return "SLAVE DEVICE BUSY";
88 return "MEMORY PARITY ERROR";
91 return "GATEWAY PATH UNAVAILABLE";
94 return "GATEWAY TARGET NO RESPONSE";
97 return "Invalid Error";
Definition ModbusErrorHelper.h:29
static constexpr std::string modbusErrorToName(const ModbusError error)
Converts a ModbusError enum value to its corresponding name.
Definition ModbusErrorHelper.h:40
Definition DynamicModbusMaster.cpp:26
ModbusError
Modbus Error Type Enum.
Definition ModbusError.h:30
@ TIMEOUT
The Driver experienced a timeout.
@ ADDRESS_UNAVAILABLE
This slave address is not available.
@ MEMORY_PARITY_ERROR
The Extended File Area failed to pass a consistency check.
@ ACKNOWLEDGE
The Target accepted the Request but will take some time to complete it, this is returned to prevent a...
@ ILLEGAL_DATA_VALUE
The Data Value received is of an invalid length.
@ GATEWAY_PATH_UNAVAILABLE
No Path was found between the Input and the Output Port of the Gateway, gateway is possibly misconfig...
@ FAILURE
The slave device experienced an undermined failure.
@ INVALID_RESPONSE
The Slave Device Response was invalid.
@ SLAVE_NOT_SUPPORTED
The slave does not support this function.
@ INVALID_STATE
The Modbus Driver or the Device is in an invalid state.
@ INVALID_ARG
A given Argument was invalid.
@ SLAVE_DEVICE_BUSY
The Target is currently busy executing a command, retransmit the command at a later time.
@ ILLEGAL_DATA_ADDRESS
The Data Address received is not available.
@ SLAVE_DEVICE_FAILURE
An Unrecoverable Error occured while trying to perform the request.
@ ILLEGAL_FUNCTION
The received Function code is not available on the target device.
@ OK
Indicates no error has occured.
@ GATEWAY_TARGET_NO_RESPONSE
Gateway Target Device did not respond or does not exist.
@ PORT_NOT_SUPPORTED
This Port is not supported.