Mitsubishi Electric M800VW Series Programming Manual page 336

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

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 D2.
[Ladder mode]
SM400
0
5
 The following program converts the BIN 32-bit data W10 and W11 value to ASCII and stores the result at D0 to D4.
[Ladder mode]
SM400
0
5
RST SM701
BINHAP W 0 D0
END
[Operation]
W0
D0
9C06H
D1
BIN value
D2
RST SM701
DBINHAP W10 D0
END
[Operation]
W10
W11
D0
7B3C581FH
D1
D2
D3
D4
[List mode]
Steps
Inst.
Device
0
LD
SM400
1
RST
SM701
2
BINHAP
W0
D0
5
END
b15
b8b7
b0
43H(C)
39H(9)
36H(6)
30H(0)
00H
[List mode]
Steps
Inst.
Device
0
LD
SM400
1
RST
SM701
2
DBINHAP W10
D0
5
END
b15
b8b7
b0
42H(B)
37H(7)
43H(C)
33H(3)
38H(8)
35H(5)
46H(F)
31H(1)
00H
315
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents