P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 440 of 909
EPTR=formula
EEPROM Pointer
APPLICATION:
EEPROM (Nonvolatile Memory)
DESCRIPTION:
Set user data EEPROM pointer
EXECUTION:
Immediate
CONDITIONAL TO:
N/A
LIMITATIONS:
N/A
READ/REPORT:
REPTR
WRITE:
Read/write EPTR auto incremented as used
LANGUAGE ACCESS:
Assignment, formulas and conditional testing
UNITS:
EEPROM address pointer (bytes)
RANGE OF VALUES:
0 to 32767
TYPICAL VALUES:
0 to 32767
DEFAULT VALUE:
0
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
N/A
DETAILED DESCRIPTION:
EPTR sets the address location (pointer) within the nonvolatile, user-data EEPROM for the
data-retrieval read VLD(variable, number) function, and data-storage write VST(variable,
number) function. EPTR auto-increments by 1, 2 or 4 with each read or write access to the
physical EEPROM device according to the current data type.
EXAMPLE:
EPTR
=4000
'Set EPTR = 4000
VST
(hh,1)
'Store a 32-bit value; EPTR is now 4004
VST
(ab[7],1)
'Store an 8-bit value; EPTR is now 4005
VST
(aw[7],1)
'Store a 16-bit value; EPTR is now 4007
VST
(x,3)
'Store three consecutive variables: x, y, z
'EPTR is now 4007+(3*4) or 4019
VST
(x,4)
'INVALID !!! EPTR remains 4019 !!!
NOTE:
You cannot store consecutive variables past their group range (i.e.,
consecutive variables a-z, aa-zz or aaa-zzz must be stored within their groups).
VST
(aa,26)
'Perfectly valid !!!
VST
(aa,27)
'INVALID !!!
RELATED COMMANDS:
Part 2: Commands: EPTR=formula
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...