Omron C60K Video Game Controller User Manual


 
83
5-11-1 TIMER – TIM
N: TC number
# (00 through 47)
Ladder Symbol
Definer Values
SV: Set value (word, BCD)
IR, HR, #
Operand Data Areas
TIM N
SV
SV may be between 000.0 and 999.9 seconds. The decimal point of SV is
not input.
Each TC number can be used as the definer in only one timer or counter in-
struction.
TC 00 through TC 47 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 remain
ON until TIM is reset (i.e., until its execution condition 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, SR area clock pulse bits can be
counted to produce timers using CNT. Refer to
5-11-4 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.
Limitations
Description
Precautions
Flags
Timer and Counter Instructions Section 5-11