CNC Z32 - Programming Guide (LATHES)
Executing jumps without return (!GON..!)
The function allowing to jump to a label inside a program is the function:
!GON..!
Jump destination is the line corresponding to the number (also decimal) following the letter N.
Example:
The program executes N10 and jumps to the label N20:
…
N10 !GON20!
…
N20
…
Warning: In order to use the N numbers as destinations for a jump, it is necessary for the N character to be
the first character present in the line, without leading spaces.
Correct programming:
…
N10 !GON20!
…
N20
…
Erroneous programming:
N10 !GON20!
…
N20
…
5.2.3
Executing jumps with return (!GON..–..!)
The function
!GON..-N..!
allows to execute the program section contained between the N labels specified, and then to return to the line
following the calling line.
Example:
…
…
N20 !GON40-N50!
N30
…
N40
…
N50
…
The program executes N20, jumps to N40, executes the instructions between N40 and N50 and then returns
executing line N30.
Returning jumps may be nested inside other returning jumps up to a maximum depth of 10 levels.
Warning: In order to use the N… numbers as destinations for a jump, it is necessary for the N character to
be the first character present in the line, without leading spaces.
5.2.4
57
Summary of Contents for CNC Z32 Florenz Series
Page 2: ......