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

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

Advertisement

Timer and Counter Instructions
Flags
Example
00000
TIM 000
7-15-3 VERY HIGH-SPEED TIMER: TMHH(––)
Limitations
Description
In the CPM2A/CPM2C PCs, TC 004 through TC 007 should not be used in
TIMH(15) if they are required for TMHH(––). Refer to 7-15-3 VERY HIGH-
SPEED TIMER – TMHH(––) for details.
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 TIM000 to TIM003 are used, howev-
er, there may be a delay before the flag turns ON.
If the timer's set value is set to 0001, the Completion Flag will turn ON some-
where between 0 and 0.01 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 execution condition turns ON.
Always consider the accuracy of the timer (0 to –0.01 s) in application programs.
Indirectly addressed DM word is non-existent. (Content of *DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
The following example shows a timer set with a constant. CIO 01600 will be
turned ON after CIO 00000 goes ON and stays ON for at least 1.5 seconds.
When 00000 goes OFF, the timer will be reset and CIO 01600 will be turned OFF.
Ladder Symbol
TMHH(––)
N
SV
000
This instruction is supported by the CPM2A/CPM2C only.
Each TC number can be used as the definer in only one TIMER or COUNTER
instruction. TC 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).
Set the third operand to 000. (This operand is ignored.)
TMHH(––) is a decrementing ON-delay timer that times in 1-ms units. The timer
set value can be 0 to 9.999 s and the timer has a accuracy of 1 ms.
A very high-speed timer is activated when its execution condition goes ON and is
reset (to the SV) when the execution condition goes OFF. Once activated,
TMHH(––) times down from the SV in units of 1 ms.
The timer will time out when the PV reaches #0000 (0 ms). 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
Address Instruction
TIMH(15)
000
00000
1.5 s
#0150
00001
01600
00002
00003
Operand Data Areas
TC number (see Limitations)
IR, SR, AR, DM, HR, LR, #
Section
7-15
Operands
LD
00000
TIMH(15)
#
LD
TIM
OUT
01600
N
SV: Set value
000
Set to 000.
000
0150
000
391

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents