User Manual
Table Of Contents
- 1 Features
- 2 First Steps with TMCL
- 3 TMCL and the TMCL-IDE — An Introduction
- 3.1 Binary Command Format
- 3.2 Reply Format
- 3.3 Standalone Applications
- 3.4 TMCL Command Overview
- 3.5 TMCL Commands by Subject
- 3.6 Detailed TMCL Command Descriptions
- 3.6.1 ROR (Rotate Right)
- 3.6.2 ROL (Rotate Left)
- 3.6.3 MST (Motor Stop)
- 3.6.4 MVP (Move to Position)
- 3.6.5 SAP (Set Axis Parameter)
- 3.6.6 GAP (Get Axis Parameter)
- 3.6.7 SGP (Set Global Parameter)
- 3.6.8 GGP (Get Global Parameter)
- 3.6.9 STGP (Store Global Parameter)
- 3.6.10 RSGP (Restore Global Parameter)
- 3.6.11 RFS (Reference Search)
- 3.6.12 SIO (Set Output)
- 3.6.13 GIO (Get Input)
- 3.6.14 CALC (Calculate)
- 3.6.15 COMP (Compare)
- 3.6.16 JC (Jump conditional)
- 3.6.17 JA (Jump always)
- 3.6.18 CSUB (Call Subroutine)
- 3.6.19 RSUB (Return from Subroutine)
- 3.6.20 WAIT (Wait for an Event to occur)
- 3.6.21 STOP (Stop TMCL Program Execution – End of TMCL Program)
- 3.6.22 SCO (Set Coordinate)
- 3.6.23 GCO (Get Coordinate)
- 3.6.24 CCO (Capture Coordinate)
- 3.6.25 ACO (Accu to Coordinate)
- 3.6.26 CALCX (Calculate using the X Register)
- 3.6.27 AAP (Accu to Axis Parameter)
- 3.6.28 AGP (Accu to Global Parameter)
- 3.6.29 CLE (Clear Error Flags)
- 3.6.30 EI (Enable Interrupt)
- 3.6.31 DI (Disable Interrupt)
- 3.6.32 VECT (Define Interrupt Vector)
- 3.6.33 RETI (Return from Interrupt)
- 3.6.34 Customer specific Command Extensions (UF0…UF7 – User Functions)
- 3.6.35 Request Target Position reached Event
- 3.6.36 TMCL Control Commands
- 4 Axis Parameters
- 5 Global Parameters
- 6 Hints and Tips
- 7 TMCL Programming Techniques and Structure
- 8 Figures Index
- 9 Tables Index
- 10 Supplemental Directives
- 11 Revision History

TMCM-3212 TMCL
™
Firmware Manual • Firmware Version V1.07 | Document Revision V1.04 • 2017-JUN-08
77 / 103
Number Axis Parameter Description Range [Units] Access
180 smartEnergy
actual current
This status value provides the actual motor cur-
rent setting as controlled by coolStep. The value
goes up to the CS value and down to the portion
of CS as specified by SEIMIN.
Actual motor current scaling factor:
0. . . 31: 1/32, 2/32, . . . 32/32
0. . . 31 R
181 Stop on stall
Below this speed motor will not be stopped.
Above this speed motor will stop in case stall-
Guard2 load value reaches zero.
0. . . 7999774
[pps]
RW
182 smartEnergy
threshold
speed
Above this speed coolStep becomes enabled. 0. . . 7999774
[pps]
RW
184 Random TOff
mode
0 - Chopper off time is fixed
1 - Chopper off time is random
0/1 RW
185 Chopper syn-
chronization
This parameter allows synchronization of the
chopper for both phases of a two phase motor
in order to avoid the occurrence of a beat, espe-
cially at low velocities.
0: chopper sync function chopSync off
1. . . 15: chopper synchronization
0. . . 15 RW
186
PWM threshold
speed
The stealthChop feature will be switched off
when the actual velocity is higher than this value.
It will be switched on when the actual velocity is
below this value (and parameter #187 is greater
than zero).
0. . . 7999774
[pps]
RW
187 PWM gradient
Velocity dependent gradient for PWM amplitude
(stealthChop). Setting this value to 0 turns off
stealthChop.
0. . . 15 RW
188 PWM
amplitude
Maximum PWM amplitude when switching to
stealthChop mode. Do not set too low. Values
above 64 recommended.
0. . . 255 RW
189 PWM scale
Actual PWM amplitude scaler (255=maximum
voltage). In voltage mode PWM, this value allows
to detect a motor stall.
0. . . 255 R
190 PWM mode
Status of stealthChop voltage PWM mode (de-
pending on velocity thresholds).
0 - stealthChop disabled
1 - stealthChop enabled
0/1 R
©2017 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com
Read entire documentation.