Timer Area - Omron CJ - 09-2009 Operation Manual

Programmable controllers
Table of Contents

Advertisement

Timer Area

Examples

9-13 Timer Area

In this example, a TR bit is used when two outputs have been directly con-
nected to a branch point.
In this example, a TR bit is used when an output is connected to a branch
point without a separate execution condition.
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.
The 4,096 timer numbers (T0000 to T4095) are shared by the HUNDRED-MS
TIMER (TIM/TIMX(550)), TEN-MS TIMER (TIMH(015)/TIMHX(551)), ONE-
MS TIMER (TMHH(540)/TMHHX(552)), TENTH-MS TIMER (TIMU(541)/
TIMUX(556)) (see note), HUNDREDTH-MS TIMER (TMUH(544)/
TMUHX(557)) (see note), ACCUMULATIVE TIMER (TTIM(087)/TTIMX(555)),
TIMER WAIT (TIMW(813)/TIMWX(816)), and HIGH-SPEED TIMER WAIT
(TMHW(815)/TMHWX(817)) instructions. Timer Completion Flags and
present values (PVs) for these instructions are accessed with the timer num-
bers. (The TIML(542), TIMLX(553), MTIM(543), and MTIMX(554) instructions
do not use timer numbers.)
Note CJ1-H-R CPU Units only.
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
Section 9-13
Instruction
Operand
000000
LD
OR
000001
OUT
TR 0
AND
000002
000003
OUT
LD
TR 0
AND
000004
OUT
000005
Operand
Instruction
LD
000000
OUT
TR 0
AND
000001
OUT
000002
TR 0
LD
000003
OUT
Instruction
Operand
000000
LD
000001
OUT
000002
OUT
Instruction
Operand
000000
LD
000001
OUT
000002
AND
000003
OUT
423

Advertisement

Table of Contents
loading

Table of Contents