Simatic Ti & 32 bit words


Thread Starter


Anyone set up a 32 bit signed word which can be incremented by a variable who's value can change? When the 32 bit word exceeds the max value it rolls over keeping the count correct. If you've done this - a copy of the code will save me reinventing the wheel. Cheers.
when 32 bit word increments over max value, pulse
a ctr and assign it to a variable v1. either using sfpgm or in rll.and i guess have a ctr2 counting ctr1 etc. which doesn't exactly keep on going. though could count to the plc's capacity.