Timer - Tim - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Timer and Counter Instructions
5-12-1
TIMER – TIM
Limitations
Description
Execution condition
Completion Flag
Precautions
Flags
Examples
Example 1:
Basic Application
118
Ladder Symbol
TIM N
SV
SV is between 000.0 and 999.9. The decimal point is not entered.
Each TC number can be used as the definer in only one timer or counter in-
struction.
TC 000 through TC 047 should not be used in TIM if they are required for
TIMH(15). Refer to 5-11-2 HIGH-SPEED TIMER – TIMH(15) for details.
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.
ON
OFF
ON
OFF
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, SR area clock pulse bits can be
counted to produce timers using CNT. Refer to 5-11-3 COUNTER – CNT for
details.
Program execution will continue even if a non-BCD SV is used, but timing will
not be accurate.
ER:
SV is not in BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
All of the following examples use OUT in diagrams that would generally be
used to control output bits in the IR area. There is no reason, however, why
these diagrams cannot be modified to control execution of other instructions.
The following example shows two timers, one set with a constant and one set
via input word 005. Here, 00200 will be turned ON after 00000 goes ON and
Section 5-12
Definer Values
N: TC number
# (000 through 511)
Operand Data Areas
SV: Set value (word, BCD)
IR, AR, DM, HR, LR, #
SV

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents