EasyManuals Logo

AutomationDirect DL205 User Manual

Default Icon
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #396 background imageLoading...
Page #396 background image
DL205 User Manual, 4th Edition, Rev. D
5-172
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 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.
The example to the right shows a table of two words at
V3000 and logical 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
99
V 3000 V 3100
ORMOV
K8888
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
22
V 3000 V 3100
XORMOV
K3333
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
6
G
ENT
6
G
6
G
6
G
AND
V
3
D
SHFT
AND
V
1
B
0
A
0
A
ENT
LD
K2
X0
DirectSOFT
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 th
e
accumulator as it is written.
LDA
0 3000
LD
K6666
ANDMOV
0 3100

Table of Contents

Other manuals for AutomationDirect DL205

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AutomationDirect DL205 and is the answer not in the manual?

AutomationDirect DL205 Specifications

General IconGeneral
BrandAutomationDirect
ModelDL205
CategoryController
LanguageEnglish

Related product manuals