EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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...
411
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
LINE
Function
LINE(063) copies the 16 bits with bit number N from the 16-word range S to S+15 to the destination
word D. Bit N of S+m is copied to bit m of D, i.e., bit N of S is copied to bit 00 of D and bit N of S+15 is
copied to bit 15 of D.
Example Programming
When CIO 0.00 is ON in the following example, LINE(063) copies bit 5 from D100 to D115 to the 16 bits
in D200.
0
0 0 0 1 1 1 1 0 001 0 0 0 01
15 00
S
N
1 1 0 1 0 0 1 0 011 1 0 0 01
S+1
0 0 0 1 1 0 1 1 001 0 0 1 11
S+2
.
.
.
.
.
.
...
.
.
.
0 1 1 0 0 0 0 1 100 0 1 0 10
S+15
1 0 0 0 0 0 1 1 000 0 0 1 11
S+3
0 1 1
D
1
15 00
.
.
.
Bit Bit
Bit Bit
N: #0005
S: D100
D: D200
D101
D102
D115
D100
D200
0.00
to
to
&5

Table of Contents

Related product manuals