User guide

Page 151
SQR (Square Root)
Chapter 4. Programming
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional SQR Variable no. Data·Variable no. Optional
[Function] Stores the square root (SQR) of the data in Operand 2 in the variable in Operand 1. Stores the square root of the
contents in the variable in Operand 2 in the Operand 1 variable. If there is a post instruction (flag, output port),
it turns ON when the computation result is zero.
[Example] SQR 1 4
The square root of 4 is 2, and after performing the command, variable 1 becomes 2.
SQR 1 *2
When the content of variable*2 in Operand 2 is 4, then the square root of 4 is 2, and after performing the
command variable 1 becomes 2.