Function hint, Precautions, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 111
2-75
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Tim
er and
Cou
nter
I
n
stru
ctio
ns
2
TTIM/TTIMX
Function
Hint
• Typical timers such as TIM/TIMX(550) are decrementing counters and the PV shows the time remain-
ing until the timer times out. The PV of TTIM(087)/TTIMX(555) shows how much time has elapsed,
so the PV can be used unchanged in many calculations and display outputs.
Precautions
• Timer numbers are shared with other timer instructions. If two timers share the same timer number,
but are not used simultaneously, a duplication error will be generated when the program is checked,
but the timers will operate normally. Timers which share the same timer number will not operate prop-
erly if they are used simultaneously.
• Timers will be reset or paused in the following cases. (When a TTIM(087)/TTIMX(555) timer is reset,
its PV is reset to 0 and its Completion Flag is turned OFF.)
*1
If the IOM Hold Bit (A500.12) has been turned ON, the status of timer Completion Flags and PVs will be maintained when
the operating mode is changed.
*2
The PV will be set to the SV when TTIM(087)/TTIMX(555) is executed.
• When TTIM(087)/TTIMX(555) is in a program section between IL(002) and ILC(003) and the program
section is interlocked, the PV will retain its previous value (it will not be reset). Be sure to take this fact
into account when TTIM(087)/TTIMX(555) is programmed between IL(002) and ILC(003).
• When an operating TTIM(087)/TTIMX(555) timer is in a program section between JMP(004) and
JME(005) and the program section is jumped, the PV will retain its previous value. Be sure to take
this fact into account when TTIM(087)/TTIMX(555) is programmed between JMP(004) and
JME(005).
• When the timer input is ON,
TTIM(087)/TTIMX(555) increments the PV.
When the timer input goes OFF, the timer
will stop incrementing the PV, but the PV will
retain its value. The PV will resume timing
when the timer input goes ON again. The
timer’s Completion Flag will be turned ON
when the PV reaches the SV.
• The status of the timer’s PV and Completion
Flag will be maintained after the timer times
out. There are three ways to restart the
timer: the timer’s PV can be changed to a
non-zero value (by MOV(021), for example),
the reset input can be turned ON, or
CNR(545)/CNRX(547) can be executed.
• The setting range for the set value (SV) is 0
to 999.9 s for TTIM(087) and 0 to 6,553.5 s
for TTIMX(555).
• The timer accuracy is 0 to 0.01 s.
Condition
PV
Completion Flag
Operating mode changed from RUN or MONITOR mode
to PROGRAM mode or vice versa.
*1
0
OFF
Power supply interrupted and reset
0
OFF
Execution of CNR(545)/CNRX(547), the RESET
TIMER/COUNTER instructions
*2
BCD: 9999
Binary: FFFF
OFF
Operation in interlocked program
section (IL(002)-ILC(003))
Retains previous
status.
Retains previous
status.
Operation in jumped program section
(JMP(004)-JME(005))
Retains previous
status.
Retains previous
status.
ON
OFF
0
ON
OFF
ON
OFF
Timer input
Timer PV
Reset input
Completion
Flag
SV
PV maintained.
Timing resumes.