
TMCM-6110 TMCL Firmware V1.31 Manual (Rev. 1.09 / 2015-FEB-24)
49
www.trinamic.com
4.6.21
RSUB (return from subroutine)
Return from a subroutine to the command after the CSUB command.
This command is intended for use in standalone mode only.
Internal function:
the TMCL program counter is set to the last value of the stack. The command will be
ignored if the stack is empty.
Related command:
CSUB
Mnemonic:
RSUB
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
24
don’t care
don’t care
don’t care
Example:
please see the CSUB example (section 4.6.20).
Binary format of RSUB:
Byte Index
0
1
2
3
4
5
6
7
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$18
$00
$00
$00
$00
$00
$00