Chapter 6 Applied Instructions Example When M0 is ON, the instruction finds the arcsine of the floating-point number in (D1, D0) and stores it in (D11, D10). The FDEG instruction converts the arcsine value in (D11, D10) into degrees, and stores the conversion result in (D21, D20). R90 D21~D20 R1 D0 R1.570796 D11~D10 FASIN FDEG Floating-point number Floating-point number Floating-point number Note: "R” indicates REAL type data. Additional remarks 1. The floating-point number specified by the operand S must be between –1.0 to 1.0. If the floating-point number is 6_ not in that range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2.
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. 6-449