2 Instructions
2-80 CP1E CPU Unit Instructions Reference Manual(W483)
CNT/CNTX
Applicable Program Areas
Operands

N: Counter Number

The counter number must be between 0000 and 0255 (decimal).

S: Set Value

CNT (BCD): #0000 to #9999

CNTX (Binary): &0 to &65535 (decimal) or #0000 to #FFFF (hex)

Operand Specifications
Flags
Instruction Mnemonic Variations Function
code Function
COUNTER CNT/CNTX --- 546 CNT/CNTX(546) operates a decrementing
counter.
Symbol
CNT CNTX
BCD Binary
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
CNT CNTX
N Counter Number COUNTER COUNTER 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 OKOKOKOKOK OK OK OK OK OK OK
Name Label Operatio n
Error Flag P_ER ON if in BCD mode and S does not contain BCD data.
OFF in all other cases.
CNT
N
S
Count input
Reset input N: Counter number
S: Set value
CNTX(546)
N
S
Count input
Reset input N: Counter number
S: Set value