Omron CP1E-E@@D@-@ Computer Hardware User Manual


 
2-73
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Timer and Counter Instructions
2
TMHH/TMHHX
The setting range for the set value (SV) is 0 to 9.999 s for TMHH(540) and 0 to 65.535 for
TMHHX(552).
The timer accuracy is -0.01 to 0 s.
Hint
The timer PV and timeup used in TMHH/TMHHX instructions are refreshed at the timing below.
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.
The Completion Flag is updated only when TMHH(540)/TMHHX(552) is executed. The Completion
Flag can thus be delayed by up to one cycle time from the actual set value.
The present value of a timer will not be refreshed even if the task is on standby.
Timers will be reset or paused in the following cases. (When a timer is reset, its PV is reset to the SV
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 TMHH(540)/TMHHX(552) is executed.
The present value of all operating timers will not be refreshed even if the timer is in a program section
that is jumped using JMP(004), CJP(510), JME(005).
When TMHH(540)/TMHHX(552) is in a program section between IL(002) and ILC(003) and the pro-
gram section is interlocked, the PV will be reset to the SV and the Completion Flag will be turned
OFF.
When a TMHH(540)/TMHHX(552) timer is forced set, its Completion Flag will be turned ON and its
PV will be set to 0. When a TMHH(540)/TMHHX(552) timer is forced reset, its Completion Flag will be
turned OFF and its PV will be reset to the SV.
If online editing is used to overwrite a timer instruction, always reset the Completion Flag. The timer
will not operate properly unless the Completion Flag is reset.
Refresh timing Description
When each instruction is executed The PV is updated every time that each instruction is executed.
The timeup flag is ON when the PV is 0 and OFF otherwise.
Condition PV Completion Flag
Operating mode changed from RUN or MONITOR mode
to PROGRAM mode or vice versa.
*1
0OFF
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))
Reset to SV. OFF
Operation in jumped program section
(JMP(004)-JME(005))
Retains previous
status.
Retains previous
status.