Download CP1E CPU Unit Software

Transcript
10 Interrupts
10-2-2 Flow of Operation
1
PLC Setup
2
Interrupt task
Create
ladder
program
Execute MSKS
instruction in a
cyclic task
• Set IN2 to IN7 for interrupt inputs on the Built-in Input
Tab Page of the PLC Setup using the CX-Programmer.
• Terminals 02 to 07 on the CIO 0 terminal block can be
used for interrupt inputs. Bits CIO 0.02 to CIO 0.07 correspond to terminals 02 to 07.
Write the program in the interrupt task. Interrupt tasks 2 to
7 correspond to interrupt inputs 2 to 7.
• 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 117 in the MSKS instruction.
• Enable input interrupts in the MSKS instruction. Set N to
102 to 107 in the MSKS instruction.
Precautions 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.
PLC Setup
Click the Built-in Input Tab and select Interrupt in the interrupt intput settings.
Select Interrupt
10-4
CP1E CPU Unit Software User’s Manual(W480)