688
11
11 Interrupt11.2 External Interrupt
●
Reuse of pointer numbers
• Rising pulse interrupt and falling pulse interrupt (for example, I001 and I000) sharing one input number cannot be
written simultaneously.
11.2.3 Application
●
Program used for counting rising pulses corresponding to the external input interrupt X02
① Establishing an X02 rising pulse interrupt subprogram I201
② Content of the interrupt subprogram
D0 increases by 1 each time an X02 rising pulse interrupt is generated.
③ Enabling an interrupt (EI) in the main program (MAIN)