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.
Bit
15
S
0 0 0 1 1 1 1 0 0 0 1 0 0 0 0 1
S+1
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
S+2
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
S+3
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
.
.
.
S+15
0 1 1 0 0 0 0 1 1 0 0 0 1 0 1 0
Sample program
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.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
N
.
.
.
.
.
.
D100
&5
D200
S: D100
D101
D102
to
D115
D: D200
Bit
00
.
.
.
Bit
15
. . .
D
0
N: #0005
to
3. Instructions
Bit
00
0 1
1
1
403
3
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers