Timer And Counter Instructions - Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual

Table of Contents

Advertisement

Timer and Counter Instructions

Timer Instructions
Refresh Methods for Timer/Counter PV
Overview
There are two PV refresh methods for instructions related to timer/counters, "BCD" and "BINARY".
Method
BCD
Sets the timer set value in BCD.
Binary
Sets the timer set value in BINARY.
The PLC Setup for all of the timer/counter-related instructions. The refresh method is valid also 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.)
Applicable Instructions
Classification
Timer/counter
HUNDRED-MS TIMER
instructions
TEN-MS TIMER
ONE-MS TIMER
TENTH-MS TIMER (See note.)
HUNDREDTH-MS TIMER (See note.)
ACCUMULATIVE TIMER
LONG TIMER
MULTI-OUTPUT TIMER
COUNTER
REVERSIBLE COUNTER
RESET TIMER/COUNTER
Block programming
HUNDRED-MS TIMER WAIT
instructions
TEN-MS TIMER WAIT
COUNTER WAIT
Setting method for PV refresh
• In the CS1-H, CS1D, CJ1-H, and CS1M CPU Units, either BCD or binary PV refreshing must be set
in the PLC Setup for the entire product.
• In the CJ2 CPU Units, BCD and binary PV refreshing can both be used in the same project. The
setting of the PV refresh method in the PLC Setup will be ignored.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Description
Instruction
Setting range
0~9.999
#0000~9999
0~65.535
&0~65535 or #0000~FFFF
Mnemonic
BCD
TIM
TIMH(015)
TMHH(540)
TIMU(541)
TMUH(544)
TTIM(087)
TIML(542)
MTIM(543)
CNT
CNTR(012)
CNR(545)
TIMW(813)
TMHW(815)
CNTW(814)
3. Instructions
Set value
3
Binary
TIMX(550)
TIMHX(551)
TMHHX(552)
TIMUX(556)
TMUHX(557)
TTIMX(555)
TIMLX(553)
MTIMX(554)
CNTX(546)
CNTRX(548)
CNRX(547)
TIMWX(816)
TMHWX(817)
CNTWX(818)
205

Advertisement

Table of Contents
loading

Table of Contents