DVP-ES3 Series Programming Manual Symbol S : Source value D : Device where the result is stored Explanation 1. This instruction calculates the square root of the floating-point number in S , and stores the result in the device specified by D . _6 2. If the operation result stored in D is 0, SM600 is ON. Example 1 When M0 is ON, the instruction calculates the square root of the floating-point number in (D1, D0), and stores the result in (D11, D10). Additional remarks The value in S only can be a positive value. If the value in S is a negative value, an operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
6-466 API Instruction code Operand Function 1512 FSQR P S, D Square root 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