217
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Timer and Counter Instructions
3
TIM/TIMX
TIM/TIMX
Applicable Program Areas
Operands
N: Timer Number
The timer number must be between 0000 and 4095 (decimal).
S: Set Value (100-ms units)
The set value must be between #0000 and 9999 (BCD).
z Operand Specifications
Flags
Note In CS1D CPU Units for Duplex Systems, CS1 CPU Units, and CJ1 CPU Units, these are turned OFF.
In CJ2, CS1-H, CJ1-H, CJ1M, and CS1D CPU Units, these Flags are left unchanged.
Instruction Mnemonic Variations
Function
code
Function
HUNDRED-MS TIMER TIM/TIMX --- 550
TIM or TIMX(550) operates a decrementing timer
with units of 0.1-s.
Symbol
TIM TIMX
BCD Binary
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK Not allowed OK OK Not allowed OK
Operand Description
Data type
Size
TIM TIMX
N Timer Number TIMER TIMER 1
S Set Value WORD UINT 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
N --- --- --- ---
OK
--- --- --- --- --- --- ---
--- OK --- --- --- ---
S OKOKOKOK OKOKOK OK OK OK OK
Name Label Operation
Error Flag P_ER • ON if N is indirectly addressed through an Index Register but the address in the Index Register is not
the address of a timer Completion Flag or timer PV.
• ON if in BCD mode and S does not contain BCD data.
• OFF in all other cases.
Equals Flag P_EQ OFF or unchanged (See note.)
Negative Flag P_N OFF or unchanged (See note.)
TIM
N
S
S: Set value
N: Timer number
TIMX(550)
N
S
S: Set value
N: Timer number