18 Applied Instructions (Floating Point)
18.24 DRAD / Floating Point Degrees to Radians Conversion
493
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
Program example
This is a program for converting the angle set in BCD four digits in X020 to X037 when the X000 is ON, and
storing in binary floating decimal point in D20, D21.
Operation when 120 is specified in X020 to X037.
[Structured ladder/FBD]
X000
D10
BIN
EN
s
ENO
DRAD
EN
s
ENO
d
d
D20
[ST]
FLT(X000,D0,D10);
BIN(X000,K4X20,D0);
DRAD(X000,D10,D20);
FLT
EN
s
ENO
d
D10
K4X20
D0
D0
Input of angle to be converted to radian value. (1))
Conversion of input angle to binary floating
decimal point (negative number).) (2))
Conversion of angle to radian value. (3))
120
1 2
1) BIN
conversion
BIN
120
b15 b0
2) Conversion of binary
floating decimal point
(real number)
3) Radian
conversion
DRAD
D11 D10
2.094395···
D21 D20
FLT
D0
X037 X020
0 0
BIN valueBCD value