SQRT is an IEC operator in the CODESYS development system that returns the square root of a number. The input may be any numeric basic data type, while the output must be REAL or LREAL. The document's example computes the square root of 16, giving 4, and shows the call in ST and FBD.
| Language | structured text |
|---|---|
| Code | SQRT |
| Syntax | q := SQRT(16); |
| Dialect | CODESYS |