Executing MSKS(690) in a Cyclic Task
Execute the MSKS(690) instruction from the ladder program in a cyclic task to use interrupt inputs.
MSKS(690) has the following two functions and two of this instruction are normally used in combina-
tion.
(1) Specifying whether to detect ON or OFF signals.
(2) Enabling interrupts.
• Enabling interrupt inputs in Direct Mode
• Enabling the interrupt input counter in Increment or Decrement Counting Mode
Execution condition
The MSKS(690) instruction must be executed only once to make the settings, so in general execute
MSKS(690) in just one cycle using the upwardly differentiated variation of the instruction.
The first MSKS(690) instruction can be omitted. If it is omitted, the edge setting that is set in the PLC
Setup will be used.
Specifying MSKS(690) Operands (N and C)
(1) Specifying Whether to Detect ON or OFF Signals
Pulse I/O
Terminal
Module
symbol
No.
0 (on the
IN00
right)
IN01
IN02
IN03
1 (on the
IN10
left)
IN11
IN12
IN13
CJ2M CPU Unit Pulse I/O Module User's Manual
(1) Specifying whether to detect ON or
@MSKS
OFF signals.
N
C
(2) Enables the interrupt input.
@MSKS
N
C
Correspond-
ing bit
Function
address
CIO 2960.00
Interrupt input 0
CIO 2960.01
Interrupt input 1
CIO 2960.02
Interrupt input 2
CIO 2960.03
Interrupt input 3
CIO 2962.00
Interrupt input 4
CIO 2962.01
Interrupt input 5
CIO 2962.02
Interrupt input 6
CIO 2962.03
Interrupt input 7
Operand N
Interrupt
Interrupt identi-
task number
fier
140
110
141
111
142
112
143
113
144
114
145
115
146
116
147
117
6 Interrupts
6
Operand C
Specifying to
detect ON or
OFF
#0000: Detect
ON
#0001: Detect
OFF
6-11
Need help?
Do you have a question about the SYSMAC CJ Series and is the answer not in the manual?
Questions and answers