User manual

TMCM-1180 and PD86-1180 TMCL Firmware V4.42 Manual (Rev. 1.08 / 2012-NOV-20) 101
www.trinamic.com
Number
Global parameter
Description
Range
Access
132
tick timer
A 32 bit counter that gets incremented by one every
millisecond. It can also be reset to any start value.
RW
133
random number
Choose a random number. Read only!
0…
2147483
647
R
7.2 Bank 1
The global parameter bank 1 is normally not available. It may be used for customer specific extensions of the
firmware. Together with user definable commands (see section 7.3) these variables form the interface
between extensions of the firmware (written in C) and TMCL™ applications.
7.3 Bank 2
Bank 2 contains general purpose 32 bit variables for the use in TMCL™ applications. They are located in RAM
and can be stored to EEPROM. After booting, their values are automatically restored to the RAM.
Up to 56 user variables are available.
Meaning of the letters in column Access:
R = readable (GGP)
W = writeable (SGP)
E = automatically restored from EEPROM after reset or power-on.
Number
Global parameter
Description
Range
Access
0
general purpose variable #0
for use in TMCL™ applications
-2
31
+2
31
RWE
1
general purpose variable #1
for use in TMCL™ applications
-2
31
… +2
31
RWE
2
general purpose variable #2
for use in TMCL™ applications
-2
31
… +2
31
RWE
3
general purpose variable #3
for use in TMCL™ applications
-2
31
… +2
31
RWE
4
general purpose variable #4
for use in TMCL™ applications
-2
31
… +2
31
RWE
5
general purpose variable #5
for use in TMCL™ applications
-2
31
… +2
31
RWE
6
general purpose variable #6
for use in TMCL™ applications
-2
31
… +2
31
RWE
7
general purpose variable #7
for use in TMCL™ applications
-2
31
… +2
31
RWE
8
general purpose variable #8
for use in TMCL™ applications
-2
31
… +2
31
RWE
9
general purpose variable #9
for use in TMCL™ applications
-2
31
… +2
31
RWE
10
general purpose variable #10
for use in TMCL™ applications
-2
31
… +2
31
RWE
11
general purpose variable #11
for use in TMCL™ applications
-2
31
… +2
31
RWE
12
general purpose variable #12
for use in TMCL™ applications
-2
31
… +2
31
RWE
13
general purpose variable #13
for use in TMCL™ applications
-2
31
… +2
31
RWE
14
general purpose variable #14
for use in TMCL™ applications
-2
31
… +2
31
RWE
15
general purpose variable #15
for use in TMCL™ applications
-2
31
… +2
31
RWE
16
general purpose variable #16
for use in TMCL™ applications
-2
31
… +2
31
RWE
17
general purpose variable #17
for use in TMCL™ applications
-2
31
… +2
31
RWE
18
general purpose variable #18
for use in TMCL™ applications
-2
31
… +2
31
RWE
19
general purpose variable #19
for use in TMCL™ applications
-2
31
… +2
31
RWE
20..55
general purpose variables #20
#55
for use in TMCL™ applications
-2
31
… +2
31
RWE