8 Interrupt Function and Pulse Catch Function
8.3 Input Interrupt (Interrupt Triggered by External Signal)
811
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
8.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay
Function]
8.3.1 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
1. Outline
An interrupt routine is executed by the input signal from an input X000 to X005.
2. Application
Because the external input signal can be processed without being affected by the operation cycle of the PLC,
this interrupt is suitable to high speed control and receiving of short pulses.
3. Basic program (programming procedure)
Interrupts are enabled.
Interrupt subroutine 2)
(Interrupt program)
FEND
EN ENO
EI
EN ENO
Main program
Interrupt routine 1)
(Interrupt program)
When the rising edge of X000 is detected
When the falling edge of X001 is detected
Interrupt inputs are accepted after EI instruction.
It is not necessary to program DI (disable interrupt)
instruction if there is no zone where input interrupts
should be disabled.
Main program
FEND instruction finishes the main program.
[Interrupt program]
(Event: I001)
When X000 turns ON, its rising edge is detected,
and the interrupt routine 1) is executed.
The program execution returns to the main program
after executing routine 1).
When X001 turns OFF, its falling edge is detected,
and the interrupt routine 2) is executed.
The program execution returns to the main program
after executing routine 2).
[Main program]
[Interrupt program]
(Event: I001)
[Interrupt program]
(Event: I100)