1
Support Questions / Error handling in form controls
« on: September 11, 2023, 01:51:28 PM »
I found this thread about using try/catch to handle things when a PLC drops offline:
https://www.advancedhmi.com/forum/index.php?topic=440.msg1653#msg1653
How do you handle it when the PLC driver is referenced directly in a form control? I have a BasicIndicator on my main form that is tied to a flasher bit in the PLC, just as a sort of visual handshake. When I unplug the PLC, I get a runtime error. Do I need to add try/catch structures to the driver? The exception is "No response from Forward Open" in the BeginRead Function of EthernetIPforSLCMicroCom.
https://www.advancedhmi.com/forum/index.php?topic=440.msg1653#msg1653
How do you handle it when the PLC driver is referenced directly in a form control? I have a BasicIndicator on my main form that is tied to a flasher bit in the PLC, just as a sort of visual handshake. When I unplug the PLC, I get a runtime error. Do I need to add try/catch structures to the driver? The exception is "No response from Forward Open" in the BeginRead Function of EthernetIPforSLCMicroCom.