DMC-18x2
Chapter 7 Application Programming • 119
#INPUT Program
Label
AI-1
Wait for input 1 low
PR 10000
Position command
BGX Begin
motion
EN End
program
Event Trigger - Set output when At speed
#ATSPEED Program
Label
JG 50000
Specify jog speed
AC 10000
Acceleration rate
BGX Begin
motion
ASX
Wait for at slew speed 50000
SB1
Set output 1
EN End
program
Event Trigger - Change Speed along Vector Path
The following program changes the feedrate or vector speed at the specified distance along the vector.
The vector distance is measured from the start of the move or from the last AV command.
#VECTOR Label
CAS Identify
coordinate
system
VMXY;VS 5000
Coordinated path
VP 10000,20000
Vector position
VP 20000,30000
Vector position
VE End
vector
BGS Begin
sequence
AV 5000
After vector distance
VS 1000
Reduce speed
EN End
Event Trigger - Multiple Move with Wait
This example makes multiple relative distance moves by waiting for each to be complete before
executing new moves.
#MOVES Label
PR 12000
Distance
SP 20000
Speed
AC 100000
Acceleration
BGX Start
Motion
AD 10000
Wait a distance of 10,000 counts
SP 5000
New Speed
AMX
Wait until motion is completed
WT 200
Wait 200 ms
PR -10000
New Position
SP 30000
New Speed
AC 150000
New Acceleration
BGX Start
Motion
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Summary of Contents for DMC-18 2 Series
Page 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 5: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 11: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...