{"id":"iec-sqrt","model_id":"SQRT","name":"CODESYS SQRT","summary":"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.","study_notes":["Input variables accept any numeric basic data type.","Output variables are restricted to REAL and LREAL.","The ST example is written q := SQRT(16); with result 4.","The operator is also shown in an FBD example."],"safety_notes":[],"sources":[{"url":"https://infosys.beckhoff.com/content/1033/tc3_plc_intro/2529101195.html","title":"Beckhoff Information System","accessed":"2026-10-26"},{"url":"https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_operator_sqrt.html","title":"CODESYS Group","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":3,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"structured_text","code":"SQRT","syntax":"q := SQRT(16);","parameters":[],"dialect":"CODESYS","related":[],"standards":[]},"url":"https://machineschema.com/instruction/iec-sqrt","license":"https://creativecommons.org/licenses/by/4.0/"}