farmitry_hvac/app/services/modbus/commands/word_input_float32.rb

9 lines
230 B
Ruby

# Modbus::Service.new(plc_id: 1, type: "word_input_float32", start_address: 0, end_address: 15).execute
module Modbus
module Commands
def word_input_float32(slave)
read_float(slave, :input_registers)
end
end
end