V1=V1+1000
Increase the value of V1
JP #Loop,V1<10001
Repeat if V1<10001
EN End
After the above program is entered, quit the Editor Mode, <cntrl>Q. To start the motion, command:
XQ #A
Execute Program #A
Example 11- Motion Programs with Trippoints
The motion programs may include trippoints as shown below.
Instruction
Interpretation
#B
Label
DP Define
initial
position
PR 30000
Set target
SP 5000
Set speed
BG Start
motion
AD 4000
Wait until X moved 4000
TP Tell
position
EN End
program
To start the program, command:
XQ #B
Execute Program #B
Example 12 - Control Variables
Objective: To show how control variables may be utilized.
Instruction
Interpretation
#A;DP0
Label; Define current position as zero
PR 4000
Initial position
SP 2000
Set speed
BG Move
AM
Wait until move is complete
WT 500
Wait 500 ms
#B
V1 = _TP
Determine distance to zero
PR -V1/2
Command move 1/2 the distance
BG Start
motion
AM After
motion
WT 500
Wait 500 ms
V1=
Report the value of V1
JP #C, V1=0
Exit if position=0
JP #B
Repeat otherwise
#C;EN End
To start the program, command
XQ #A
Execute Program #A
DMC-14x5/6
Chapter 2 Getting Started
i
31
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com