Delta Electronics — 6.16.2 Explanation of Floating-point Number Instructions

AS 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 X0.0 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-474 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 AS - AS D1 D0 D11 D10