Automationdirect.com DL05 User Manual page 241

Micro plc
Hide thumbs Also See for DL05:
Table of Contents

Advertisement

In the following example when X1 is on, The value in the first level of the accumulator stack
will be reorganized in the order specified by the value in the accumulator.
Example A shows how the shuffle digits works when 0 or 9 –F is not used when specifying the
order the digits are to be shuffled. Also, there are no duplicate numbers in the specified order.
Example B shows how the shuffle digits works when a 0 or 9–F is used when specifying the
order the digits are to be shuffled. Notice when the Shuffle Digits instruction is executed, the
bit positions in the first stack location that had a corresponding 0 or 9–F in the accumulator
(order specified) are set to "0".
Example C shows how the shuffle digits works when duplicate numbers are used specifying the
order the digits are to be shuffled. Notice when the Shuffle Digits instruction is executed, the
most significant duplicate number in the order specified is used in the result.
DirectSOFT 5
Direct SOFT32
X1
LDD
V2000
Load the value in V2000 and
V2001 into the accumulator
LDD
V2006
Load the value in V2006 and
V2007 into the accumulator
SFLDGT
Shuf fle the digits in the first
level of the accumulator
stack based on the pattern
in the accumulator. The
result is in the accumulator .
OUTD
V2010
Copy the value in the
accumulator to V2010 and
V2011
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
D
SHFT
ANDST
3
3
L
D
D
SHFT
ANDST
3
3
S
F
L
SHFT
SHFT
RST
5
ANDST
GX
D
C
SHFT
OUT
3
2
A
V2001
V2000
9
A
B
C
D
E
F
0
Original
8
7
6
5
4
3
2
1
bit
9
A
B
C
D
E
F
0
Positions
Acc.
V2007
V2006
1
2
8
7
3
6
5
4
Specified
8
7
6
5
4
3
2
1
order
1
2
8
7
3
6
5
4
Acc.
New bit
8
7
6
5
4
3
2
1
Positions
B C
E
F
0
D A
9
Acc.
B C
E
F
0
D A
9
V2011
V2010
C
A
A
A
ENT
2
0
0
0
C
A
A
G
ENT
2
0
0
6
D
G
T
ENT
3
6
MLR
A
B
A
ENT
0
1
0
DL05 Micro PLC User Manual, 6th Edition, Rev. D
Chapter 5: Standard RLL Instructions
B
V2001
V2000
0
F
E
D
C B
A
9
9
8
8
7
6
5
4
3
2
1
0
F
E
D
C B
A
9
9
Acc.
V2007
V2006
0
0
4
3
0
0
2
1
4
8
8
7
6
5
4
3
2
1
0
0
4
3
0
0
2
1
4
Acc.
8
8
7
6
5
4
3
2
1
0
0
0
0
E D
A
9
0
Acc.
0
0
0
0
E D
A
9
0
V2011
V2010
1
1
2
2
3
3
4
4
5
5
6
6
C
7
7
V2001
V2000
A
B
C
D
E
F
0
8
8
7
6
5
4
3
2
1
A
B
C
D E
F
0
Acc.
V2007
V2006
9
9
3
2
1
4
3
2
1
7
6
5
4
3
2
1
10
10
3
2
1
4
3
2
1
Acc.
7
6
5
4
3
2
1
11
11
0
0
0
9
A
B
C
Acc.
12
12
0
0
0
9
A
B
C
13
13
V2011
V2010
14
14
A
a
b
B
c
C
D
D
5-95

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DL05 and is the answer not in the manual?

Table of Contents