September 2012
L010155
48
Sample Program 3:
Sample Program 3 illustrates the setup and operation of the output on the fly function, and the
use of the if/then statement. The system is first home using home type 0, waits for input 1 to be
a value of 0 (grounded) and then is indexed 10,000 steps. During this index, output 1 needs to
be turned on every 1000 steps 5 times starting at position 2000. At the end of the index, output
1 is then turned on again for 1 mS and the unit is then sent back the 10,000 steps to position
0, but the output should not be turned on. The unit then repeats waiting for input 1 to be 0 and
indexes again.
July 2018