Automationdirect.com DirectLOGIC DL205 Series User Manual page 289

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Logical
And Double (ANDD)
1
The And Double is a 32-bit instruction that
230
logically ANDs the value in the accumulator with
240
two consecutive V-memory locations or an 8-digit
2
250-1
(max.) constant value (Aaaa). The result resides in
the accumulator. Discrete status flags indicate if the
260
3
result of the And Double is zero or a negative
number (the most significant bit is on).
DS
Used
4
HPP Used
Operand Data Type
5
V-memory
Pointer
6
Constant
7
SP63
SP70
8
NOTE: The status flags are only valid until another instruction that uses the same flags is executed.
9
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 anded
10
with 36476A38 using the And Double instruction. The value in the accumulator is output to
V2010 and V2011 using the Out Double instruction.
11
DirectSOFT
X1
12
Load the value in V2000 and
V2001 into the accumulator
13
14
AND the value in the
accumulator with
the constant value
36476A38
A
B
Copy the value in the
accumulator to V2010 and
V2011
C
Handheld Programmer Keystrokes
$
B
STR
1
D
L
D
SHFT
ANDST
3
V
D
SHFT
AND
3
GX
D
SHFT
OUT
3
5–72
DL205 User Manual, 4th Edition, Rev. B
DL230 Range DL240 Range DL250-1 Range DL260 Range
A
V
P
K
Discrete Bit Flags
LDD
V2000
Acc.
ANDD
K36476A38
Acc.
AND 36476A38
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
aaa
aaa
-
-
-
-
0-FFFFFFFF
0-FFFFFFFF
Will be on if the result in the accumulator is zero
Will be on if the result in the accumulator is negative
V2000
5
4
7
E
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
0 1
0 1
0 1 0
0 0 1 1
1 1 1
0 1
0 1
0 1 0
0 0 1 1
1 1 1
0 0
1 1
0 1 1
0 0
1 0 0 0 1
0 0
0 0
0 0
0 1
0 1 0
0 1 0
0 0 1 0
0 0 0 0
0 0 1 1 0
0 0 0 0 0
1
4
4
6
V2011
A
ENT
0
E
H
G
SHFT
4
7
6
ENT
ANDD
A aaa
aaa
All. See
memory map
All V-memory.
See memory map
0-FFFFFFFF
Description
V2000
2
8
7
15 14 13 12 11 10 9 8
7 6 5 4 3 2 1 0
1 0
0
0 1 0 1 0 0 0 0 1 1 1
1 0
0
0 1 0 1 0 0 0 0 1 1
1 1
0 1 1 0
1 0
1 0
0 0 1 1
0
0 1 0 1 0 0 0 0 0 1 1
2
8
3
V2010
A
D
I
SHFT
ENT
0
3
8
aaa
All. See
memory map
All V-memory.
See memory map
0-FFFFFFFF
A
1
0 1
0
1 1 0 1 0
1
0 0 0
1
0 0
0
8

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Table of Contents

Save PDF