Class: Escalator::Protocol::Keyence::KvDevice
- Inherits:
-
Escalator::PlcDevice
- Object
- Escalator::PlcDevice
- Escalator::Protocol::Keyence::KvDevice
- Defined in:
- lib/escalator/protocol/keyence/kv_device.rb
Constant Summary
Constants inherited from Escalator::PlcDevice
Escalator::PlcDevice::ESC_SUFFIXES, Escalator::PlcDevice::NUMBER_TYPE_DEC, Escalator::PlcDevice::NUMBER_TYPE_DEC_HEX, Escalator::PlcDevice::NUMBER_TYPE_HEX
Instance Attribute Summary
Attributes inherited from Escalator::PlcDevice
Instance Method Summary collapse
-
#initialize(a, b = nil) ⇒ KvDevice
constructor
A new instance of KvDevice.
Methods inherited from Escalator::PlcDevice
#+, #-, #bit_device?, #bool, #bool=, #device_code, #input?, #name, #next_device, program_area_device, #reset, status_from_plc_device, status_to_plc_device
Constructor Details
#initialize(a, b = nil) ⇒ KvDevice
Returns a new instance of KvDevice.
30 31 32 33 |
# File 'lib/escalator/protocol/keyence/kv_device.rb', line 30 def initialize a, b = nil super @suffix = "R" if @suffix.nil? || @suffix.length == 0 end |