![Trinamic TMCM-1211 TMCL Скачать руководство пользователя страница 83](http://html1.mh-extra.com/html/trinamic/tmcm-1211-tmcl/tmcm-1211-tmcl_firmware-manual_1163071083.webp)
TMCM-1211 TMCL
™
Firmware Manual • Firmware Version V1.10 | Document Revision V1.00 • 2018-OCT-02
83 / 133
3.6.42
RST (Restart)
Stop the program, reset the TMCL interpreter and then re-start the program at the given label. This com-
mand can be used to re-start the TMCL program from anywhere in the program, also out of subroutines or
interrupt rotuines.
This command is intended for standalone operation only.
Internal function:
The TMCL interpreter is reset (the subroutine stack, the interrupt stack and the regis-
ters are cleared) and then the program counter is set to the value passed to this command.
Related commands:
JA, CSUB, STOP.
Mnemonic:
RST <label>
Binary Representation
Instruction
Type
Motor/Bank
Value
48
0 (don’t care)
0 (don’t care)
<restart address>
Example
Restart the program from a label, out of a subroutine:
1
Entry :
MVP ABS , 0, 51200
3
CSUB Subroutine
...
5
...
Subroutine :
7
RST Entry
RSUB
Binary form of the RST Entry command when the label Entry is at address 10:
Binary Form of RST Entry (as-
suming Entry at address 10)
Field
Value
Target address
01
h
Instruction number
30
h
Type
00
h
Motor/Bank
00
h
Value (Byte 3)
00
h
Value (Byte 2)
00
h
Value (Byte 1)
00
h
Value (Byte 0)
0A
h
Checksum
3A
h
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at