hit counter script

Mitsubishi Electric FX3G SERIES Programming Manual page 528

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 COS
calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
X000
Operation when "0.5" is stored in D0 and D1
D1
0.5
Binary floating point
(real number) value
D21
60
Binary floating point
(real number) value
526
FNC134
DACOS
FNC137
DDEG
FNC129
INT
FNC 18
BCD
[1]
Conversion
−1
by COS
D0
operation
Binary floating point
DACOS
(real number) value
[3]
Conversion
D20
b15
into binary
Binary
INT
18.22 FNC134 – ACOS / Floating Point Arc Cosine
−1
value of data (binary floating point) stored in D0 and D1 is
The angle (in radians) is calculated by the COS
D0
D10
operation ([1]).
The value in radians is converted into the value in
D10
D20
degrees ([2]).
The angle expressed in the 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
1.047198
[2] Conversion into degrees
DDEG
D30
[4] BCD
b0
Y057 Y040
operation
60
0 0 6 0
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