Mitsubishi Electric FX3G SERIES Programming Manual page 517

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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, common logarithm of "15" set in D50 is calculated, and stored to D30 and D31
when X000 turns ON.
X000
[1]
10
MOV
FNC 12
K15
MOV
FNC 49
D50
FLT
FNC126
D40
DLOG10
[2] Conversion into
D50
binary floating point
b15
b0
(real number)
15
Binary value
FLT
18 Floating Point – FNC110 to FNC139
18.14 FNC126 – LOG10 / Floating Point Common Logarithm
Data used in the common logarithm operation is set
D50
([1]).
The data to be used is converted into binary floating
D40
point (real number) ([2]).
D30
The common logarithm operation is executed ([3]).
END
[3] Logarithm
D41
D40
operation
15
Binary floating point
DLOG10
(real number) value
D31
D30
1.176091
Binary floating point
(real number) value
515
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents