High−level Instructions
3 − 711
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
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F324 FSQR, DT10, DT2010
R0
10
11
ST R 0
F324 (FSQR)
DT 10
DT 20
S Real number data (2 words) or lower 16-bit area of 32-bit area for storing data
to be calculated
D Lower 16-bit area of 32-bit area for storing the calculated result
Operands
O
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S A A A A A A A A A A A A A A* A
D N/A A A A A A A A A A N/A N/A N/A A A
* Index modification of a real number is not possible.
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.
F324 FSQR, % DT 0, DT 4
R0
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
F324 FSQR, DT 0, % DT 4
R0
When the constant K is specified in S, the operations are the same as when a integer device is specified.
F324
P324
(PFSQR)
(FSQR)
Floating point data square root