Delta DVP-ES2 User Manual Page 201

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 200
3. Instruction Set
3-85
API Mnemonic Operands Function
27
WOR P
Logical Word OR
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
* * * * * ***
WOR, WORP: 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 OR 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 DOR instruction.
Program Example:
When X0 = ON, the 16-bit data source D0 and D2 are analyzed and the result of the logical OR is
stored in D4.
X0
WOR
D0
D2 D4
00 111111
000 0 0 011 1 1
00 00
11 1
WOR
b15 b00
0000 0011
0111 0 1
11111111 1
Before
execution
After
execution
1
D0
D2
D4
Page view 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 701 702

Comments to this Manuals

No comments