ModbusClient¶
Description¶
The ModbusClient object is the base class for all Modbus clients (masters) and manages a number of Modbus slaves to communicate with.
› Inherits: | ModbusDevice |
---|---|
› Inherited by: | ModbusRtuMaster, ModbusTcpClient |
Properties¶
numberOfRetries¶
This property holds the number of retries a client will perform before a request fails.
› Type: | SignedInteger |
---|---|
› Default: | 3 |
› Signal: | numberOfRetriesChanged() |
› Attributes: | Writable |
slaves¶
This property holds a list of all slaves.
› Type: | List<ModbusSlave> |
---|---|
› Signal: | slavesChanged() |
› Attributes: | Readonly |
timeout¶
This property holds the timeout value used by this client
› Type: | SignedInteger |
---|---|
› Default: | 1000 |
› Signal: | timeoutChanged() |
› Attributes: | Writable |
Methods¶
Signals¶
slavesDataChanged(SignedInteger index)¶
This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index
in the slaves list itself emitted the dataChanged() signal.