QModbusRtuSerialMaster Class
The QModbusRtuSerialMaster class represents a Modbus client that uses a serial bus for its communication with the Modbus server. 更多...
头文件: | #include <QModbusRtuSerialMaster> |
qmake: | QT += serialbus |
开始支持版本: | Qt 5.6 |
基类: | QModbusClient |
公有函数
QModbusRtuSerialMaster(QObject *parent = nullptr) | |
int | interFrameDelay() const |
void | setInterFrameDelay(int microseconds) |
- 8 个公有函数继承自 QModbusClient
- 7 个公有函数继承自 QModbusDevice
- 32 个公有函数继承自 QObject
重新实现的受保护函数
- 2 个受保护的函数继承自 QModbusClient
- 4 个受保护的函数继承自 QModbusDevice
- 9 个受保护的函数继承自 QObject
其他继承的成员
- 1 个属性继承自 QModbusClient
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 1 个信号继承自 QModbusClient
- 2 个信号继承自 QModbusDevice
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 QModbusClient
- 4 个受保护的函数继承自 QModbusDevice
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QModbusRtuSerialMaster class represents a Modbus client that uses a serial bus for its communication with the Modbus server.
Communication via Modbus requires the interaction between a single Modbus client instance and multiple Modbus servers. This class provides the client implementation via a serial port.
成员函数
QModbusRtuSerialMaster::QModbusRtuSerialMaster(QObject *parent = nullptr)
Constructs a serial Modbus master with the specified parent.
[override virtual protected]
void QModbusRtuSerialMaster::close()
Reimplemented from QModbusDevice::close().
int QModbusRtuSerialMaster::interFrameDelay() const
Returns the amount of microseconds for the silent interval between two consecutive Modbus messages.
This function was introduced in Qt 5.7.
参见 setInterFrameDelay().
[override virtual protected]
bool QModbusRtuSerialMaster::open()
Reimplemented from QModbusDevice::open().
Note: When calling this function, existing buffered data is removed from the serial port.
void QModbusRtuSerialMaster::setInterFrameDelay(int microseconds)
Sets the amount of microseconds for the silent interval between two consecutive Modbus messages. By default, the class implementation will use a pre-calculated value according to the Modbus specification. A active or running connection is not affected by such delay changes.
Note: If microseconds is set to -1 or microseconds is less than the pre-calculated delay then this pre-calculated value is used as frame delay.
This function was introduced in Qt 5.7.
参见 interFrameDelay().