EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Timer and Counter Instructions

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
168
Timer and Counter Instructions Section 3-5
3-5 Timer and Counter Instructions
This section describes instructions used to define and handle timers and
counters.
Refresh Methods for Timer/Counter PV
Overview
The refresh method for present values timer and counter instructions can be
set to either BCD or binary for CP-series CPU Units.
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
memory word). (That is, the contents of the addressed word is taken as either
BCD or binary data according to the refresh method that is set.)
Refer to the CP Series CP1H Operation Manual for details on refresh meth-
ods.
Applicable Instructions
Instruction Mnemonic Function code Page
TIMER TIM/TIMX ---/550 170
HIGH-SPEED TIMER TIMH/TIMHX 015/551 174
ONE-MS TIMER TMHH/TIMHHX 540/552 178
ACCUMULATIVE TIMER TTIM/TTIMX 087/555 181
LONG TIMER TIML/TIMLX 542/553 184
MULTI-OUTPUT TIMER MTIM/MTIMX 543/554 187
COUNTER CNT/CNTX ---/546 193
REVERSIBLE COUNTER CNTR/CNTRX 012/548 196
RESET TIMER/COUNTER CNR/CNRX 545/547 200
Classification Instruction Mnemonic
BCD Binary
Timer/counter
instructions
TIMER TIM TIMX(550)
HIGH-SPEED TIMER TIMH(015) TIMHX(551)
ONE-MS TIMER TMHH(540) TMHHX(552)
ACCUMULATIVE TIMER TTIM(087) TTIMX(555)
LONG TIMER TIML(542) TIMLX(553)
MULTI-OUTPUT TIMER MTIM(543) MTIMX(554)
COUNTER CNT CNTX(546)
REVERSIBLE COUNTER CNTR(012) CNTRX(548)
RESET TIMER/COUNTER CNR(545) CNRX(547)
Block programming
instructions
TIMER WAIT TIMW(813) TIMWX(816)
HIGH-SPEED TIMER WAIT TMHW(815) TMHWX(817)
COUNTER WAIT CNTW(814) CNTWX(818)

Table of Contents

Related product manuals