Automationdirect.com DirectLOGIC DL205 Series User Manual page 256

Table of Contents

Advertisement

Load Immediate (LDI)
The Load Immediate instruction loads a 16-bit V-memory
230
value into the accumulator. The valid address range includes all
240
input point addresses on the local base. The value reflects the
current status of the input points at the time the instruction is
250-1
executed. This instruction may be used instead of the LDIF
260
instruction which requires you to specify the number of input points.
Inputs V-memory
In the following example, when C0 is on, the binary pattern of X0–X17 will be loaded into
the accumulator using the Load Immediate instruction. The Out Immediate instruction
could be used to copy the 16 bits in the accumulator to output points, such as Y40–Y57. This
technique is useful to quickly copy an input pattern to output points (without waiting for a
full CPU scan to occur).
DS
Used
HPP Used
DirectSOFT
C0
LDI
V40400
Load the inputs from X0 to
X17 into the accumulator,
immediately
OUTI
V40502
Output the value in the
accumulator to output points
Y40 to Y57
Handheld Programmer Keystrokes
Chapter 5: Standard RLL Instructions - Immediate
Operand Data Type
Location
V40400
Unused accumulator bits
are set to zero
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
0
0
0 0
Location
V40502
$
C
SHFT
STR
2
L
D
I
SHFT
ANDST
3
8
GX
I
SHFT
OUT
8
V
X17
X16
X15
X14
X13
X12
ON
OFF
ON
ON
OFF
ON
15 14 13 12 11 10 9
0
0
0
0 0
0
0
0
0 0
0
1
Y57
Y56
Y55
Y54
Y53
Y52
ON
OFF
ON
ON
OFF
ON
A
ENT
0
E
A
E
4
0
4
E
A
F
NEXT
4
0
5
DL205 User Manual, 4th Edition, Rev. B
LDI
V aaa
DL260 Range
aaaaa
40400–40477
X11
X10
X7
X6
X5
X4
X3
X2
OFF
OFF
ON
OFF
ON
ON
OFF
ON
8
7 6 5
4 3
0
1
1 0
1
0
0
1 0
1
1
0
Y51
Y50
Y47
Y46
Y45
Y44
Y43
Y42
OFF
OFF
ON
OFF
ON
ON
OFF
ON
A
A
ENT
0
0
A
C
ENT
0
2
1
2
3
4
5
6
7
8
9
X1
X0
OFF
ON
10
2
1
0
11
1 0
1
12
13
Y41
Y40
OFF
ON
14
A
B
C
D
5–39

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