DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-37
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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).
V aaa
LDI
C0
OUTI
V40400
1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 1
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.
V40502
X10
X11
X12
X13
X14
X15
X16
X17
OFF
OFF
ON
OFF
ON
ON
OFF
ON
Y50
Y51
Y52
Y53
Y54
Y55
Y56
Y57
OFF
OFF
ON
OFF
ON
ON
OFF
ON
DirectSOFT32
X0
X1
X2
X3
X4
X5
X6
X7
ON
OFF
ON
OFF
ON
ON
OFF
ON
Y40
Y41
Y42
Y43
Y44
Y45
Y46
Y47
ON
OFF
ON
OFF
ON
ON
OFF
ON
LDI
V40400
V40502
Load the inputs from X0 to
X17 into the accumulator,
immediately
Output the value in the
accumulator to output points
Y40 to Y57
Location
Unused accumulator bits
are set to zero
Location
OUT
GX
Handheld Programmer Keystrokes
STR
$
0
A
ENT
3
D
ANDST
L
8
I
ENT
ENT
NEXT
NEXT
NEXT
NEXT
SHFT
4
E
0
A
SHFT
8
I
4
E
0
A
0
A
NEXT
4
E
0
A
5
F
0
A
2
C
Operand Data Type
DL06 Range
aaa
Inputs
V
40400-40437
DS
Used
HPP Used
Direct
SOFT
Load Immediate (LDI)
The Load Immediate instruction loads a 16-bit V-memory value
into the accumulator. The valid address range includes all input
point addresses on the local base. The value reflects the current
status of the input points at the time the instruction is executed.
This instruction may be used instead of the LDIF instruction,
which requires you to specify the number of input points.