EasyManua.ls Logo

Omron CPM1

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
Loading...
76
CPM1/CPM1A Interrupt Functions Section 1-6
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
2
is entered as a constant:
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 timers elapsed time.
C
2
: Number of times the decrementing counter has ben decremented (4 digits
BCD)
C
2
+ 1: Decrementing counter time interval (4 digits BCD; unit: 0.1 ms)
C
3
: Elapsed time from previous decrement (4 digits BCD; unit: 0.1 ms)
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)} × 0.1 ms
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
C
2
C
3
C
1
: Read elapsed time (006)
C
2
: Leading word of parameter 1
C
3
: Parameter 2
(@)STIM(69)
C
1
000
000
C
1
: Stop interval timer (010)

Table of Contents

Other manuals for Omron CPM1

Related product manuals