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

Chapter 6 Applied Instructions Symbol S : Source value (exponent) D : Device where the operation result is stored Explanation 1. This function calculates the value of the number e raised to the power in S. Exponentiation involves two numbers, the base e which represents 2.71828, and the exponent in S . 2. EXP[ D +1, D ]=[ S +1, S ]. 6_ 3. The number in S can be a positive number or a negative number. The device specified by D should be a 32-bit register, and the number in the device specified by S should be a floating-point number. 4. The value in the register specified by D is e S ( e is 2.71828, and S represents the source value). 5.

If the absolute value of the conversion result is larger than the value that can be represented by floating-point numbers, the value in the register specified by D is 16#7F800000, and SM602 is ON. 6. If the operation result stored in D is 0, SM600 is ON. Example 1. When M0 is ON, the DFLT instruction converts the value in (D1, D0) into a floating-point number, and stores the conversion result in (D11, D10). 2. When M1 is ON, the FEXP instruction performs the exponentiation with the value in (D11, D10), and stores the floating-point number result in (D21, D20).

6-467 API Instruction code Operand Function 1513 FEXP P S, D Exponentiation 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