Overview
Classes: GenericMessage, IModbusMaster, MaskWriteRegisterRequest, MaskWriteRegisterResponse, ModbusException, ModbusExceptionMessage, ModbusMaster, ModbusMasterEventDispatcher, ModbusMasterImpl, ModbusMasterRemoteObject, ModbusMasterServerHelper, ModbusMasterSkeleton, ModbusMessage, PDUReader, PDUWriter, ReadCoilsRequest, ReadCoilsResponse, ReadDiscreteInputsRequest, ReadDiscreteInputsResponse, ReadExceptionStatusRequest, ReadExceptionStatusResponse, ReadFIFOQueueRequest, ReadFIFOQueueResponse, ReadHoldingRegistersRequest, ReadHoldingRegistersResponse, ReadInputRegistersRequest, ReadInputRegistersResponse, ReadWriteMultipleRegistersRequest, ReadWriteMultipleRegistersResponse, RequestFailure, WriteMultipleCoilsRequest, WriteMultipleCoilsResponse, WriteMultipleRegistersRequest, WriteMultipleRegistersResponse, WriteSingleCoilRequest, WriteSingleCoilResponse, WriteSingleRegisterRequest, WriteSingleRegisterResponse
Namespaces
namespace Device
namespace RTU
namespace TCP
Classes
struct GenericMessage
A generic Modbus frame.
class IModbusMaster
This class defines the interface for Modbus clients.
struct MaskWriteRegisterRequest
Modbus Mask Write Register Request Function Code: 0x16
struct MaskWriteRegisterResponse
Modbus Mask Write Register Response Function Code: 0x16
class ModbusException
An exception class for Modbus exceptions.
struct ModbusExceptionMessage
Modbus Exception Message
class ModbusMaster
This class defines the interface for Modbus clients.
class ModbusMasterEventDispatcher
This class defines the interface for Modbus clients.
class ModbusMasterImpl
An implementation of the ModbusMaster interface for the Modbus RTU protocol over a serial line.
class ModbusMasterRemoteObject
This class defines the interface for Modbus clients.
class ModbusMasterServerHelper
This class defines the interface for Modbus clients.
class ModbusMasterSkeleton
This class defines the interface for Modbus clients.
struct ModbusMessage
class PDUReader
The PDUReader class is used to write Modbus PDU data using a Poco::BinaryWriter.
class PDUWriter
The PDUWriter class is used to write Modbus PDU data using a Poco::BinaryWriter.
struct ReadCoilsRequest
Modbus Read Coils Request Function Code: 0x01
struct ReadCoilsResponse
Modbus Read Coils Response Function Code: 0x01
struct ReadDiscreteInputsRequest
Modbus Read Inputs Request Function Code: 0x02
struct ReadDiscreteInputsResponse
Modbus Read Inputs Response Function Code: 0x02
struct ReadExceptionStatusRequest
Modbus Read Exception Status Request Function Code: 0x07
struct ReadExceptionStatusResponse
Modbus Read Exception Status Response Function Code: 0x07
struct ReadFIFOQueueRequest
Modbus Read FIFO Queue Request Function Code: 0x18
struct ReadFIFOQueueResponse
Modbus Read FIFO Queue Response Function Code: 0x18
struct ReadHoldingRegistersRequest
Modbus Read Holding Registers Request Function Code: 0x03
struct ReadHoldingRegistersResponse
Modbus Read Holding Registers Response Function Code: 0x03
struct ReadInputRegistersRequest
Modbus Read Input Registers Request Function Code: 0x04
struct ReadInputRegistersResponse
Modbus Read Input Registers Response Function Code: 0x04
struct ReadWriteMultipleRegistersRequest
Modbus Read/Write Multiple Registers Request Function Code: 0x17
struct ReadWriteMultipleRegistersResponse
Modbus Read/Write Multiple Registers Response Function Code: 0x17
struct RequestFailure
struct WriteMultipleCoilsRequest
Modbus Write Multiple Coils Request Function Code: 0x0F
struct WriteMultipleCoilsResponse
Modbus Write Multiple Coils Response Function Code: 0x0F
struct WriteMultipleRegistersRequest
Modbus Write Multiple Registers Request Function Code: 0x10
struct WriteMultipleRegistersResponse
Modbus Read Multiple Registers Response Function Code: 0x10
struct WriteSingleCoilRequest
Modbus Write Single Coil Request Function Code: 0x05
struct WriteSingleCoilResponse
Modbus Write Single Coil Response Function Code: 0x05
struct WriteSingleRegisterRequest
Modbus Write Single Register Request Function Code: 0x06
struct WriteSingleRegisterResponse
Modbus Write Single Register Response Function Code: 0x06
Enumerations
ConnectionState
CONNECTION_OPEN = 2
CONNECTION_ERROR = 5
ExceptionCodes
See the MODBUS Application Protocol Specification V1.1b3 for a detailed description of these exception codes.
MODBUS_EXC_ILLEGAL_FUNCTION = 0x01
MODBUS_EXC_ILLEGAL_DATA_ADDRESS = 0x02
MODBUS_EXC_ILLEGAL_DATA_VALUE = 0x03
MODBUS_EXC_SERVER_DEVICE_FAILURE = 0x04
MODBUS_EXC_ACKNOWLEDGE = 0x05
MODBUS_EXC_SERVER_DEVICE_BUSY = 0x06
MODBUS_EXC_MEMORY_PARITY_ERROR = 0x08
MODBUS_EXC_GATEWAY_PATH_UNAVAILABLE = 0x0A
MODBUS_EXC_GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND = 0x0B
FunctionCodes
See the MODBUS Application Protocol Specification V1.1b3 for a detailed description of these function codes.
MODBUS_READ_COILS = 0x01
MODBUS_READ_DISCRETE_INPUTS = 0x02
MODBUS_READ_HOLDING_REGISTERS = 0x03
MODBUS_READ_INPUT_REGISTERS = 0x04
MODBUS_WRITE_SINGLE_COIL = 0x05
MODBUS_WRITE_SINGLE_REGISTER = 0x06
MODBUS_READ_EXCEPTION_STATUS = 0x07
MODBUS_DIAGNOSTICS = 0x08
MODBUS_GET_COMM_EVENT_COUNTER = 0x0B
MODBUS_GET_COMM_EVENT_LOG = 0x0C
MODBUS_WRITE_MULTIPLE_COILS = 0x0F
MODBUS_WRITE_MULTIPLE_REGISTERS = 0x10
MODBUS_REPORT_SERVER_ID = 0x11
MODBUS_READ_FILE_RECORD = 0x14
MODBUS_WRITE_FILE_RECORD = 0x15
MODBUS_MASK_WRITE_REGISTER = 0x16
MODBUS_READ_WRITE_MULTIPLE_REGISTERS = 0x17
MODBUS_READ_FIFO_QUEUE = 0x18
MODBUS_ENCAPSULATED_INTERFACE_TRANSPORT = 0x2B
MODBUS_EXCEPTION_MASK = 0x80
MODBUS_FUNCTION_CODE_MASK = 0x7F
RequestFailureReason
FAILURE_TIMEOUT = 0
Request timed out.
FAILURE_RESET = 1
Request aborted due to reset.
FAILURE_CLOSED = 2
Request aborted due to connection being closed.
FAILURE_ERROR = 3
Request aborted due to exception or network error.