Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

SIN

Returns the sine of an angle in radians.

IEC 61131-3

Section 2.5.1.5.2

Support

Not yet supported

Signatures

#

Input (IN)

Return Type

Support

1

REAL

REAL

Not yet supported

2

LREAL

LREAL

Not yet supported

Description

Returns the sine of IN, where IN is an angle expressed in radians. The result is in the range [-1.0, 1.0].

Example

result := SIN(REAL#0.0);          (* result = 0.0 *)
value := SIN(LREAL#1.5707963);   (* value ~ 1.0 *)

See Also

  • COS — cosine

  • TAN — tangent

  • ASIN — arc sine