Modbus TCP slave cannot reconnect after disconnection

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
TaliG
Posts: 52
Joined: Fri Apr 07, 2017 1:55 am
Location: Greece
Has thanked: 16 times
Been thanked: 14 times
Contact:

Modbus TCP slave cannot reconnect after disconnection

Post by TaliG »

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
Attachments
rpiTCP.fcfx
(28.9 KiB) Downloaded 249 times

Post Reply