![Mitsubishi Electric FX3G SERIES Скачать руководство пользователя страница 513](http://html.mh-extra.com/html/mitsubishi-electric/fx3g-series/fx3g-series_programming-manual_238902513.webp)
511
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.12 FNC124 – EXP / Floating Point Exponent
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, the exponential operation is executed for a value set in the 2-digit BCD format
in X020 to X027, and the operation result is stored in the binary floating point format to D0 and D1 when X000 turns
ON.
Operation when "13" is specified in X020 to X027
Points
1) The operation result becomes less than "2
128
" when the BCD value set in X020 to X027 is "88" or less because of
"loge2
128
= 88.7".
If a value "89" or more is set, an operation error occurs. To prevent this operation error, when a value more than
"89" is set, M0 is set to ON so that the exponential operation is not executed.
2) Conversion from natural logarithm into common logarithm
In the CPU, operations are executed in natural logarithm.
For obtaining a value in common logarithm, specify a common logarithm value divided by "0.4342945" in
[
+1,
].
X000
FNC224
LD >
D20
M0
Data used in the exponential operation is input ([1]).
The range of the value to be operated is checked.
(Refer to 1) in "Points" below.)
The input data is converted into binary floating point
(real number) ([2]).
The exponential operation is executed ([3]).
K88
FNC 19
BIN
K2X20
D20
FNC 49
FLT
D20
D10
FNC124
DEXP
D10
D0
END
M0
Binary floating point
(real number) value
13
1 3
[1]
Conversion
into binary
BIN
13
b15
b0
[2] Conversion into
binary floating point
(real number)
[3]
Exponential
operation
EXP
D11
D10
Binary floating point
(real number) value
442413.4
D1
D0
FLT
D20
X027 X020
BCD value
Binary value
S
S
10
X
=
e
0.4342945
X
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......