Read Multiple Coils

t, err = mbo:rmc(adr, fc, nc, [ms])
t, err = modbus.rmc(cpo, adr, fc, nc, [ms])

Read multiple coils (Modbus function 01)

Parameter Type Description
mbo object table Modbus Object
cpo object COM Port Object
adr integer Slave address
fc integer First coil to read
nc integer Number of coils to read
ms integer Receive timeout
Returns Type Description
t table Boolean values (one for each coil)
err string Modbus error (if applicable)

See also: modbus.rdi

Note

This is a bit access function.