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

9 lines
235 B
Ruby

# Modbus::Service.new(plc_id: 1, type: "word_holding_int16", start_address: 16, end_address: 31).execute
module Modbus
module Commands
def word_holding_int16(slave)
read_int(slave, 16, :holding_registers)
end
end
end