EasyManua.ls Logo

Fagor 8070 BL - Page 435

Fagor 8070 BL
444 pages
Print Icon
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...
Programming manual.
CNC 8070
STATEMENTS AND INSTRUCTIONS
22.
Flow controlling instructions
·435·
(REF: 1709)
$IF <CONDITION1> ... $ELSEIF<CONDITION2> ... $ENDIF
This instruction analyzes the following programmed conditions.
If <condition1> is true, it executes the blocks contained between $IF and $ELSEIF.
If <condition1> is false, it analyzes <condition2>. If true, it executes the blocks contained
between $ELSEIF and $ENDIF (or the next $ELSEIF if any).
If all the conditions are false, the execution continues at the block after $ENDIF.
As many $ELSEIF instructions as necessary may be programmed.
An $ELSE instruction may also be included. In this case, if all the conditions are false, it will
execute the blocks contained between $ELSE and $ENDIF.
N20 $IF P1==1
N30...
N40...
N50 $ELSEIF P2==[-5]
N60...
N70 $ELSE
N80...
N90 $ENDIF
N100 ...
If P1 is equal to 1, it will execute blocks N30 through N40. The execution continues at N100.
If P1 is other than 1 and P2 is equal to -5, it executes block N60. The execution continues
at N100.
If P1 is other than 1 and P2 is other than -5, it executes block N80 and the execution
continues at N100.

Table of Contents

Related product manuals