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

DVP-ES3 Series Programming Manual Symbol S : Source value D : Hyperbolic tangent value Explanation 1. This instruction finds the hyperbolic tangent of the value in S and stores it in D . Hyperbolic tangent value=(e s -e -s )/(e s +e -s ). _6 2. If the conversion result is 0, SM600 is ON. Example 1. When M0 is ON, the instruction finds the hyperbolic tangent of the floating-point number in (D1, D0) and stores it in (D11, D10). The hyperbolic tangent value in (D11, D10) is a floating-point number. S Single-precision floating-point number D Hyperbolic tangent value 2. If the conversion result is zero, SM600 is ON.

6-458 API Instruction code Operand Function 1508 FTANH P S, D Hyperbolic tangent 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 D1 D0 D11 D10