
[15] Multi-Branching
397
z
WH
(Select if true; variable)
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
E
N, Cnd
Cmnd
Operand 1
Operand 2
Pst
Prohibited Prohibited
WH
ڧڧ
Variable
number
Data CP
Applicable models
All models [Refer to Section 5.1 for details of models]
{
[Function]
This command is used between SLCT and EDSL commands to execute the
subsequent commands up to the next W
command or an OTHE or EDSL
command when the comparison result of the content of the variable specified in
operand 1 with the value specified in operand 2 satisfies the condition.
DW
EQ
............
Operand 1 = Operand 2
NE
............
Operand 1
z
Operand 2
GT
............
Operand 1 > Operand 2
GE
............
Operand 1
t
Operand 2
LT
............
Operand 1 < Operand 2
LE
............
Operand 1
d
Operand 2
[Example 1]
LET
1
20
Assign 20 to variable 1.
LET
2
10
Assign 10 to variable 2.
:
SLCT
Execute
multi-branching.
WHEQ
1
10
:
(1) will be executed if the content of variable 1 is
10. Since variable 1 contains 20, however, the next
condition will be referenced.
(1)
:
WHGT
1
*2
:
This command will be executed if the content of
variable 1 is greater than the content of variable 2.
(2)
Since variable 1 (= 20) > variable 2 (=10), (2) will
be executed.
:
OTHE
:
(3)
This command will be executed if none of the
conditions are satisfied. In this example, since (2)
was executed, (3) will not be executed.
:
EDSL
:
(4)
The processing will move here if any of the
conditions were satisfied and the applicable
command executed. In this example, (2) and (4)
will be executed.
:
* If multiple conditions are likely to be satisfied, remember that the first W
will become
valid and any subsequent commands will not be executed. Therefore, state from the
command with the most difficult condition or highest priority.
Summary of Contents for PSEL
Page 2: ......
Page 10: ......
Page 18: ...8 Part 1 Installation ...
Page 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Page 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Page 476: ...466 Appendix ...
Page 480: ...470 ...
Page 485: ...475 ...
Page 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Page 488: ......
Page 490: ......
Page 494: ......
Page 518: ...24 ...
Page 526: ...32 ...
Page 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Page 1060: ......
Page 1061: ......