User manual

TMCM-1141 TMCL Firmware V1.19 Manual (Rev. 1.01 / 2012-JUL-27) 73
www.trinamic.com
5.3 Bank 2
Bank 2 contains general purpose 32 bit variables for the use in TMCL applications. They are located in RAM
and the first 56 variables can be stored permanently in EEPROM, also. After booting, their values are
automatically restored to the RAM. Up to 256 user variables are available.
MEANING OF THE LETTERS IN COLUMN ACCESS
Access
Type
Related
Command(s)
Description
R
GGP
Parameter readable
W
SGP, AGP
Parameter writable
E
STGP, RSGP
Parameter automatically restored from EEPROM after reset or power-on. These
parameters can be stored permanently in EEPROM using STGP command and
also explicitly restored (copied back from EEPROM into RAM) using RSGP.
GENERAL PURPOSE VARIABLES FOR TMCL APPLICATIONS (BANK 2)
Number
Global parameter
Description
Range
Access
0… 55
general purpose variables #0…
#55
for use in TMCL applications
-2
31
… +2
31
RWE
56… 255
general purpose variables #56…
#255
for use in TMCL applications
-2
31
… +2
31
RW
5.4 Bank 3
Bank 3 contains interrupt parameters. Some interrupts need configuration (e.g. the timer interval of a timer
interrupt). This can be done using the SGP commands with parameter bank 3 (SGP <type>, 3, <value>). The
parameter number defines the priority of an interrupt. Interrupts with a lower number have a higher
priority.
MEANING OF THE LETTERS IN COLUMN ACCESS
Access
type
Related
command(s)
Description
R
GGP
Parameter readable
W
SGP, AGP
Parameter writable
INTERRUPT PARAMETERS (BANK 3)
Number
Global parameter
Description
Range
Access
0
Timer 0 period (ms)
Time between two interrupts (ms)
0…
4.294.967.295
[ms]
RW
1
Timer 1 period (ms)
Time between two interrupts (ms)
0…
4.294.967.295
[ms]
RW
2
Timer 2 period (ms)
Time between two interrupts (ms)
0…
4.294.967.295
[ms]
RW
27
Stop left 0 trigger transition
0=off, 1=low-high, 2=high-low,
3=both
0… 3
RW
28
Stop right 0 trigger transition
0=off, 1=low-high, 2=high-low,
3=both
0… 3
RW
39
Input 0 trigger transition
0=off, 1=low-high, 2=high-low,
3=both
0… 3
RW
40
Input 1 trigger transition
0=off, 1=low-high, 2=high-low,
3=both
0… 3
RW