NWT.Stuff
I would like to implement a "Time Accumulator" that I have seen referred to as Function "TONR" in some on line searches.  As it doesn't seem that Open PLC Editor has this function can anyone recommend the best way to achieve this functionality in Open PLC ?

Many Thanks in Advance, Kevin
thiagoralves
Can’t you just use a regular TON? The accumulated time is available in the ET pin.
Check https://infosys.beckhoff.com/english.php?content=../content/1033/tcplclibstandard/html/tcplclibstandard_ton.htm&id
Reply 0 0
NWT.Stuff
Thanks Thiago. Didn't think of that !!  Perfect solution implemented 🙂
Reply 0 0
thiagoralves
The link you sent is exactly the same documentation I had linked 5 years ago from Beckhoff, just with the correct updated link. As shown in the document, the accumulated time is available in the ET pin.
Reply 0 0
BenB
Sorry, I deleted my comment once I realized that the info was not what I was looking for.
 
Edit to add: For anyone else needing a TONR or if you have a multi step process and want to save memory instead of running multiple timers.
Have one TON that gets sealed/latched on and that is set for the last step of your process (or a the longest needed time) and use GT comparison blocks to compare the ET to whatever you need.
I learned that ET stops increase when it equals PT; so I just set the PT as my last step.
Reply 0 0
Reply