WHILE   DO   END_WHILE

Statement - Repeat a list of statements.

Syntax

    WHILE <BOOL expression> DO
        <statements>
    END_WHILE ;

Remarks

The statements between "DO" and "END_WHILE" are executed while the Boolean expression is TRUE. The condition is evaluated beforethe statements are executed. If the condition is FALSE when WHILE is first reached, statements are never executed.

ST Language

iPos := 0;
WHILE iPos < iMax DO
   MyArray[iPos] := 0;
   iNbCleared := iNbCleared + 1;
END_WHILE;

FBD Language

Not available

FFLD Language

Not available

IL Language

Not available

See also

IF   REPEAT   FOR   CASE    EXIT

 


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™