Class: ModBus::RTUSlave

Inherits:
Client::Slave show all
Includes:
RTU
Defined in:
lib/rmodbus/rtu_slave.rb

Overview

RTU slave implementation

Examples:

RTUClient.connect(port, baud, opts) do |cl|
  cl.with_slave(uid) do |slave|
    slave.holding_registers[0..100]
  end
end

See Also:

Constant Summary

Constants inherited from Client::Slave

Client::Slave::EXCEPTIONS

Instance Attribute Summary

Attributes inherited from Client::Slave

#uid

Attributes included from Options

#raise_exception_on_mismatch, #read_retries, #read_retry_timeout

Attributes included from Debug

#logger, #raise_exception_on_mismatch, #read_retries, #read_retry_timeout

Method Summary

Methods inherited from Client::Slave

#coils, #discrete_inputs, #holding_registers, #initialize, #input_registers, #mask_write_register, #query, #read_coil, #read_coils, #read_discrete_input, #read_discrete_inputs, #read_holding_register, #read_holding_registers, #read_input_register, #read_input_registers, #read_write_multiple_registers, #write_multiple_coils, #write_multiple_registers, #write_single_coil, #write_single_register

Constructor Details

This class inherits a constructor from ModBus::Client::Slave