EasyManuals Logo

Automationdirect.com DirectLOGIC DL205 Series User Manual

Automationdirect.com DirectLOGIC DL205 Series
587 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 #384 background imageLoading...
Page #384 background image
DL205 User Manual, 4th Edition, Rev. B
5–167
Chapter 5: Standard RLL Instructions- Table
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 easily be calculated 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.
Direct SOFT
LD
K6
X1
Load the constant value 6
(Hex.) into the lower 16 bits
of the accumulator
LDA
O 1400
AT T
V1500
Copy the specifi ed value
fr om V1500 to the table
Convert octal 1400 to HEX
300 and load the value into
the accumulator
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
0 5 0 0
V1402
9999
V1403
3 0 7 4
V1404
8 9 8 9
V1405
1 0 1 0
V1406
2 0 4 6
V1407
XXXX
V1500
XXX X
1
2
3
4
5
6
Data Source
V1400
000 2
Table CounterTable
( e . g .: 6 -- 2 = 4 )
DirectSOFT (opti onal one- shot m ethod)
LD
K6
C0
X1 C0
PD
Load the constant value 6
(HEX) i nto the lower 16 bi ts
of the ac cumulator
LDA
O 1400
Conver t octal 1400 to H EX
300 and load the value into
the accum ulator. T hi s is the
starti ng table location.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DirectLOGIC DL205 Series and is the answer not in the manual?

Automationdirect.com DirectLOGIC DL205 Series Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDirectLOGIC DL205 Series
CategoryController
LanguageEnglish

Related product manuals