EasyManua.ls Logo

HEIDENHAIN MANUALPLUS 620 - 8.35.1 IF... ELSE... ENDI structure; 8.35.2 REPEAT... UNTIL structure

HEIDENHAIN MANUALPLUS 620
1818 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...
1746 HEIDENHAIN Technical Manual MANUALplus 620
8.35.1 IF ... ELSE ... ENDI structure
The IF ... ELSE ... ENDI structure permits the alternative processing of two
program branches depending on the value in the logic accumulator. The ELSE
branch is not mandatory. The following commands are available:
IFT (IF LOGIC ACCU TRUE):
Following code only if logic accumulator = 1
IFF (IF LOGIC ACCU FALSE):
Following code only if logic accumulator = 0
ELSE (ELSE):
Following code only if IF is not fulfilled
ENDI (END OF IF STRUCTURE):
End of the IF structure
8.35.2 REPEAT ... UNTIL structure
The REPEAT ... UNTIL structure repeats a program sequence until a condition
is fulfilled. Under no circumstances can you wait with this structure in the
cyclic PLC program for the occurrence of an external event! The following
commands are available:
REPEAT (REPEAT):
Repeat the program sequence from here.
UNTILT (UNTIL TRUE):
Repeat the sequence until the logic accumulator = 1.
UNTILF (UNTIL FALSE):
Repeat the sequence until the logic accumulator = 0.
The control runs a REPEAT ... UNTIL loop at least once!
Function STL
Load input I0 into the logic accumulator L I0
Run the following code if logic accumulator = 1 IFT
Program code for I0 = 1
Run the following code if logic accumulator = 0;
command can be omitted
ELSE
Program code for I0 = 0, can be omitted
End of the conditional processing ENDI
Function STL
Assign the content of the logic accumulator to
marker 100; conclusion of the previous commands
= M100
Repeat the following program code REPEAT
Program code to be run
Load the index register L X
Check the index register >= K100
Repeat until X >= 100 UNTILT

Table of Contents

Other manuals for HEIDENHAIN MANUALPLUS 620

Related product manuals