DVP-ES3 Series Programming Manual Symbol S : Source value D : Hyperbolic cosine value Explanation 1. This instruction finds the hyperbolic cosine of the value in S and stores it in D . Hyperbolic cosine value=(e s +e -s )/2. 2. If the absolute value of the conversion result is larger than the value that can be represented by floating-point _6 numbers, the value in D is 16#7F800000, and SM602 is ON. 3. 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#FF800000, and SM601 is ON. 4. If the conversion result is zero, SM600 is ON. Example 1.
When M0 is ON, the instruction finds the hyperbolic cosine of the floating-point number in (D1, D0) and stores it in (D11, D10). The hyperbolic cosine value in (D11, D10) is a floating-point number. 6-456 API Instruction code Operand Function 1507 FCOSH P S, D Hyperbolic 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