Hi Benj!
I try to find a way to restart modbus comms after saden disconnect (unplug cable) either from slave or master..
At the moment I can sense the disconnection using the "Get socket status" function, if it is anything other than 23 decimal then I trigger a function to
reconnect, but nothing I used after this worked. Best results I had from playing around was only to reconnect but have no comms.
Comms resume only after I reset the microcontroller.
my flowchart is messy as you can see from the disabled functions...
any suggestions?
George
Modbus TCP slave cannot reconnect after disconnection
Moderator: Benj
-
- Posts: 52
- Joined: Fri Apr 07, 2017 1:55 am
- Location: Greece
- Has thanked: 16 times
- Been thanked: 14 times
Modbus TCP slave cannot reconnect after disconnection
- Attachments
-
- rpiTCP.fcfx
- (28.9 KiB) Downloaded 310 times