Input Interrupt (Interrupt Triggered By External Signal) [Without Delay Function] - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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)
Step
0
Interrupt
When the rising edge of X000 is detected
pointer
I001
Interrupt
When the falling edge of X001 is detected
pointer
I100
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
FNC 04
Interrupts are
EI
enabled
Main
program
End of main
FNC 06
program
FEND
Interrupt routine [1]
(interrupt program)
FNC 03
Interrupt return
IRET
Interrupt routine [2]
(interrupt program)
FNC 03
Interrupt return
IRET
END
36 Interrupt Function and Pulse Catch Function
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.
31
32
33
34
35
36
37
38
A
B
855

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents