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

Table of Contents

Advertisement

DP 0
V1=1000
#Loop
PA V1
BG X
AM X
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

Example 13 - Motion Programs with Trippoints

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

Example 14 - Control Variables

Objective: To show how control variables may be utilized.
Instruction
#A;DP0
PR 4000
SP 2000
BGX
AMX
WT 500
#B
28 • Chapter 2 Getting Started
Define current position as zero
Set initial value of V1
Label for loop
Move X motor V1 counts
Start X motion
After X motion is complete
Wait 500 ms
Tell position X
Increase the value of V1
Repeat if V1<10001
End
Execute Program #A
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
Interpretation
Label; Define current position as zero
Initial position
Set speed
Move X
Wait until move is complete
Wait 500 ms
DMC-1600

Advertisement

Table of Contents
loading

Table of Contents