User Manual

TMCM-3230 TMCL
Firmware Manual Firmware Version V1.07 | Document Revision V1.05 2017-OCT-10
69 / 103
3.6.36 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 7.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 (dont care) 0 (dont care)
129 run application start or continue
TMCL program
execution
0 from current
address
0 (dont care)
1 from specic
address
starting ad-
dress
130 step application execute only the next
TMCL command
0 (dont care) 0 (dont 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 ags.
0 (dont care) 0 (dont care)
132 enter download mode All following
commands (except
control commands)
are not executed but
stored in the TMCL
memory.
0 (dont care)
start address
for download
133 exit download mode End the download
mode. All following
commands are
executed normally
again.
0 (dont care) 0 (dont care)
134 read program memory Return contents of
the specied
program memory
location (special reply
format).
0 (dont 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