DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-72
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the binary value in the accumulator will be ANDed
with the binary value in the first level or the accumulator stack. The result resides in the
accumulator. The 32-bit value is then output to V1500 and V1501.
ANDS
AND
X1
0010100001111010
0010100000111
00000010000000000
V1400
287A
0001010001000110
0101010001111110
15 14 13 12 11 10 9876543210
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1631 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
Acc.
Acc.
V1500
2838
547E
1446
0101010001111110 0010100001111010
01101010001110000011011001000111
LDD
V1400
Load the value in V1400 and
1401 into the accumulator
ANDS
AND the value in the
accumulator with the
first level of the
accumulator stack
OUTD
V1500
(top of stack)
36476A38
V1501
V1401
Copy the value in the
accumulator to V1500
and 1501
Handheld Programmer Keystrokes
1
B
ENT
1
B
4
E
0
A
0
A
ENT
STR
$
SHFT
ANDST
L
3
D
A
ENT
3
D
AND
V
SHFT
RST
S
ENT
Discrete Bit Flags Description
SP63 ON if the result in the accumulator is zero.
SP70 ON if the result in the accumulator is negative
DS Used
HPP Used
DirectSOFT
And with Stack (ANDS)
The ANDS instruction is a 32-bit instruction that logically ANDs
the value in the accumulator with the first level of the accumulator
stack. The result resides in the accumulator. The value in the first
level of the accumulator stack is removed from the stack and all
values are moved up one level. Discrete status flags indicate if
the result of the ANDS is zero or a negative number (the most
significant bit is on).