Hi All,
I am programming a Siemens S7-400 with Step 7 in STL. I am trying to totalise a counter that wraps-around.
In other words, I want to start counting (totalising) some start value of a counter and when the counter reaches a maximum value (normal word, 16 bits = 65536)I want to somehow store the old value and then continue totalising, even though the counter has reset to zero. (The counter will probably reset many times but I want the totaliser to continue to increment until I give the totaliser a reset trigger.) The totalsier will probably be stored in a double word to cater for it's large size.
Any help will be greatly appreciated.
Regards,
Shaun Nel.
I am programming a Siemens S7-400 with Step 7 in STL. I am trying to totalise a counter that wraps-around.
In other words, I want to start counting (totalising) some start value of a counter and when the counter reaches a maximum value (normal word, 16 bits = 65536)I want to somehow store the old value and then continue totalising, even though the counter has reset to zero. (The counter will probably reset many times but I want the totaliser to continue to increment until I give the totaliser a reset trigger.) The totalsier will probably be stored in a double word to cater for it's large size.
Any help will be greatly appreciated.
Regards,
Shaun Nel.