370
WTOB, WTOBP, BTOW, BTOWP
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program dissociates the data at D10 to D12 in byte units and stores it at D20 to D25 when X0 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program links the lower 8 bits of data from D20 through D25 and stores the result at D10 to D12 when X0
is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The range of the values in n exceeds that of the device specified by .
The range of the values in n exceeds that of the device specified by .
S
D
Step
Instruction
Device
58
H
FD
H
E2
H
57
H
44
H
34
H
D11
D12
58
H
00
H
FD
H
00
H
E2
H
00
H
57
H
00
H
34
H
00
H
44
H
00
H
D21
D22
D23
D25
D10
D24
D20
6 b
y
tes
b8
b0
b8
b0
b15
b7
b7
b15
Step
Instruction
Device
D21
D23
78
H
12
H
49
H
55
H
31
H
D22
D25
00
H
31
H
36
H
44
H
49
H
67
H
48
H
D24
D20
D11
78
H
12
H
49
H
55
H
67
H
31
H
D10
D12
U
pper b
y
te is ignored.
6 b
y
tes
b8
b0
b8
b0
b15
b7
b15
b7