ModbusServer
Description
The ModbusServer object is the base class for all Modbus servers (slaves) and manages a number of slaves to communicate with.
This object was introduced in InCore 2.0.
- › Inherits:
- › Inherited by:
Overview
Properties
Methods
Signals
Enumerations
Properties
address
This property holds the address (slave ID) of the local Modbus server.
- › Type:
SignedInteger
- › Signal:
addressChanged()
- › Attributes:
Writable
registers
This property holds a list of Modbus registers to make available to Modbus clients.
- › Type:
- › Signal:
registersChanged()
- › Attributes:
Readonly
Signals
dataErrorOccurred()
This signal is emitted in very rare cases when the update the internal data map fails. This happens if the internal register map is out of sync due to an inconsistent property update order.
mapErrorOccurred()
This signal is emitted whenever an error occurs while building or updating the internal register map. This usually indicates a problem with the type, address or count of one or multiple Modbus registers.
registersDataChanged(SignedInteger index)
This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index in the registers list itself emitted the dataChanged() signal.