Automationdirect.com DirectLOGIC DL205 Series User Manual page 367

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Table
Fill (FILL)
1
The Fill instruction fills a table of up to 255 V-memory
locations with a value (Aaaa), which is either a V-memory
230
location or a 4-digit constant. The function parameters are
2
240
loaded into the first level of the accumulator stack and the
250-1
accumulator by two additional instructions. Listed below are the steps necessary to program
3
260
the Fill function.
Step 1: Load the number of V-memory locations to be filled into the first level of the accumulator
4
DS
Used
HPP Used
Step 2: Load the starting V-memory location for the table into the accumulator. This parameter must
5
Step 3: Insert the Fill instructions which specifies the value to fill the table with.
Helpful hint: — For parameters that require HEX values when referencing memory locations,
6
the LDA instruction can be used to convert an octal address to the HEX equivalent and load
the value into the accumulator.
7
8
9
10
In the following example, when X1 is on, the constant value (K4) is loaded into the
11
accumulator using the Load instruction. This value specifies the length of the table and is
placed on the first level of the accumulator stack when the Load Address instruction is
12
executed. The octal address 1600 (V1600) is the starting location for the table and is loaded
into the accumulator using the Load Address instruction. The value to fill the table with
13
(V1400) is specified in the Fill instruction.
DirectSOFT
14
A
B
C
D
5–150
DL205 User Manual, 4th Edition, Rev. B
stack. This parameter must be a HEX value, 0 to FFFF.
be a HEX value.
Operand Data Type
V-memory
Pointer
Constant
Discrete Bit Flag
SP53
X1
LD
K4
LDA
O 1600
FILL
V1400
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
SHFT
PREV
ANDST
3
L
D
A
SHFT
ANDST
3
0
F
I
L
L
SHFT
5
8
ANDST
ANDST
DL260 Range
A
aaa
V All (See page 3 - 56)
P All V mem (See page 3 - 56)
K 0-FFFF
Description
On if V-memory address is out of range
Load the constant value 4
(HEX) into the lower 16 bits
of the accumulator
Convert the octal address
1600 to HEX 380 and load the
value into the accumulator
2
Fill the table with the value
in V1400
E
ENT
4
B
G
A
A
ENT
1
6
0
0
B
E
A
A
1
4
0
0
FILL
2
5
0
V1400
2
5
0
5
0
0
2
5
0
2
5
0
ENT
A aaa
V1576
V1577
0
V1600
0
V1601
0
V1602
0
V1603
V1604
V1605

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF