02.06.2013 Views

TMCL™ Firmware Manual - Trinamic

TMCL™ Firmware Manual - Trinamic

TMCL™ Firmware Manual - Trinamic

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PD-109-57 V2 TMCL <strong>Firmware</strong> <strong>Manual</strong> (V1.00/2010-FEB-18) 16<br />

6.2.1 Status codes<br />

The reply contains a status code.<br />

The status code can have one of the following values:<br />

Code Meaning<br />

100 Successfully executed, no error<br />

101 Command loaded into TMCL<br />

program EEPROM<br />

1 Wrong checksum<br />

2 Invalid command<br />

3 Wrong type<br />

4 Invalid value<br />

5 Configuration EEPROM locked<br />

6 Command not available<br />

6.3 Stand-alone applications<br />

The module is equipped with an EEPROM for storing TMCL applications. You can use the TMCL-IDE for<br />

developing stand-alone TMCL applications. You can load your program down into the EEPROM and then<br />

they will run on the module. The TMCL-IDE contains an editor and a TMCL assembler where the<br />

commands can be entered using their mnemonic format. They will be assembled automatically into their<br />

binary representations. Afterwards this code can be downloaded into the module to be executed there.<br />

6.4 TMCL command overview<br />

In this section a short overview of the TMCL commands is given.<br />

6.4.1 Motion commands<br />

These commands control the motion of the motor. They are the most important commands and can be used<br />

in direct mode or in stand-alone mode.<br />

Mnemonic Command<br />

number<br />

Meaning<br />

ROL 2 Rotate left<br />

ROR 1 Rotate right<br />

MVP 4 Move to position<br />

MST 3 Motor stop<br />

RFS 13 Reference search<br />

SCO 30 Store coordinate<br />

CCO 32 Capture coordinate<br />

GCO 31 Get coordinate<br />

Copyright © 2010, TRINAMIC Motion Control GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!