Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-274
ATAND(P)
Program Example
(1) The following program seeks the inverse tangent of the 64-bit floating decimal point real
number at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when D0 to D3 value is 1]
1
Calculates an angle (radian value) by TAN
operation ( ).
Converts the radian value into
an angle ( ).
Converts the angle in 64-bit floating-point
real number into an integer ( ).
Outputs the integer-converted angle
to a display device ( ).
1
2
3
4
Step Instruction Device
64-bit floating-point
real number
64-bit floating-point
real number
D1
1
D0D3 D2
64-bit floating-point
real number
D21
45
D20D23 D22
D11
0.785398
D10D13 D12
Conversion
to BIN
INTD
BCD operation
BCD
ATAND
Conversion to angle
DEGD
Y4F
BCD value
0
0 4 5
Y40
D30
b15 b0
BIN value
45
TAN operation
1
1
2
3
4