DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-35
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 for X10 –X17 is loaded into
the accumulator using the Load Immediate Formatted instruction. The binary pattern in the
accumulator is written to Y30–Y37 using the Out Immediate Formatted instruction. This
technique is useful to quickly copy an input pattern to outputs (without waiting for the CPU
scan).
bbbK
Y
aaa
OUTIF
LDIF X10
K8
K8X10
00000000101101010000000000000000
15 14 13 12 11 10 98765 4 321031 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1631 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
K8Y30
X10
X11X12X13X14X15X16X17
ONOFFONOFFONONOFFON
Y30Y31Y32Y33Y34Y35Y36Y37
ONOFFONOFFONONOFFON
K8
Load the value of 8
consecutive locations into the
accumulator, starting with X10.
OUTIF
Y30
Copy the value in the lower
8 bits of the accumulator to
Y30-Y37
Unused accumulator bits
are set to zero
Location
Constant
Acc.
Location
Constant
C0
DirectSOFT 5
OUT
GX
Handheld Programmer Keystrokes
STR
$
0
A
ENT
5
F
3
D
0
A
3
D
ANDST
L
8
I
ENT
ENT
NEXT NEXT NEXT NEXT
SHFT
5
F
1
B
0
A
8
I
SHFT
8
I
8
I
Operand Data Type DL06 Range
aaa
Outputs Y 0-777
Constant K 1-32
DS Used
HPP Used
DirectSOFT
Out Immediate Formatted (OUTIF)
The Out Immediate Formatted instruction outputs a
1–32 bit binary value from the accumulator to specified
output points at the time the instruction is executed.
Accumulator bits that are not used by the instruction
are set to zero.