EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

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
Page #1166 background imageLoading...
Page #1166 background image
3. Instructions
1128
CS/CJ/NSJ Series Instructions Reference Manual (W474)
BCNTC
Applicable Program Areas
Operands
N: Number of words
The number of words must be 0001 to 9999 (BCD).
z Operand Specifications
Flags
Note In C-series PLCs, the BIT COUNTER (BITC) instruction will cause the Error Flag to go ON if the content of an indirectly
addressed DM word (*DM) is not BCD, or the DM area boundary is exceeded. BCNTC(621) will not cause the Error Flag
to go ON in these cases.
Instruction Mnemonic Variations
Function
code
Function
BIT COUNTER BCNTC @BCNTC 621
Counts the total number of ON bits in the specified
word(s).
Symbol
BCNTC
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
N Number of words WORD 1
S First source word UNIT Variable
R Result word WORD 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 OK OK OK OK OK OK OK OK
OK OK
---
OK
--- --- --- ---
S
---
---
R OK
Name Label Operation
Error Flag P_ER • ON if N is not within the range 0001 to 9999 BCD.
• ON if result exceeds 9999 BCD.
• OFF in all other cases.
Equals Flag P_EQ • ON if the result is 0000.
• OFF in all other cases.
N: Number of words
S: First source word
R: Result word
BCNTC(621)
N
S
R

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals