lib/plc/emulator/emu_device.rb in ladder_drive-0.5.2 vs lib/plc/emulator/emu_device.rb in ladder_drive-0.6.0
- old
+ new
@@ -55,9 +55,16 @@
def changed?
@changed
end
+ # NOTE: override at subclass
+ # It should get from plc
+ def device_by_suffix_number suffix, number
+ d = super
+ plc.device_by_name d.name
+ end
+
def value= value
set_value value
end
def bool kind=nil