Event Trigger Examples - Galil Motion Control DMC-14 5 Series Manual

Table of Contents

Advertisement

Event Trigger Examples:

Event Trigger - Multiple Move Sequence
The AM trippoint is used to separate the two PR moves. If AM is not used, the controller returns a ?
for the second PR command because a new PR cannot be given until motion is complete.
Instruction
#TWOMOVE
PR 2000
BGX
AMX
PR 4000
BGX
EN
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
#SETBIT
SP 10000
PA 20000
BGX
AD 1000
SB1
EN
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
#TRIP
JG 50000
BGX;n=0
#REPEAT
AR 10000
TPX
SB1
WT50
CB1
n=n+1
JP #REPEAT,n<5
STX
EN
100
Chapter 7 Application Programming
i
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
Interpretation
Label
Speed is 10000
Specify Absolute position
Begin motion
Wait until 1000 counts
Set output bit 1
End program
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-14x5/6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents