Attention

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

TAN

Returns the tangent of an angle in radians.

IEC 61131-3

Section 2.5.1.5.2

Support

Supported

Signatures

#

Input (IN)

Return Type

Support

1

REAL

REAL

Supported

2

LREAL

LREAL

Supported

Description

Returns the tangent of IN, where IN is an angle expressed in radians. The result is undefined when IN is an odd multiple of pi/2.

Example

See Also

  • SIN — sine

  • COS — cosine

  • ATAN — arc tangent