Iai-america XSEL-KX Bedienungsanleitung Seite 205

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 377
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 204
189
Part 4 Commands
WHXX (Select if true; variable)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1 Operand 2
Optional Optional WHXX
Variable
number
Data CP
[Function]
This command is used between SLCT and EDSL commands to execute the subsequent
commands up to the next WXXX 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.
WHXX
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]
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.
Since variable 1 (= 20) > variable 2 (=10), (2) will be
executed.
:
(2)
:
OTHE
This command will be executed if none of the conditions
are satisfied. In this example, since (2) was executed,
(3) will not be executed.
:
(3)
:
EDSL
The processing will move here if any of the conditions
was satisfied and the applicable command executed. In
this example, (2) and (4) will be executed.
:
(4)
:
* If multiple conditions are likely to be satisfied, remember that the first WXXX will become valid and any
subsequent commands will not be executed. Therefore, state from the command with the most difficult
condition or highest priority.
Seitenansicht 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 376 377

Kommentare zu diesen Handbüchern

Keine Kommentare