beautypg.com

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

Page 534

background image

L-force | PLC Designer

Operators and Library Modules Overview

532

DMS 3.2 EN 02/2011 TD29

in ST

in AWL

Mod.

AWL

Description

(

The value following the bracket is handled
as operand, the operation before the

bracket is not executed before the
expression in the brackets.

)

Now execute the operation which has
been set back

AND

AND N,(

Bitwise

AND

OR

OR

N,( Bitwise OR

XOR

XOR

N,( Bitwise exclusive OR

NOT

NOT

Bitweise NOT

+

ADD (

Addition

-

SUB

(

Subtraction

*

MUL (

Multiplication

/

DIV

(

Division

>

GT (

Greater

than

>=

GE

(

Greater or equal

=

EQ (

Equal

<>

NE

(

Not equal

<=

LE

(

Less or equal

<

LT

(

Less than

MOD(in)

MOD

Modulo

Division

INDEXOF(in)

INDEXOF

Internal index of POU in1; [INT]

SIZEOF(in)

SIZEOF

Number of bytes required for the given
data type of in

SHL(K,in)

SHL

Bitwise left-shift of operator in by K

SHR(K,in)

SHR

Bitwise

right-shift

of operator in by K

ROL(K,in)

ROL

Bitwise rotation to the left of operator in

by K

ROR(K,in)

ROR

Bitwise rotation to the right of operator in
by K

SEL(G,in0,in1)

SEL

Binary selection between 2 operands in0

(G is FALSE) and in1 (G is TRUE)

MAX(in0,in1)

MAX

Returns the greater of 2 values

MIN(in0,in1)

MIN

Returns the lesser of 2 values in0 and in1

LIMIT(MIN,in,Max)

LIMIT

Limits the value range (in is set back to
MIN or MAX in case of exceeding the
range)