Interrupt Functions
PC Setup
Operation
32
When using interval timer interrupts, make the following settings in the PC
Setup in PROGRAM mode before executing the program.
Input Refresh Word Settings (DM 6636 to DM 6638)
Make these settings when it is necessary to refresh inputs.
DM 6636: Timer 0
DM 6637: Timer 1
DM 6638: Timer 2
Number of words (2-digit BCD) 00 to 16
Beginning word (2-digit BCD) 00 to 15
Default: No input refresh
High-speed Counter Settings (DM 6642)
When using interval timer 2, check before beginning operation to be sure that
the high-speed counter (PC Setup: DM 6642) is set to the default setting
(0000: High-speed counter not used).
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
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
Each time that the interval specified in word C
counter will decrement the present value by one. When the PV reaches 0, the
designated subroutine will be called just once and the timer will stop.
When a word address is used for C
instruction is executed until time elapses is calculated as follows:
(Contents of word C
) x (Contents of word C
2
319,968 ms)
15
Bit
DM 6636 to DM 6638
(IR 000 to IR 015)
C
: Interval timer No.
1
Interval timer 0:
000
Interval timer 1:
001
Interval timer 2:
002
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
is expressed in ms.
2
+ 1 elapses, the decrementing
2
, the time from when the STIM(69)
2
+ 1) x 0.1 ms = (0.5 to
2
Section 1-4
0
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?