Mitsubishi Electric M800VW Series Programming Manual page 241

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
 Program example
 The following program converts the BIN 16-bit data at D20 to a 32-bit floating-point real number, and stores the result at D0
and D1.
[Ladder mode]
SM400
0
4
D
2
0
15923
BIN value
 The following program converts the BIN 32-bit data at D20 and D21 to a 32-bit floating-point real number, and stores the
result at D0 and D1.
[Ladder mode]
SM400
0
4
Conversion to
D
2
1
D
2
0
integer
16543521
BIN value
Conversion to
integer
D
2
1
D
2
0
173963112
BIN value
IB-1501667-B
FLTP D20 D0
END
[Operation]
Conversion to
integer
32-bit floating-point real number
DFLTP D20 D0
END
[Operation]
D1
16543521
32-bit floating-point real number
An error is generated in operation results since the
number of significant digits is "7".(The integer exceeds
the range of -16777216 to 16777215 (24-bit BIN
value).)
D1
173963120
32-bit floating-point real number
[List mode]
Steps
Inst.
0
LD
1
FLTP
4
END
D1
D
0
15923
[List mode]
Steps
Inst.
0
LD
1
DFLTP
4
END
D
0
D
0
220
Device
SM400
D20
D0
Device
SM400
D20
D0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents