DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-189
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Below are the steps for using the Move Block function:
• Step 1: Load the number of words (octal) to be copied into the 1st level of the accumulator stack.
• Step 2: Load the source data label (LDLBL Kaaa) into the accumulator. This is where the data will
be copied from.
• Step 3: Insert the MOVBLK instruction that specifies the V-memory destination. This is where the
data will be copied to.
Copy Data From a Data Label Area to V-memory
In the example below, data is copied from a Data Label Area to V-memory. When X1 is on,
the octal value (O4) is copied to the first level of the accumulator stack using the Load Address
(LDA) instruction. This value specifies the number of words to be copied. Load Label (LDLBL)
instruction will load the source data address (K1) into the accumulator. This is where the data
will be copied from. The MOVBLK instruction specifies the destination starting location and
executes the copying of data from the Data Label Area to V-memory.
V aaa
MOVBLK
DS
Used
HPP Used
Direct
SOFT
X1
LDA
O4
Load the value 4 into the
accumulator specifying the
number of words to be copied.
LDLBL
K1
Load the value 1 into the
accumulator specifying the
Data Label Area K1 as the
starting address of the data
to be copied.
MOVBLK
V2000
V2000 is the destination
starting address for the data
to be copied.
1 2 3 4
4 5 3 2
6 1 5 1
8 8 4 5
K
N C O N
K
N C O N
K
N C O N
K
N C O N
V2001
4 5 3 2
V2002
6 1 5 1
V2003
8 8 4 5
V2004
X X X X
.
.
.
.
V2000
1 2 3 4
Data label area
to be copied
DLBL
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
JMP
K
ENT
SHFT
ANDST
L
3
D
ANDST
L
1
B
ANDST
L
SHFT
ORST
M
AND
V
INST#
O
1
B
ENT
ENT
1
B
2
C
0
A
0
A
0
A
ENT
4
E
K1
V1777
X X X X
0
A
1
B
ANDST
L
Move Block Instruction (MOVBLK)
The Move Block instruction copies a specified number of words
from a Data Label Area of program memory (ACON, NCON) to
the specified V-memory location.