Hello, I'm working on a program which sends a modbus message and then re-sends the same message if it does not receive a response. I send the modbus message from a ladder diagram and then call a UDFB which checks if the slave sent back a response by monitoring a coil called "successful_Message". The UDFB should allow the message to re-send a certain number of times, and then stop. I can't seem to get it to stop though, it resets to zero and keeps sending!
Any help is appreciated.
Any help is appreciated.