Author Topic: EthernetIPforCLXCom: Subscribe vs Timer  (Read 2026 times)

Allan

  • Newbie
  • *
  • Posts: 4
    • View Profile
EthernetIPforCLXCom: Subscribe vs Timer
« on: November 05, 2013, 02:40:59 PM »
I am setting up a new program using your EthernetIPforCLXCom.  Currently, I am using a Threading.Timer to read the PLC address. (The cool thing with the threading.timer is that you can "restart" it after each time it runs (or not) - which works for me as I will go to the first address, after getting my signal, I will stop going to that address and go to another address.  When I'm finished with the second address, I go back to first.
I am unfamiliar with "subscribe" (I have limited development time with a PLC).  Is this much like connecting as a socket?  (This would also work for me if it is as I can respond quicker when the PLC changes value at that address - wouldn't it?).
In past forums, Archie, you have stated that subscribe is more efficient (than timers).  Why?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: EthernetIPforCLXCom: Subscribe vs Timer
« Reply #1 on: November 05, 2013, 02:45:41 PM »
See this thread for the details on the different data retrieving methods:

http://advancedhmi.com/forum/index.php?topic=238.0