Automationdirect.com DirectLOGIC DL205 Series User Manual page 257

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Immediate
Load Immediate Formatted (LDIF)
1
The Load Immediate Formatted instruction loads a 1–32 bit binary
230
value into the accumulator. The value reflects the current status of
240
the input module(s) at the time the instruction is executed.
2
250-1
Accumulator bits that are not used by the instruction are set to zero.
260
3
4
Intputs
Constant
5
In the following example, when C0 is on, the binary pattern of X10–X17 will be loaded into
the accumulator using the Load Immediate Formatted instruction. The Out Immediate
6
Formatted instruction could be used to copy the specified number of bits in the accumulator
to the specified outputs on the output module, such as Y30–Y37. This technique is useful to
quickly copy an input pattern to outputs (without waiting for the CPU scan).
7
DS
Used
8
HPP Used
DirectSOFT
9
C0
10
11
12
13
14
Handheld Programmer Keystrokes
A
B
C
D
5–40
DL205 User Manual, 4th Edition, Rev. B
Operand Data Type
LDIF
X10
K8
Load the value of 8
Unused accumulator bits
consecutive location into the
s
are set to zero
accumulator starting with
X10
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.
0
OUTIF
Y30
K8
Copy the value of the lower
8 bits of the accumulator to
Y30 - - Y37
$
C
SHFT
STR
2
L
D
I
SHFT
ANDST
3
8
GX
I
F
SHFT
OUT
8
5
aaa
X
0–1777
K
Location
X10
0
0
0 0
0
0
0
0 0
0
0
0
Location
Y30
A
ENT
0
F
B
A
5
1
D
A
3
0
LDIF
DL260 Range
Constant
X17
X16
X15
K8
ON
OFF
ON
15 14 13 12 11 10 9
8
7 6 5
0 0
0
0
0
0
0 0
0
0
0
1 0
Constant
Y37
Y36
Y35
ON
OFF
ON
K8
I
ENT
0
8
I
ENT
8
X aaa
K bbb
bbb
1–32
X14
X13
X12
X11
X10
ON
OFF
ON
OFF
ON
4 3
2
1
0
1
1
0
1 0
1
Y34
Y33
Y32
Y31
Y30
ON
OFF
ON
OFF
ON

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?

Table of Contents

Save PDF