Drive plc developer studio, Show/hide bookmarks – Lenze DDS v2.3 User Manual
Page 268

Drive PLC Developer Studio
IEC 61131-3 Operators
11-2
l
DDS EN 2.3
Operator ST
Meaning
Mod.IL
Operator IL
<
LT
(
Less than
MOD(in)
MOD
Modulo division
INDEXOF(in)
INDEXOF
Internal index of an organization unit in1; [INT]
SIZEOF(in)
SIZEOF
Required number of bytes for data type specified for in
SHL(K,in)
SHL K
Shift bits left by K within an operand
SHR(K,in)
SHR K
Shift bits right by K within an operand
ROL(K,in)
ROL K
Rotate bits left by K within an operand
ROR(K,in)
ROR K
Rotate bits right by K within an operand
SEL(G,in0,in1)
SEL in 0, in 1
Binary selection between two operands in0 (G is FALSE) and in1
(G is TRUE)
MAX(in0,in1)
MAX in 1
Return the greater of 2 values
MIN(in0,in1)
MIN in1
Return the lesser of 2 values
LIMIT(MIN,in,Max)
LIMIT MIN, MAX
Limit the value range (will be reset to Min. or Max. if exceeded)
MUX(K,in0,...in_n)
MUX in0,...,in_1
Select the Kth value from a number of values (in0 to In_n)
ADR(in)
ADR
Address of the operand in [DWORD]
BOOL_TO_
BOOL_TO_
Type conversion of the Boolean operand into a different
elementary type
BYTE_TO_
INT_TO_
Type conversion of the BYTE operand into a different elementary
type
WORD_TO_
INT_TO_
Type conversion of the WORD operand into a different
elementary type
Type conversion of the operand to BOOL
INT_TO_
INT_TO_
Type conversion of the INT operand into a different elementary
type
DINT_TO_
DINT_TO_
Type conversion of the DINT operand into a different elementary
type
REAL_TO_
REAL_TO_
Type conversion of the REAL operand into a different elementary
type
LREAL_TO_
LREAL_TO_
Type conversion of the LREAL operand into a different
elementary type
TIME_TO_
TIME_TO_
Type conversion of the TIME operand into a different elementary
type
TOD_TO_
TOD_TO__
Type conversion of the TOD operand into a different elementary
type
DATE_TO_
DATE_TO_
Type conversion of the operand into a different elementary type
DT_TO_
DT_TO_
Type conversion of the operand into a different elementary type
STRING_TO_
STRING_TO_
Type conversion of the operand into a different elementary type,
in must contain valid value of the target type
TRUNC(in)
TRUNC
Conversion from REAL to INT
ABS(in)
ABS
Absolute value of the operand
SQRT(in)
SQRT
Square root of the operand
LN(in)
LN
Natural logarithm of the operand
LOG(in)
LOG
Logarithm of the operand to the base of 10
EXP(in)
EXP
Exponential function of the operand
SIN(in)
SIN
Sine of the operand
COS(in)
COS
Cosine of the operand
TAN(in)
TAN
Tangent of the operand
ASIN(in)
ASIN
Arc sine of the operand
ACOS(in)
ACOS
Arc cosine of the operand
ATAN(in)
ATAN
Arc tangent of the operand
EXPT(in,expt)
EXPT expt
Exponentiation of the operand by expt
Show/Hide Bookmarks