513
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.13 FNC125 – LOGE / Floating Point Natural Logarithm
11
FN
C30
-FN
C3
9
R
ota
tion and
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
Proc
essing
14
FM
C60-FN
C69
H
andy
In
struction
15
FN
C70-FN
C79
E
xternal
F
X
I/O
De
vice
16
FNC
80-FNC
89
External
FX
Dev
ice
17
FNC1
00-
FNC10
9
Dat
a
Transfer 2
18
FNC1
10-
FNC139
Fl
oa
ting Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
Operation 2
20
FNC1
50-
FNC159
Pos
itioning
Control
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
FNC 49
FLT
D50
Data used in the natural logarithm operation is set
([1]).
The data to be used is converted into binary floating
point (real number) ([2]).
The natural logarithm operation is executed ([3]).
D40
FNC 12
MOV
K10
D50
FNC125
DLOGE
D40
D30
END
Binary floating point
(real number) value
10
10
[1]
MOV
10
b15
b0
[2] Conversion into
binary floating point
(real number)
[3] Logarithm
operation
LOGE
D41
D40
Binary floating point
(real number) value
2.302585
D31
D30
FLT
D50
Binary value
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......