Cnt/Cntx - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions

CNT/CNTX

Instruction
COUNTER
BCD
Count input
Symbol
Reset input
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
N
Counter Number
S
Set Value
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
Word addresses
Area
CIO
WR
HR
N
---
---
---
S
OK
OK
OK
Flags
Name
Error Flag
2-80
Mnemonic
Variations
CNT/CNTX
---
CNT
CNT
N: Counter number
N
S: Set value
S
Description
AR
T
C
DM
---
---
---
OK
OK
OK
OK
Label
P_ER
• ON if in BCD mode and S does not contain BCD data.
• OFF in all other cases.
Function
code
CNT/CNTX(546) operates a decrementing
546
counter.
Binary
Count input
Reset input
Subroutines
OK
Data type
CNT
CNTX
COUNTER
COUNTER
WORD
UINT
Indirect DM addresses
Constants
@DM
*DM
---
---
---
OK
OK
OK
Operation
CP1E CPU Unit Instructions Reference Manual(W483)
Function
CNTX
CNTX(546)
N
N: Counter number
S
S: Set value
Interrupt tasks
OK
Size
1
1
CF
Pulse bits
TR bits
---
---
---
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents