Activity Forums Questions & Troubleshooting Controllino MAXI RS485 Modbus Reply To: Controllino MAXI RS485 Modbus

  • Lukas

    Member
    January 4, 2022 at 3:09 pm

    Hi Kwaaigone,

    I think that your sketch may stuck when the reply from the Modbus slave is shorter than 7 bytes. It will stay in the blocking function Serial3.read.

    And what can be the reason? Maybe you switch the RS485 direction too fast. The flush function may end when the last byte is loaded into the trasmit buffer, but not transmitted yet. As described here.

    And your runEvery function may have a problem with millis overflow.

    Good luck!

    Lukas