beautypg.com

Acos, Atan, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 503

background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

DMS 3.2 EN 02/2011 TD29

501

9.10.10

ACOS

»PLC Designer« IEC operator: Returns the arc cosine (inverse function of cosine) of a
number. The value is calculated in arch 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

ACOS

ST q (* Result is 1.0472 *)

Example in ST:

q:=ACOS(0.5);

Example in FBD:

9.10.11

ATAN

PLC Designer IEC operator: Returns the arc tangent (inverse function of tangent) of a
number. IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT,
UDINT. The result OUT is calculated in arch minutes and must be type REAL.

Example in IL:

LD 0.5

ATAN

ST q (* Result is 0.463648 *)

Example in ST:

q:=ATAN(0.5);

Example in FBD: