DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-185
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Timed Interrupt Program Example
In the following example, we do some initialization on the first scan, using the first-scan contact
SP0. The interrupt feature is the HSIO Mode 40. Then we configure the HSIO timer as a 10
mS interrupt by writing K104 to the configuration register for X0 (V7634). See Appendix E,
Mode 40 Operation for more details.
When X4 turns on, the interrupt will be enabled. When X4 turns off, the interrupt will be
disabled. Every 10 mS the CPU will jump to the interrupt label INT O 0. The application
ladder logic in the interrupt routine will be performed. If X3 is not on, Y0–Y7 will be reset to
off and then the CPU will return to the main body of the program.
Direct SOFT32
INT
O0
X4
ENI
DISI
X4
END
Y5
SETI
X2
X3
RSTI
Y0
Y7
IRT
Handheld Programmer Keystrokes
LD
K40
SP0
Load the constant value
(K40) into the lower 16 bits
of the accumulator
OUT
V7633
Copy the value in the lower
16 bits of the accumulator to
V7633
STR
$
SHFT
ANDST
L
3
D
SHFT
0
A
OUT
GX
SHFT
AND
V
ENT
JMP
K
1
B
ENT
7
H
6
G
3
D
4
E
STR
$
SHFT
4
E
TMR
N
8
I
ENT
STRN
SP
SHFT
ENT
3
D
8
I
RST
S
8
I
8
I
ORN
R
MLR
T
STR
$
SHFT
8
I
2
C
ENT
SHFT
8
I
5
F
ENT
SHFT
8
I
ENT
SHFT
8
I
ENT
0
A
SHFT
4
E
TMR
N
3
D
ENT
SHFT
8
I
TMR
N
MLR
T
ENT
SHFT
ENT
0
A
1
B
ENT
ENT
ENT
4
E
4
E
7
H
3
D
SET
X
SET
X
STRN
SP
LD
K104
Load the constant value
(K10) into the lower 16 bits
of the accumulator
OUT
V7634
Copy the value in the lower
16 bits of the accumulator to
V7634
SHFT
ANDST
L
3
D
SHFT
0
A
OUT
GX
SHFT
AND
V
ENT
JMP
K
4
E
ENT
7
H
6
G
3
D
3
D
4
E
Direct
SOFT