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

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
35.3
Input Interrupt (Interrupt Triggered by External Signal)
[Without Delay Function]

35.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
pointer
I001
Interrupt
pointer
I100
786
FNC 04
Interrupts are
EI
enabled
Main
program
End of main
FNC 06
program
FEND
When the rising edge of X000 is detected
Interrupt routine [1]
(interrupt program)
FNC 03
Interrupt return
IRET
When the falling edge of X001 is detected
Interrupt routine [2]
(interrupt program)
FNC 03
Interrupt return
IRET
END
35 Interrupt Function and Pulse Catch Function
35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay 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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents