CNC Z32 - Programming Guide (LATHES)
Executing conditioned jumps (!IF .. ; GON.. !)
The instruction allowing the execution of conditioned jumps inside a program is the following:
!IF {condition} ; GON..!
A condition may be any parametric expression containing one of the following comparison operators between two
parametric expressions:
>
higher than
<
lower than
=
equal
<>
different
>=
higher or same
>=
lower or same
Example:
!IF HA > 10 ; GON20!
jumps to N20 if HA is higher than 10.
The condition may also be an expression:
!IF (HA+HB)*PAR[10] >= HC ; GON20!
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.5
Controlling more than one condition on the same advanced line
On a single advanced line it is possible to control more than one condition:
!IF HA > 10 ;IF HB < 5 ; GON30!
jumps to N30 if HA is higher than 10 and HB is lower than 5.
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.6
58