149
Precautions SV must be between 000.0 and 999.9 and must be BCD. The decimal point is not
entered.
Timer numbers are as shown in the following table. The “high-speed” timer num-
bers should not be used for other timer instructions if they are required for
TIMH(015). Refer to
5-13-2 HIGH-SPEED TIMER: TIMH(015)
for details.
PC Instructions Timer numbers
CV500 or
CVM1-CPU11/21-EV2
High-speed timers T0000 through T0255
The PVs of accumulative timers in interlocked program sections are maintained
when the execution condition for IL(002) is OFF. Unlike timers and high-speed
timers, accumulative timers in jumped program sections do not continue count-
ing, but maintain the PV.
Power interruptions will reset timers unless the IOM Hold Bit and PC Setup are
set to retain timer PVs during power interruptions. If a timer that is not reset un-
der these conditions is desired, Auxiliary Area clock pulse bits can be counted to
produce accumulative timers using CNT. Refer to
5-13-6 COUNTER: CNT
for
details.
Accumulative timers will not restart after timing out unless the PV is changed to a
value below the SV, the reset input is turned ON, or CNR(236) is executed to
reset the timer. Accumulative timers are not reset in action programs when the
step goes inactive.
A delay of one cycle is sometimes required for a Completion Flag to be turned
ON after the timer times out.
The PV and Completion Flag for TTIM(120) are refreshed when the instruction is
executed. TTIM(120) will thus not execute correctly if the cycle time is 100 ms or
larger.
Note: Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
SV is not BCD.
Example When CIO 000000 is ON in the following example, the PV will be incremented by
1 every 0.1 s and the Completion Flag (T128) will turn ON when the PV reaches
0100. If CIO 000001 turns ON, the PV will be reset to 0000 and the Completion
Flag will be turned OFF. The PV will be maintained whenever CIO 000000 is
OFF.
Address Instruction
00000 LD 000000
00001 LD 000001
00002 TTIM(120) 0128
#0100
0000
00
(120)
TIM 0128 #0100
0000
01
I
R
0000
00
Operands
10.0S
The following figure illustrates the relationship between the execution conditions
for an accumulative timer with a set value of 10 s, its PV, and the Completion
Flag.
Timer and Counter Instructions Section 5-13