Mitsubishi Electric M800VW Series Programming Manual page 236

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.3 Data Conversion 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 data at S was not in the 0 to 9999 range when the BCD instruction was issued. (Error code: 80)
- The data at "S"+1 and "S" was not in the 0 to 99999999 range when the DBCD instruction was issued. (Error code: 80)
 Program example
 The following program outputs the present value of C4 from Y20 to Y2F to the BCD display device.
0 1 0 1
M400
0
4
 The following program outputs bit data from D0 to D1 to Y40 to Y67.
Y67〜Y64 Y63〜Y60 Y5F〜Y5C Y5B〜Y58 Y57〜Y54 Y53〜Y50 Y4F〜Y4C Y4B〜Y48 Y47〜Y44 Y43〜Y40
M400
0
12
0 1 1 0
0 1 1 1
7-element display unit
[Ladder mode]
BCDP C4 K4Y20
END
7-element display unit
[Ladder mode]
D/ D0 K10000 D2
DBCDP D2 K6Y50
BCD D4 K4Y40
END
1 0 0 0
Steps
0
1
4
Steps
0
1
6
9
12
215
[List mode]
Inst.
Device
LD
M400
BCDP
C4
K4Y20
END
[List mode]
Inst.
Device
LD
M400
D/
D0
K10000
D2
DBCDP
D2
K6Y50
BCD
D4
K4Y40
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents