Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 373 of 909
EXAMPLE: (Subroutine erases EEPROMtables and sets up Cam table)
C40
CTE(1) 'Erase all EEPROMtables
CTA(15,8000)
CTW(0) 'CP=0 {cam pointer or cam index pointer}
CTW(500) 'CP=1
CTW(4000) 'CP=2
CTW(20000)
CTW(45000)
CTW(50000)
CTW(60000)
CTW(65000)
CTW(55000,0,1) 'Turn on Bit 0 Status Word 8
CTW(46000) 'Will turn off at this point
CTW(45000,0,2) 'Turn on Bit 1 Status Word 8
CTW(8000) 'Will turn off at this point
CTW(4000)
CTW(500)
CTW(0) 'CP=14
RETURN
RELATED COMMANDS:
R
CP Cam Pointer for Cam Table (see page 368)
CTA(points,seglen[,location]) Cam Table Attribute (see page 370)
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: CTE(table)