Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 411

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Timer and Counter Instructions
Limitations
Description
Precautions
Flags
Each timer number can be used as the definer in only one TIMER or COUNTER
instruction. Timer numbers run from TIM000 through TIM255. (You must enter
"TIM" along with the actual timer number when using the Programming Console.
The instruction will not work if only the number is entered.)
SV is BCD between 0000 and 9999 (0 to 9,999 s when C=000 and 0 to 99,990 s
when C=001).
C must be 000 (1-s timing units) or 001 (10-s timing units).
TIML(––) is a decrementing ON-delay timer that can time in 1-s units or 10-s
units. The timer set value can be 0 to 9,999 s (accuracy 0 to 1 s) when 1-s units
are used (C=000) or 0.10 to 99,990 s (accuracy 0 to 10 s) when 10-s units are
used (C=001).
A long timer is activated when its execution condition goes ON and is reset (to
the SV) when the execution condition goes OFF. Once activated, TIML(––)
times down from the SV in units of 1 s or 10 s (depending upon the value of C).
TIML(––) accuracy is 0 to 1 s with 1-s units or 0 to 10 s with 10-s units.
The timer will time out when the PV reaches #0000 (0 s). Once the timer has
timed out, the PV and Completion Flag status will be maintained. The timer can
be restarted by temporarily turning its execution condition from ON to OFF or
changing its PV to a value other than #0000 with an instruction such as
MOV(21).
Long timers in jumped program sections will not be reset when the execution
condition for JMP(04) is OFF, but the timer will stop timing and the PV will be
maintained. Timing will resume when the execution condition for JMP(04) goes
ON again. This can greatly reduce the accuracy of long timers in jumped pro-
gram sections.
TIML(––) may not be accurate when the cycle time exceeds 1 s (C=000) or 10 s
(C=001).
Long timers in interlocked program sections are reset (to the SV) when the
execution condition for IL(02) is OFF.
The timing units in C can be changed while the long timer is timing. Changing the
timing units during operation reduces the timer's accuracy by up to 10 s.
You must enter "TIM" along with the actual timer number when using TIML(––).
The instruction will not work if only the number is entered.
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 1 s or between 0
and 10 s after the timer'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 execu-
tion condition turns ON.
Always consider the accuracy of the timer (0 to –1 s or 0 to –10 s) in application
programs.
ER:
N is not a valid timer number.
C is not 000 or 001.
Section
7-15
393

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents