500
7
7 Motion Control
MRET: Motion control subprogram return
MRET: Motion control subprogram return
◆
Overview
The MRET instruction is used to return to the call layer of the previous level after execution of the current
motion control subprogram is nished.
MRET
Motion control
subprogram return
Applicable model:
H3U-PM
◆
Operands
None
◆
Functions and actions
The following is an example.
MC02 runs MCALL P3 to call MC03, and MRET is returned after execution of MC03 is nished.
◆
Note
1) MCALL can be used only in MC subprograms but cannot be used to call itself. Up to six
nested layers are supported.
2) MC subprograms (CNC00, corresponding to MC10000) can call G-code subprograms.
MCALL P10000 indicates calling MC10000.
3) This instruction is automatically added by programming tools and needs not be entered
manually.