209
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Timer and Counter Instructions
3
Timer and Counter Instructions
Timer Instructions
Refresh Methods for Timer/Counter PV
z Overview
There are two PV refresh methods for instructions related to timer/counters, “BCD” and “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.)
z Applicable Instructions
z 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.
Method Description Setting range Set value
BCD Sets the timer set value in BCD. 0~9.999 #0000~9999
Binary Sets the timer set value in BINARY. 0~65.535 &0~65535 or #0000~FFFF
Classification Instruction
Mnemonic
BCD Binary
Timer/counter
instructions
HUNDRED-MS TIMER TIM TIMX(550)
TEN-MS TIMER TIMH(015) TIMHX(551)
ONE-MS TIMER TMHH(540) TMHHX(552)
TENTH-MS TIMER (See note.) TIMU(541) TIMUX(556)
HUNDREDTH-MS TIMER (See note.) TMUH(544) TMUHX(557)
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
HUNDRED-MS TIMER WAIT TIMW(813) TIMWX(816)
TEN-MS TIMER WAIT TMHW(815) TMHWX(817)
COUNTER WAIT CNTW(814) CNTWX(818)