Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-264
ASIN(P)
Program Example
(1) The following program seeks the inverse sine of the 32-bit floating decimal point real number
at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when the D0 and D1 value is 0.5]
Calculates an angle (radian value)
by SIN
-1
operation ( )
Converts the radian value
into an angle ( )
Converts the angle in
32-bit floating-point real
number into an integer ( )
Outputs the integer-converted
angle to a display devi
ce ( )
1
2
3
4
Step Instruction Device
Conversion
toBIN
32-bit floating-point
real number
D21
D20
INT
BCD operation
BCD
ASIN
Conversion to angle
DEG
Y4F
BCD value
0030
Y40
D30
b15
b0
BIN value
30
32-bit floating-point
real number
D1
D0
32-bit floating-point
real number
D11
D10
SIN
-1
operation
0
.
50
.
5235988
30