Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. modbus
    Log in to post

    • SOLVED QModbusRtuSerialMaster issues with 5.12.x
      General and Desktop • msvc2015 serialport modbus 5.12.1 5.12.0 • • J.Hilk  

      2
      0
      Votes
      2
      Posts
      177
      Views

      To be continued at bugreports.qt.io https://bugreports.qt.io/browse/QTBUG-73965
    • UNSOLVED Modbus problems when console is connected
      General and Desktop • widgets console modbus serialbus • • kalamondin  

      1
      0
      Votes
      1
      Posts
      203
      Views

      No one has replied

    • UNSOLVED Qt ModBus Master support for ASCII transmission mode
      General and Desktop • serial port modbus ascii mode • • Stanly.Thomas  

      3
      0
      Votes
      3
      Posts
      690
      Views

      I think a tracker has been raised from long time for the same https://bugreports.qt.io/browse/QTBUG-51751 and this is still in unresolved state.
    • UNSOLVED ModBus Reply Timeout with Qt 5.10
      General and Desktop • modbus 5.10 • • Landolfi  

      5
      0
      Votes
      5
      Posts
      1702
      Views

      Yes, of course may be a problem in the code that accidentaly worked with previous Qt version. I knew that bug, but is not related to my issue, since I'm using a longer timeout in this case.
    • UNSOLVED Infinite update data over modbus protocol
      General and Desktop • qt5 modbus • • UlrichRekkenin  

      3
      0
      Votes
      3
      Posts
      860
      Views

      @SGaist said in Infinite update data over modbus protocol: I haven't used that module yet but are you sure you are not spamming your devices or triggering network congestion ? Hi, I'm thinking that I do...
    • SOLVED Modbus problem, beginner
      General and Desktop • problem beginner serial modbus new • • GhostWolf  

      10
      0
      Votes
      10
      Posts
      2759
      Views

      Thanks for the answers, I found the connection problem. I added the part: void MainWindow::on_connectType_currentIndexChanged(int index) { if (modbusDevice) { modbusDevice->disconnectDevice(); delete modbusDevice; modbusDevice = nullptr; } auto type = static_cast<ModbusConnection> (index); if (type == Serial) { modbusDevice = new QModbusRtuSerialMaster(this); } else if (type == Tcp) { modbusDevice = new QModbusTcpClient(this); if (ui->portEdit->text().isEmpty()) ui->portEdit->setText(QLatin1Literal("127.0.0.1:502")); } connect(modbusDevice, &QModbusClient::errorOccurred, [this](QModbusDevice::Error) { statusBar()->showMessage(modbusDevice->errorString(), 5000); }); if (!modbusDevice) { ui->connectButton->setDisabled(true); if (type == Serial) statusBar()->showMessage(tr("Could not create Modbus master."), 5000); else statusBar()->showMessage(tr("Could not create Modbus client."), 5000); } else { connect(modbusDevice, &QModbusClient::stateChanged, this, &MainWindow::onStateChanged); } } And now I can make a connection. Now I have to test it on the device, but i can't access it for a while, to be continued
    • UNSOLVED Parsing CSV file to construct Modbus Request Packet
      General and Desktop • modbus client packets master • • musclemania05  

      1
      0
      Votes
      1
      Posts
      606
      Views

      No one has replied

    • UNSOLVED MODBUS and LRC
      Mobile and Embedded • modbus qtserialbus • • GeorgeIoak  

      1
      0
      Votes
      1
      Posts
      595
      Views

      No one has replied

    • UNSOLVED About QModbus usage(How to read coils at a fixed frequecy?)
      General and Desktop • modbus • • MartinChan  

      7
      0
      Votes
      7
      Posts
      3025
      Views

      @MartinChan You cannot do it like this: auto connection=QObject::connect(reply,&QModbusReply::finished,loop.quit()); In this case you call the method loop.quit() instead of passing a pointer to it to connect. So, do it like @beecksche suggested.
    • SOLVED How to Use QModbus Class to get the data on a DAQ card?
      General and Desktop • modbus • • MartinChan  

      11
      0
      Votes
      11
      Posts
      8273
      Views

      @beecksche Hi,I have to say you're right,however,it didn't mean my code couldn't run--because in my code. once you use connectDevice command,it did change the state from "Unconnected"to "Connected"(Your code discuss the problem it could trigger during the connectDevice() progress,it's necessary in practice,in my case I have checked the parameters like IP,Port Address etc,so it didn't show error when I compile the file).
    • UNSOLVED QModbusMaster example
      General and Desktop • modbus • • beecksche  

      6
      0
      Votes
      6
      Posts
      2316
      Views

      Depending on what you would like to bring as points, there are several possibilities: The mod bus component on the bug report system Interest mailing list