Example 13 - Motion Programs With Trippoints; Example 14 - Control Variables - Galil Motion Control DMC-1000 User Manual

Table of Contents

Advertisement

WT 500
TP X
V1=V1+1000
JP #Loop,V1<10001
EN
After the above program is entered, quit the Editor Mode, <cntrl>Q. To start the motion, command:
XQ #A
The motion programs may include trippoints as shown below.
Instruction
#B
DP 0,0
PR 30000,60000
SP 5000,5000
BGX
AD 4000
BGY
AP 6000
SP 2000,50000
AP ,50000
SP ,10000
EN
To start the program, command:
XQ #B
Objective: To show how control variables may be utilized.
Instruction
#A;DP0
PR 4000
SP 2000
BGX
AMX
WT 500
#B
V1 = _TPX
PR -V1/2
BGX
AMX
WT 500
V1=
22 • Chapter 2 Getting Started
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Wait 500 ms
Tell position X
Increase the value of V1
Repeat if V1<10001
End
Execute Program #A

Example 13 - Motion Programs with Trippoints

Interpretation
Label
Define initial positions
Set targets
Set speeds
Start X motion
Wait until X moved 4000
Start Y motion
Wait until position X=6000
Change speeds
Wait until position Y=50000
Change speed of Y
End program
Execute Program #B

Example 14 - Control Variables

Interpretation
Label; Define current position as zero
Initial position
Set speed
Move X
Wait until move is complete
Wait 500 ms
Determine distance to zero
Command X move 1/2 the distance
Start X motion
After X moved
Wait 500 ms
Report the value of V1
DMC-1000

Advertisement

Table of Contents
loading

Table of Contents