User manual
TMCM-6110 TMCL Firmware V1.19 Manual (Rev. 1.03 / 2012-JUL-31) 83
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
83
CAN secondary
address
Second CAN ID for the module. Switched off when
set to zero.
0… 7ff
RWE
84
Coordinate storage
0 – coordinates are stored in the RAM only (but can
be copied explicitly between RAM and EEPROM)
1 – coordinates are always stored in the EEPROM
only
0 or 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.
R
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…
214748364
7
R
*) With most RS485 converters that can be attached to the COM port of a PC the data direction is
controlled by the RTS pin of the COM port. Please note that this will only work with Windows 2000,
Windows XP or Windows NT4, not with Windows 95, Windows 98 or Windows ME (due to a bug in
these operating systems). Another problem is that Windows 2000/XP/NT4 switches the direction back
to receive too late. To overcome this problem, set the telegram pause time (global parameter #75) of
the module to 15 (or more if needed) by issuing an SGP 75, 0, 15 command in direct mode. The
parameter will automatically be stored in the configuration EEPROM.
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 6.3) these variables form the interface
between extensions of the firmware (written in C) and TMCL applications.