27 program branches, program repeats, If (...) (conditional program branch) – HEIDENHAIN MANUALplus 4110 User Manual
Page 401

HEIDENHAIN MANUALplus 4110
401
6.27 Pr
ogr
am Br
anc
h
es, Pr
ogr
a
m Repeats
6.27 Program Branches, Program
Repeats
IF (...) (conditional program branch)
Press "Program variable function."
Select "Conditional program branch."
Enter the "variable condition" (see figure to the top
right).
You can use both "Mathematical functions" and
"Calculating operations" in the same mathematical
expression. The mathematical functions are arranged
on two menu levels. To switch to the next menu level,
press ">>."
The "condition" includes a variable or mathematical
expression on either side of the relational operator
(see figure to the top right).
A "conditional branch" consists of the elements:
"IF"—followed by a condition (comparison).
"THEN"—if the condition is fulfilled, the THEN
branch is executed.
"ELSE"—if the condition is not fulfilled, the ELSE
branch is executed.
"ENDIF"—concludes the conditional program
branch.
After entering the "conditional program branch,"
program the NC blocks to be executed.
The "ELSE branch" can be omitted.
Relational operators
<
Less than
<=
Less or equal
<>
Not equal
>
Greater than
>=
Greater or equal
==
Equal
AND
Logical AND operation
OR
Logical OR operation