Iai-america XSEL-QX Manuel d'utilisateur Page 175

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 558
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 174
151
Part 4 Commands
1.4 Logical Operation
z AND (Logical AND)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Optional Optional AND
Variable
number
Data ZR
[Function] Assign the logical AND 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.
AND 1 170 Assign the logical AND operation result (136) 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.
AND *1 *3 Assign the logical AND operation result (136) 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
AND 170
136
11001100
AND 10101010
10001000
Vue de la page 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 557 558

Commentaires sur ces manuels

Pas de commentaire