Work preparation
3.2 Subprogram technique
Program code
N2000 R10=R20+100
N2010 ...
N2200 RET("subProg2")
Subprogram subProg2:
Program code
PROC subProg2
N2000 R10=R20+100
N2010 ...
N2200 RET("iVar1")
Subprogram subProg3:
Program code
PROC subProg3
N2000 R10=R20+100
N2010 ...
N2200 RET("subProg1")
Additional information
The following diagrams show the different effects of return jump parameters
516
Comment
; Return jump into the main program at block
N1400
Comment
; Return jump into the main program at block
N1500
Comment
; Return jump into the main program at block
N1550
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming