
TMCM-1311 TMCL Firmware V1.11 Manual (Rev. 1.17 / 2015-NOV-05)
3
www.trinamic.com
5.7.24
SCO (set coordinate) ................................................................................................................................... 51
5.7.25
GCO (get coordinate) .................................................................................................................................. 52
5.7.26
CCO (capture coordinate) .......................................................................................................................... 53
5.7.27
ACO (accu to coordinate) .......................................................................................................................... 54
5.7.28
CALCX (calculate using the X register) .................................................................................................. 55
5.7.29
AAP (accumulator to axis parameter) .................................................................................................... 56
5.7.30
AGP (accumulator to global parameter) ............................................................................................... 57
5.7.31
CLE (clear error flags) ................................................................................................................................. 58
5.7.32
VECT (set interrupt vector) ........................................................................................................................ 59
5.7.33
EI (enable interrupt) ................................................................................................................................... 60
5.7.34
DI (disable interrupt) .................................................................................................................................. 61
5.7.35
RETI (return from interrupt) ..................................................................................................................... 62
5.7.36
Customer Specific TMCL Command Extension (user function) ....................................................... 63
5.7.37
Request Target Position Reached Event ............................................................................................... 64
5.7.38
BIN (return to binary mode) .................................................................................................................... 64
5.7.39
Control Functions: Firmware Version and Reset to Factory Defaults .......................................... 65
6
Axis Parameters .......................................................................................................................................................... 66
6.1
Velocity Calculation ........................................................................................................................................... 78
7
stallGuard2 Related Parameters ............................................................................................................................. 79
8
Closed-Loop Operation Related Axis Parameter ................................................................................................ 80
8.1
General Closed Loop Axis Parameters ........................................................................................................ 80
8.2
General Structure of the Closed Loop System ......................................................................................... 81
8.3
Setting Encoder Resolution and Motor Resolution ................................................................................. 82
8.4
Positioning Mode .............................................................................................................................................. 83
8.5
Position Maintenance and Standstill Mode ............................................................................................... 86
8.6
Velocity Mode ..................................................................................................................................................... 88
8.7
Torque Mode ....................................................................................................................................................... 89
8.8
Current Regulation ............................................................................................................................................ 90
8.9
Field Weakening ................................................................................................................................................ 94
8.10
Status and Feedback Information ................................................................................................................ 95
8.11
Example Programs: Closed Loop Operation .............................................................................................. 96
8.11.1
Example Program 1 ..................................................................................................................................... 96
8.11.2
Example Program 2 ..................................................................................................................................... 97
9
Reference Search ........................................................................................................................................................ 98
9.1.1
Reference Search Modes (Axis Parameter 193) ................................................................................... 99
10
Global Parameters .................................................................................................................................................... 101
10.1
Bank 0 ................................................................................................................................................................. 101
10.2
Bank 1 ................................................................................................................................................................. 103
10.3
Bank 2 ................................................................................................................................................................. 103
10.4
Bank 3 ................................................................................................................................................................. 103
11
TMCL Programming Techniques and Structure ............................................................................................... 104
11.1
Initialization ...................................................................................................................................................... 104
11.2
Main Loop .......................................................................................................................................................... 104
11.3
Using Symbolic Constants ............................................................................................................................ 104
11.4
Using Variables ................................................................................................................................................ 105
11.5
Using Subroutines ........................................................................................................................................... 105
11.6
Mixing Direct Mode and Standalone Mode .............................................................................................. 106
12
Life Support Policy ................................................................................................................................................... 107
13
Revision History ........................................................................................................................................................ 108
13.1
Firmware Revision .......................................................................................................................................... 108
13.2
Document Revision ......................................................................................................................................... 108
14
References .................................................................................................................................................................. 109