I am trying to create some information inside ignition - we typically do this in the PLC, but have a lot of remote sites and are trying to cut down on traffic where possible.
What I want to do is grab a start date and time when I get a run indication and then when I lose it grab a stop date and time. I was thinking of using an expression tag, but realized there really isn’t a way to do a one shot that is clean that I can think of.
Initially I though well I can use the expression tag to set another tag and run a script and as long as the other tag and the run status is high I don’t run the script, but when I lose the run and the other tag is high I run another script to grab the stop date. This just seems to convoluted to me, but I guess if it is the only way to do it. Anyone have any suggestion for a more elegant method?