2-69
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Timer and Counter Instructions
2
TIMH/TIMHX
TIMH/TIMHX
Applicable Program Areas
Operands
N: Timer Number
The timer number must be between 0000 and 0255 (decimal).
S: Set Value
TIMH (BCD): #0000 to #9999
TIMHX (Binary): &0 to &65535 (decimal) or #0000 to #FFFF (hex)
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
TEN-MS TIMER
TIMH --- 015
TIMH(015)/TIMHX(551) operates a decrementing
timer with units of 10-ms.
TIMHX --- 551
Symbol
TIMH TIMHX
BCD Binary
Area Step program areas Subroutines Interrupt tasks
Usage OK OK Not allowed
Operand Description
Data type
Size
TIMH TIMHX
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 ER • ON if in BCD mode and S does not contain BCD data.
• OFF in all other cases.
TIMH(015)
N
S
S: Set value
N: Timer number
TIMHX(551)
N
S
S: Set value
N: Timer number