EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1075
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Block Programming Instructions
3
CNTW/CNTWX
CNTW/CNTWX
Applicable Program Areas
*1 CNTW(814)/CNTWX(818) must be used in block programming regions even within subroutines and interrupt tasks.
Operands
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)
z Operand Specifications
*1 CJ2 CPU Units only.
Flags
Instruction Mnemonic Variations
Function
code
Function
COUNTER WAIT
CNTW --- 814
Delays execution of the rest of the block program
until the specified count has been achieved.
CNTWX --- 818
Symbol
BCD Binary
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage Not allowed OK OK
OK*
1
OK*
1
Not allowed
Operand Description Data type Size
N Counter Number COUNTER 1
SSet Value WORD 1
I Count input BOOL 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
N --- --- --- --- ---
OK
--- --- --- --- --- ---
---
OK --- --- ---
---
S
OK OK OK OK OK
OK OK OK OK OK OK
I
OK*
1
OK*
1
--- --- --- --- OK OK OK OK
Name Label Operation
Error Flag 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.
N
SV
I
SV: Set value
I: Count input
N: Counter number
CNTW(814)
N
SV
I
SV: Set value
I: Count input
N: Counter number
CNTWX(818)

Table of Contents

Related product manuals