![Omron CVM1D Operation Manual Download Page 230](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532230.webp)
(114)
BCNT
#0002
D00030
D00040
0000
07
225
Example
When CIO 000007 is ON in the following example, all ON bits in D00030 and
D00031 are counted and the results is placed in D00040.
Address
Instruction
Operands
00000
LD
000007
00001
BCNT(114)
#0002
D00030
D00040
Before
execution
After
execution
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1
0
0
0
F
D00030
0 1 0 0 0 0 0 0 1 0 0 1 0 1 0 1
4
0
9
5
D00031
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
0
0
0
D00040
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1
0
0
0
F
D00030
0 1 0 0 0 0 0 0 1 0 0 1 0 1 0 1
4
0
9
5
D00031
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
0
0
0
9
D00040
5-17-13 COLUMN TO LINE: LINE(115)
Variations
j
LINE(115)
(115)
LINE
S
Bi
D
Operand Data Areas
Ladder Symbol
S: 1
st
source word
CIO, G, A, T, C, DM
D: Destination word
CIO, G, A, DM, DR, IR
Bi: Bit designator
CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, LINE(115) is not executed. When the
execution condition is ON, LINE(115) copies bit column Bi from the 16-word set
S through S+15 to the 16 bits of word D (00 to 15), i.e., bit Bi of S+n is copied to bit
n of D, for n=00 to 15. In the following example, Bi would be 5.
0
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
Bit
15
Bit
00
S
Bi
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
S+1
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
S+2
.
.
.
.
.
.
. . .
.
.
.
0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0
S+15
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
S+3
0 1
1
D
1
Bit
15
Bit
00
.
.
.
S cannot be one of the last 15 words in a data area because it designates the first
of 16 words.
Bi must be BCD between 0000 and 0015.
Note Refer to page 101 for general precautions on operand data areas.
Description
Precautions
Conversion Instructions
Section 5-17
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...