Srm1(-V2) Interrupt Functions; Types Of Interrupts - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

SRM1(-V2) Interrupt Functions

2-3-6 Precautions on Programming Interrupts
2-4

SRM1(-V2) Interrupt Functions

2-4-1 Types of Interrupts

2-4-2 Interval Timer Interrupts
Operation
94
The following diagram shows the example ladder program. DM 6642 must be
set to 01j0, where j is the reset method which can be set to 0 or 1.
25315 (ON for first cycle)
If words in memory are being manipulated both in the main program and in an
interrupt program, the interrupts must be masked when the words are being ma-
nipulated in the main program. Refer to 2-1-4 Precautions on Programming In-
terrupts for details.
This section explains the settings and methods for using the SRM1(-V2) inter-
rupt functions.
The SRM1(-V2) has only one type of interrupt processing, as outlined below.
Interval Timer Interrupts
Interrupt processing is executed by an interval timer with a precision of 0.1 ms.
The SRM1(-V2) is equipped with one interval timer. When the interval timer
times out, the main program is interrupted and the interrupt program is executed
immediately, regardless of the point in the cycle.
There are two modes for interval timer operation, the One-shot Mode, in which
only one interrupt will be executed when time expires, and the Scheduled Inter-
rupt Mode in which the interrupt is repeated at a fixed interval.
The interval timer's set value can be set anywhere from 0.5 to 319,968 ms, in
units of 0.1 ms.
Use the following instruction to activate and control the interval timer.
Starting Up in One-Shot Mode
Use the STIM(69) instruction to start the interval timer in the one-shot mode.
(@)STIM(69)
C
C
C
CTBL(63)
000
Registers
001
range comparison mode
DM 0000
First word of the comparison table
SBN(92)
040
Interrupt program 40
RET(93)
SBN(92)
041
Interrupt program 41
RET(93)
C
: Interval timer, one-shot mode (000)
1
1
C
: Timer set value (first word address)
2
2
C
: Subroutine no. (4 digits BCD): 0000 to 0049
3
3
Section
2-4
comparison
table,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents