User manual
TMCM-1640 TMCL Firmware V2.00 Manual (Rev. 2.00 / 2012-JUL-31) 48
www.trinamic.com
Number
Global
parameter
Description
Range
Access
81
TMCL code
protection
Protect a TMCL program against disassembling or
overwriting.
0 – no protection
1 – protection against disassembling
2 – protection against overwriting
3 – protection against disassembling and overwriting
If you switch off the protection against disassembling,
the program will be erased first!
Changing this value from 1 or 3 to 0 or 2, the TMCL
program will be wiped off.
0, 1, 2, 3
RWE
85
do not restore
user variables
0 – user variables are restored (default)
1 – user variables are not restored
0/1
RWE
128
TMCL
application
status
0 –stop
1 – run
2 – step
3 – reset
0… 3
R
129
download
mode
0 – normal mode
1 – download mode
0/1
R
130
TMCL program
counter
The index of the currently executed TMCL instruction.
o… 2047
R
132
tick timer
A 32 bit counter that gets incremented by one every
millisecond. It can also be reset to any start value.
0…
+4294967295
RW
255
suppress reply
0 – reply (default)
1 – no reply
0/1
RW
6.2 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 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.
GLOBAL PARAMETERS OF BANK 2
Number
Global parameter
Description
Range
Access
0… 55
general purpose variable #0… 55
for use in TMCL applications
-2
31
…+2
31
(int32)
RWE
56… 255
general purpose variables #56… #255
for use in TMCL applications
-2
31
…+2
31
(int32)
RW