IEC operator⮫ “Overview”: Returns the cosine of a number. The result is calculated in radians.
IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT, OUT must be type REAL.
Example in ST:
q:=COS(0.5);
Example in FBD:

IEC operator⮫ “Overview”: Returns the cosine of a number. The result is calculated in radians.
IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT, OUT must be type REAL.
Example in ST:
q:=COS(0.5);
Example in FBD: