11 Programming of Cycles 05.91
11.4 Program branches
@125 <Var> <Value> <Const>
IF the numerical value defined with the notation<Var> is less than that defined with
<Value>, THEN the program is resumed with the next block. Otherwise (ELSE) a jump is
made to the block specified by the constant.
@126 <Var> <Value> <Const>
IF the numerical value defined with the notation <Var> is less than or equal to that
defined with <Value>, THEN the program is resumed with the next block. Otherwise
(ELSE) a jump is made to the block specified by the constant.
Example for program execution with IF-THEN-ELSE branch:
Program execution with IF-THEN-ELSE branch
noyes
Execution
Part I
Execution
Part II
R58 > R77?
N225 @123 R58 R77 K230
R88 = 7 R95 = 12.45
@100 K250
N230
N250
Part I
Part II
N475 @124 R2 R7 K480
R50 = R2 - R7
N480
Part III
noyes
Execution
Part III
R2 R7?
11–8 © Siemens AG 1991 All Rights Reserved 6ZB5 410-0HD02
SINUMERIK 880, (PG)