Module: ModBus::Server

Included in:
RTUServer, RTUViaTCPServer, TCPServer
Defined in:
lib/rmodbus/server.rb

Overview

Module for implementation ModBus server

Constant Summary collapse

Funcs =
[1,2,3,4,5,6,15,16]

Instance Attribute Summary collapse

Instance Attribute Details

#coilsObject

Returns the value of attribute coils.



6
7
8
# File 'lib/rmodbus/server.rb', line 6

def coils
  @coils
end

#discrete_inputsObject

Returns the value of attribute discrete_inputs.



6
7
8
# File 'lib/rmodbus/server.rb', line 6

def discrete_inputs
  @discrete_inputs
end

#holding_registersObject

Returns the value of attribute holding_registers.



6
7
8
# File 'lib/rmodbus/server.rb', line 6

def holding_registers
  @holding_registers
end

#input_registersObject

Returns the value of attribute input_registers.



6
7
8
# File 'lib/rmodbus/server.rb', line 6

def input_registers
  @input_registers
end

#uidObject

Returns the value of attribute uid.



6
7
8
# File 'lib/rmodbus/server.rb', line 6

def uid
  @uid
end