Page
Chapter: 6
Section:
PROGRAMMING
41
6.9.5 CONDITIONAL JUMP FUNCTIONS (G26, G27, G28, G29)
They are similar to function G25 (unconditional jump).
Functions G26, G27, G28 and G29, before jumping to the indicated block or executing
the indicated program section, check whether the required condition is met or not.
G26 Jump if zero.
The "if zero" condition must be met.
G27 Jump if not zero.
The "if zero" condition must not be met.
G28 Jump if less than zero.
The "less than" condition must be met.
G29 Jump if equal or greater than zero. The "less than" condition must not be met.
The "If zero" condition ("equal to" flag) is met in the following cases:
*
When the result of an operation is zero.
Example: N001 P1 P3 F2 K5 If P3 = 5
*
When both sides of a comparison are identical.
Example: N002 P1 F11 K8
If P1 = 8
The "Less than" (negative flag) condition is met in the following cases:
*
When the result of an operation is less than zero (negative).
Example: N001 P1 P3 F2 K5 If P3 < 5
*
When the first operand of a comparison is smaller than the second operand.
Example: N002 P1 F11 K8
If P1 < 8
Attention:
The assignments and non-parametric functions do not alter the status of
the condition flags.
Programming example:
N060 P2
F11 K22
N065 G01 X10
N070
Y20
N071 G26 N100
N072 G28 N200
N073 G29 N300
Block N060 makes a comparison.
Blocks N65 and N70 do not alter the condition flags.
Therefore:
If P2 = 22, The program continues at block N100
If P2 < 22, The program continues at block N200
If P2 > 22, The program continues at block N300
Care must be taken when programming functions G26 and G29. If in the previous
example, the following were programmed, instead:
N071 G28 N200
N072 G29 N300
N073 G26 N100
The program would not execute block N073 since with P2 < 22 it jumps to N200 and
with P > 22 it jumps to N300.
PARAMETRIC
PROGRAMMING
Содержание 101
Страница 1: ...101 101S CNC 102 102S CNC OPERATING MANUAL 9703 ing...
Страница 6: ...COMPARISON TABLE FOR FAGOR CNC MODELS 101 101S 102 102S...
Страница 11: ...Introduction 1 INTRODUCTION...
Страница 96: ...ERROR CODES...
Страница 100: ...CNC 101 102 S New Features Version 9905 in...