801
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.1 Outline
31
FNC276
-F
NC2
79
Da
ta
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
Register
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
p
Inform
ati
on
B
Ex
ecuti
on
T
imes
36. Interrupt Function and Pulse Catch Function
This chapter explains the built-in interrupt function and pulse catch function in FX PLCs.
36.1
Outline
This section explains the function to immediately execute an interrupt program (interrupt routine) without affecting the
operation cycle of the sequence program (main) while using a interrupt function as a trigger. The delay by operation
cycle and machine operation affected by uneven time intervals in normal sequence program process can be improved.
1. Input interrupt function (interrupt of external signal input (X))
*1
By the input signal from an input (X000 to X005), the main sequence program is paused, and an interrupt routine
program is executed with priority.
The input interrupt execution timing can be specified on the rising edge or falling edge of the signal by the pointer
number.
*1.
This function is supported only in DC input type.
→
For details, refer to Section 36.3.
2. Input interrupt delay function (interrupt of external signal input (X))
*2
By the input signal from an input (X000 to X005), the main sequence program is paused, and an interrupt routine
program is executed with priority after the delay time (set in units of 1 ms).
The input interrupt execution timing can be specified on the rising edge or falling edge of the signal by the pointer
number.
*2.
This function is supported only in DC input type.
→
For details, refer to Section 36.4.
3. Timer interrupt function (timer interrupt activated in a constant cycle)
The main sequence program is paused in a constant cycle of 10 to 99 ms, and an interrupt routine program is
executed with priority.
→
For details, refer to Section 36.5.
4. High-speed counter interrupt function (interrupt function given at counting up)
*3
When the current value of a high-speed counter reaches a specified value, the main sequence program is paused and
an interrupt routine program is executed with priority.
*3.
This function is supported only in DC input type.
→
For details, refer to Section 36.6.
5. Pulse catch function
*4
When the input signal from an input (X000 to X007) turns from OFF to ON, a special auxiliary relay M8170 to M8177 is
set in the interrupt processing. By a relay M8170 to M8177 in a normal sequence program, a signal that remains ON
longer than the receivable range with regular input processing can be easily received.
When processing such a signal that turns ON and OFF several times in one operation cycle, however, use the input
interrupt function.
*4.
This function is supported only in DC input type.
→
For details, refer to Section 36.7.
6. Pulse width/Pulse period measurement function
When the input signal from an input (X000, X001, X003 or X004) turns from OFF to ON, the value of the 1/6
μ
s ring
counter at the input signal rising edge is stored in special data registers.
When the input signal turns OFF from ON, the value of the 1/6
μ
s ring counter at the input signal falling edge is stored
in special data registers. At the same time, the difference in the counter value between the rising edge and the falling
edge is divided by "60", and the pulse width in units of 10
μ
s is stored in special data registers.
In the pulse period measurement mode, when the input signal turns from OFF to ON, the difference between the
previous rising of the input signal and the current rising of the input signal is divided by "60", and then the pulse period
in units of 10
μ
s is stored in special data registers.
→
For details, refer to Section 36.8.
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......