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

Page 52

Advertising
background image

L-force | PLC Designer

What is What in PLC Designer

50

DMS 3.2 EN 02/2011 TD29



Below you find a table of all operators in IL with their possible modifiers and the
relevant meaning:

Operator

Modifiers Meaning

LD

N

Make current result equal to the operand

ST

N

Save current result at the position of the operand

S

Then put the Boolean operand exactly at TRUE if the current result is TRUE

R

Then put the Boolean operand exactly at FALSE if the current result is TRUE

AND N,( Bitwise

AND

OR

N,(

Bitwise OR

XOR

N,(

Bitwise exclusive OR

ADD

(

Addition

SUB (

Subtraction

MUL

(

Multiplication

DIV ( Division

GT

(

>

GE ( >=

EQ

(

=

NE ( <>

LE

(

<=

LT ( <

JMP

CN

Jump to the label

CAL

CN

Call programor function block or

RET

CN

Leave POU and return to caller.

)

Evaluate deferred operation

Click here to get a listing of all IEC operators.

Example of an IL program while using some modifiers:

LD

TRUE

(*load TRUE in the accumulator*)

ANDN

BOOL1

(*execute AND with the negated value of the BOOL1 variable*)

JMPC

mark

(*if the result was TRUE, then jump to the label "mark"*)

LDN

BOOL2

(*save the negated value of *)

ST

ERG

(*BOOL2 in ERG*)

label:

LD

BOOL2

(*save the value of *)

ST

ERG

*BOOL2 in ERG*)

Advertising