I have a Flexy 205 that acts as a gateway between a PLC (via Ethernet) and a Dispenser (via an RS485 port). From time to time, the dispenser is powered off and it (obviously) loses communication with the Flexy.
How can I program a script in the Flexy to report the status of that connection back to the PLC, with 0 being bad and 1 being good? It seems like the quality value in the Flexy keeps that information in a similar way, but I’m not sure how to acquire the value of quality for a port and assign that to a tag in the Flexy for a particular port. Thoughts?