Copy Data From V-Memory To A Data Label Area - Automation Direct DL05 User Manual

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

Advertisement

Copy Data From V-memory to a Data Label Area

In the following example, data is copied from V-memory to a data label area. When X1 is on,
the constant value (K4) is loaded into the accumulator using the Load instruction. This value
specifies the length of the table and is placed in the second stack location after the next Load and
Load Address instructions are executed. The constant value (K2) is loaded into the accumulator
using the Load instruction. This value specifies the offset for the source and destination data,
and is placed in the first stack location after the Load Address instruction is executed. The
source address where data is being copied from is loaded into the accumulator using the Load
Address instruction. The MOVMC instruction specifies the destination starting location and
executes the copying of data from V-memory to the data label area.
Direct SOFT
X1
LD
Load the value 4 into the
accumulator specifying the
number of locations to be
copied.
LD
Load the value 2 into the
accumulator specifying the
offset for source and
destination locations.
LDA
O 2000
Convert octal 2000 to HEX
400 and load the value into
the accumulator. This
specifies the source location
where the data will be
copied from
MOVMC
K1 is the data label
destination area where the
data will be copied to
DLBL
K1
NCON
K1234
NCON
K4532
NCON
K6151
NCON
K8845
NCON
K7777
K4
X
X
X
X
1
2
3
4
K2
Offset
4
5
3
2
6
1
5
1
8
8
4
5
2
5
0
0
6
8
3
5
X
X
X
X
K1
END
Handheld Programmer Keystrokes
$
STR
SHFT
SHFT
SHFT
SHFT
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Chapter 10: Memory Cartridge
Data Label Area
Programmed
After the END
Instruction
DLBL K1
V1777
V2000
N
C O N
K
7
0
4
1
V2001
N
C O N
K
4
6
4
8
V2002
N
C O N
K
6
1
5
1
V2003
N
C O N
K
8
8
4
5
V2004
N
C O N
K
2
5
0
0
V2005
N
C O N
K
6
8
3
5
V2006
B
ENT
1
L
D
K
SHFT
ANDST
3
JMP
L
D
K
SHFT
ANDST
3
JMP
L
D
A
C
ANDST
3
0
2
M
O
V
M
C
ORST
INST#
AND
ORST
2
Offset
E
ENT
4
C
ENT
2
A
A
A
ENT
0
0
0
K
B
SHFT
ENT
JMP
1
10–17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D

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