Timers And Counters; Timer Area (T) - Omron CP1L Operation Manual

Sysmac cp series
Hide thumbs Also See for CP1L:
Table of Contents

Advertisement

Timers and Counters

4-9
Timers and Counters
4-9-1

Timer Area (T)

156
In this example, a TR bit is used when an output is connected to a branch
point without a separate execution condition.
0.00
Note A TR bit is not required when there are no execution conditions after the
branch point or there is an execution condition only in the last line of the
instruction block.
0.00
0.00
The 4,096 timer numbers (T0000 to T4095) are shared by the TIM,
TIMX(550), TIMH(015), TIMHX(551), TMHH(540), TIMHHX(552), TTIM(087),
TTIMX(555), TIMW(813), TIMWX(816), TMHW(815), and TIMHWX(817)
instructions. Timer Completion Flags and present values (PVs) for these
instructions are accessed with the timer numbers.
The TIML(542), TIMLX(553), MTIM(543), and MTIMX(554) instructions do not
use timer numbers.
When a timer number is used in an operand that requires bit data, the timer
number accesses the Completion Flag of the timer. When a timer number is
used in an operand that requires word data, the timer number accesses the
PV of the timer. Timer Completion Flags can be used as often as necessary
as normally open and normally closed conditions and the values of timer PVs
can be read as normal word data.
The refresh method for timer PVs can be set from the CX-Programmer to
either BCD or binary.
Note It is not recommended to use the same timer number in two timer instructions
because the timers will not operate correctly if they are timing simultaneously.
(If two or more timer instructions use the same timer number, an error will be
generated during the program check, but the timers will operate as long as the
instructions are not executed in the same cycle.)
0.01
0.02
TR0
0.03
0.01
0.02
0.01
0.02
0.03
Section 4-9
Operand
Instruction
LD
0.00
OUT
TR 0
AND
0.01
OUT
0.02
TR 0
LD
0.03
OUT
Instruction
Operand
0.00
LD
0.01
OUT
0.02
OUT
Instruction
Operand
0.00
LD
0.01
OUT
0.02
AND
0.03
OUT

Advertisement

Table of Contents
loading

Table of Contents