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
-
#coils ⇒ Object
Returns the value of attribute coils.
-
#discrete_inputs ⇒ Object
Returns the value of attribute discrete_inputs.
-
#holding_registers ⇒ Object
Returns the value of attribute holding_registers.
-
#input_registers ⇒ Object
Returns the value of attribute input_registers.
-
#uid ⇒ Object
Returns the value of attribute uid.
Instance Attribute Details
#coils ⇒ Object
Returns the value of attribute coils.
6 7 8 |
# File 'lib/rmodbus/server.rb', line 6 def coils @coils end |
#discrete_inputs ⇒ Object
Returns the value of attribute discrete_inputs.
6 7 8 |
# File 'lib/rmodbus/server.rb', line 6 def discrete_inputs @discrete_inputs end |
#holding_registers ⇒ Object
Returns the value of attribute holding_registers.
6 7 8 |
# File 'lib/rmodbus/server.rb', line 6 def holding_registers @holding_registers end |
#input_registers ⇒ Object
Returns the value of attribute input_registers.
6 7 8 |
# File 'lib/rmodbus/server.rb', line 6 def input_registers @input_registers end |
#uid ⇒ Object
Returns the value of attribute uid.
6 7 8 |
# File 'lib/rmodbus/server.rb', line 6 def uid @uid end |