
TMCM-6110 TMCL Firmware V1.31 Manual (Rev. 1.09 / 2015-FEB-24)
2
www.trinamic.com
Table of Contents
1
Features ........................................................................................................................................................................... 4
2
Overview ......................................................................................................................................................................... 5
3
Putting the Module into Operation ........................................................................................................................ 6
3.1
Basic Set-up ........................................................................................................................................................... 6
3.1.1
Connecting the Module ............................................................................................................................... 6
3.1.2
Start the TMCL-IDE Software Development Environment ............................................................... 11
3.1.3
Using TMCL Direct Mode ........................................................................................................................... 12
3.1.4
Important Motor Settings ......................................................................................................................... 13
3.1.5
TMCL Program Example ............................................................................................................................. 14
4
TMCL and TMCL-IDE ................................................................................................................................................... 15
4.1
Binary Command Format ................................................................................................................................ 15
4.2
Reply Format ....................................................................................................................................................... 16
4.2.1
Status Codes ................................................................................................................................................. 16
4.3
Standalone Applications .................................................................................................................................. 16
4.4
TMCL Command Overview .............................................................................................................................. 17
4.4.1
TMCL Commands ......................................................................................................................................... 17
4.4.2
Commands Listed According to Subject Area .................................................................................... 18
4.5
The ASCII Interface ........................................................................................................................................... 22
4.5.1
Command Line Format .............................................................................................................................. 22
4.5.2
Format of a Reply ....................................................................................................................................... 22
4.5.3
Commands Used in ASCII Mode ............................................................................................................. 22
4.5.4
Configuring the ASCII Interface ............................................................................................................. 23
4.6
Commands ........................................................................................................................................................... 24
4.6.1
ROR (rotate right) ........................................................................................................................................ 24
4.6.2
ROL (rotate left) ........................................................................................................................................... 25
4.6.3
MST (motor stop)......................................................................................................................................... 26
4.6.4
MVP (move to position) ............................................................................................................................ 27
4.6.5
SAP (set axis parameter) ........................................................................................................................... 29
4.6.6
GAP (get axis parameter) .......................................................................................................................... 30
4.6.7
STAP (store axis parameter) ..................................................................................................................... 31
4.6.8
RSAP (restore axis parameter) ................................................................................................................. 32
4.6.9
SGP (set global parameter) ...................................................................................................................... 33
4.6.10
GGP (get global parameter)...................................................................................................................... 34
4.6.11
STGP (store global parameter) ................................................................................................................ 35
4.6.12
RSGP (restore global parameter) ............................................................................................................ 36
4.6.13
RFS (reference search) ................................................................................................................................ 37
4.6.14
SIO (set input / output) ............................................................................................................................. 38
4.6.15
GIO (get input /output) ............................................................................................................................. 41
4.6.16
CALC (calculate) ............................................................................................................................................ 44
4.6.17
COMP (compare)........................................................................................................................................... 45
4.6.18
JC (jump conditional) ................................................................................................................................. 46
4.6.19
JA (jump always) ......................................................................................................................................... 47
4.6.20
CSUB (call subroutine) ............................................................................................................................... 48
4.6.21
RSUB (return from subroutine) ................................................................................................................ 49
4.6.22
WAIT (wait for an event to occur) ......................................................................................................... 50
4.6.23
STOP (stop TMCL program execution) ................................................................................................... 51
4.6.24
SCO (set coordinate) ................................................................................................................................... 52
4.6.25
GCO (get coordinate) .................................................................................................................................. 53
4.6.26
CCO (capture coordinate) .......................................................................................................................... 54
4.6.27
ACO (accu to coordinate) .......................................................................................................................... 55
4.6.28
CALCX (calculate using the X register) .................................................................................................. 56
4.6.29
AAP (accumulator to axis parameter) .................................................................................................... 57
4.6.30
AGP (accumulator to global parameter) ............................................................................................... 58
4.6.31
CLE (clear error flags) ................................................................................................................................. 59
4.6.32
VECT (set interrupt vector) ........................................................................................................................ 60
4.6.33
EI (enable interrupt) ................................................................................................................................... 62
4.6.34
DI (disable interrupt) .................................................................................................................................. 64