TAN

The IEC operator returns the tangent value for a number.

Permitted data types for the input variable, which specifies the angle in radians: any numeric basic data type

Permitted data types for the output variables: REAL and LREAL

Examples:

Result: fVar is 0.546302.

ST:

fVar := TAN(0.5);

FBD:

TAN 1: