2 Instructions
2-74
CP1E CPU Unit Instructions Reference Manual(W483)
TTIM/TTIMX
Applicable Program Areas
Operands
N: Timer Number
The timer number must be between 0000 to 0255 (decimal).
S: Set Value
TTIM (BCD): #0000 to #9999
TTIMX (Binary): &0 to &65535 (decimal) or #0000 to #FFFF (hex)
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
ACCUMULATIVE TIMER
TTIM --- 087
TTIM(087)/TTIMX(555) operates an incrementing
timer with units of 0.1-s.
TTIMX --- 555
Symbol
TTIM TTIMX
BCD Binary
Area Step program areas Subroutines Interrupt tasks
Usage OK OK Not allowed
Operand Description
Data type
Size
TTIM TTIMX
N Timer Number TIMER TIMER 1
S Set Value WORD UINT 1
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
N --- --- --- ---
OK
--- --- --- --- ---
--- --- ---
S OKOKOKOK OKOK OK OK OK
Name Label Operation
Error Flag P_ER • ON if in BCD mode and S does not contain BCD data.
• OFF in all other cases.
TTIM(087)
N
S
Timer input
Reset input
S: Set value
N: Timer number
TTIMX(555)
N
S
Timer input
Reset input
S: Set value
N: Timer number