Author Topic: result of Write function  (Read 712 times)

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
result of Write function
« on: November 26, 2017, 01:07:22 PM »
I want to know what the function EthernetIPforSLCMicroCom1.Write return in case of success. I want discriminate when the function fail to write tag in PLC.
thank you in advance

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: result of Write function
« Reply #1 on: November 26, 2017, 02:50:22 PM »
Write is a synchronous call that waits for the write to complete or fail. If it fails, it should throw an exception. You should be able to test this by writing to an elements that does not exist.