Module: Modbus::Transaction
- Defined in:
- lib/modbus/transaction/base.rb,
lib/modbus/transaction/client.rb,
lib/modbus/transaction/server.rb,
lib/modbus/transaction/transaction.rb
Defined Under Namespace
Constant Summary collapse
- TRANSACTIONS =
Valid transactions (messages) and value handler config
[ { :request => PDU::ReadCoilsRequest, :response => PDU::ReadCoilsResponse, :handler => :handle_read_bits }, { :request => PDU::ReadInputStatusRequest, :response => PDU::ReadInputStatusResponse, :handler => :handle_read_bits }, { :request => PDU::ReadInputRegistersRequest, :response => PDU::ReadInputRegistersResponse, :handler => :handle_read_registers }, { :request => PDU::ReadHoldingRegistersRequest, :response => PDU::ReadHoldingRegistersResponse, :handler => :handle_read_registers }, { :request => PDU::WriteMultipleRegistersRequest, :response => PDU::WriteMultipleRegistersResponse, :handler => :handle_write_multiple_registers }, { :request => PDU::WriteSingleCoilRequest, :response => PDU::WriteSingleCoilResponse, :handler => :handle_write_single_coil } ]