CNC Z32 - Programming Guide (LATHES)
Jump to a CMOS subprogram (! GOP.. !)
With the instruction
!GOP..!
It is possible to suspend the execution of current program and jump to the execution of a subprogram.
The !GOP..! instruction is valid for programs stored in the CMOS memory (internal memory) of CNC, and it is used
by specifying the program number to be activated.
Example:
N10
…
N50 !GOP10!
The main program is executed up to line N50, then the execution jumps to CMOS program number 10.
The subprogram must terminate with the subprogram end instruction G26. Example:
N10
…
N50 !GOP10!
N60
…
Sottoprogramma CMOS 10:
N10
…
…
N100 G26
The main program is executed up to line N50, then the execution switches to subprogram 10, executed
from line N10 to line N100. The G26 instruction indicates the end of subprogram, then the execution
switches back to the calling program continuing from line N60.
Warning: the subprogram end instruction is the function G26. If a called subprogram contains the
end of program instruction “M2”, the execution stops without returning to the calling program.
5.2.8
60