12-21-2008 05:06 PM
For example; moving 30 degrees with motor A every 5 seconds, (approx 100 times) and 90 degrees with motor B every 5 seconds (approx 100 times). But before motor C rotates by 30 Degrees, I need motor A to return to its original Position, (100*-30 = 3000 degrees), hence total time lag of (100*5 = 500 seconds).
Time taken for motor A to return to original position also needs to be taken into account, and during this time motor B should be on 'pause'.
01-02-2009 09:20 AM
Hi Mojo_jojo,
you can use a while loop with a case structure inside it, to build a state machine. Make your different moves in different cases to get what you want.
Hope it helps.
Mike