![Omron CJ1G-CPUxx Instructions Manual Download Page 226](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491226.webp)
205
Timer and Counter Instructions
Section 3-6
Description
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).
Flags
Precautions
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.
3-6
Timer and Counter Instructions
This section describes instructions used to define and handle timers and
counters.
Refresh Methods for Timer/Counter PV
■
Overview
The timer and counter instructions supported by the CS1 and CJ1 CPU Units
all use BCD data and all set values for them are input using BCD. The refresh
method can be set to either BCD or binary for other CPU Units in the CS and
CJ Series (i.e., the CS1-H, CJ1-H, CJ1M, and CS1D CPU Units; see notes 1
and 2).
Using binary data instead of BCD allows the SV range for timers and counter
to be increased from 0 to 9999 to 0 to 65535. It also enables using binary data
calculated with other instructions directly as a timer/counter SV. The refresh
method is valid even when setting an SV indirectly (i.e., using the contents of
Repetitions
forced to end.
N repetitions
Condition a ON
Processed as NOP(000).
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
OFF
Negative Flag
N
OFF
Instruction
Mnemonic
Function code
Page
TIMER
TIM/TIMX
---/551
HIGH-SPEED TIMER
TIMH/TIMHX
015/551
ONE-MS TIMER
TMHH/TIMHHX
540/552
ACCUMULATIVE TIMER
TTIM/TTIMX
087/555
LONG TIMER
TIML/TIMLX
542/553
MULTI-OUTPUT TIMER
MTIM/MTIMX
543/554
COUNTER
CNT/CNTX
---/546
REVERSIBLE COUNTER
CNTR/CNTRX
012/548
RESET TIMER/COUNTER
CNR/CNRX
545/547
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...