5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-44
API Mnemonic
Operands
Function
27
D WOR P
Logical Word OR
Controllers
20PM
10PM
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY
KnM KnS T C D V Z
S
1
* *
*
*
*
*
*
*
*
*
*
S
2
* *
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
WOR, WORP: 7 steps
DWOR, DWORP: 9 steps
Operands:
S
1
: Source data device 1
S
2
: Source data device 2
D
: Operation result
Explanations:
1. WOR instruction conducts logical OR operation of
S
1
and
S
2
and stores the result in
D
2. When WOR is used as 16-bit instruction, Z device cannot be adopted; when WOR is used as 32-bit instruction,
V device cannot be adopted.
Program Example 1:
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
0
1
1
1
1
1
1
0 0 0 0
0
0
0
1
1
1
0
0
0
0
1
1
1
WOR
b15
b0
D0
D2
D4
0
0
0
0
0
0
0 1
1
0
1
1
1
1 1
1
1
1
1
1 1 1 1
1
Before
execution
After
execution
Program Example 2:
When X1 is ON, the 32-bit data source (D11, D10) and (D21, D20) are analyzed and the operation result of the
logical OR is stored in (D41, D40).
X1
DWOR
D10
D20
D40
DWOR
B15
b0
b31
D11 D10
D21 D20
D41 D40
1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
0 0 0
0 0
1
1
1 1
1
1
1
1
0 0
0 0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1 1
1
1
1 1
0 0 0
0 0
0 0 0
0
0 0
0 0
0 0
1 1 1
1 1
1
1
1
1
1
1
1
1
1
1 1 1
1 1
1
1
1
1
1
1
0 0
Before
execution
After
execution
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...