Mitsubishi MELSEC Q Series Programming Manual page 283

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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]
[Operation]
Integer
D20
conversion
15923
BIN value
(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]
[Operation]
D21
16543521
D21
173963112
D1
D0
15923
32-bit floating-point
real number
Integer
D20
D1
conversion
BIN value
32-bit floating-point
real number
Integer
D20
conversion
An error is generated in operation results since
the number of significant digits is "7".
BIN value
D1
173963120
32-bit floating-point
real number
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
D0
16543521
D0
FLT(P),DFLT(P)
Device
Device
6-81
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents