Bcntc - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

BCNTC

Instruction
BIT COUNTER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
Number of words
S
First source word
R
Result word
N: Number of words
The number of words must be 0001 to 9999 (BCD).
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
S
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
BCNTC
@BCNTC
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
Label
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.
P_EQ
• ON if the result is 0000.
• OFF in all other cases.
Function
code
Counts the total number of ON bits in the specified
621
word(s).
BCNTC
BCNTC(621)
N: Number of words
N
S
S: First source word
R
R: Result word
Subroutines
OK
Data type
WORD
UNIT
WORD
Registers
addresses
Con-
stants
*DM
DR
*EM
OK
OK
OK
---
---
OK
Operation
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
Variable
1
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
3
TR
bits
---
1109

Advertisement

Table of Contents
loading

Table of Contents