Class: LadderDrive::Protocol::Mitsubishi::FxDevice

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

Constant Summary

Constants inherited from QDevice

QDevice::SUFFIXES, QDevice::SUFFIX_CODES

Constants inherited from LadderDrive::PlcDevice

LadderDrive::PlcDevice::ESC_SUFFIXES, LadderDrive::PlcDevice::NUMBER_TYPE_DEC, LadderDrive::PlcDevice::NUMBER_TYPE_DEC_HEX, LadderDrive::PlcDevice::NUMBER_TYPE_HEX

Instance Attribute Summary

Attributes inherited from QDevice

#number, #suffix

Attributes inherited from LadderDrive::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 LadderDrive::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 LadderDrive::Protocol::Mitsubishi::QDevice

Instance Method Details

#nameObject



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

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