Hello dear all,
I already wrote a post to the QT forum and got the suggestion to post my 
question at this site.
Currently I'm using the class QModbusTcpClient. I want to read sequentially 
values from different Modbus addresses. In a thread I'm calling the following 
function via signal slot.
void BModbus::requestRequiredSlot(BModbusData *data)
{
    QModbusDataUnit du(QModbusDataUnit::HoldingRegisters, data->address(), 
data->datatype().second);
    QModbusReply *reply = c->sendReadRequest(du,255);
    connect(reply,&QModbusReply::finished,this,&BModbus::readyReadSlot);
}
Everything is working fine if I poll one Modbus address.
The Wireshark Protocol says that only one query is placed in one TCP-package.
If I query more than one modbus address, then there are all modbus queries in 
one
TCP-package (also logged with Wireshark). And my device only sends an answer to 
the last ID in the package.
Can anyone help me so that the QModbusTcpClient packs every Modbus ID into a 
seperate TCP-package instead of all in one?
Thanks for your help!
________________________________

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to