Mitsubishi Electric MELSEC FX3U Programming Manual page 535

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Program example
In the program example shown below, natural logarithm of "10" set in D50 is calculated, and stored to D30
and D31 when X000 turns ON.
X000
[1]
10
MOV
FNC 12
K10
MOV
FNC 49
D50
FLT
FNC125
D40
DLOGE
[2] Conversion into
D50
binary floating point
b15
b0
(real number)
10
Binary value
FLT
18 Floating Point – FNC110 to FNC139
18.13 FNC125 – LOGE / Floating Point Natural Logarithm
Data used in the natural logarithm operation is set
D50
([1]).
The data to be used is converted into binary floating
D40
point (real number) ([2]).
D30
The natural logarithm operation is executed ([3]).
END
[3] Logarithm
D41
D40
operation
10
Binary floating point
LOGE
(real number) value
D31
D30
2.302585
Binary floating point
(real number) value
533
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents