![Trinamic TMCM-1211 TMCL Скачать руководство пользователя страница 9](http://html1.mh-extra.com/html/trinamic/tmcm-1211-tmcl/tmcm-1211-tmcl_firmware-manual_1163071009.webp)
TMCM-1211 TMCL
™
Firmware Manual • Firmware Version V1.10 | Document Revision V1.00 • 2018-OCT-02
9 / 133
Most important axis parameters
Number
Axis Parameter
Description
Range
[Units]
Access
4
Maximum
positioning
speed
The maximum speed used for positioning ramps.
1. . . 2047
[int]
RW
5
Maximum
acceleration
Maximum acceleration in positioning ramps. Ac-
celeration and deceleration value in velocity
mode.
1. . . 2047
[int]
RW
6
Maximum
current
Motor current used when motor is running. The
maximum value is 255 which means 100% of the
maximum current of the module.
The most important setting, as too high values can
cause motor damage.
0. . . 255
RW
7
Standby
current
The current used when the motor is not running.
The maximum value is 255 which means 100% of
the maximum current of the module. This value
should be as low as possible so that the motor
can cool down when it is not moving. Please see
also parameter 214.
0. . . 255
RW
Table 1: Most important Axis Parameters
2.4
Testing with a simple TMCL Program
Now, test the TMCL stand alone mode with a simple TMCL program. To type in, assemble and download
the program, you will need the TMCL creator. This is also a tool that can be found in the tool tree of
the TMCL-IDE. Click the TMCL creator entry to open the TMCL creator. In the TMCL creator, type in the
following little TMCL program:
1
ROL 0, 51200
// Rotate motor 0 with speed 10000
WAIT TICKS , 0, 500
3
MST 0
ROR 0, 51200
// Rotate motor 0 with 50000
5
WAIT TICKS , 0, 500
MST 0
7
SAP 4, 0, 51200
// Set max . Velocity
9
SAP 5, 0, 51200
// Set max . Acceleration
Loop :
11
MVP ABS , 0, 512000
// Move to Position 512000
WAIT POS , 0, 0
// Wait until position reached
13
MVP ABS , 0, -512000
// Move to Position -512000
WAIT POS , 0, 0
// Wait until position reached
15
JA Loop
// Infinite Loop
After you have done that, take the following steps:
1. Click the Assemble icon (or choose Assemble from the TMCL menu) in the TMCL creator to assemble
the program.
2. Click the Download icon (or choose Download from the TMCL menu) in the TMCL creator to donwload
the program to the module.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at