Mitsubishi MELSEC-Q/L Programming Manual page 371

Table of Contents

Advertisement

(2) Setting the number of bytes with n automatically determines the range of the 16-bit data designated by
of the devices to store the byte data designated by
(3) No processing will be conducted when the number of bytes designated by n is "0".
(4) The "00
" code will automatically be stored at the upper 8 bits of the byte storage device designated by
H
b15
D12
32
D13
34
D14
36
(5) Even though the range of the device with the data to be devided (
with the devided data (
BTOW
(1) Links the lower 8 bits of the 16-bit data in n words stored in the area starting from the device designated by
units and stores it into the area starting from the device designated by
area starting from the device designated by
bits of the device where the nth byte data is stored.
b15
S
S
+1
S
+2
n bytes
S
+3
S
+(n-1)
Upper bytes are ignored.
For example, if n
5, the lower 8 bits of data from
b15
S
00
H
S
+1
00
H
If n = 5
+2
S
00
H
S
+3
00
H
+4
S
00
H
(2) Setting the number of bytes with n automatically determines the range of the byte data designated by
the devices to store the linked data designated by
(3) No processing will be conducted when the number of bytes designated by n is "0".
(4) The upper 8 bits of the byte storage device designated by
(5) Linking is correctly processed even when the device range (
with the device range (
For example, the following will take place in a case where the lower 8 bits of D11 to D16 are to be stored at D12 to D14:
b15
D11
D12
D13
D14
D15
D16
b8
b7
31
H
H
33
H
H
35
H
H
to
+(n-1)), the instruction operates correctly.
D
D
will be ignored. Further, if n is an odd number, 0 is stored at the upper 8
S
b8b7
Data of the 1st byte
Data of the 2nd byte
Data of the 3rd byte
Data of the 4th byte
Data of the nth byte
b8b7
12
H
34
H
56
H
78
H
FE
H
D
n
to
+(
-1)) where the linked data will be stored.
D
D
2
b8 b7
00
31
H
H
00
32
H
H
00
33
H
H
00
34
H
H
00
35
H
H
00
36
H
H
WTOB, WTOBP, BTOW, BTOWP
.
D
b0
b15
D11
D12
D13
D14
D15
D16
n
to
+(
-1)) is the same as the range of the device
S
S
2
. The upper 8 bits of n-word data stored in the
D
b0
b15
D
Data of the 2nd byte
Data of the 4th byte
D
*1
n
D
+(
-1)
Data of the nth byte
2
*1: Figures after the decimal point are rounded up.
to ( +4) are linked and stored at
S
S
b0
b15
D
D
+1
D
+2
00
.
are ignored, and the lower 8 bits are used.
S
to
+(n-1)) where the data to be linked is stored overlaps
S
S
b0
b15
D11
D12
D13
D14
D15
D16
and the range
S
.
D
b8
b7
00
31
H
00
32
H
00
33
H
00
34
H
00
35
H
00
36
H
Stores 00
H.
in 1-word
S
b8 b7
Data of the 1st byte
Data of the 3rd byte
Data of the (n-1) byte
to ( +2).
D
D
b8 b7
34
12
H
H
78
56
H
H
00
FE
H
H
is set.
H
and the range of
S
b8 b7
00
31
H
H
32
31
H
H
34
33
H
H
36
35
H
H
00
35
H
H
00
36
H
H
1
2
b0
H
H
H
3
H
H
H
4
4
6
7
b0
8
b0
b0
369

Advertisement

Table of Contents
loading

Table of Contents