EasyManua.ls Logo

Automationdirect.com DL06 - Page 302

Automationdirect.com DL06
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-141
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
• Step 1 Load the number of V-memory locations to be moved into the first level of the accumulator
stack. This parameter is a HEX value (KFFF max, 7777 octal, 4096 decimal).
• Step 2 Load the starting V-memory location for the locations to be moved into the accumulator.
This parameter is a HEX value.
• Step 3 Insert the MOV instruction which specifies starting V-memory location (Vaaa) for the
destination table.
Helpful Hint: — For parameters that require HEX values when referencing memory locations,
the LDA instruction can be used to convert an octal address to the HEX equivalent and load
the value into the accumulator.
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
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.
V aaa
MOV
Direct SOFT32
LD
K6
X1
Load the constant value 6
(HEX) into the lower 16 bits
of the accumulator
LDA
O 2000
Convert octal 2000 to HEX
400 and load the value into
the accumulator
MOV
V2030
Copy the specified table
locations to a table
beginning at location V2030
V2030
0123
V2031
0500
V2032
9999
V2033
3074
V2034
8989
V2035
1010
V2036
XXXX
V2037
XXXX
V2026
XXXX
V2027
XXXX
V2000
0123
V2001
0500
V2002
9999
V2003
3074
V2004
8989
V2005
1010
V2006
XXXX
V2007
XXXX
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
SHFT
JMP
K
6
G
ENT
SHFT
ANDST
L
3
D
0
A
2
C
0
A
0
A
0
A
ENT
SHFT
ORST
M
INST#
O
1
B
ENT
2
C
0
A
0
A
ENT
3
D
AND
V
Discrete Bit Flags Description
SP53 On when the value of the operand is larger than the accumulator can work with.
Operand Data Type DL06 Range
aaa
V-memory V See memory map
Pointer P See memory map
DS Used
HPP Used
DirectSOFT
Table Instructions
Move (MOV)
The Move instruction moves the values from a V-memory table to
another V-memory table the same length (a table being a consecutive
group of V-memory locations). The function parameters are loaded
into the first level of the accumulator stack and the accumulator
by two additional instructions. 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.