Delta AS Series Programming Manual page 838

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example
When X0.0 is ON, the FATAN instruction finds the arctangent of the floating-point number in (D1, D0) and stores it in
(D11, D10). The FDEG instruction converts the arctangent value in (D11, D10) is converted into degrees, and stores the
conversion result in (D21, D20). The DINT instruction converts the degree in (D21, D20) into the integer, and stores the
conversion result in (D31, D30). The BCD instruction converts the integer in (D31, D30) into the binary-coded decimal
value, and stores the conversion result in Y0.15–Y0.0.
Additional remarks
If the value in S exceeds the range of values that can be represented by floating-point numbers, the instruction is not
executed, SM0 is ON, and the error code in SR0 is 16#2013.
F ATAN
D11~D10
D0
R0.785398
R1
F loating- point
F loating- point
number
number
DINT
BCD
D31~D30
45
Binary v al ue
Ch ap te r 6 Ap pl ie d Instruc ti ons
F DEG
D21~D20
R45
F loating- point
number
Y1.15~Y1.0
0 0
4
5
Binary -coded
decimal value
6_
6 - 5 5 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents