Standard
RLL
Instructions
5--74
Standard RLL Instructions
Table Instructions
DL105 PLC User Manual, 3rd Edition
Table Instructions
The Move instruction moves the values
from a V--memory table to another
V--memory table the same length. The
function parameters are loaded into the
first level of the accumulator stack and the
accumulator
by
two
additional
instructions. Listed below are the steps
necessary to program the Move function.
V aaa
MOV
S
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 (K40
max, 100 octal).
S
Step 2:— Load the starting V--memory location for the locations to be
moved into the accumulator. This parameter is a HEX value.
S
Step 3:— Insert the MOVE 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.
Operand Data Type
DL130 Range
aaa
V--memory
V
All (See page 4--28)
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.
Direct
SOFT
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
0 1 2 3
V2031
0 5 0 0
V2032
9 9 9 9
V2033
3 0 7 4
V2034
8 9 8 9
V2035
1 0 1 0
V2036
X X X X
V2037
X X X X
S
S
S
S
V2026
X X X X
V2027
X X X X
V2000
0 1 2 3
V2001
0 5 0 0
V2002
9 9 9 9
V2003
3 0 7 4
V2004
8 9 8 9
V2005
1 0 1 0
V2006
X X X X
V2007
X X X X
S
S
S
S
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
Move
(MOV)
Содержание DL105
Страница 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Страница 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Страница 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Страница 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Страница 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...
Страница 329: ...1F European Union Directives CE In This Appendix European Union EU Directives Basic EMC Installation Guidelines...