7-84
7.5 Data Processing Instructions
7.5.9 Separation and connection of data in units of bytes
WTOB, BTOW
Program Example
(1) In the following program, the data from D10 to D12 are separated in units of bytes when X0
turns ON, and they are stored to the devices from D20 to D25.
[Structured ladder]
[ST]
WTOBP(X0,D10,6,D20);
[Operation]
(2) In the following program, the lower 8-bit data from D20 to D25 are connected when X0 turns
ON, and they are stored to the devices from D10 to D12.
[Structured ladder]
[ST]
BTOWP(X0,D20,6,D10);
[Operation]
58
H
FD
H
E
2
H
57
H
44
H
3
4
H
D
11
D
12
58
H
00
H
FD
H
00
H
E
2
H
00
H
57
H
00
H
3
4
H
00
H
44
H
00
H
D
21
D
22
D
23
D
25
D
10
D
2
4
D
20
6
by
tes
b8
b0
b8
b0
b15
b7
b7
b15
D
21
D
23
78
H
12
H
4
9
H
55
H
31
H
D
22
D
25
00
H
31
H
36
H
44
H
4
9
H
67
H
4
8
H
D
2
4
D
20
D
11
78
H
12
H
4
9
H
55
H
67
H
31
H
D
10
D
12
Upper
by
te is ignore
d
.
6
by
tes
b8
b0
b8
b0
b15
b7
b15
b7
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......