efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
SQR - Square Root
SQR
SQR
Square Root
Source
N7:0
0<
Dest
N7:1
0<
SQR Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Source
•
•
•
Destination
•
•
•
(1) See Important note about indirect addressing.
Instruction Type: output
Execution Time for the SQR Instruction
Controller
Data Size
MicroLogix 1100
word
long word
The SQR instruction calculates the square root of the absolute value of the
source and places the rounded result in the destination.
The data ranges for the source is -32768 to 32767 (word) and
-2,147,483,648 to 2,147,483,647 (long word). The Carry Math Status Bit is
set if the source is negative. See Updates to Math Status Bits on page 189
for more information.
Data Files
•
•
•
•
•
•
•
•
•
•
You cannot use indirect addressing with: S, ST, MG, PD,
IMPORTANT
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and
DLS files.
When Rung Is:
True
False
109.21 μs
0.87 μs
109.77 μs
0.87 μs
Function Files
Publication 1763-RM001C-EN-P - October 2009
Math Instructions
199
Address
Address Level
(1)
Mode
•
•
•
•
•
•
•
•
•