10 Interrupts
10-4
CP2E CPU Unit Software User’s Manual(W614)
Precautions for Correct UsePrecautions for Correct Use
A built-in input cannot be used as a normal input, high-speed counter input, or quick-response
input if it is being used as an interrupt input. Refer to 8-3-3 Allocating Built-in Input Terminals for
details.
Click the Built-in Input Tab and select Interrupt in the interrupt intput settings.
10-2-2 Flow of Operation
1
• Set IN2 to IN9 for interrupt inputs on the Built-in Input
Tab Page of the PLC Setup using the CX-Programmer.
• Terminals 02 to 09 on the CIO 0 terminal block can be
used for interrupt inputs. Bits CIO 0.02 to CIO 0.09 cor-
respond to terminals 02 to 09.
2
Write the program in the interrupt task. Interrupt tasks 2 to
9 correspond to interrupt inputs 2 to 9.
• Specify whether the interrupt is executed when the input
turns ON or when it turns OFF in the MSKS instruction.
Set N to 112 to 119 in the MSKS instruction.
• Enable input interrupts in the MSKS instruction. Set N to
102 to 109 in the MSKS instruction.
PLC Setup
PLC Setup
Create
ladder
program
Execute MSKS
instruction in a
cyclic task
Interrupt task
Select Interrupt