
83
3-7-14
TIMER - TIM
N: TC number
# (00 through 15)
Ladder Symbol
Definer Values
SV: Set value (BCD)
SP10: #
SP16, SP20: I/O, work, DR, LR, #
Operand Data Areas
TIM N
SV
SV is between 000.0 and 999.9 seconds. The decimal point is not entered.
Each TC number can be used as the definer in only one timer or counter in-
struction.
TC 11 through TC 15 should not be used in TIM if they are required for the
specific instruction to which they are assigned. Refer to the table on page 82.
A timer is activated when its execution condition goes ON and is reset (to
SV) when the execution condition goes OFF. Once activated, TIM measures
in units of 0.1 second from the SV. TIM accuracy is +0.0/–0.1 second.
If the execution condition remains ON long enough for TIM to time down to
zero, the Completion Flag for the TC number used will turn ON and will re-
main ON until TIM is reset (i.e., until its execution condition is goes OFF).
The following figure illustrates the relationship between the execution condi-
tion for TIM and the Completion Flag assigned to it.
Execution condition
Completion Flag
ON
OFF
ON
OFF
SV
SV
Timers in interlocked program sections are reset when the execution condi-
tion for IL(02) is OFF. Power interruptions also reset timers. If a timer that is
not reset under these conditions is desired, dedicated clock pulse bits can be
counted to produce timers using CNT. Refer to 3-7-18 COUNTER - CNT for
details.
Flags
ER:
The Error Flag (0311) will be turned ON when the SV is set in a word
(SP16 and SP20 only) but the content of the indicated word is not
BCD. The instruction will be executed, but operation will not be reli-
able.
All of the following examples use OUT to control output bits. There is no rea-
son, however, why these diagrams cannot be modified to control execution of
other instructions.
The following example shows two timers. Here, 0100 will be turned ON after
bit 0000 goes ON and stays ON for at least 15 seconds. When bit 0000 goes
Limitations
Description
Precautions
Examples
Example 1:
Basic Application
Instruction Set
Section 3-7