Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 369 of 909
EXAMPLE:
EIGN(W,0)
ZS
MF0
O=0
CTE(1) 'Erase all cam tables
CTA(5,1000) 'Add cam table, 5 points, 1000 counts apart
CTW(0) '1st cam point
CTW(500)
CTW(4000)
CTW(2000)
CTW(0)
SRC(1) 'Use external encoder input
MCE(1) 'Spline cam table
MFMUL=1 'Numerator
MFDIV=1 'Denominator
MC 'Mode: Cam
G 'Go
WHILE CP<3 LOOP 'While we are below cam point 3, loop
OS(4) 'After cam point 3 is passed, turn on output 4
END
RELATED COMMANDS:
CTA(points,seglen[,location]) Cam Table Attribute (see page 370)
CTE(table) Cam Table Erase (see page 372)
R
CTT Cam Table Total in EEPROM (see page 376)
CTW(pos[,seglen][,user]) Cam Table Write Data Points (see page 377)
MC Mode Cam (Electronic Camming) (see page 524)
MCE(arg) Mode Cam Enable () (see page 528)
MCW(table,point) Mode Cam Where (Start Point) (see page 532)
Part 2: Commands: CP