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