View Single Post
Old February 7th, 2018, 09:01 PM   #1
backendcode
Member
Canada

backendcode is offline
 
Join Date: Aug 2017
Location: brampton
Posts: 248
Implement logic! need help please

Hello guys, Just wondering if someone can help me please

I have a timer when gets enable I move .acc value of that timer to another tag to store the .acc value but next time when the timer gets enable again, it overwrites the last stored value of .acc into that tag.

but I would like to add the new accumulator value of that timer to existing value of my tag where I am storing .acc value.

Or is there any timer which keeps the value of .acc (Don't set to zero) when become disable and I can reset that .acc value at 7 am which I will use GSV instruction to get that time.

Thank you,
__________________
Junior Control Engineer
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live
  Reply With Quote