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:
- › Inherited by:
Overview
Properties
Methods
Signals
Enumerations
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:
- › Signal:
slavesChanged()
- › Attributes:
Readonly
timeout
This property holds the timeout value used by this client
- › Type:
SignedInteger
- › Default:
1000- › Signal:
timeoutChanged()
- › Attributes:
Writable
Methods
pollSlaves()
This method polls the slaves property. It is called automatically when using a Polling property modifier on this property and usually does not have to be called manually.
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.