Timer and Counter Instructions
Flags
7-15-2 HIGH-SPEED TIMER – TIMH(15)
Limitations
Description
Precautions
390
The Completion Flag may be turned ON one cycle late when reading its status
from the user program.
Always reset the timer after changing between TIM and TIMH(015) in online
editing. The timer will not work properly if it is not reset.
If the timer's set value is set to 0000, the Completion Flag will turn ON as soon as
the timer's execution condition turns ON. If the timer's set value is set to 0001,
the Completion Flag will turn ON somewhere between 0 and 0.1 s after the tim-
er's execution condition turns ON (i.e., the timer accuracy will actually determine
the time), and may turn ON as soon as the timer's execution condition turns ON.
Always consider the accuracy of the timer (0 to –0.1 s) in application programs.
Indirectly addressed DM word is non-existent. (Content of *DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
Ladder Symbol
TIMH(15) N
SV is between 00.00 and 99.99. (Although 00.00 and 00.01 may be set, 00.00
will disable the timer, i.e., turn ON the Completion Flag immediately, and 00.01 is
not reliably scanned.) The decimal point is not entered.
Each TC number can be used as the definer in only one TIMER or COUNTER
instruction. TC numbers run from 000 through 255 in the CPM2A/CPM2C PCs
and from 000 through 127 in the CPM1/CPM1A/SRM1(-V2) PCs.
TIMH(15) operates in the same way as TIM except that TIMH measures in units
of 0.01 second. Refer to 7-15-1 TIMER – TIM for operational details.
Timers in interlocked program sections are reset when the execution condition
for IL(02) is OFF. Power interruptions also reset timers. If a timer that is not reset
under these conditions is desired, SR area clock pulse bits can be counted to
produce timers using CNT. Refer to 7-15-5 COUNTER – CNT for details.
Timers in jumped program sections will not be reset when the execution condi-
tion for JMP(04) is OFF. The timer will stop timing if jump number 00 is used, but
will continue timing if other jump numbers are used.
Always reset the timer when changing between TIM and TIMH(15) in online edit-
ing. Also, when changing a TIMH(15) instruction with interrupt refreshing, do so
only in PROGRAM mode.
Use timer numbers 000 to 003 for TIMH(15). High-speed timers with timer num-
bers TC 004 through TC 127 (TC 016 through TC 255 in the CPM2A/CPM2C)
may not be accurate when the cycle time exceeds 10 ms.
PC
Interrupt refreshing every
CPM2A/CPM2C
TC 000 through TC 003
CPM1, CPM1A, and
TC 000 through TC 003
SRM1(-V2)
SV
Operand Data Areas
SV: Set value (word, BCD)
IR, SR, AR, DM, HR, LR, #
Refreshed when TIMH(015)
10 ms
TC 004 through TC 255
TC 004 through TC 127
Section
7-15
Definer Values
N
TC number
is executed
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?
Questions and answers