EDH0162En1040 – 06/99
8.24
MM4005
Appendix D — Motion Program Examples
4XX
Erase program #4, if it exists.
4EP
Store all following entries as program #1.
CB
Clear all output I/O bits; set all bits to zero.
1PA0,2PA12.5,WS
Move axis #1 to 0 mm and axis #2 to 12.5 mm, wait
for all motion to complete.
8SB
Set I/O bit #8 high; this brings the pen down.
2PR-12.5,WS,1PR0.5,WS,2PR12.5,WS,1PR0.5,WS,RP2
Make four relative
motions by sequentially incrementing axis #1 and
#2; wait for each motion to stop; repeat the cycle
(command line) two times.
2PA10,WS
Move axis #2 to 10 mm and wait for motion complete.
1YS0
Initialize variable #1; set its value to zero.
1SY1,2SY1
Declare axes #1 and #2 synchronized.
1WL8
Start a while loop; repeat the following commands
while variable #1 is less than 8.
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 to complete.
2PR3,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.
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 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.
1YA1
Increment variable #1 by 1.
WE
End while loop.
1PA10.35,2PA0,SE,WE
Set destination of axis #1 to 10.35 mm and of axis
#2 to 0 mm; start synchronous motion; wait for
motion to complete.
1PA10.5,SE,WS
Set destination of axis #1 to 10.5 mm; start synchro-
nized axis; wait for motion to complete.
2PA2.979,SE,WS
Set destination of axis #2 to 2.979 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 motion; wait for motion to complete.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com