24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix E: Operators and Library Modules Overview<br />

ADR(in) ADR Address of the operand in [DWORD]<br />

BOOL_TO_(in) BOOL_TO_ Type conversion of the boolean operand<br />

_TO_BOOL(in) _TO_BOOL Type conversion to BOOL<br />

INT_TO_(in) INT_TO_ Type conversion of an INT Operand to anotner<br />

elementary type<br />

REAL_TO_(in) REAL_TO_ Type conversion of an REAL operand to anotner<br />

elementary type<br />

LREAL_TO_(in) LREAL_TO_ Type conversion of a LREAL operand to anotner<br />

elementary type<br />

TIME_TO_(in) TIME_TO_ Type conversion of a TIME operand to anotner<br />

elementary type<br />

TOD_TO_(in) TOD_TO__ Type conversion of a TOD operand to anotner<br />

elementary type<br />

DATE_TO_(in) DATE_TO_ Type conversion of a DATE operand to anotner<br />

elementary type<br />

DT_TO_(in) DT_TO_ Type conversion of a DT operand to anotner<br />

elementary type<br />

STRING_TO_(in) STRING_TO_<br />

Type conversion of a string operand des Operanden<br />

to anotner elementary type, in must contain valid<br />

value of desired type<br />

TRUNC(in) TRUNC Conversion from REAL to INT<br />

ABS(in) ABS Absolut value of operand in<br />

SQRT(in) SQRT Square root of operand in<br />

LN(in) LN Natural logarithm of operand in<br />

LOG(in) LOG Logarithm of operand in, base 10<br />

EXP(in) EXP Exponential function of operand in<br />

SIN(in) SIN Sine of operand in<br />

COS(in) COS Cosine of operand in<br />

TAN(in) TAN Tangent of operand in<br />

ASIN(in) ASIN Arc sine of operand in<br />

ACOS(in) ACOS Arc cosine of operand in<br />

ATAN(in) ATAN Arc tangent of operand in<br />

EXPT(in,expt) EXPT expt Exponentation of operand in with expt<br />

CoDeSys V2.3 10-63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!