M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
Operation errors
In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The range of the device designated by (D) exceeds the relevant device range. (Error code: 82)
Program example
The following program converts the BIN 16-bit data W0 value to ASCII and stores the result at D0 to D3.
[Ladder mode]
SM400
0
5
W0
5126
BIN value
The following program converts the BIN 32-bit data W10 and W11 value to ASCII and stores the result at D0 to D5.
[Ladder mode]
SM400
0
5
W10
W11
-3842563
IB-1501667-B
RST SM701
BINDAP W0 D0
END
[Operation]
b15
D
20H(
space
D1
31H(1)
D2
36H(6)
D3
RST SM701
DBINDAP W10 D0
END
[Operation]
b15
D
20H(
space
D1
20H(
space
D2
38H(8)
32H(2)
D3
D4
36H(6)
D5
00H
312
[List mode]
Steps
Inst.
Device
0
LD
SM400
1
RST
SM701
2
BINDAP
W0
D0
5
END
b8b7
b0
)
20H(
space
)
35H(5)
32H(2)
00H
[List mode]
Steps
Inst.
Device
0
LD
SM400
1
RST
SM701
2
DBINDAP W10
D0
5
END
b8b7
b0
)
2DH(-)
)
20H(
space
)
33H(3)
34H(4)
35H(5)
33H(3)