7-15
Section
Timer and Counter Instructions
391
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.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
Example
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.
00000
TIM 000
01600
1.5 s
TIMH(15)
Address
Instruction
Operands
00000
LD
00000
00001
TIMH(15)
000
#
0150
00002
LD
TIM
000
00003
OUT
01600
000
#0150
7-15-3 VERY HIGH-SPEED TIMER: TMHH(––)
N
TC number (see
Limitations
)
Ladder Symbol
Operand Data Areas
000
Set to 000.
SV
: Set value
IR, SR, AR, DM, HR, LR, #
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
Limitations
Description
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...