12-11-2012 05:24 AM
Hi,
For my CAPL I need to use previous state for a calculation.
For exemple b = a+(a-1) with a-1 = a's previous state and with a and b in float.
I declare my variable a and b but I don't know how to code previous state.
Thank you.
Solved! Go to Solution.
12-11-2012 05:39 AM - edited 12-11-2012 05:47 AM
You can use the shift register in a for loop and pull down the left side terminal of the shift register to the desired n- states. For your query you can do this way
Good luck
12-11-2012 05:46 AM
okay. I had not thought of that.
Thank you !!