User Manual

PD-x-1670 TMCL
Firmware Manual Firmware Version V2.0 | Document Revision V1.0 2018-Oct-29
6 / 82
ROR 0, 500 // rotate motor 0 with +500 rpm
5 WAIT TICKS , 0 , 500
MST 0
7
SAP 4, 0, 2000 // set max . velocit y
9 SAP 11 , 0, 1000 // set max . accel e r a t i o n
Loop :
11 MVP ABS , 0, 512000 // move to positio n 512000
WAIT POS , 0, 0 // wait until positio n is reached
13 MVP ABS , 0, -512000 // move to positio n -512000
WAIT POS , 0, 0 // wait until positio n os 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.
3.
Click the Run icon (or choose Run from the TMCL menu) in the TMCL creator to run the program on
the module.
Also try out the debugging functions in the TMCL creator:
1. Click on the Bug icon to start the debugger.
2. Click the Animate button to see the single steps of the program.
3. You can at any time pause the program, set or reset breakpoints and resume program execution.
4. To end the debug mode click the Bug icon again.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com