Square root SQRT

Dest = the square root of Source.

TagAfter two scans
Area49
Side7

How it works

While the rung is true, writes the square root of Source. A DINT result drops the fraction. A negative Source is a fault and leaves Dest unchanged.

How it's used

Use SQRT in formulas, such as flow from a pressure difference.

TagValue
DeltaP16
Root4
K2.5
Flow10

Flow = 2.5 × √16 = 10.

Operands

OperandData typeRead or write
SourceDINT, REAL or a numberReads
DestDINT, REALWrites

Common mistakes

  • Using a negative SourceA negative Source is a fault. A DINT result drops the fraction.