Omron CPM1 Programming Manual page 97

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

CPM1/CPM1A Interrupt Functions
76
and decrementing will begin again after the subroutine has been called. In
the scheduled interrupt mode, interrupts will continue to be repeated at
fixed intervals until the operation is stopped.
2. When C
is entered as a constant:
2
The settings are the same as for the one-shot mode, but interrupts will con-
tinue to be repeated at fixed intervals until the operation is stopped.
Reading the Timer's Elapsed Time
Use the STIM(69) instruction to read the timer's elapsed time.
(@)STIM(69)
C
1
C
2
C
3
C
: Number of times the decrementing counter has ben decremented (4 digits
2
BCD)
C
+ 1: Decrementing counter time interval (4 digits BCD; unit: 0.1 ms)
2
C
: Elapsed time from previous decrement (4 digits BCD; unit: 0.1 ms)
3
The time from when the interval timer is started until the execution of this
instruction is calculated as follows:
{(Content of C2)
(Content of C2+1) + (Content of C3)}
If the specified interval timer is stopped, then "0000" will be stored.
Stopping the Timer
Use the STIM(69) instruction to stop the interval timer. The interval timer will
be stopped.
(@)STIM(69)
C
1
000
000
C
: Read elapsed time (006)
1
C
: Leading word of parameter 1
2
C
: Parameter 2
3
C
: Stop interval timer (010)
1
Section 1-6
0.1 ms

Advertisement

Table of Contents
loading

Table of Contents