TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
15
www.trinamic.com
4.2
Reply Format
Every time a command has been sent to a module, the module sends a reply.
T
HE REPLY FORMAT FOR
USB
IS AS FOLLOWS
:
Bytes Meaning
1
Reply address
1
Module address
1
Status (e.g. 100 means “no error”)
1
Command number
4
Value (MSB first!)
1
Checksum
The checksum is also calculated by adding up all the other bytes using an 8-bit addition. Do not send the
next command before you have received the reply!
4.2.1
Status Codes
The reply contains a status code.
The status code can have one of the following values:
Code
Meaning
100
Successfully executed, no error
101
Command loaded into TMCL
program EEPROM
1
Wrong checksum
2
Invalid command
3
Wrong type
4
Invalid value
5
Configuration EEPROM locked
6
Command not available
4.3
Standalone Applications
The module is equipped with an EEPROM for storing TMCL applications. You can use TMCL-IDE for
developing standalone TMCL applications. You can load them down into the EEPROM and then it will run
on the module. The TMCL-IDE contains an editor and the TMCL assembler where the commands can be
entered using their mnemonic format. They will be assembled automatically into their binary
representations. Afterwards this code can be downloaded into the module to be executed there.