AdvancedHMI Software

General Category => Support Questions => Topic started by: clanman on September 24, 2014, 08:04:18 AM

Title: Offline PLC
Post by: clanman on September 24, 2014, 08:04:18 AM
Hi to all.

Being a newbie to this great package, I have a question maybe someone out there could answer.

I am using AdvancedHMI with Codesys V2.3.9 and 2 Eaton HMI/PLC on OPC comms.

If a PLC is offline, I get an exception error in Public Function Write

I have put on onerror resume next in which seems to work ok and Comms starts again when PLC is powered.

Is this an expected event.

Cheers.


Title: Re: Offline PLC
Post by: Archie on September 24, 2014, 08:44:35 AM
It is normal for an exception to be thrown if the driver cannot read/write to the controller. Any read or writes should be inside an Try-Catch block.
Title: Re: Offline PLC
Post by: clanman on September 25, 2014, 04:10:28 AM
Many thanks