PD42-1270 TMCL
™
Firmware Manual • Firmware Version V1.00 | Document Revision V1.0 • 2017-Mar-02
54 / 91
3.6.29
TMCL Control Commands
There is a set of TMCL commands which are called TMCL control commands. These commands can
only be used in direct mode and not in a standalone program. For this reason they only have opcodes,
but no mnemonics. Most of these commands are only used by the TMCL-IDE (in order to implement
e.g. the debugging functions in the TMCL creator). Some of them are also interesting for use in custom
host applications, for example to start a TMCL routine on a module, when combining direct mode and
standalone mode (please see also section
8.6
. The following table lists all TMCL control commands.
The motor/bank parameter is not used by any of these functions and thus is not listed in the table. It
should always be set to 0 with these commands.
TMCL Control Commands
Instruction
Description
Type
Value
128 – stop application
stop a running TMCL
application
0 (don’t care)
0 (don’t care)
129 – run application
start or continue
TMCL program
execution
0 – from current
address
0 (don’t care)
1 – from specific
address
starting
ad-
dress
130 – step application
execute only the next
TMCL command
0 (don’t care)
0 (don’t care)
131 – reset application
Stop a running TMCL
program.
Reset program
counter and stack
pointer to zero.
Reset accumulator
and X register to zero.
Reset all flags.
0 (don’t care)
0 (don’t care)
132 – enter download mode
All following
commands (except
control commands)
are not executed but
stored in the TMCL
memory.
0 (don’t care)
start
address
for download
133 – exit download mode
End the download
mode. All following
commands are
executed normally
again.
0 (don’t care)
0 (don’t care)
134 – read program memory
Return contents of
the specified
program memory
location (special reply
format).
0 (don’t care)
address
of
memory
loca-
tion
©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
Read entire documentation.