DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-167
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The following description applies to the AND Move, OR Move, and Exclusive OR Move
instructions. A table is just a range of V-memory locations. These instructions copy the data
of a table to another specified location, preforming a logical operation on each word with the
accumulator contents as the new table is written.
Step 1: Load the length of the table (number of V-memory locations) into the first level
of the accumulator stack. This parameter must be a HEX value, 0 to FF.
Step 2: Load the starting V-memory location for the table into the accumulator. This
parameter must be a HEX value. You can use the LDA instruction to convert
an octal address to hex.
Step 3: Load the BCD/hex bit pattern into the accumulator which will be logically
combined with the table contents as they are copied.
Step 4: Insert the AND Move, OR Move, or XOR Move instruction. This specifies
the starting location of the copy of the original table. This new table will
automatically be the same length as the original table.
The program on the next page performs the ANDMOV operation example above. It assumes
that the data in the table at V3000 – V3001 already exists. First we load the table length (two
words) into the accumulator. Next we load the starting address of the source table, using the
LDA instruction. Then we load the data into the accumulator to be ANDed with the table. In
the ANDMOV command, we specify the table destination, V3100.
A aaa
ANDMO V
A aaa
ANDMO V
A aaa
ORMOV
A aaa
XO R MO V
3 3 3 3
F F F F
2 2 2 2
6 6 6 6
V 3000
V 3100
ANDMOV
K 6666
Operand Data Type
DL06 Range
A
aaa
V-memory
V
See memory map
DS
Used
HPP Used
DS
Used
HPP Used
DS
Used
HPP Used
AND Move (ANDMOV)
The AND Move instruction copies data from a table to the
specified memory location, ANDing each word with the
accumulator data as it is written.
OR Move (ORMOV)
The OR Move instruction copies data from a table to
the specified memory location, ORing each word with the
accumulator contents as it is written
Exclusive OR Move (XORMOV)
The Exclusive OR Move instruction copies data from a table
to the specified memory location, XORing each word with the
accumulator value as it is written.
The example table to the right contains BCD
data as shown (for demonstration purposes).
Suppose we want to move a table of two
words at V3000 and AND it with K6666.
The copy of the table at V3100 shows the
result of the AND operation for each word.