Specifications

Some applications will require a different type of action at each preset. It is possible for the
interrupt routine to distinguish one preset event from another, by turning on a unique output
for each equal relay contact SPxxx. We can determine the source of the interrupt by
examining the equal relay contacts individually, as well as X2. The X2 contact will be on
(inside the interrupt routine only) if the interrupt was caused by the external reset, X2 input.
DL05 Micro PLC User Manual, 6th Edition, Rev. C
E–15
Appendix E: High-speed Input and Pulse Output Features
1
2
3
D
E
6
7
8
9
10
11
1
1
14
A
B
C
D
UDC
CT76
Kxxxxxxxx
SP1
SP1
SP1
END
END coil marks the end of the main program.
INT O0
CT76 is the HSIO counter. The first rung’s SP1
always enables the counter. The dummy input in
the middle is off (unused in this example).
IRT
Return from the interrupt service routine.
Y0
SP540
Inside the interrupt service routine, we turn OFF the
lead screw motor immediately.
The INT label marks the beginning of the interrupt
service routine program.
RSTI
X3
RST
Input X3 energizes when the groove has finished
cutting. So, we retract the cutter head.
Y1
X4
SET
Turn lead screw on again, after cutter head has
retracted.
Y0
LDD
K4850
Load the preset C value into the accumulator.
OUTD
V2324
Output the accumulator contents to the memory
l
ocation for preset 3.
LDD
Kffff
Load the constant Kffff into the accumulator. This
v
alue represents the end of the preset list.
OUTD
V2326
Output the accumulator contents to the memory
location for preset 4 (end of preset marker).
SP541
SP542
These special “equal” relays turn on individually as
the corresponding preset is reached. In this
application, each results in the cutting of a groove
(Y1), so they are logically ORed together.
Preset 1
Preset 2
Preset 3
SET
Y1
SP0
X2
SET
Input X2 will be energized inside the interrupt
routine if X2 external interrupt was the source.
The third rung’s Reset input is normally off,
because we will use the external reset. You can
optionally reset the counter value on each powerup
using the SP0 contact.
Y2