![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414054.webp)
2-1
Section
CPM2A/CPM2C Interrupt Functions
33
With a CPM2C, wire to the input terminals as shown in the following illustration.
00004
00003
Input terminals
Input connector
00004
00005
00003
00006
(See note 2.)
(Example for
Fujitsu-compatible
connector.)
Note
1. Refer to the operation manual for your CPU Unit for information on wiring.
2. Input terminal and pin numbers depend on the model. Refer to the
CPM2C
Operation Manual
(W356) for details.
The following table shows the settings in the PC Setup area related to interrupt
input usage.
Word
Bits
Function
Setting
DM 6628
00 to 03
Interrupt setting for
input 00003
0: Normal input
1: Interrupt input
1
04 to 07
Interrupt setting for
input 00004
1: Interrupt input
(interrupt input mode or
counter mode)
08 to 11
Interrupt setting for
input 00005*
counter mode)
2: Quick-response input
12 to 15
Interrupt setting for
input 00006*
Note
*Input points 00005 and 00006 do not exist in CPM2C CPU Units with only 10 I/O
points and in CPM2C-S CPU Units.
The settings will go into effect when the mode is changed (from PROGRAM to
MONITOR/RUN) or when the power supply is turned ON to the CPM2A/
CPM2C.
The following table shows the instruction operations related to interrupt input
control.
Instruction
Control
Operation
(@)INT(89)
Mask/unmask interrupt
inputs
Prohibits or permits specified interrupts.
Clear interrupt inputs
Clears the cause of a prohibited interrupt
input.
Read current mask
status
Reads the permitted/prohibited status of
an interrupt input.
Mask all interrupts
Prohibits all interrupts, including interrupt
inputs, interval timer interrupts, high-speed
counters, etc.
Unmask all interrupts
Permits all interrupts, including interrupt
inputs, interval timer interrupts, high-speed
counters, etc.
PC Setup
Ladder Diagram
Programming