Author Topic: creaating a counter using datasubscriber and clearing counts after 60 sec  (Read 1355 times)

Dufniall89

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hello everyone,

    i'm working on a project, but i keep getting stuck and i want to make sure i'm doing it the right way... lol if there is such a thing.

in short i have a PLC "item[0].Sort.Destination" i need to count every time there is a value of 2 or 3 each one will add a plus 1 so their counter and clear the counter after a set time.
 
   i'm looking at using the datasubscriber to get the value and an if statement to add to the counter, and an if statement to clear the count once the set time is reached.

more to follow as i write more code...

MajorFault

  • Guest
Why can't this be done in the PLC?

Dufniall89

  • Newbie
  • *
  • Posts: 2
    • View Profile
I suppose it could be, but i'm trying to make something like a SCADA to monitor the volume going to different destinations. it might be a better project for ignition... but i don't know

MajorFault

  • Guest
it might be a better project for ignition... but i don't know
If you have a choice between AHMI and Ignition, then yes use Ignition. 

But, your example and request really makes no sense to be done in the HMI... any HMI.  If you want to increment a counter, that is a job for the PLC.

bachphi

  • Hero Member
  • *****
  • Posts: 674
    • View Profile
IT?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================