529
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.24 FNC136 – RAD / Floating Point Degrees to Radians Conversion
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High-Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
Program example
In the program example shown below, a 4-digit BCD value set in degrees in X020 to X037 is converted into a binary
floating point value in radians, and stored to D20 and D21 when X000 turns ON.
Operation when "120" is specified in X020 to X037
X000
FNC 49
FLT
D0
Angle to be converted into radians is input ([1]).
The input angle is converted into binary floating
point (real number) ([2]).
The angle is converted from degrees into radians
([3]).
D10
FNC 19
BIN
K4X20 D0
FNC136
DRAD
D10 D20
END
120
1 2
[1]
Conversion
into binary
BIN
120
b15 b0
[2] Conversion into
binary floating point
(real number)
[3]
Conversion
into radians
DRAD
D11 D10
2.094395 ...
D21 D20
FLT
D0
X037 X020
0 0
Binary
value
BCD
value