StickOS
DI-159 PLC Hardware Manual
until
expression
Where statements is one or more program statements .
Alternately, the string form of this statement is:
do
statements
until
string relation string
The do-until loop conditional expression is evaluated on each exit from the loop. If it is false
(0), the loop repeats again. On exit from the loop, the conditional expression is true.
In all three kinds of loops, the loop can be exited prematurely using the statement:
break
This causes program execution to immediately jump to the statements following the terminal
statement (i.e., the
next
,
endwhile
, or
until
) of the innermost loop.
Additionally, multiple nested loops can be exited prematurely together using the statement:
break
n
Which causes program execution to immediately jump to the statements following the terminal
statement (i.e., the
next
,
endwhile
, or
until
) of the innermost
n
loops.
Similarly, a loop can be continued, causing execution to resume immediately with the con-
ditional expression evaluation, using the statement:
continue
This causes program execution to immediately jump to the conditional expression evaluation, at
which point the loop may conditionally execute again.
Multiple nested loops can be continued together using the statement:
continue
n
Which causes program execution to immediately jump to the conditional expression evaluation
of the innermost n loops.
Examples
>
10 dim a, b, sum
53
Содержание DI-159
Страница 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Страница 76: ...DI 159 Block Diagram 76...
Страница 77: ...Dimensional Drawing 77...