beautypg.com

Reference – Lenze PM94P01C User Manual

Page 104

background image

PM94P01C

102

Reference

Table 61: WHILE / ENDWHILE

WHILE/

ENDWHILE

While

Statement

Purpose

The WHILE executes statement(s) between keywords WHILE and ENDWHILE
repeatedly while the expression evaluates to TRUE.

Syntax

WHILE

{statement(s)}…
ENDWHILE

Remarks

WHILE block of statements has to end with ENDWHILE keyword.

See Also

DO/UNTIL

Example:

WHILE APOS<3

;Execute the statements while Apos is <3

{statement(s)}..
ENDWHILE