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

9 lines
203 B
Ruby

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