10 Interrupts
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.
Execution condition
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
Terminal
02 on CIO 0
terminal block
03 on CIO 0
terminal block
04 on CIO 0
terminal block
05 on CIO 0
terminal block
06 on CIO 0
terminal block
07 on CIO 0
terminal block
* Interrupt input 6 and 7 are not supported by E10 CPU Units.
(2)Enabling the Input Interrupt
Terminal
02 on CIO 0
terminal block
03 on CIO 0
terminal block
04 on CIO 0
terminal block
05 on CIO 0
terminal block
06 on CIO 0
terminal block
07 on CIO 0
terminal block
* Interrupt input 6 and 7 are not supported by E10 CPU Units.
10-6
@MSKS
(1)Specifies creating an interrupt when
N
the input turns OFF or when it turns
C
ON.
(2)Enables input interrupts.
@MSKS
N
C
PLC Setup on
Corresponding
Built-in Input
bit address
Tab Page
CIO 0.02
Interrupt input
IN2
CIO 0.03
Interrupt input
IN3
CIO 0.04
Interrupt input
IN4
CIO 0.05
Interrupt input
IN5
CIO 0.06
Interrupt input
IN6*
CIO 0.07
Interrupt input
IN7*
PLC Setup on
Corresponding
Built-in Input
bit address
Tab Page
CIO 0.02
Interrupt input
IN2
CIO 0.03
Interrupt input
IN3
CIO 0.04
Interrupt input
IN4
CIO 0.05
Interrupt input
IN5
CIO 0.06
Interrupt input
IN6*
CIO 0.07
Interrupt input
IN7*
Operand N
Interrupt
Interrupt
task number
identifier
2
112
3
113
4
114
5
115
6
116
7
117
Operand N
Interrupt
Interrupt
task number
identifier
2
102
3
103
4
104
5
105
6
106
7
107
CP1E CPU Unit Software User's Manual(W480)
Operand C
Specifying up/down
differentiation of an
interrupt input
#0000:
Up-differentiation
#0001:
Down-differentiation
Operand C
Enable/Disable
#0000:
Enable interrupt
#0001:
Disable interrupt
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers