Square root SQRT
Dest = the square root of Source.
SQUARE_ROOT
SourceGlobal.Area49DestGlobal.Side7
| Tag | After two scans |
|---|---|
| Area | 49 |
| Side | 7 |
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.
SQUARE_ROOT
SourceGlobal.DeltaP16DestGlobal.Root4
MUL
AGlobal.Root4BGlobal.K2.5DestGlobal.Flow10
| Tag | Value |
|---|---|
| DeltaP | 16 |
| Root | 4 |
| K | 2.5 |
| Flow | 10 |
Flow = 2.5 × √16 = 10.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Source | DINT, REAL or a number | Reads |
| Dest | DINT, REAL | Writes |
Common mistakes
- Using a negative SourceA negative Source is a fault. A DINT result drops the fraction.