DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-168
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The example to the right shows a table of two words at
V3000 and logically XORs it with K3333. The copy of
the table at V3100 shows the result of the XOR operation
for each word.
The ladder program example for the XORMOV is
similar to the one above for the ORMOV. Just use the
XORMOV instruction. On the handheld programmer,
you must use the SHFT key and spell “XORMOV”
explicitly.
1 1 1 1
1 1 1 1
9 9 9 9
9 9 9 9
V 3000
V 3100
OR MOV
K 8888
X0
DirectSOFT 32
LD
K2
LDA
0 3000
LD
K8888
ORMOV
0 3100
Load the constant value 2
(Hex) into the lower 16 bits
of the accumulator.
Convert octal 3000 to HEX
and load the value into the
accumulator. This is the
table beginning.
Load the constant value
8888 (Hex.) into the lower
16 bits of the accumulator.
Copy the table to V3100,
ORing its contents with the
accumulator as it is written.
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
ORST
M
INST#
O
PREV
0
A
ENT
2
C
0
A
0
A
ENT
SHFT
ANDST
L
3
D
3
D
0
A
0
A
ENT
SHFT
ANDST
L
3
D
PREV
8
I
ENT
8
I
8
I
8
I
OR
Q
3
D
SHFT
AND
V
1
B
0
A
0
A
ENT
1 1 1 1
1 1 1 1
2 2 2 2
2 2 2 2
V 3000
V 3100
X OR MOV
K 3333
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
ORST
M
INST#
O
PREV
0
A
ENT
2
C
0
A
0
A
ENT
SHFT
ANDST
L
3
D
3
D
0
A
0
A
ENT
SHFT
ANDST
L
3
D
PREV
6
G
ENT
6
G
6
G
6
G
AND
V
3
D
SHFT
AND
V
1
B
0
A
0
A
ENT
DirectSOFT
LD
K2
X0
DirectSOFT 5
Load the constant value 2
(Hex.) into the lower 16
bits of the accumulator.
Convert otal 3000 to HEX
and load the value into the
accumulator. This is the
table beginning.
Load the constant value
6666 (Hex.) into the lower
16 bits of the accumulator.
Copy the table to V3100,
ANDing its contents with the
accumulator as it is written.
LDA
0 3000
LD
K6666
ANDMOV
0 3100
DirectSOFT
The example on top the right shows a table of two words
at V3000 and logically ORs it with K8888. The copy of
the table at V3100 shows the result of the OR operation
for each word.
The program to the right performs the ORMOV
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 ORed with the table. In the ORMOV command,
we specify the table destination, V3100.