User Manual

TMCM-1276 TMCL
Firmware Manual Firmware Version V1.13 | Document Revision V1.01 2019-MAR-20
44 / 100
3.6.18 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 saved on the stack. The command
will be ignored if the stack is empty.
Related commands: CSUB.
Mnemonic: RSUB
Binary Representation
Instruction Type Motor/Bank Value
24 0 (dont care) 0 (dont care) 0 (dont care)
Example
Please see the CSUB example (section 3.6.17).
Binary form:
Binary Form of RSUB
Field Value
Target address 01
h
Instruction number 18
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) 00
h
Checksum 19
h
©2019 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com