
79
S TA R T
F ollow in th e
n e g ativ e d ire c tio n
F ollow in th e p o s itiv e
d irec tion
S ta rt at th e o rig in
D is a b le fo llo w in g
D is a b le fo llo w in g
A t
p o s itiv e
lim it?
A t
o rigin?
D w ell
c om p le te ?
D w ell
c om p le te ?
YE S
YE S
YE S
YE S
N O
N O
N O
N O
A
A
Figure 12.10: Traverse Application Flowchart
T r a v e r s e A p p l i c a t i o n P r o g r a m C o d e
‘******** Parameter Setup ********
MUNIT = 400
‘Drive set to half step
IOS 15 = 5,0,1,0,1,1
IOS 16 = 6,0,1,0,1,1
VAR ENCCT=480
‘Encoder 120 quadrature
VAR FOLRATIO = MUNIT/ENCCT
‘Output Counts/Input Counts - 1:1
‘following with Lynx trainer
VAR DWELL = 480
‘Dwell 480 counts at pos/neg limits
VAR DWELLPOS
VAR STARTPOS
‘******** Program ********
PGM 1
LBL TRAVERSE
POS = 0
‘Start at 0
CTR3 = 0
‘Clear Master Encoder counter
HAS = FOLRATIO
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from