Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Protocol Error after connecting to TCPModbus Device

Protocol Error after connecting to TCPModbus Device

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 108 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    beckseba
    wrote on last edited by
    #1

    Hi all,

    the code

    if (reply->error() == QModbusDevice::ProtocolError)
    {
          qDebug()<<"Write response error: %1 (Mobus exception: 0x%2";
          qDebug()<<reply->errorString();
          qDebug()<<reply->rawResult().exceptionCode();
    }
    

    responses with the following error

    2021-06-21 14:16:30.750 DBG default: Write response error: %1 (Mobus exception: 0x%2
    2021-06-21 14:16:30.750 DBG default: "Modbus Exception Response."
    2021-06-21 14:16:30.750 DBG default: 3
    

    after the connection to a TCPModbus coupler is established (connected signal is already triggered). Unfortunately, I cannot find any hint in the documentation on the reason of this error.

    Any ideas?

    Thanks a lot.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved