Modbus stop responding after 20minutes work

seler
2022-09-02
2022-09-05
  • seler - 2022-09-02

    Hi, I am fresh to codesys, using latest version for raspberry pi.
    I have two modbus RTU modules 16DI and 16DO, connected by TCP/RTU gateway.
    Modules and all Inputs and Outputs are added to the system, assigned variables and program starts and run without any error data is read (switches) and write (lamp outputs) and all works great.
    But just for 15-20m minutes later one of the modules stop exchanging data. Codesys show no error, connection seems be ok , sending request as expected but no response from module. WinModbusScanner in the same time can read/write from this module with no problem.
    I need to stop program for one hour or longer to get it run again or if I change slightly cycling time in one module, it can run right away, but again only for 20 minutes. What I am doing wrong?

    Thanks in advance for any help.

     
  • seler - 2022-09-05

    I think I have sort it out. Set "Auto reconnect" and 3sec timeout in Master modbus. So far it works, however status of modbus modules shows that errors for timeouts occurs quite often.

     

Log in to post a comment.