Author Topic: Offline PLC  (Read 1808 times)

clanman

  • Newbie
  • *
  • Posts: 3
    • View Profile
Offline PLC
« 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.



Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Offline PLC
« Reply #1 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.

clanman

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Offline PLC
« Reply #2 on: September 25, 2014, 04:10:28 AM »
Many thanks