Mitsubishi Electric FX3G SERIES Programming Manual page 530

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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, the TAN
calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
X000
Operation when "1" is stored in D0 and D1
D1
1
Binary floating point
(real number) value
D21
45
Binary floating point
(real number) value
528
FNC135
DATAN
FNC137
DDEG
FNC129
INT
FNC 18
BCD
[1]
Conversion
−1
by TAN
D0
operation
Binary floating point
DATAN
(real number) value
[3]
Conversion
D20
b15
into binary
Binary
INT
18.23 FNC135 – ATAN / Floating Point Arc Tangent
−1
value of data (binary floating point) stored in D0 and D1 is
The angle (in radians) is calculated by the TAN
D0
D10
operation ([1]).
The value in radians is converted into the value in
D10
D20
degrees ([2]).
The angle expressed in binary floating point (real
D20
D30
number) is converted into an integer (binary) ([3]).
The angle expressed in integer (binary) is output to
D30
K4Y40
the display unit ([4]).
END
D11
D10
0.785398
[2] Conversion into degrees
DDEG
D30
[4] BCD
b0
Y057 Y040
operation
45
0 0 4 5
BCD
value
18 Floating Point – FNC110 to FNC139
BCD
value
−1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents