User Manual

TMCM-3230 TMCL
Firmware Manual Firmware Version V1.07 | Document Revision V1.05 2017-OCT-10
46 / 103
3.6.19 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.18).
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
©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