236
0 0 0 0
Di : #0000
Convert from digit 0.
Convert 1 digit.
Output to leftmost bits.
No parity.
1
000100
0
000102
0
000104
1
000106
0
000107
0
000108
000109
000110
000111
000112
000113
000114
000115
000101
0
000103
1
000105
1
0
2
1
0
0
0
0
0
1
2
0
2
2
2
3
0
1
0
0
0
1
0
1
2
0
2
1
2
2
2
3
2
1
2
0
2
2
2
3
2
1
2
0
2
2
2
3
8
$38
S: D00010 D: CIO 0001
8
3
5-17-12 BIT COUNTER: BCNT(114)
Variations
j BCNT(114)
(114)
BCNT N S R
S: 1
st
source word CIO, G, A, T, C, DM
R: Result word CIO, G, A, T, C, DM, DR, IR
N: Number of words CIO, G, A, T, C, #, DM, DR, IR
Operand Data AreasLadder Symbol
When the execution condition is OFF, BCNT(114) is not executed. When the
execution condition is ON, BCNT(114) counts the total number of bits that are
ON in all words between S and S+(N–1) and places the result in R.
Precautions N must be BCD between 0001 and 9999.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): N is not BCD between 0001 and 9999.
If the total exceeds 9999.
Content of *DM word is not BCD when set for BCD.
EQ (A50006): Result is 0.
Description
Conversion Instructions Section 5-17