EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #283 background imageLoading...
Page #283 background image
6-81
FLT(P),DFLT(P)
1
2
3
4
4
6
7
8
6.3 Data conversion instructions
6.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision)
(FLT(P),DFLT(P))
Program Example
(1) The following program converts the BIN 16-bit data at D20 to a 32-bit floating decimal point
type real number and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program converts the BIN 32-bit data at D20 and D21 to a 32-bit floating
decimal point type real number, and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
Integer
conversion
32-bit floating-point
real number
15923
D20
BIN value
D1
15923
D0
Step
Instruction
Device
Integer
conversion
Integer
conversion
An error is generated in operation results since
the number of significant digits is "7".
BIN value
D21
173963112
D20
BIN value
D21
16543521
D20
32-bit floating-point
real number
D1
16543521
D0
32-bit floating-point
real number
D1
173963120
D0

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals