7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
617
7
• 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 the 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
D1
1
D0D3 D2
D21
45
D20D23 D22
D11
0.785398
D10D13 D12
INTD BCD
ATAND
DEGD
Y4F
0 045
Y40
D30
b15 b0
45
1
2
3 4
64-bit floating-point real number 64-bit floating-point real number
64-bit floating-point real number
Conversion to BIN
BCD operation
Conversion to angle
BCD value
TAN
-1
operation
BIN value