Timer and Counter Instructions
Applicable Program Areas
Description
Flags
Precautions
3-6
Timer and Counter Instructions
242
Block program areas
Not allowed
Program BREAK(514) between FOR(512) and NEXT(513) to cancel the
FOR-NEXT loop when BREAK(514) is executed. When BREAK(514) is exe-
cuted, the rest of the instructions up to NEXT(513) are processed as
NOP(000).
Name
Error Flag
Equals Flag
Negative Flag
A BREAK(514) instruction cancels only one loop, so several BREAK(514)
instructions (the number of levels nested) are required to escape from nested
loops.
BREAK(514) can be used only in a FOR-NEXT loop.
This section describes instructions used to define and handle timers and
counters.
Instruction
HUNDRED-MS TIMER
TEN-MS TIMER
ONE-MS TIMER
TENTH-MS TIMER (See note.)
HUNDREDTH-MS TIMER (See note.) TMUH/TMUHX
ACCUMULATIVE TIMER
LONG TIMER
MULTI-OUTPUT TIMER
COUNTER
REVERSIBLE COUNTER
RESET TIMER/COUNTER
Note TIMU(541), TIIMUX(556), TMUH(544), and TMUHX(557) are supported by
CJ1-H-R CPU Units only.
Step program areas
OK
N repetitions
Label
ER
OFF
=
OFF
N
OFF
Mnemonic
TIM/TIMX
TIMH/TIMHX
TMHH/TIMHHX 540/552
TIMU/TIMUX
TTIM/TTIMX
TIML/TIMLX
MTIM/MTIMX
CNT/CNTX
CNTR/CNTRX
CNR/CNRX
Section 3-6
Subroutines
Interrupt tasks
OK
OK
Condition a ON
Repetitions
forced to end.
Processed as NOP(000).
Operation
Function code
---/551
015/551
541/556
544/557
087/555
542/553
543/554
---/546
012/548
545/547
Page
245
249
253
256
259
262
266
269
275
278
282
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers