Iai-america XSEL-KX Bedienungsanleitung Seite 107

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 377
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 106
91
Part 4 Commands
1.5 Comparison Operation
CPXX (Compare)
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 CPXX
Variable
number
Data
EQ
NE
GT
GE
LT
LE
[Function]
The output will be turned ON if the comparison result of the content of the variable specified
in operand 1 and the value specified in operand 2 satisfies the condition.
The value in the variable does not change.
The output will be turned OFF if the condition is not satisfied.
(Note)
The output will not be turned OFF when the command is executed.
CPXX
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
10
Assign 10 to variable 1.
CPEQ
1
10
600
Turn ON flag 600 if the content of variable 1
is 10.
600
ADD
2
1
Add 1 to variable 2 if flag 600 is ON.
[Example 2]
LET
1
2
Assign 2 to variable 1.
LET
2
10
Assign 10 to variable 2.
LET
3
10
Assign 10 to variable 3.
CPNE *1 *3 310 Turn ON output 310 if the content of variable
1 (variable 2) is not equal to the content of
variable 3.
Seitenansicht 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 376 377

Kommentare zu diesen Handbüchern

Keine Kommentare