Delta DVP-ES3 — 6.16.2 Explanation of Floating-point Number Instructions

Chapter 6 Applied Instructions Example When M0 is ON, the FRAD instruction converts a floating-point number in (D11, D10) into radians, and stores the conversion result in (D21, D20). The FSIN instruction finds the sine of the radian value in (D21, D20), and stores it in (D31, D30). The sine value is a floating-point number. FRAD FSIN R90 R1.570796 D11~D10 D21~D20 R1 D31~D30 Floating-point number Float ing-point num ber Floating-point number Note: "R” indicates REAL type data. Additional remarks 6_ 1. 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. 2.

If SM695 is ON, and the value in S is not between 0–360, the instruction is not executed, SM0 is ON, and the error code is 16#2003. 6-443