EasyManua.ls Logo

Omron SYSMAC CV Series - Column to Line: Line(115)

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
(114)
BCNT #0002 D00030 D00040
0000
07
237
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
0000000000001111
000F
D00030
0100000010010101
4095
D00031
0000000000000000
0000
D00040
0000000000001111
000F
D00030
0100000010010101
4095
D00031
0000000000001001
0009
D00040
5-17-13 COLUMN TO LINE: LINE(115)
Variations
j LINE(115)
(115)
LINE S Bi D
Operand Data AreasLadder 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 111000100001
Bit
15
Bit
00
S
Bi
1101001001110001
S+1
0001101100100111
S+2
.
.
.
.
.
.
. . .
.
.
.
0111000110001010
S+15
1000001100000111
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 115 for general precautions on operand data areas.
Description
Precautions
Conversion Instructions Section 5-17

Table of Contents

Related product manuals