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.
| Language | iec 61131 3 |
|---|---|
| Code | SIN |
| Dialect | CODESYS |
| Name | Data type | Description |
|---|---|---|
| input variable | any numeric basic data type | Value whose sine is calculated; measures the angle in radians. |
| output variable | REAL, LREAL | Receives the sine value of the input. |