Galil Motion Control DMC-1000 User Manual page 111

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents