Repetetive execution of statements in a custom function, controlled by condition at start of loop.
Syntax:
WHILE(condition)
loop code
ENDWHILE
Loops executing statements between the WHILE
and ENDWHILE
statements while the condition is TRUE
.
Example:
WHILE(D56 < 100) SET_VALUE(D56, D56+E63) ENDWHILE