August 2012
L010796
45
Sample Program 4:
Sample Program 4 illustrates the setup of the analog speed function and the use of “indexing-
on-the-fly.” The system is first homed using home type 1. The next step is to wait for the input
register to read 110111 (input 2 must be high while input 3 is low, all other inputs are not used
and input 1 is masked high due to analog function being used). The third step is to slew using
the analog input as the maximum speed between 5000 and 10000 steps/revolution. When input
2 is switched low, the unit will index 2500 more steps and ramp down to base speed and stop.
At the end of the index, output 1 will turn on for 100 mS. After the output is turned off the unit will
be sent back to position 0. The program then is sent back to repeat itself, waiting for the input
register to be 110111 again.
July 2018