Class: PlcAccess::Protocol::Mitsubishi::FxDevice

Inherits:
QDevice show all
Defined in:
lib/plc_access/protocol/mitsubishi/fx_device.rb

Constant Summary

Constants inherited from QDevice

QDevice::SUFFIXES, QDevice::SUFFIX_CODES

Constants inherited from PlcAccess::PlcDevice

PlcAccess::PlcDevice::ESC_SUFFIXES, PlcAccess::PlcDevice::NUMBER_TYPE_DEC, PlcAccess::PlcDevice::NUMBER_TYPE_DEC_HEX, PlcAccess::PlcDevice::NUMBER_TYPE_HEX

Instance Attribute Summary

Attributes inherited from QDevice

#number, #suffix

Attributes inherited from PlcAccess::PlcDevice

#number, #suffix, #value

Instance Method Summary collapse

Methods inherited from QDevice

#+, #-, #bit_device?, #initialize, #next_device, #p_adic_number, #suffix_code, #suffix_for_code, #valid?

Methods inherited from PlcAccess::PlcDevice

#+, #-, #bit_device?, #bool, #bool=, #device_by_suffix_number, #device_code, #initialize, #input?, #next_device, program_area_device, #reset, #set_text, status_from_plc_device, status_to_plc_device, #text, #text=

Constructor Details

This class inherits a constructor from PlcAccess::Protocol::Mitsubishi::QDevice

Instance Method Details

#nameObject



7
8
9
# File 'lib/plc_access/protocol/mitsubishi/fx_device.rb', line 7

def name
  @suffix + @number.to_s.rjust(4, '0')
end