The QModbusReply class contains the data for a request sent with a QModbusClient derived class. //请求发送的
The QModbusClient class is the interface to send Modbus requests. //发送请求
The QBitArray class provides an array of bits. 比特数组
enum Qt::CheckState This enum describes the state of checkable items, controls, and widgets. //描述检测项的state
The QModbusTcpClient class is the interface class for Modbus TCP client device modbus tcp 客户端
The QModbusRtuSerialMaster class represents a Modbus client that uses a serial bus for its communication with the Modbus server. modbus客户端,与服务器端通信
QModbusDataUnit is a container class representing single bit and 16 bit word entries in the Modbus register //是一个容器类,代表单比特和16bit
The QModbusServer class is the interface to receive and process Modbus requests 接收和处理modbus请求
void QModbusDevice::disconnectDevice() Disconnects the device.
The QModbusTcpServer class represents a Modbus server that uses a TCP server for its communication with the Modbus client. Modbus server使用tcp服务
The QModbusRtuSerialSlave class represents a Modbus server that uses a serial port for its communication with the Modbus client. Modbus server使用serial port
typedef QMap<QModbusDataUnit::RegisterType, QModbusDataUnit> QModbusDataUnitMap;
enum QModbusDataUnit::RegisterType This enum describes all supported register types. //所有支持的寄存器类型
[signal] void QModbusServer::dataWritten(QModbusDataUnit::RegisterType table, int address, int size) This signal is emitted when a Modbus client has written one or more fields of data to the Modbus server Modbus client写多个数据到server
[signal] void QModbusDevice::stateChanged(QModbusDevice::State state) This signal is emitted every time the state of the device changes. 状态改变
[signal] void QModbusDevice::errorOccurred(QModbusDevice::Error error) This signal is emitted when an error of the type, error, occurs.
[virtual] bool QModbusServer::setValue(int option, const QVariant &newValue) Sets the newValue for option and returns true on success; //为option设置心智
QString QModbusDevice::errorString() const Returns descriptive error text for the device error.
QModbusDevice::State QModbusDevice::state() const Returns the current state of the device.
void QModbusDevice::setConnectionParameter(int parameter, const QVariant &value) Sets the value of parameter to value. //设置parameter的值到value
void QModbusServer::setServerAddress(int serverAddress) Sets the address for this Modbus server instance to serverAddress.
bool QModbusServer::setData(const QModbusDataUnit &newData) Writes newData to the Modbus server map. //写数据到Modbus server map
QRegularExpressionMatch QRegularExpression::match(const QString &subject, int offset = 0, QRegularExpression::MatchType matchType = NormalMatch, QRegularExpression::MatchOptions matchOptions = NoMatchOption) const Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions. 开始匹配regular expression