Classes | |
struct | IModbusService |
struct | ModbusRegisterDescriptor |
Typedefs | |
using | CoilsDescriptorType = ModbusRegisterDescriptor< uint16_t, bool > |
using | DiscreteInputDescriptorType = ModbusRegisterDescriptor< uint16_t, bool > |
using | InputRegisterDescriptorType = ModbusRegisterDescriptor< uint16_t, uint16_t > |
using | HoldingRegisterDescriptorType = ModbusRegisterDescriptor< uint16_t, uint16_t > |
Enumerations | |
enum class | ExceptionCode : uint8_t |
Functions | |
Execution::Thread::Ptr | MakeModbusTCPServerThread (const shared_ptr< IModbusService > &serviceHandler, const ServerOptions &options=ServerOptions{}) |
using Stroika::Frameworks::Modbus::CoilsDescriptorType = typedef ModbusRegisterDescriptor<uint16_t, bool> |
From http://www.modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf page 8 Coils Single bit Read-Write This type of data can be alterable by an application program
Definition at line 49 of file IModbusService.h.
using Stroika::Frameworks::Modbus::DiscreteInputDescriptorType = typedef ModbusRegisterDescriptor<uint16_t, bool> |
From http://www.modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf page 8 Discretes Input Single bit Read-Only ThiThis type of data can be provided by an I/O system
Definition at line 55 of file IModbusService.h.
using Stroika::Frameworks::Modbus::InputRegisterDescriptorType = typedef ModbusRegisterDescriptor<uint16_t, uint16_t> |
From http://www.modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf page 8 Input Registers 16-bit word Read-Only This type of data can be provided by an I/O system
Definition at line 61 of file IModbusService.h.
using Stroika::Frameworks::Modbus::HoldingRegisterDescriptorType = typedef ModbusRegisterDescriptor<uint16_t, uint16_t> |
This is for 2-byte read/write data - data read from the server, and which may be written to the server.
Definition at line 66 of file IModbusService.h.
|
strong |
From http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf page 49
SLAVE_DEVICE_FAILURE may be the only exception, which is somewhat of a blanket - server failed - HTTP 503 like - (or so it appears).
Definition at line 77 of file IModbusService.h.
Thread::Ptr Stroika::Frameworks::Modbus::MakeModbusTCPServerThread | ( | const shared_ptr< IModbusService > & | serviceHandler, |
const ServerOptions & | options = ServerOptions{} |
||
) |
Construct a Modbus TCP Listener which will listen for Modbus connections, run them using the optionally provided thread pool (and other configuration options) and send actual handler requests to the argument IModbusService handler.
Supported Function Codes: o kReadCoils (#1) o ReadDiscreteInputs (#2) o ReadHoldingResisters (#3) o ReadInputRegister (#4) o WriteSingleCoil (#5)
Definition at line 435 of file Server.cpp.