Mitsubishi MELSEC Q Series Programming Manual page 460

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents