Read Server ID
t, err = mbo:rsid(adr, fmt, [ms])
t, err = modbus.rsid(cpo, adr, fmt, [ms])
Read Server ID (Modbus function 17/0x11)
Parameter | Type | Description |
---|---|---|
mbo |
object table | Modbus Object |
cpo |
object | COM Port Object |
adr |
integer | Slave address |
fmt |
string | ID format string ([Modbus Format Strings]) |
ms |
integer | Receive timeout |
Returns | Type | Description |
---|---|---|
t |
table | Results (or a string if fmt not defined) |
err |
string | Modbus error (if applicable) |
The data contents are specific to each type of device.