Or Double (ORD)
The Or Double is a 32 bit instruction that ors the value in
DS5
Used
the accumulator with the value (Aaaa), which is either two
HPP
Used
consecutive V-memory locations or an 8 digit (max.) constant
value. The result resides in the accumulator. Discrete status
flags indicate if the result of the Or Double is zero or a negative
number (the most significant bit is on).
V-memory ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠V
Pointer ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠P
Constant ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠K
Discrete Bit Flags
SP63
SP70
NOTE: The status flags are only valid until another instruction that uses the same flags is executed.
In the following example, when X1 is on, the value in V2000 and V2001 will be loaded into
the accumulator using the Load Double instruction. The value in the accumulator is ored with
36476A38 using the Or Double instruction. The value in the accumulator is output to V2010
and V2011 using the Out Double instruction.
DirectSOFT 5
Direct SOFT32
X1
Load the value in V2000 and
V2001 into accumulator
OR the value in the
accumulator with
the constant value
36476A38
Copy the value in the
accumulator to V2010 and
V2011
Handheld Programmer Keystrokes
$
B
STR
1
L
D
SHFT
ANDST
3
Q
D
SHFT
OR
3
GX
D
SHFT
OUT
3
Operand Data Type
On if the result in the accumulator is zero.
On anytime the value in the accumulator is negative.
LDD
V2000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
0 1 0 1 0 1 0 0 0 1 1 1 1 1 1
ORD
K36476A38
0 1 0 1 0 1 0 0 0 1 1 1 1 1 1
Acc.
OR 36476A38
0 0 1 1 0 1 1 0 0 1 0 0 0 1 1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 1 1 1 0 1 1 0 0 1 1 1 1
Acc.
OUTD
V2010
ENT
D
C
A
A
3
2
0
0
K
D
G
SHFT
JMP
3
6
C
A
B
A
2
0
1
0
DL05 Micro PLC User Manual, 6th Edition, Rev. D
Chapter 5: Standard RLL Instructions
DL05 Range
See memory map
See memory map
Description
V2001
5
4
7
E
0
0
1
1 1 1
0
7
6
7
F
V2011
A
ENT
0
E
H
G
A
SHFT
4
7
6
0
ENT
ORD
K aaa
aaa
0–FFFFFFFF
V2000
2
8
7
A
15 14 13 12 11 10 9 8 7 6 5 4 3
0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0
0 0 1 0 1 0 0 0 0 1 1 1 1 0 1
0 1 1 0 1 0 1 0 0 0 1 1 1 0 0 0
0 1 1 0 1 0 1 0 0 1 1 1 1 0 1 0
6
A
7
A
V2010
D
I
SHFT
ENT
3
8
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
13
13
2
1
0
14
14
0
A
a
b
B
c
C
D
D
5-63
Need help?
Do you have a question about the DL05 and is the answer not in the manual?