4 applications of interrupt programs, 1 interrupt with a signal converter, Visual kv series – KEYENCE Visual KV Series User Manual
Page 222

3.4 Applications of Interrupt Programs
3-198
Visual KV
Series
3
Chapter 3 Interrupts
0001
0002
0003
0004
0005
0006
0007
0008
2008
EI
2002
2002
T0000
0500
HSP
0000
END
INT
0002
RETI
ENDH
#00010
T000
0500
RES
0500
SET
3.4
Applications of Interrupt Programs
This section presents program examples of interrupt processing.
3.4.1
Interrupt with a Signal Converter
■ Outline
Converts the short pulses which are input by interrupt processing into pulses of a
constant width and then outputs them.
■ Ladder diagram
•
Converts the short pulses input from input relay 0000 into pulses of 1-second ON
width and then outputs them from output relay 0500.
•
Output relay 0500 turns ON for 1 second from the rising edge of input relay 0000.
OFF
ON
OFF
ON
ON
ON
ON
1 sec.
Scan
Input 0000
Output 0500
1 sec.
1 sec.
When input 0000 turns
ON, output 0500 turns ON.
When power is turned on, an EI
instruction enables interrupts.
Sets the input time constant of
input 0000 to 10 µs.
Turns ON output 0500 for 1
second and then turns it OFF.
KVNKA Chap 03.p65
08.3.11, 0:05 PM
198