User manual
Instruction Set
Compute 3-19
compute instructions continued...
Instruction Description
Square Root
SQR
When the input conditions are true, take the square root of the Source (N7:3) and store the
result in the Destination (N7:12).
Sort
SRT
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
Status Bits:
EN - Enable
DN - Done Bit
ER - Error Bit
When the input conditions go from false-to-true, the elements in N7:1, N7:2, N7:3.and N7:4 are
sorted into ascending order.
SQUARE ROOT
Source N7:3
25
Destination N7:12
5
SQR
Status Bit Description
Calways resets
V sets if overflow occurs during floating point to integer
conversion; otherwise resets
Z sets if the result is zero; otherwise resets
Salways resets
SORT
File #N7:1
Control R6:0
Length 4
Position 0
SRT