Example - Multiple Moves
This example makes a coordinated linear move in the XY plane. The Arrays VX and VY are used to
store 750 incremental distances which are filled by the program #LOAD.
Instruction
Interpretation
#LOAD Load
Program
DM VX [750],VY [750]
Define Array
COUNT=0 Initialize
Counter
N=10
Initialize position increment
#LOOP LOOP
VX [COUNT]=N
Fill Array VX
VY [COUNT]=N
Fill Array VY
N=N+10 Increment
position
COUNT=COUNT+1 Increment
counter
JP #LOOP,COUNT<750
Loop if array not full
#A Label
LM XY
Specify linear mode for XY
COUNT=0
Initialize array counter
#LOOP2;JP#LOOP2,_LM=0
If sequence buffer full, wait
JS#C,COUNT=250
Begin motion on 250th segment
LI VX[COUNT],VY[COUNT]
Specify linear segment
COUNT=COUNT+1 Increment
array
counter
JP #LOOP2,COUNT<750
Repeat until array done
LE
End Linear Move
AMS
After Move sequence done
MG "DONE"
Send Message
EN End
program
#C;BGS;EN
Begin Motion Subroutine
Vector Mode: Linear and Circular Interpolation Motion
The DMC-14XX allows a long 2-D path consisting of linear and arc segments to be prescribed.
Motion along the path is continuous at the chosen vector speed even at transitions between linear and
circular segments. The DMC-14XX performs all the complex computations of linear and circular
interpolation, freeing the host PC from this time intensive task.
The coordinated motion mode is similar to the linear interpolation mode. Any pair of two axes may be
selected for coordinated motion consisting of linear and circular segments. Note that only one pair of
axes can be specified for coordinated motion at any given time.
Specifying Vector Segments
The motion segments are described by two commands; VP for linear segments and CR for circular
segments. Once a set of linear segments and/or circular segments have been specified, the sequence is
ended with the command VE. This defines a sequence of commands for coordinated motion.
Immediately prior to the execution of the first coordinated movement, the controller defines the current
DMC-14x5/6
Chapter 6 Programming Motion
i
65
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com