1061
Model Conversion Instructions Section 3-33
3-33-5 BIT COUNTER: BCNTC(621)
Purpose Counts the total number of ON bits in the specified word(s).
Ladder Symbol
Variations
Applicable Program Areas
Operands N: Number of words
The number of words must be 0001 to 9999 (BCD).
S: First source word
S and S+(N–1) must be in the same data area.
Operand Specifications
BCNTC(621)
N
S
R
N: Number of words
S: First source word
R: Result word
Variations Executed Each Cycle for ON Condition BCNTC(621)
Executed Once for Upward Differentiation @BCNTC(621)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area N S R
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A959 A448 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants #0001 to #9999
(BCD)
---
Data Registers DR0 to DR15 --- DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15