Mitsubishi Electric FX3G SERIES Programming Manual page 809

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
5. How to disable each interrupt input
When any among M8050 to M8055 is set to ON in a program, interrupts from the corresponding input number are
disabled.
(Refer to the previous page table for the correspondence.)
6. Cautions
1)
Do not use an input two or more times
Make sure that an input relay number used as an interrupt pointer is not used in high-speed counters, pulse catch
functions and applied instructions such as the SPD (FNC 56) speed detection instruction which use the same
input range.
2)
Automatic adjustment of the input filter
When an input interrupt pointer I 0
input filter for high-speed receiving.
Accordingly, it is not necessary to change the filter value using the REFF (FNC 51) instruction or special data
register D8020 (input filter adjustment).
The input filter of an input relay not being used as an input interrupt pointer operates at 10 ms (initial value).
3)
Pulse width of input interrupt
For executing input interrupt by an external signal, it is necessary to input the ON or OFF signal having the
duration shown in the table below or more.
PLC
FX
, FX
3U
FX
3G
When using the input filter at the filter value of 5 μs or when receiving a pulse whose response frequency is
*1.
50 k to 100 kHz using a high-speed counter, perform the following:
- Make sure that the wiring length is 5 m or less.
- Connect a bleeder resistor of 1.5 kΩ (1 W or more) to an input terminal, and make sure that the load
current of the open collector transistor output in the counterpart equipment is 20 mA or more including the
input current in the main unit.
4)
Using a pointer number two or more times
It is not possible to program an interrupt at the rising edge and an interrupt at the falling edge for an input such as
I001 or I000.
7. Program examples
1)
When using both an external input interrupt at the rising edge and the output refresh (REF instruction)
In the program example shown below, the output Y000 immediately turns ON when the rising edge of the external
input X000 is detected.
Step
0
Interrupt
pointer
M8000
I001
RUN
monitor
*2.
Make sure to specify a multiple of "8" for the number of inputs/outputs to be refreshed by the REF (FNC 50)
instruction.
If any value other than a multiple of "8" is specified, an operation error occurs and the REF (FNC 50) instruction
is not executed.
is specified, the input filter of the input relay is automatically changed to the
Input number
X000 to X005
3UC
X000,X001,X003,X004
X002,X005
When the rising edge
of X000 is detected
SET
FNC 50
Y000
REF
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
Input filter value when "0" is set
*1
5μs
10μs
50μs
Interrupts are enabled by the EI instruction.
FNC 04
The main program is described.
EI
The main program is finished by the FEND
FNC 06
instruction.
FEND
When an interrupt routine is executed by turning
Y000
ON of X000, Y000 is set to ON unconditionally.
The outputs Y000 to Y007 are overwritten with
*2
K8
the latest information by the output refresh
instruction.
If the output refresh instruction is not provided,
FNC 03
Y000 turns ON after the END instruction after the
IRET
program execution returned to the main routine.
If "SET Y000" is changed to "RST Y000", Y000 is
END
immediately set to OFF by turning ON of X000.
31
32
33
34
35
36
37
38
A
B
807

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents