Delta AH500 — 6.16.2 Explanation of Floating-point Number Instructions

AH500 Programming Manual API 1511 Symbol: S : Source device Word/Double word D : Device in which the result is stored Word/Double word Explanation: 1. The square root of the value in the device specified by S is calculated, and the result is stored in the device specified by D . 2. The operation result stored in D is an integer. If the floating-point number is rounded down to the nearest whole digit, SM601 is ON. 3. If the operation result stored in D is 0, SM600 is ON. Example: When X0.0 is ON, the square root of the value in D0 is calculated, and the result is stored in D10. Additional remark: 1. The value in the device specified by S only can be a positive value.

If the value in the device specified by S is a negative value, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6-340 Instruction code Operand Function D SQR P S, D Square root of the binary number Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S            D          Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps) AH500 AH500 AH500