Manual
83
[Function] Compares the contents of the variable in Operand 1 and the value in Operand 2. While the condition is
established, the commands are executed up to EDDO.When the condition is not established, the program
proceeds to the step after the corresponding EDDO command. The LEAV command can be used to force the
end of the loop. When the input condition is not established, the DWXX command is not executed and the
program proceeds to the next step after the corresponding EDDO. Up to 15 levels of nesting are available
when ISXX and DWXX are combined.
12.15 Structured DO Command
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOWD XX .oNelbairaVataD
DWXX
EQ · · · Operand 1 = Operand 2
NE · · · Operand 1 ≠ Operand 2
GT · · · Operand 1 > Operand 2
GE · · · Operand 1 ≥ Operand 2
LT · · · Operand 1 < Operand 2
LE · · · Operand 1 ≤ Operand 2
[Example] DWEQ 1 0
·
·
600 LEAV
·
·
EDDO
While variable 1 is 0, the commands up to the EDDO command are repeated.
If flag 600 turns ON during this time, the loop is forced to end and the program proceeds to
the next step after the EDDO command.
12. SEL Language
● DWXX (DO WHILE)
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOODDE
[Function] Declares the end of the loop which started with DWXX.
When a DWXX condition is not established, the program proceeds to next step after this command.
[Example] Refer to DWXX.
● EDDO (End DO WHILE)