Application Example - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

• Example
Cyclic task
MSKS
112
#0000
MSKS
102
#0000
END

10-2-3 Application 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.
Sensor input 3
Sensor input 1
Sensor input 2
CP1E CPU Unit Software User's Manual(W480)
(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
Sensor input (interrupt input 2)
Sensor input (interrupt)
CIO 0.02
Workpiece
Sensor input
CIO 0.00
Sensor input
CIO 0.01
Sensor input
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
Built-in input terminal
00 02 04 06 08 10
CIO 0
END
Interrupt task
execution
10 Interrupts
CIO 0.02 turns ON
01 03
05
07
09 11
Interrupt task
Interrupt task
execution
execution
10
10-7

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF