EasyManua.ls Logo

HEIDENHAIN CNC PILOT 640 - Program Repeat WHILE..ENDWHILE

HEIDENHAIN CNC PILOT 640
697 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DIN/ISO programming | Conditional block run
4
480
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017
Program repeat WHILE..ENDWHILE
A program repeat consists of the elements:
WHILE, followed by a condition. The condition includes a
variable or mathematical expression on either side of the
relational operator.
ENDWHILE concludes the conditional program repeat
NC blocks programmed between WHILE and ENDWHILE are
executed repeatedly for as long as the condition is fulfilled. If the
condition is not fulfilled, the control continues execution of the
program with the block programmed after ENDWHILE.
Interrogate bitset: You can also use the BITSET function as
condition. The function returns 1 if the numerical value contains the
requested bit. The function returns 0 if the numerical value does
not contain the requested bit.
Syntax:
BITSET (x,y)
x: Bit number (0 to 15)
y: Numerical value (0 to 65535)
The relationship between bit number and numerical value is shown
in the table. You can also use variables for x, y.
Programming:
Select Extras > DINplus word…. The control opens the Insert
DIN PLUS word selection list.
Select WHILE
Enter the condition
Insert NC blocks between WHILE and ENDWHILE
You can combine up to two conditions.
If the condition you program in the WHILE command
is always true, the program remains in an endless
loop. This is one of the most frequent causes of error
when working with program repeats.
Relational operators
<
Less than
<=
Less than or equal to
<>
Not equal to
>
Greater than
>=
Greater than or equal to
==
equal to
Combining conditions
AND
Logical AND operation
OR
Logical OR operation

Table of Contents

Related product manuals