
The Function Block SIN calculates the sine.
Note: The Function Block uses radians. See Function Block DEG2RAD and RAD2DEG.
An input value is expected to be a number. The Function Block attempts to convert the value of a string into a number. The boolean value TRUE is converted to a 1.
Note: See also the article String Conversion To Numbers if you are working with strings.
The output returns the sine as an Integer. In case of an error, the value NAN (Not a Number) is returned.