F324
(FSQR)
P324
(PFSQR)
Outline
Takes the square root of the specified real number data and stores result
in the specified area.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P324 (PFSQR)" is not available.
Program example
Trigger
R0
10
F324 FSQR, DT10, DT20
S
D
Operands
Relay
Operand
Operand
WX WY WR WL
S
A
A
D
N/A
A
Description
The square root of real number data specified by S is calculated and stored in the 32-bit area specified by D.
√[S1+1, S] → [D+1, D]
Specifying the integer device with [S], the integer data is internally converted to real numbers before
operations continue.
R0
F324 FSQR, % DT 0, DT 4
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
R0
F324 FSQR, DT 0, % DT 4
When the constant K is specified in S, the operations are the same as when a integer device is specified.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point data square root
Ladder Diagram
Ladder Diagram
S
Real number data (2 words) or lower 16-bit area of 32-bit area for storing data
to be calculated
Lower 16-bit area of 32-bit area for storing the calculated result
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
D
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
* Index modification of a real number is not possible.
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F324
DT
DT
Constant
Index
modifier device
modifier
K
H
f
A
A
A
A*
N/A N/A N/A
A
A:
Available
N/A: Not Available
0
(FSQR)
10
20
Integer
device
A
A
3 − 711