47
#L010155
July 2004
Sample Program 5:
Sample Program 5:
Sample Program 5:
Sample Program 5:
Sample Program 5:
Sample Program 5 illustrates a typical 3 axis application where one DPD75601 (Axis 0) is controlling the
other two axes (Axis 1 and Axis 2) by using the send text string commands. The program first sets the
accelerations, base speeds and maximum speeds for each axis. It then is enabling Axis 0 and Axis 1 to
use the thumbwheel switch that is connected to each unit for indexing. The direction is then set for Axis 0
and Axis 1 and these two axes are then told to index the distance set in each thumbwheel at the same
time. The program then waits for the motion to finish before it tells Axis 2 to move. Axis 2 first moves in the
negative direction waits for the index to finish, and then moves back in the positive direction. After Axis 2
is finished moving, Axis 0 and Axis 1 are both sent back to their zero positions at the same time. The
program is then repeated.