Cntw/Cntwx - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

CNTW/CNTWX

Instruction
COUNTER WAIT
BCD
CNTW(814)
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
Not allowed
*1 CNTW(814)/CNTWX(818) must be used in block programming regions even within subroutines and interrupt tasks.
Operands
Operand
N
Counter Number
S
Set Value
I
Count input
N: Timer Number
BCD: 0 to 4095 (decimal)
Binary: 0 to 4095 (decimal)
SV: Set Value
BCD: #0000 to #9999 (BCD)
Binary: &0 to &65535 (decimal)
#0000 to #FFFF (hex)
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
S
OK
OK
OK
I
*1 CJ2 CPU Units only.
Flags
Name
Error Flag
1056
Mnemonic
Variations
CNTW
---
CNTWX
---
N: Counter number
N
SV
SV: Set value
I
I: Count input
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
---
---
---
---
OK
OK
OK
OK
OK
1
1
OK*
OK*
Label
P_ER
• ON if CNTW(814)/CNTWX(818) is not in a block program.
• ON if an indirect IR designation is used for N in BCD mode and the address is not for a counter
present value.
• ON if SV is not BCD when BCD mode is set.
• OFF in all other cases.
Function
code
814
Delays execution of the rest of the block program
until the specified count has been achieved.
818
Binary
CNTWX(818)
Subroutines
1
OK*
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
---
---
OK
OK
OK
OK
---
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
N: Counter number
N
SV: Set value
SV
I
I: Count input
SFC action or transition
Interrupt tasks
programs
1
Not allowed
OK*
Data type
Size
COUNTER
WORD
BOOL
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
OK
---
---
---
---
OK
OK
OK
OK
1
1
1
TR
bits
---

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Table of Contents