339
5
5 High-speed Input 5.1.2 Input Interrupts
5.1.2 Input Interrupts
Input interrupts include interrupts on the rising/falling edge and counter interrupts. Interrupt numbers (Ixxx)
are shown below:
Interrupt on the Rising/Falling Edge
Counter Interrupt
H3U Standard Model
Port Rising Edge Falling Edge
I010
I020
I030
I040
I050
I060
I070
I080
X00 I001 I000
X01 I101 I100
X02 I201 I200
X03 I301 I300
X04 I401 I400
X05 I501 I500
X06 I561 I560
X07 I571 I570
1
)
Use of interrupts:
Interrupts should be used with interrupt subprograms. Choose interrupt events in the attribute of an interrupt
subprogram, that is, set the interrupt number. In case of "Enable Interrupts", when the set interrupt events occur,
the PLC system suspends normal execution of the main program (remember the current pause point), starts
the execution of the interrupt subprogram from the entry address specied by I, returns to the pause point after
completion, and continues to execute the main program. As the PLC system gives a high priority of response to
interrupt signals, interrupts are independent of the scan duration.
2
)
Interrupts on the rising/falling edge:
X0 to X7 of the PLC can be separately set to interrupt input ports, each with interrupts on the rising/falling
edge indicated by the interrupt number. For example, "I100" indicates the interrupt on the falling edge of X1
port, and "I101" indicates the interrupt on the rising edge of X1 port.
Counter interrupts: Based on the comparison result of the built-in high-speed counter, the PLC system