8.25
EDH0162En1040 – 06/99
MM4005
Appendix D — Motion Program Examples
2PA0,SE,WS
Set destination of axis #2 to 0 mm; start synchronized
axis; wait for motion to complete.
1PA11.5,SE,WS
Set destination of axis #1 to 11.5 mm; start synchro-
nized axis; wait for motion to complete.
2PA1.788,SE,WS
set destination of axis #2 to 1.788 mm; start synchro-
nized axis; wait for motion to complete.
1PR0.5,2PR-0.596,SE,WS
set relative destination of axis #1 at 0.5 mm and of
axis #2 at -0.596 mm away from current position;
start synchronous motion; wait for motion end.
2PA0,SE,WS
set destination of axis #2 to 0 mm; start synchro-
nized axis; wait for motion to complete.
1PA12.5,SE,WS
Set destination of axis #1 to 12.5 mm; start synchro-
nized axis; wait for motion to complete.
2PA0.596,SE,WS
Set destination of axis #2 to 0.596 mm; start synchro-
nized axis; wait for motion to complete.
1PA13,2PA0,SE,WS
Set destination of axis #1 to 13 mm and of axis #2 to
0 mm; start motion; wait for motion to complete.
1SY0, 2SY0
Declare axes #1 and #2 non-synchronized.
8CB
Set I/O bit #8 low; this will lift the pen up.
1PA17,WS
Move axis #1 to 17 mm; start synchronized axis;
wait for motion to complete.
8SB
Set I/O bit #8 high; this brings the pen down.
2PR12.5,WS,1PR-0.5,WS,2PR-12.5,WS,1PR-0.5,WS,RP2
Make four relative
motions by sequentially incrementing axis #1 and #2;
wait for each motion to stop; repeat the cycle (com-
mand line) two times.
2PA2.5,WS
Move axis #2 to 2.5 mm and wait for motion com-
plete.
1YS0
Initialize variable #1; set its value to zero.
1SY1, 2SY1
Declare axes #1 and #2 synchronized.
1WL8
Start a wile loop; repeat the following commands
while variable #1 is less than 8.
1PR-0.5,2PR0.596,SE,WS
Set relative destination of axis #1 at -0.5 mm and of
axis #2 at 0.596 mm away from current position;
start motion; wait for motion to complete
.
2PR-3,SE,WS
Set relative destination of axis #2 -3 mm away from
current position; start motion on the synchronized
axis; wait for motion to complete
.
1PR-0.5,2PR0.596,SE,WS
Set relative destination of axis #1 at -0.5 mm and of
axis #2 at 0.596 mm away from current position;
start synchronous motion; wait for motion to com-
plete
.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com