Mitsubishi Electronics FX3U Garage Door Opener User Manual


 
807
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
31
FNC277-FNC279
Data
Transfer 3
32
FNC280-FNC289
High-Speed
Processing 2
33
FNC290-FNC299
Extension File
Register Control
34
FNC300-FNC305
FX
3U
-CF-ADP
35
SFC•STL
Programming
36
Interrupt
Function
37
Special Device
38
Error Code
A
Version Up
Information
B
Execution Times
36.3 Input Interrupt (Interrupt Triggered by External Signal)
[Without Delay Function]
36.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)
4. Number and operation of (six) interrupt pointers
*1. Cleared when the PLC mode is changed from RUN to STOP.
Input number
Pointer number
Interrupt disable command
Interrupt at rising edge Interrupt at falling edge
X000 I001 I000
M8050
*1
X001 I101 I100
M8051
*1
X002 I201 I200
M8052
*1
X003 I301 I300
M8053
*1
X004 I401 I400
M8054
*1
X005 I501 I500
M8055
*1
Interrupt routine [1]
(interrupt program)
Interrupts are
enabled
FNC 04
EI
FNC 06
FEND
FNC 03
IRET
I001
Interrupt
pointer
When the rising edge of X000 is detected
FNC 03
IRET
Step
0
End of main
program
Main
program
Interrupt return
I100
Interrupt
pointer
When the falling edge of X001 is detected
END
Interrupt routine [2]
(interrupt program)
Interrupt return
Main program
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.
FEND instruction finishes the main program.
Make sure to describe an interrupt routine after
FEND instruction.
When X000 turns ON, its rising edge is detected,
and the interrupt routine [1] is executed.
IRET instruction returns the program execution to
the main program.
When X001 turns OFF, its falling edge is detected,
and the interrupt routine [2] is executed.
IRET instruction returns the program execution to
the main program.
"END" indicates the end of program.
I
0
0: Interrupt at falling edge, 1: Interrupt at rising edge
0 to 5 according to the inputs X000 to X005