Example 11- Motion Programs With Trippoints; Example 12 - Control Variables - Galil Motion Control DMC-14 5 Series Manual

Table of Contents

Advertisement

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 11- Motion Programs with Trippoints

The motion programs may include trippoints as shown below.
Instruction
#B
DP
PR 30000
SP 5000
BG
AD 4000
TP
EN
To start the program, command:
XQ #B

Example 12 - Control Variables

Objective: To show how control variables may be utilized.
Instruction
#A;DP0
PR 4000
SP 2000
BG
AM
WT 500
#B
V1 = _TP
PR -V1/2
BG
AM
WT 500
V1=
JP #C, V1=0
JP #B
#C;EN
To start the program, command
XQ #A
DMC-14x5/6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Increase the value of V1
Repeat if V1<10001
End
Execute Program #A
Interpretation
Label
Define initial position
Set target
Set speed
Start motion
Wait until X moved 4000
Tell position
End program
Execute Program #B
Interpretation
Label; Define current position as zero
Initial position
Set speed
Move
Wait until move is complete
Wait 500 ms
Determine distance to zero
Command move 1/2 the distance
Start motion
After motion
Wait 500 ms
Report the value of V1
Exit if position=0
Repeat otherwise
End
Execute Program #A
Chapter 2 Getting Started
31
i

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dmc-14 6 seriesDmc-1415Dmc-1416Dmc-1425

Table of Contents