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

Chapter 6 Applied Instructions Symbol S 1 : Source value S 2 : Exponent value D : Device where the operation result is stored Explanation 1. This instruction raises the single-precision floating-point number in S 1 to the power of the value in S 2 , and stores the 6_ single-precision floating-point operation result in D . 2. D =POW[ S 1 +1 , S 1 ]^[ S 2 +1 , S 2 ] 3. The value in S 1 only can be a positive value, but the value in S 2 can be a positive value or a negative value. 4. Suppose the values in S 1 and S 2 are 5 and 3 respectively: D=5 3 =125. 5.

If the absolute value of the operation result is larger than the value that can be represented by floating-point numbers, the value in D is 16#7F7FFFFF, and SM602 is ON. 6. If the absolute value of the operation 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. 7. If the operation result stored in D is 0, SM600 is ON.

6-473 API Instruction code Operand Function 1516 FPOW P S1, S2, D Power of a floating-point number Device X Y M S T C HC D FR SM SR E K 16# “$” F S1       S2       D     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1  S2  D  Pulse instruction 16-bit instruction 32-bit instruction ES3 - ES3