EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - Application Example

Omron CP1E CPU UNIT SOFTWARE
450 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
10-7
10 Interrupts
CP1E CPU Unit Software User’s Manual(W480)
10-2 Input Interrupts
10
10-2-3 Application Example
Example
In this example, bent parts are detected in a moving workpiece, such as an IC component. When the
sensor input (terminal 02 on terminal block 0CH = CIO 0.02) changes from OFF to ON, the interrupt
task is executed.
10-2-3 Application Example
MSKS
112
#0000
END
END
01 03 0705 09 11
00 02 04 06 08 10
MSKS
102
#0000
Cyclic task
(1)Specifying Detecting ON or OFF Input Signals
For interrupt input IN2: Specify 112.
Specifies an interrupt when the input turns ON.
(2)Enabling Input Interrupt
For interrupt input IN2: Specify 102.
Enables Input interrupt.
The specified input interrupt (here, IN2) is
enabled when the MSKS instruction is executed.
Interrupt
Interrupt task 2
Built-in input terminal
CIO 0.02 turns ON
CIO 0
Sensor input (interrupt)
Workpiece
Sensor input 1
Sensor input 2
Sensor input 3
Sensor input (interrupt input 2)
CIO 0.02
Sensor input
Sensor input
Sensor input
CIO 0.00
CIO 0.01
CIO 0.03
Reset input
CIO 0.04
OK output
CIO 100.00
NG output 1
CIO 100.01
NG output 2
CIO 100.02
NG output 3
CIO 100.03
NG output 4
CIO 100.04
Interrupt task
execution
Interrupt task
execution
Interrupt task
execution

Table of Contents

Related product manuals