[15] Multi-Branching
398
z
WS
(Select if true; character)
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
WS
ڧڧ
Column
number
Column number,
character literal
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 character strings in the columns
specified in operands 1 and 2 satisfies the condition.
Comparison will be performed for the length set by a SLEN command.
If a character literal is specified in operand 2, comparison will be performed for
the entire length of the literal.
WS
EQ
............
Operand 1 = Operand 2
NE
............
Operand 1
z
Operand 2
[Example 1]
SLEN
3
Set the number of comparing characters to 3.
SCPY
1
‘ABC’
Assign ‘ABC’ to column 1.
LET
1
2
Assign 2 to variable 1.
:
SLCT
Execute
multi-branching.
WSEQ
1
‘XYZ’
:
(1)
(1) will be executed if columns 1 to 3 contain ‘XYZ’.
Since columns 1 to 3 contain ‘ABC’, however, this
command will not be executed.
:
WSEQ
2
*1
:
(2)
(2) will be executed if the content of the number of
characters specified by SLEN after column 2 is the
same as the content of the column specified in
variable 1.
:
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.
Содержание PSEL
Страница 2: ......
Страница 10: ......
Страница 18: ...8 Part 1 Installation ...
Страница 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Страница 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Страница 476: ...466 Appendix ...
Страница 480: ...470 ...
Страница 485: ...475 ...
Страница 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Страница 488: ......
Страница 490: ......
Страница 494: ......
Страница 518: ...24 ...
Страница 526: ...32 ...
Страница 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Страница 1060: ......
Страница 1061: ......