Iai-america XSEL-KX Manuel d'utilisateur Page 105

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 377
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 104
89
Part 4 Commands
OR (Logical OR)
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 OR
Variable
number
Data ZR
[Function]
Assign the logical OR operation result of the content of the variable specified in operand 1
and the value specified in operand 2, to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
[Example 1]
LET
1
204
Assign 204 to variable 1.
OR
1
170
Assign the logical OR operation result (238) of the
content of variable 1 (204) and 170, to variable 1.
[Example 2]
LET
1
2
Assign 2 to variable 1.
LET
2
204
Assign 204 to variable 2.
LET
3
170
Assign 170 to variable 3.
OR
*1
*3
Assign the logical OR operation result (238) of the
content of variable 1 (which is variable 2, or 204) and
the content of variable 3 (170), to the content of
variable 1 (variable 2).
Decimal
Binary
204
OR 170
238
11001100
OR 10101010
11101110
Vue de la page 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 376 377

Commentaires sur ces manuels

Pas de commentaire