Daba I think i see what your saying.. maybe..
Basically my program has for example 5 steps to run in order (when it is told to run them). When running each step, it has a few operations that it needs to perform like setting an output to move a motor. Since this operation takes maybe 2 seconds, i've got it setup with a timer and some toggle bits so that we set the output and then toggle a bit, then the next pass through it wont set the motor position but will instead count up the timer..
Each of these operations should only happen once, and i also dont want the other operations to happen for the other steps/subsequent operations prior to this one completing, so i employed toggle bits and TND's... I think it may not be the correct way of doing things but I as of yet see no reason why it shouldn't work. I'm open to enlightenment though!
Basically my program has for example 5 steps to run in order (when it is told to run them). When running each step, it has a few operations that it needs to perform like setting an output to move a motor. Since this operation takes maybe 2 seconds, i've got it setup with a timer and some toggle bits so that we set the output and then toggle a bit, then the next pass through it wont set the motor position but will instead count up the timer..
Each of these operations should only happen once, and i also dont want the other operations to happen for the other steps/subsequent operations prior to this one completing, so i employed toggle bits and TND's... I think it may not be the correct way of doing things but I as of yet see no reason why it shouldn't work. I'm open to enlightenment though!