The QModbusRtuSerialClient class represents a Modbus client that uses a serial bus for its communication with the Modbus server. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS SerialBus) |
target_link_libraries(mytarget PRIVATE Qt6::SerialBus)
|qmake:||QT += serialbus|
|QModbusRtuSerialClient(QObject *parent = nullptr)|
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.
Member Function Documentation
[explicit] QModbusRtuSerialClient::QModbusRtuSerialClient(QObject *parent = nullptr)
Constructs a serial Modbus client with the specified parent.
Returns the amount of microseconds for the silent interval between two consecutive Modbus messages.
See also setInterFrameDelay().
Note: When calling this function, existing buffered data is removed from the serial port.
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.
See also interFrameDelay().
Sets the amount of milliseconds for the silent interval between a Modbus broadcast and a consecutive Modbus messages to turnaroundDelay. Typically the turnaround delay is in the range of
See also turnaroundDelay().
Returns the amount of milliseconds for the silent interval between a Modbus broadcast and a consecutive Modbus messages. The default value is set to
See also setTurnaroundDelay().
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.