EasyManua.ls Logo

AutomationDirect DL205 - Page 374

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

Table of Contents

Other manuals for AutomationDirect DL205

Related product manuals