Showing results for 
Search instead for 
Did you mean: 

Modbus TCP



I implemented a modbus TCP server.
When the TCP client asks me a read request and because of the processing time of my I do not respond in time (timeout) then from that moment on my responses to the client are shifted by 1. For example, the client asks for a read, I am in timeout, then the client asks for a write, the response to the write will be the response of the previous read and so on. If I have no timeout, the problem does not appear.
Do you have an idea?
I'll give you a picture of the code for receiving, processing and answering requests.



Thank you

0 Kudos
Message 1 of 1