3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-77
API Mnemonic
Operands
Function
27
DOR P
S
1
, S
2
, D
Logical OR 32-bit
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
*
*
*
*
*
*
*
DOR, DORP: 13 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
S
1
: First data source
S
2
: Second data source
D
: Operation result
Description:
1.
Logical Double word OR operation.
2.
A logical OR operation is performed on the bit patterns of the contents of the two source
addresses (
S
2
and
S
1
). The result of the logical OR analysis is stored in the destination
device (
D
)
3.
For 16-bit operation please refer to the WOR instruction.
Program Example:
When X1 is ON, the 32-bit data source (D11, D10) and (D21, D20) are analyzed and the operation
result of the logical DOR is stored in (D41, D40).
X1
DOR
D10
D20
D40
b31
Before
execution
After
execution
D11 D10
DOR
b
0
0
1
1
1
1
1
1
0 0 0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
b15
b0
0
0
0
0
0
0
1
1
0
1
1 1
0
1
1
1 1
1 1 1 1 1
1
D21 D20
D41 D40
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
1
0 0 0
0
0
0
1
1
1
1
0
1
1 1
0
1
0
0
0
0
1
1
1
1
1 1
1 1 1 1 1
1
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...