Galil Motion Control CDS-3310 User Manual page 85

Table of Contents

Advertisement

Example- 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.
Example- 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.
Example- 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.
24 • Chapter 7 Application Programming
Instruction
#TWOMOVE
PR 2000
BGA
AMA
PR 4000
BGA
EN
Instruction
#SETBIT
SP 10000
PA 20000
BGA
AD 1000
SB1
EN
Instruction
#TRIP
JG 50000
BGA;n=0
#REPEAT
AR 10000
TPA
SB1
WT50
CB1
n=n+1
JP #REPEAT,n<5
STA
EN
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
CDS-3310

Advertisement

Table of Contents
loading

Related Products for Galil Motion Control CDS-3310

Table of Contents