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

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
pointer
I001
Interrupt
pointer
I100
4. Number and operation of (six) interrupt pointers
I
0
0: Interrupt at falling edge, 1: Interrupt at rising edge
0 to 5 according to the inputs X000 to X005
Input number
X000
X001
X002
X003
X004
X005
*1.
Cleared when the PLC mode is changed from RUN to STOP.
806
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
Interrupt at rising edge
I001
I101
I201
I301
I401
I501
36 Interrupt Function and Pulse Catch Function
36.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.
Pointer number
Interrupt at falling edge
I000
I100
I200
I300
I400
I500
Interrupt disable command
*1
M8050
*1
M8051
*1
M8052
*1
M8053
*1
M8054
*1
M8055

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents