EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - Page 130

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 Interrupts
10-6
CP1E CPU Unit Software User’s Manual(W480)
Execute MSKS Instruction in a Cyclic Task
Execute the MSKS instruction from the ladder program in a cyclic task to use input interrupts.
MSKS has the following two functions and two of this instruction are normally used in combination.
(1)Specifying whether to detect ON or OFF signals.
(2)Enabling input interrupts.
The MSKS instruction must be executed only once to make the settings, so in general execute
MSKS in just one cycle using the upwardly differentiated variation of the instruction.
The first MSKS instruction can be omitted. If it is omitted, an interrupt will be created when the input
turns ON by default.
Specifying MSKS Operands (N and C)
(1)Specifying to Detect ON or OFF Input Signals
* Interrupt input 6 and 7 are not supported by E10 CPU Units.
(2)Enabling the Input Interrupt
* Interrupt input 6 and 7 are not supported by E10 CPU Units.
Terminal
Corresponding
bit address
PLC Setup on
Built-in Input
Tab Page
Interrupt
task number
Operand N Operand C
Interrupt
identifier
Specifying up/down
differentiation of an
interrupt input
02 on CIO 0
terminal block
CIO 0.02 Interrupt input
IN2
2 112 #0000:
Up-differentiation
#0001:
Down-differentiation
03 on CIO 0
terminal block
CIO 0.03 Interrupt input
IN3
3113
04 on CIO 0
terminal block
CIO 0.04 Interrupt input
IN4
4114
05 on CIO 0
terminal block
CIO 0.05 Interrupt input
IN5
5115
06 on CIO 0
terminal block
CIO 0.06 Interrupt input
IN6*
6116
07 on CIO 0
terminal block
CIO 0.07 Interrupt input
IN7*
7117
Terminal
Corresponding
bit address
PLC Setup on
Built-in Input
Tab Page
Interrupt
task number
Operand N Operand C
Interrupt
identifier
Enable/Disable
02 on CIO 0
terminal block
CIO 0.02 Interrupt input
IN2
2 102 #0000:
Enable interrupt
#0001:
Disable interrupt
03 on CIO 0
terminal block
CIO 0.03 Interrupt input
IN3
3 103
04 on CIO 0
terminal block
CIO 0.04 Interrupt input
IN4
4 104
05 on CIO 0
terminal block
CIO 0.05 Interrupt input
IN5
5 105
06 on CIO 0
terminal block
CIO 0.06 Interrupt input
IN6*
6 106
07 on CIO 0
terminal block
CIO 0.07 Interrupt input
IN7*
7 107
@MSKS
N
C
C
@MSKS
N
Execution condition
(1)Specifies creating an interrupt when
the input turns OFF or when it turns
ON.
(2)Enables input interrupts.

Table of Contents

Related product manuals