DL205 User Manual, 4th Edition, Rev. B
5–60
Chapter 5: Standard RLL Instructions - Accumulator/Stack Load and Output Data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Load Formatted (LDF)
The Load Formatted instruction loads 1 to 32
consecutive bits from discrete memory locations into the
accumulator. The instruction requires a starting location
(Aaaa) and the number of bits (Kbbb) to be loaded.
Unused accumulator bit locations are set to zero.
NOTE:
Two consecutive Load instructions will place the value of the first load instruction onto the
accumulator stack.
In the following example, when C0 is on, the binary pattern of C10–C16 (7 bits) will be
loaded into the accumulator using the Load Formatted instruction. The lower 7 bits of the
accumulator are output to Y0–Y6 using the Out Formatted instruction.
bbb
K
LDF
A aaa
0
A
7
H
ENT
Handheld Programmer Keystrokes
LDF
C10
K7
C0
Load the status of 7
consecutive bits (C10–C16)
into the accumulator
OUTF
Y0
K7
Copy the value from the
specified number of bits in
the accumulator to Y0 – Y6
K7
C10
Location
Constant
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
K7
Y0
Location
Constant
C16 C15 C14 C13 C12 C11 C10
OFF
ON
ON
ON
OFF
OFF
OFF
?
?
?
?
?
Y6 Y5 Y4 Y3 Y2 Y1 Y0
OFF
ON
ON
ON
OFF
OFF
OFF
The unused accumulator bits are set to zero
Direct
S
OFT
S
T
R
$
S
HFT
ENT
2
C
0
A
S
HFT
AND
S
T
L
3
D
5
F
S
HFT
2
C
1
B
0
A
7
H
ENT
OUT
GX
S
HFT
5
F
230
2
4
0
2
5
0
-1
2
6
0
ý
þ
þ
þ
Operand Data Type
DL240 Range
DL250-1 Range
DL260 Range
A
aaa
bbb
aaa
bbb
aaa
bbb
Inputs X
0–477
–
0–777
–
0–1777
–
Outputs Y
0–477
–
0–777
–
0–1777
–
Control Relays C
0–377
–
0–1777
–
0–3777
–
Stage bits S
0–777
–
0–1777
–
0–1777
–
Timer bits T
0–177
–
0–377
–
0–377
–
Counter bits CT
0–177
–
0–177
–
0–377
–
Special Relays SP 0-137, 540-617
–
0–777
–
0–777
–
Global I/O GX/GY
–
–
–
–
0–3777
–
Constant K
–
1–32
–
1–32
–
1–32
Discrete Bit Flags
Description
SP76
On when the value loaded into the accumulator by any instruction is zero.
DS
Used
HPP Used