{"id":"iec-sin","model_id":"SIN","name":"CODESYS SIN","summary":"SIN is an IEC 61131-3 operator that returns the sine of a number. The input is an angle expressed in radians and may be any numeric basic data type, while the result is written to a REAL or LREAL variable. It is shown in a structured text assignment and in FBD.","study_notes":["Permitted data types for input variables that measure the angle in radians: any numeric basic data type.","Permitted data types for the output variable: REAL and LREAL.","The permitted range for the input value is given as −263 to +263; on x86 and x64 systems, if the input value is outside the permitted range, the function returns the input value.","Example: SIN (0.5) gives the result q := 0.479426.","Shown in structured text as q := SIN (0.5); and also available in FBD."],"safety_notes":[],"sources":[{"url":"https://infosys.beckhoff.com/content/1033/tc3_plc_intro/2529128075.html","title":"Beckhoff Information System","accessed":"2026-10-26"},{"url":"https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_operator_sin.html","title":"CODESYS Group","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":8,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"iec_61131_3","code":"SIN","parameters":[{"name":"input variable","data_type":"any numeric basic data type","description":"Value whose sine is calculated; measures the angle in radians."},{"name":"output variable","data_type":"REAL, LREAL","description":"Receives the sine value of the input."}],"dialect":"CODESYS","related":[],"standards":[]},"url":"https://machineschema.com/instruction/iec-sin","license":"https://creativecommons.org/licenses/by/4.0/"}