Mitsubishi Electric MELSEC FX3U Programming Manual page 555

Melsec fx series programmable logic controllers
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, a binary floating point value set in radians in D20 and D21 is converted
into a BCD value in degrees, and stored to Y040 and Y057 when X000 turns ON.
X000
Operation when "1.435792" is specified in D20 and D21
D21
D20
1.435792
Binary floating point
value (real number)
18.25 FNC137 – DEG / Floating Point Radians to Degrees Conversion
FNC137
D20
D10
DDEG
FNC129
D10
D0
INT
FNC 18
D0
K4Y40
BCD
END
[1]
Conversion
D11
into degrees
82.26482
Binary floating point
DDEG
value (real number)
18 Floating Point – FNC110 to FNC139
A value in radians is converted into a value in
degrees ([1]).
The angle in binary floating point (real number) is
converted into an integer ([2]).
The converted integer is output to the display unit
([3]).
[2]
Conversion
D0
into binary
D10
b15
value
82
Binary
INT
value
[3]
Conversion
b0
Y057 Y040
into BCD
0
0 8
2
BCD
BCD
value
553
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents