Omron CQM1H - PROGRAM Programming Manual page 58

Programmable controllers; inner boards
Table of Contents

Advertisement

Interrupt Functions
Starting Up in Scheduled Interrupt Mode
Use the STIM(69) instruction to start the interval timer in the scheduled inter-
rupt mode.
(@)STIM(69)
C
1
C
2
C
3
Word
C
Decrementing counter set value (4-digit BCD): 0000 to 9999
2
C
+ 1
Decrementing time interval (4-digit BCD; unit: 0.1 ms): 0005 to 0320
2
(0.5 ms to 32 ms)
Note If a constant is used for C
at 0010 or 1 ms, so the set value in C
The meanings of the settings are the same as for the one-shot mode, but in
the scheduled interrupt mode the timer PV will be reset to the set value and
decrementing will begin again after the subroutine has been called. In the
scheduled interrupt mode, interrupts will continue to be repeated at fixed inter-
vals 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
Word
C
Number of times the counter has been decremented (4-digit BCD)
2
C
+ 1
Decrementing counter time interval (4-digit BCD; unit: 0.1 ms)
2
C
Time elapsed since last decrement (4-digit BCD; unit: 0.1 ms)
3
Note This value will be less than the decrementing counter time interval.
The time from when the interval timer is started until the execution of this
instruction is calculated as follows:
{(Contents of word C2) x (Contents of word C2 + 1) + (Contents of word C3)}
x 0.1 ms
If the specified interval timer is stopped, then "0000" will be stored.
Stopping Timers
Use the STIM(69) instruction to stop the interval timer.
(@)STIM(69)
C
1
000
000
The specified interval timer will stop.
C
: Interval timer No. + 3
1
Interval timer 0:
003
Interval timer 1:
004
Interval timer 2:
005
C
: Timer set value (first word address or constant)
2
C
: Subroutine No. (4-digit BCD): 0000 to 0255
3
Function
, the decrementing time interval is fixed
2
2
C
: Interval timer No. + 6
1
Interval timer 0:
006
Interval timer 1:
007
Interval timer 2:
008
C
: First word address of parameter 1
2
C
: Parameter 2
3
Function
C
: Interval timer No. + 10
1
Interval timer 0:
010
Interval timer 1:
011
Interval timer 2:
012
Section 1-4
is expressed in ms.
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents