SQRTΒΆ
The IEC Operators and additional, norm-extending \ functions Returns the square root of a number.
IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT. OUT must be type REAL.
Example in IL:
LD 16
SQRT
ST q (* Result is 4 *)
Example in ST:
q:=SQRT(16);
Example in FBD: