TMCM-1021 TMCL
™
Firmware Manual • Firmware Version V1.42 | Document Revision V1.10 • 2018-JAN-09
14 / 109
3.4
The ASCII Interface
There is also an ASCII interface that can be used to communicate with the module and to send some direct
mode commands as text strings. Only the following commands can be used in ASCII mode: ROL, ROR,
MST, MVP, SAP, GAP, STAP, RSAP, SGP, GGP, STGP, RSGP, RFS, SIO, GIO, SCO, GCO, CCO, UF0, UF1, UF2, UF3,
UF4, UF5, UF6, UF7.
Note
Only direct mode commands can be entered in ASCII mode.
Note
The TMCL-IDE does not support communicating with the module in ASCII mode.
So, in order to be able to use the TMCL-IDE with a module the module must be
in binary mode. We normally recommend using the binary mode as this has
some advantages over the ASCII mode. The ASCII mode is only provided here for
compatibility. For new applications it is strongly recommended to use the binary
mode.
There are also some special commands that are only available in ASCII mode:
• BIN: This command quits ASCII mode and returns to binary mode.
• RUN: This command can be used to start a TMCL program stored in memory.
• STOP: Stops a TMCL program which is currently running on the module.
3.4.1
Entering and leaving the ASCII Mode
• The ASCII command line interface is entered by sending the binary command 139 (enter ASCII mode).
• Afterwards the commands can be entered in their mnemonic form (e.g. via a terminal program).
• For leaving the ASCII mode and re-entering the binary mode enter the command BIN.
3.4.2
Format of the Command Line
As the first character, the address character has to be sent. The address character is A when the module
address is 1, B for modules with address 2 and so on. After the address character there may be spaces
(but this is not necessary). Then, send the command with its parameters. At the end of a command line a
<CR> character has to be sent. Here are some examples for valid ASCII mode command lines (assuming
that the module address is 1):
• AMVP ABS, 1, 50000
• A MVP ABS, 1, 50000
• AROL 2, 500
• A MST 1
• ABIN
The last command line shown above will make the module return to binary mode.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at