DVP-ES3 Series Programming Manual Symbol S : Source value (in radians) D : Conversion result (in degrees) Explanation 1. This instruction converts the radians value in S to degrees, and stores it in D . 2. Degree = RadianЧ(180/π). _6 3. If the absolute value of the conversion result is large r than the value that can be represented by floating-point numbers, the value in D is 16#7F7FFFFF. 4. If the absolute value of the conversion result is less than the value that can be represented by floating-point numbers, the value in D is 16#7F7FFFFF. 5. If the conversion result is zero, SM600 is ON.
Example When M0 is ON, the instruction converts the radians values in (D1, D0) to the degree value, and stores the conversion result in (D11, D10). The degree in (D11, D10) is a floating-point number. 6-462 API Instruction code Operand Function 1510 FDEG P S, D Converting radians to degrees Device X Y M S T C HC D FR SM SR E K 16# “$” F S D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S D Pulse instruction 16-bit instruction 32-bit instruction ES3 - ES3