![Mitsubishi Electric MELSEC FX3G Programming Manual Download Page 537](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083537.webp)
535
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.14 FNC126 – LOG10 / Floating Point Common Logarithm
11
FNC3
0-F
NC3
9
R
otati
on and
Shif
t
12
FNC4
0-F
NC4
9
D
ata
O
per
ati
on
13
FN
C
50-FN
C
59
H
igh Speed
Pr
ocess
ing
14
FM
C
60-
FN
C
69
H
andy
In
st
ru
ct
ion
15
FNC7
0-F
N
C7
9
Ex
ter
nal
FX
I/O
D
evice
16
FN
C
80-FN
C
89
Ext
ernal FX
De
vic
e
17
FN
C
100-
FN
C
109
Da
ta
Transf
er 2
18
FN
C
110-
FN
C
139
Fl
oati
ng Poi
nt
19
FN
C
140
-F
N
C
14
9
Da
ta
O
per
ati
on 2
20
FN
C
150-
FN
C
159
Posit
ioning
C
ontr
ol
Program example
In the program example shown below, common logarithm of "15" set in D50 is calculated, and stored to D30
and D31 when X000 turns ON.
X000
FNC 49
FLT
D50
Data used in the common logarithm operation is set
([1]).
The data to be used is converted into binary floating
point (real number) ([2]).
The common logarithm operation is executed ([3]).
D40
FNC 12
MOV
K15
D50
FNC126
DLOG10
D40
D30
END
Binary floating point
(real number) value
15
10
[1]
MOV
15
b15
b0
[2] Conversion into
binary floating point
(real number)
[3] Logarithm
operation
DLOG10
D41
D40
Binary floating point
(real number) value
1.176091
D31
D30
FLT
D50
Binary value