Special Math Instructions
3-14-5 BIT COUNTER: BCNT(067)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Operand Specifications
588
D00000
3
4
5
2
D00101
4
3
4
5
2
4. FDIV(079) divides the floating-point number in D00101 and D00100 by the
floating-point number in D00103 and D00102.
D00101
4
3
D00103
÷
4
0
D00003
2
4
Counts the total number of ON bits in the specified word(s).
BCNT(067)
N: Number of words
N
S: First source word
S
R: Result word
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
N: Number of words
The number of words must be 0001 to FFFF (1 to 65,535 words).
S: First source word
S and S+(N–1) must be in the same data area.
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
0
D00100
D00103
0
0
0
4
0
D00100
4
5
2
0
0
0
0.3452000
D00102
0
7
9
0
0
0
0.0079000
D00002
3
6
9
6
2
0
0.4369620
Step program areas
Subroutines
OK
N
CIO 0000 to CIO 6143
W000 to W511
H000 to H511
A000 to A959
T0000 to T4095
C0000 to C4095
D00000 to D32767
Section 3-14
D00001
0
7
9
D00102
0
7
9
0
0
0
×
4
10
4
×
10
×
2
10
BCNT(067)
@BCNT(067)
Not supported.
Interrupt tasks
OK
S
R
A448 to A959
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers