Keyence Visual KV Series Bedienungsanleitung Seite 296

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 392
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 295
6.1 Interrupt Instructions
KV-300
KV-10/80
3-272
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
INT: Interrupt
RETI: Return Interrupt
Key Operations
Operand
0000 to 0003
CTC0 to CTC3
Example 1
Input pulse width shorter than one scan time (eg. one-shot circuit)
Program (a) can be used when input 0000 remains ON longer than the input time constant (8
to 12 ms).
Program (b) is used when input 0000 remains ON shorter than one scan time.
Routine program coding
:
nnnn
INT
FNC
RES
0
ANL
2
:
RETI
ORL
3
FNC
LDB
4
ENT
R-SRCH
RES
0
LDB
4
ENT
R-SRCH
Operand
ENT
R-SRCH
ENT
R-SRCH
FNC
FNC
ANL
2
ORL
3
0000
(a)
0000
(Input remains ON for 1 ms or more.)
2008
EI
2813
SET
0500
0500
#00020
T000
T000
0500
0500
#00020
T000
T000
1000
END
INT
0000
RETI
ENDH
1000
2002
(Input remains ON for 10 µs or more.)
(b)
0000
Input for
routine
program
Input for
interrupt
routine
Executes interrupt between INT and RETI
instructions at rising edge of input specified
by operand. When 0003 is specified by
operand, the rising or falling edge can be
selected for execution of interrupts.
Represents termination of interrupts.
Line No. Instruction Operand
0000 LD 0000
0001 OR 0500
0002 TMR 000 #00020
0003 ANB T000
0004 OUT 0500
INT / RETI
KVNKA Chap 06.p65 08.3.11, 0:10 PM272
Seitenansicht 295
1 2 ... 291 292 293 294 295 296 297 298 299 300 301 ... 391 392

Kommentare zu diesen Handbüchern

Keine Kommentare