Automationdirect.com DL05 User Manual page 242

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

Advertisement

Chapter 5: Standard RLL Instructions
Table Instructions
1
1
Move (MOV)
2
2
The Move instruction moves the values from a V-memory
table to another V-memory table the same length (a table is
DS5
Used
a consecutive group of V-memory locations). The function
3
3
HPP
Used
parameters are loaded into the first level of the accumulator
stack and the accumulator by two additional instructions.
4
4
The MOV instruction can be used to write data to non-volatile V-memory (see Appendix F).
Listed below are the steps necessary to program the MOV function.
• Step 1:— Load the number of V-memory locations to be moved into the first level of the accumulator
5
5
stack. This parameter is a HEX value (K40 max, 100 octal).
• Step 2:— Load the starting V-memory location for the locations to be moved into the accumulator.
6
6
This parameter is a HEX value.
• Step 3:— Insert the MOVE instruction which specifies starting V-memory location (Vaaa) for the
7
7
destination table.
Helpful Hint: — For parameters that require HEX values when referencing memory locations,
8
8
the LDA instruction can be used to convert an octal address to the HEX equivalent and load
the value into the accumulator.
9
9
⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠A
V-memory ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠V
10
10
Pointer ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠P
11
11
Discrete Bit Flags
12
12
In the following example, when X1 is on, the constant value (K6) is loaded into the accumulator
using the Load instruction. This value specifies the length of the table and is placed in the first
13
13
stack location after the Load Address instruction is executed. The octal address 2000 (V2000),
the starting location for the source table is loaded into the accumulator. The destination table
location (V2030) is specified in the Move instruction.
14
14
DirectSOFT 5
Direct SOFT32
X1
a
A
b
B
c
C
Handheld Programmer Keystrokes
$
STR
D
D
SHFT
SHFT
SHFT
5-96
DL05 Micro PLC User Manual, 6th Edition, Rev. D
Operand Data Type
SP53
On when the value of the operand is larger than the accumulator can work with.
Load the constant value 6
LD
(HEX) into the lower 16 bits
K6
of the accumulator
Convert octal 2000 to HEX
LDA
400 and load the value into
O 2000
the accumulator
Copy the specified table
MOV
locations to a table
V2030
beginning at location V2030
B
ENT
1
L
D
K
SHFT
ANDST
3
JMP
L
D
A
C
ANDST
3
0
2
M
O
V
C
ORST
INST#
AND
2
Description
0
1
2
0
5
0
9
9
9
3
0
7
8
9
8
1
0
1
X
X
X
X
X
X
G
ENT
6
A
A
A
ENT
0
0
0
A
D
A
ENT
0
3
0
MOV
V aaa
DL05 Range
aaa
See memory map
See memory map
X
X
X
X
X
X
3
0
1
2
V2000
0
0
5
0
V2001
9
9
9
9
V2002
4
3
0
7
V2003
9
8
9
8
V2004
0
1
0
1
V2005
X
X
X
X
V2006
X
X
X
X
V2007
X
V2026
X
V2027
3
V2030
0
V2031
9
V2032
4
V2033
9
V2034
0
V2035
X
V2036
X
V2037

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?

Subscribe to Our Youtube Channel

Table of Contents