Mitsubishi Electric FX3G SERIES Programming Manual page 810

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
2)
When using both an input interrupt and the input refresh (REF instruction)
In the program example shown below, an interrupt is processed using the latest input information.
Step
0
Interrupt
pointer
I101
*1.
Make sure to specify a multiple of "8" as the number of inputs/outputs to be refreshed by REF (FNC 50)
instruction.
If any value other than a multiple of "8" is specified, an operation error occurs and REF (FNC 50) instruction is
not executed.
3)
When counting the number of times of input generation (in the same way as 1-phase high-speed counter)
In the program example shown below, external inputs are counted.
Step
0
Interrupt
pointer
I201
808
When the rising edge
of X001 is detected
M8000
FNC 50
REF
RUN monitor
X010
X010
When the rising edge of X002 is detected
M8000
FNC 24
RUN monitor
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
Interrupts are enabled by EI instruction.
FNC 04
The main program is described.
EI
The main program is finished by FEND
FNC 06
instruction.
FEND
When an interrupt routine is executed by turning
X010
K8
*1
X001 to ON, the input refresh is executed
unconditionally, and the ON/OFF information of
X010 to X017 at the current time is received.
SET
Y001
Y001 is set to ON or OFF according to the ON/
RST
Y001
OFF status of X010.
FNC 03
IRET
END
Interrupts are enabled by EI instruction.
FNC 04
The main program is described.
EI
FNC 06
The main program is finished by FEND
FEND
instruction.
When X002 turns ON, "1" is added to the value
D0
of D0.
INC
INC instruction executes increment in every
operation cycle, but the interrupt routine is
FNC 03
executed only once by an input signal.
IRET
Accordingly, it is not necessary to use INCP
(pulse operation type) instruction.
END

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents