![Trinamic TMCM-1021 TMCL Manual Download Page 15](http://html1.mh-extra.com/html/trinamic/tmcm-1021-tmcl/tmcm-1021-tmcl_manual_1163069015.webp)
TMCM-1021 TMCL
™
Firmware Manual • Firmware Version V1.42 | Document Revision V1.10 • 2018-JAN-09
15 / 109
3.4.3
Format of a Reply
After executing the command the module sends back a reply in ASCII format which consists of the following
things:
• The address character of the host (host address that can be set in the module) .
• The address character of the module.
• The status code as a decimal number.
• The return value of the command as a decimal number.
• A <CR> character.
So, after sending AGAP 0, 1 the reply would be BA 100 -5000 if the actual position of axis 1 is -5000, the
host address is set to 2 and the module address is 1. The value 100 is the status code 100 which means
that the command has been executed successfully.
3.4.4
Configuring the ASCII Interface
The module can be configured so that it starts up either in binary mode or in ASCII mode. Global parameter
67 is used for this purpose (please see also chapter
• Bit 0 determines the startup mode: if this bit is set, the module will start up in ASCII mode, else the
module will start up in binary mode (default).
• Bit 4 and bit 5 determine how the characters that are entered are echoed back. Normally, both bits
are set to zero. In this case every character that is entered will be echoed back when the module is
addressed. Characters can also be erased using the backspace character (press the backspace key in
a terminal program).
• When bit 4 is set and bit 5 is clear the characters that are entered are not echoed back immediately
but the entire line will be echoed back after the <CR> character has been sent.
• When bit 5 is set and bit 4 is clear there will be no echo, only the reply will be sent. This may be useful
in RS485 systems.
Note
When trying the ASCII mode for the first time it is strongly recommended not to
use global parameter 67 but the direct mode command 139 to enter the ASCII
mode. Then the module can also be switched back to binary mode by a power
cycle if there should be trouble with the ASCII mode communication.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at