TANΒΆ

The IEC Operators and additional, norm-extending \ functions Returns the tangent of a number. The value is calculated in arc minutes.

IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT, OUT must be type REAL.

Example in IL:

LD  0.5
TAN
ST  q  (* Result is 0.546302 *)

Example in ST:

q:=TAN(0.5);

Example in FBD:

../_images/7daba3cf69d0ef980a317d316d2b5c20