Automationdirect.com DirectLOGIC DL205 Series User Manual page 344

Table of Contents

Advertisement

Rotate Right (ROTR)
Rotate Right is a 32-bit instruction that rotates the bits in the
230
accumulator a specified number (Aaaa) of places to the right.
240
250-1
Operand Data Type
260
V-memory
Constant
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into
the accumulator using the Load Double instruction. The bit pattern in the accumulator is
rotated 2 bit positions to the right using the Rotate Right instruction. The value in the
DS
Used
accumulator is copied to V1500 and V1501 using the Out Double instruction.
HPP Used
DirectSOFT
X1
LDD
V1400
Load the value in V1400 and
V1401 into the accumulator
ROTR
K2
The bit pattern in the
accumulator is rotated 2
bit positions to the right
OUTD
V1500
Copy the value in the
accumulator to V1500
and V1501
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
D
SHFT
ANDST
3
3
R
O
T
SHFT
ORN
INST#
MLR
GX
D
SHFT
OUT
3
Chapter 5: Standard RLL Instructions - Bit Operation
DL250-1 Range
A
aaa
V
All (See page 3 - 55)
K
1-32
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 1 0 0 1 1 1 0 0 0 0 0 1 0 1
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 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0 1 0 1 1 0 0 1 1 1 0 0 0 0 0 1
Acc.
B
E
A
A
1
4
0
0
R
C
ENT
ORN
2
B
F
A
A
ENT
1
5
0
0
DL260 Range
aaa
All (See page 3 - 56)
1-32
V1401
V1400
6
7
0
5
3
1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0
5
9
C
1
V1501
ENT
DL205 User Manual, 4th Edition, Rev. B
ROTR
A aaa
0
1
4
C
4
0
V1500
5–127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D

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