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

DVP-ES3 Series Programming Manual Symbol S : Source value D : Cosine value Explanation 1. This instruction finds the cosine of the value in S and stores it in D . The state of SM695 determines whether the _6 source value in S is in radians or degrees. 2. If SM695 is OFF, the source value in S is in radians. Radian=DegreeЧπ/180. 3. If SM695 is ON, the source value in S is in degrees. Degree=RadianЧ180/π. (0 o ≦ Degree ≦ 360 0 ) 4. If the conversion result is zero, SM600 is ON. 5. The following graph shows the relation between radians and cosine values.

6-444 API Instruction code Operand Function 1501 FCOS P S, D Cosine of a floating-point number 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