Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 371 of 909
l
Parameter 3 (Optional): Specifies if this is a table in user variables or EEPROM. By
default, if parameter 3 is omitted or set to 1, then EEPROM is chosen. Up to ten tables
(numbered from 1 through 10) can exist in EEPROM location. The tables are added
sequentially after any existing tables in EEPROM.
If parameter 3 is 0, then the user array location is chosen (al[0] through al[50]). Only
one table can exist in the user variables.
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)
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: CTA(points,seglen[,location])