7-15
Section
Timer and Counter Instructions
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.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
7-15-2 HIGH-SPEED TIMER – TIMH(15)
Ladder Symbol
Definer Values
SV
: Set value (word, BCD)
IR, SR, AR, DM, HR, LR, #
Operand Data Areas
TIMH(15) N
SV
N
TC number
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
10 ms
Refreshed when TIMH(015)
is executed
CPM2A/CPM2C
TC 000 through TC 003
TC 004 through TC 255
CPM1, CPM1A, and
SRM1(-V2)
TC 000 through TC 003
TC 004 through TC 127
Limitations
Description
Precautions