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 #391 background imageLoading...
Page #391 background image
DL205 User Manual, 4th Edition, Rev. D
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
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 1400 (V1400),
which is the starting location for the destination table and table counter, is loaded into the
accumulator. The source location (V1500) is specified in the Add to Top instruction. The
table counter will be increased by “1” after the instruction is executed.
For the ATT instruction, the table counter determines
the number of additions that can be made before the
instruction will stop executing. So, it is helpful to
understand how the system uses this counter to control
the execution.
For example, if the table counter was set to 2, and the
table length was 6 words, then there could only be 4
additions of data before the execution was stopped. This
can be calculated easily by:
Table length – table counter = number of executions
Also, our example uses a normal input contact (X1) to
control the execution. Since the CPU scan is extremely
fast, and the table counter increments automatically, the
data would be moved into the table very quickly. If this
is a problem for your applicaton, you have an option of
using a one-shot (PD) to add one value each time the
input contact transitions from low to high.
DirectSOFT
LD
K6
X1
Load theconstant value6
(Hex.) into thelower 16 bits
of theaccumulator
LDA
O 1400
AT T
V1500
Copy thespecifiedvalue
from V1500 to thetable
Convertoctal 1400 to HEX
300 and load thevalue into
theaccumulator
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
SHFT
0
A
MLR
T
MLR
T
PREV
1
B
ENT
6
G
0
A
0
A
ENT
SHFT
ANDST
L
3
D
1
B
4
E
0
A
ENT
0
A
1
B
5
F
0
A
ENT
V1401
050 0
V1402
999 9
V1403
307 4
V1404
898 9
V1405
101 0
V1406
204 6
V1407
XXX X
V150
0
XXX X
1
2
3
4
5
6
Data Source
V140
0
000 2
TableCounterTable
(e.g.: 6--2=4)
DirectSOFT (optional one-shot method)
LD
K6
C0
X1 C0
PD
Load theconstant value6
(HEX) into thelow er 16 bits
of theaccumulator
LDA
O 1400
Conver toctal 1400toHEX
300 and load thevalue into
theaccumulator. This is the
starting tablelocation.

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