
263
Part 4 Commands
ELSE (Else)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Prohibited Prohibited ELSE Prohibited Prohibited CP
[Function] An ELSE command is used arbitrarily in conjunction with an IF
or IS
command to
declare the command part to be executed when the condition is not satisfied.
[Example 1]
Refer to the sections on IF
and IS
.
EDIF (End IF
)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Prohibited Prohibited EDIF Prohibited Prohibited CP
[Function] Declare the end of an IF
or IS
command.
[Example 1]
Refer to the sections on IF
and IS
.
264
Part 4 Commands
1.14 Structural DO
DW
(DO WHILE)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional DW
Variable
number
Data CP
[Function] Compare the content of the variable specified in operand 1 with the value specified in
operand 2, and execute the subsequent commands up to EDDO while the condition is
satisfied.
The program will proceed to the step next to the corresponding EDDO if the condition is no
longer satisfied.
A LEAV command can be used to forcibly end a loop.
If the input condition is not satisfied and the DW
command is not executed, the program
will proceed to the step next to the corresponding EDDO.
A maximum of 15 nests are supported when IF
and IS
are combined.
DW
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 1]
008
DWEQ
1
0
Repeat the command up to an EDDO command while
variable 1 contains “0.”
:
:
EDDO
If DW
is specified at the start and input 8 is OFF, nothing will occur and the program will
proceed to the step next to EDDO.
(Note)
Using a GOTO command to branch out of or into a DW
-EDDO syntax is prohibited.
LEAV (Pull out of DO WHILE)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional
Optional LEAV Prohibited Prohibited
CP
[Function] Pull out of a DO
loop and proceed to the step next to EDDO.
[Example 1]
DWEQ
1
0
Repeat the commands up to an EDDO command while
variable 1 contains “0.”
:
600
LEAV
Forcibly end the loop if flag 600 is ON and proceed to
the step next to an EDDO command.
:
EDDO
267
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......