Attention
IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.
WHILE¶
The WHILE statement repeatedly executes a statement list as long as a
boolean expression is TRUE.
IEC 61131-3 |
Section 3.3.2.4 |
Support |
Supported |
Syntax¶
WHILE expression DO
statement_list
END_WHILE ;
Description¶
The WHILE loop evaluates the boolean expression before each iteration. If
the expression is TRUE, the statement list executes and the expression is
evaluated again. If the expression is FALSE on the first evaluation, the
statement list never executes.