![Trinamic PD57-1060 Firmware Manual Download Page 10](http://html1.mh-extra.com/html/trinamic/pd57-1060/pd57-1060_firmware-manual_1163104010.webp)
PD57/60-1060 / TMCM-1060 TMCL™ Firmware Manual (V1.04 / 2011-AUG-29)
10
Copyright © 2011, TRINAMIC Motion Control GmbH & Co. KG
4.2
Testing with a simple TMCL
TM
program
Open the file test2.tmc. Change the
motor number 2
in the second paragraph in
motor number 0
(because
there is only one motor involved). Now your test program looks as follows:
Assemble
Download
Run
Stop
1.
Click on icon
Assemble
to convert the TMCL™ into machine code.
2.
Then download the program to the TMCM-1060 module via the icon
Download
.
3.
Press icon
Run
. The desired program will be executed.
4.
Click
Stop
button to stop the program.
//A simple example for using TMCL
™
and TMCL-IDE
SAP
4, 0, 50000
//Set max. Velocity
SAP
5, 0, 5000
//Set max. Acceleration
Loop:
MVP
ABS
, 0, 100000
//Move to Position 10000
WAIT
POS
, 0, 0
//Wait until position reached
MVP
ABS
, 0, -100000
//
Move to Position -10000
WAIT
POS
, 0, 0
//Wait until position reached
JA
Loop
//Infinite Loop