DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-143
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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 constant value (K4) is loaded into the accumulator using the Load (LD) instruction. This
value specifies the length of the table and is placed in the second stack location after the next
Load and Load Label (LDLBL) instructions are executed. The constant value (K0) is loaded
into the accumulator, specifying the offset for the source and destination data. It is placed in the
first stack location after the LDLBL instruction is executed. The source address where data is
being copied from is loaded into the accumulator using the LDLBL instruction. The MOVMC
instruction specifies the destination starting location and executes the copying of data from the
Data Label Area to V-memory.
Direct SOFT32
LD
K4
X1
Load the value 4 into the
accumulator specifying the
number of locations to be
copied.
LD
K0
Load the value 0 into the
accumulator specifying the
offset for source and
destination locations
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.
MOVMC
V2000
V2000 is the destination
starting address for the data
to be copied.
1234
4532
6151
8845
K
NCON
K
NCON
K
NCON
K
NCON
V2001
4532
V2002
6151
V2003
8845
V2004
XXXX
.
.