Kv -300 – KEYENCE Visual KV Series User Manual
Page 299

6.1 Interrupt Instructions
KV
-300
KV-10/80
3-275
1
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
INT / RETI
■ Initial setting
•
When the operation is started, EI instruction enables interrupts.
•
Turning ON special utility relay 2203 allows CTC2 to reset the CTH1 current
value to 0.
•
The CTH1 current value is reset to 0.
•
The CTC2 preset value is set to 5000.
•
Turning ON special utility relay 2813 changes the input time constant to 10 µs.
•
Pulses input to 0005 are counted using CTH1.
•
When input 0000 turns ON, output 0501 is reset.
•
INT CTC2 is used to execute the interrupt. (Interrupt routine is executed when
the CTH1 current value and CTC2 preset value are equal.)
•
Immediate output to 0501 is performed.
Note 1: When the interrupt is executed, the contact of CTC2 is automatically reset.
Note 2: The operand used for INT instruction is not allowed for use with other INT
instructions.
KVNKA Chap 06.p65
08.3.11, 0:10 PM
275