# Modbus::Service.new(plc_id: 1, type: "bit_input", start_address: 0, end_address: 15).execute module Modbus module Commands def bit_input(slave) read_bit(slave, :discrete_inputs) end end end