User Manual

TMCM-3230 TMCL
Firmware Manual Firmware Version V1.07 | Document Revision V1.05 2017-OCT-10
11 / 103
3.2 Reply Format
Every time a command has been sent to a module, the module sends a reply.
The reply format with RS-232, RS-485, RS-422 and USB is as follows:
TMCL Reply Format
Bytes Meaning
1 Reply address
1 Module address
1 Status (e.g. 100 means no error)
1 Command number
4 Value (MSB rst!)
1 Checksum
Table 2: TMCL Reply Format
Info
The checksum is also calculated by adding up all the other bytes using an 8-bit
addition. Do not send the next command before having received the reply!
Note
When using CAN interface, the reply does not contain an address byte and a
checksum byte. With CAN, the CAN-ID is used as the reply address and the
checksum is not needed because the CAN bus uses hardware CRC checking.
3.2.1 Status Codes
The reply contains a status code. The status code can have one of the following values:
TMCL Status Codes
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 Conguration EEPROM locked
6 Command not available
Table 3: TMCL Status Codes
©2017 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com