5: SPECIAL F UNCTIONS5-34 FC5A MICROS MART USER’ S MANUAL FC9Y-B1268Interrupt InputAll MicroSmart CPU modules have an interrupt input function. When a quick response to an external input is required,such as positioning control, the interrupt input can call a subroutine to execute an interrupt program.Four inputs I2 through I5 can be designated to execute interrupt at a rising and/or falling edge of input pulses. When aninterrupt is initiated by inputs I2 through I5, program execution immediately jumps to a predetermined label numberstored in special data registers D8032 through D8035, respectively. The Function Area Settings dialog box is used to des-ignate inputs I2 through I5 as an interrupt input, normal input, high-speed counter input, or catch input.Normal input signals to input terminals are read when the END instruction is executed at the end of a scan.Since these settings relate to the user program, the user program must be downloaded to the MicroSmart after changingany of these settings.Interrupt Input Terminals, Special Data Registers, and Special Internal Relays for Interrupt InputsGroup Interrupt Input No. Interrupt Input Jump Destination Label No. Interrupt Input StatusGroup 1 I2 D8032 M8140Group 2 I3 D8033 M8141Group 3 I4 D8034 M8142Group 4 I5 D8035 M8143Programming WindLDR1. From the WindLDR menu bar, select Configuration > Input Configuration.The Function Area Settings dialog box for Input Configuration appears.Interrupt Input Rising/FallingEdge SelectionInterrupt at Rising EdgeInterrupt occurs when the inter-rupt input turns on.Interrupt at Falling EdgeInterrupt occurs when the inter-rupt input turns off.Interrupt at Both EdgesInterrupt occurs when the inter-rupt input turns on or off.2. Select Interrupt Input in the Groups 1 through 4 pull-down list boxes. the Interrupt Input dialog box appears.3. Select an interrupt edge in the pull-down list for each group.Disable and Enable InterruptsThe interrupt inputs I2 through I5 and timer interrupt are normally enabled while the CPU is running, and can also beindividually disabled using the DI instruction or enabled using the EI instruction. When interrupt inputs I2 through I5 areenabled, special internal relay M8140 through M8143 are turned on, respectively. See page 11-7 (Advanced Vol.).Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com