EasyManuals Logo

Omron CPM1 Programming Manual

Omron CPM1
541 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
Page #95 background imageLoading...
Page #95 background image
74
CPM1/CPM1A Interrupt Functions Section 1-6
table shows where the counters` set values and present values –1 are stored.
Inputs for DM 6628 have been set to 0001.
1-6-3 Masking All Interrupts
All interrupts, including input interrupts, interval timer interrupts, and high-
speed counter interrupts, can be masked and unmasked as a group by means
of the INT(89) instruction. The mask is in addition to any masks on the individ-
ual types of interrupts. Furthermore, clearing the masks for all interrupts does
not clear the masks on the individual types of interrupts, but restores them to
the masked conditions that existed before INT(89) was executed to mask
them as a group.
Do not use INT(89) to mask interrupts unless it is necessary to temporarily
mask all interrupts and always use INT(89) instructions in pairs to do so, using
the first INT(89) instruction to mask and the second one to unmask interrupts.
INT(89) cannot be used to mask and unmask all interrupts from within inter-
rupt routines.
Masking Interrupts Use the INT(89) instruction to disable all interrupts.
If an interrupt is generated while interrupts are masked, interrupt processing
will not be executed but the interrupt will be recorded for the input, interval
timer, and high-speed counter interrupts. The interrupts will then be serviced
as soon as interrupts are unmasked.
Interrupt Word containing
SV
Word containing
PV–1
Input 00003 (input interrupt 0) SR 240 SR 244
Input 00004 (input interrupt 1) SR 241 SR 245
Input 00005 (input interrupt 2) SR 242 SR 246
Input 00006 (input interrupt 3) SR 243 SR 247
RET(93)
MOV(21)
#000A
240
SBN(92) 000
25315 First Cycle Flag
ON for 1 cycle
Interrupt program
Sets the SV to 10. (0000 to FFFF)
Word containing the SV (SR 240)
@INT(89)
003
000
#000E
Refresh counter SVs.
Refreshes the SV of 00003 (interrupt input 0) only.
(@)INT(89)
100
000
000

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
ModelCPM1
ManufacturerOmron
Instruction SetBasic and advanced instructions
Power Supply100 to 240 VAC or 24 VDC
CommunicationRS-232C
I/O Points10, 20, 30, or 40 points depending on the model
TimersYes, multiple timers available
CountersYes, multiple counters available
Input Voltage24V DC
Output TypeRelay or transistor
Number of I/O Points10, 20, 30, 40
Communication PortsRS-232C (optional)
Operating Temperature0°C to 55°C
Storage Temperature-20°C
Humidity10% to 90% (non-condensing)
DimensionsVaries depending on the model
WeightVaries depending on the model
Program Memory2048 steps (2K steps)

Related product manuals