Cnt/Cntx - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

CNT/CNTX

Instruction
COUNTER
BCD
Count input
Symbol
Reset input
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
Counter Number
S
Set Value
N: Counter Number
The counter number must be between 0000 and 4095 (decimal).
S: Set Value
BCD: #0000 to #9999
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
Equals Flag
Negative Flag
Note In CS1D CPU Units for Duplex Systems, CS1 CPU Units, and CJ1 CPU Units, these are turned OFF.
242
Mnemonic
Variations
CNT/CNTX
---
CNT
CNT
N: Counter number
N
S: Set value
S
Block program areas
Step program areas
Not allowed
OK
Description
@DM
AR
T
C
DM
EM
---
---
---
---
OK
OK
OK
OK
OK
Label
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 counter Completion Flag or counter PV.
• ON if in BCD mode and S does not contain BCD data.
• OFF in all other cases.
P_EQ
Unchanged (See note.)
P_N
Unchanged (See note.)
Function
code
CNT/CNTX(546) operates a decrementing
546
counter.
Binary
Count input
Reset input
Subroutines
OK
Data type
CNT
COUNTER
COUNTER
WORD
Indirect DM/EM
addresses
Con-
stants
*DM
DR
@EM
*EM
---
---
---
---
OK
OK
OK
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
CNTX
CNTX(548)
N
N: Counter number
S
S: Set value
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
CNTX
1
UINT
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents