User manual
TMCM-6110 TMCL Firmware V1.19 Manual (Rev. 1.03 / 2012-JUL-31) 11
www.trinamic.com
Number
Axis Parameter
Description
Range [Unit]
6
absolute max.
current
(CS / Current
Scale)
The maximum value is 255. This value means 100% of
the maximum current of the module. The current
adjustment is within the range 0… 255 and can be
adjusted in 32 steps.
0… 7
79…87
160… 167
240… 247
8… 15
88… 95
168… 175
248… 255
16… 23
96… 103
176… 183
24… 31
104… 111
184… 191
32… 39
112… 119
192… 199
40… 47
120… 127
200… 207
48… 55
128… 135
208… 215
56… 63
136… 143
216… 223
64… 71
144… 151
224… 231
72… 79
152… 159
232… 239
0… 255
7
standby current
The current limit two seconds after the motor has
stopped.
0… 255
140
microstep
resolution
0
full step
1
half step
2
4 microsteps
3
8 microsteps
4
16 microsteps
5
32 microsteps
6
64 microsteps
7
128 microsteps
8
256 microsteps
0… 8
*
1
Unit of acceleration:
4.1.5 Your First TMCL Program
Open the file test2.tmc. Now your test program looks as follows:
A description for the TMCL commands can be found in Appendix A.
Assemble
Download Run
Stop
//A simple example for using TMCL and TMCL-IDE
ROL 0, 500 //Rotate motor 0 with speed 500
WAIT TICKS, 0, 500
MST 0
ROR 1, 250 //Rotate motor 0 with 250
WAIT TICKS, 0, 500
MST 1
SAP 4, 2, 500 //Set max. Velocity
SAP 5, 2, 50 //Set max. Acceleration
Loop: MVP ABS, 2, 10000 //Move to Position 10000
WAIT POS, 2, 0 //Wait until position reached
MVP ABS, 2, -10000 //Move to Position -10000
WAIT POS, 2, 0 //Wait until position reached
JA Loop //Infinite Loop