Class: Escalator::Protocol::Keyence::KvDevice

Inherits:
Escalator::PlcDevice show all
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

#number, #suffix, #value

Instance Method Summary collapse

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