EasyManua.ls Logo

Galil Motion Control DMC-1000 - Page 111

Galil Motion Control DMC-1000
206 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
92 Chapter 7 Application Programming DMC-1000
Instruction Interpretation
#TWOMOVE Label
PR 2000 Position Command
BGX Begin Motion
AMX Wait for Motion Complete
PR 4000 Next Position Move
BGX Begin 2nd move
EN End program
Event Trigger - Set Output after Distance
Set output bit 1 after a distance of 1000 counts from the start of the move. The accuracy of the
trippoint is the speed multiplied by the sample period.
Instruction Interpretation
#SETBIT Label
SP 10000 Speed is 10000
PA 20000 Specify Absolute position
BGX Begin motion
AD 1000 Wait until 1000 counts
SB1 Set output bit 1
EN End program
Event Trigger - Repetitive Position Trigger
To set the output bit every 10000 counts during a move, the AR trippoint is used as shown in the next
example.
Instruction Interpretation
#TRIP Label
JG 50000 Specify Jog Speed
BGX;n=0 Begin Motion
#REPEAT # Repeat Loop
AR 10000 Wait 10000 counts
TPX Tell Position
SB1 Set output 1
WT50 Wait 50 msec
CB1 Clear output 1
n=n+1 Increment counter
JP #REPEAT,n<5 Repeat 5 times
STX Stop
EN End
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals