Delta DVP-ES2 Manuel d'utilisateur Page 199

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 702
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 198
3. Instruction Set
3-83
API Mnemonic Operands Function
26
WAND P
Logical Word AND
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S
1
* ** * * * * * ***
S
2
* ** * * * * * ***
D
* * * * * ***
WAND, WANDP: 7 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S
1
: Source data device 1 S
2
: Source data device 2 D: Operation result
Explanations:
1. This instruction conducts logical AND operation of S
1
and S
2
in 16-bit mode and stores the
result in D
2. For 32-bit operation please refer to DAND instruction..
Program Example:
When X0 = ON, the 16-bit source D0 and D2 are analyzed and the operation result of the logical
AND operation is stored in D4.
WAND
X0
D0
D2 D4
0000111111111111
00000000 00011 111
000 00 000000 0 0
11 1
WAND
b15 b00
Before
execution
After
execution
D0
D2
D4
Vue de la page 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 701 702

Commentaires sur ces manuels

Pas de commentaire