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

Page 55

Advertising
background image

L-force | PLC Designer

What is What in PLC Designer



DMS 3.2 EN 02/2011 TD29

53

Below you find a table of the ST operators in the order of their binding strength:

Operation

Symbol

Binding strength

Put in parentheses

(expression)

Strongest binding

Function call

Function name
(parameter list)

Exponentiation

EXPT

Negate
Building of complements

-
NOT

Multiply

Divide

Modulo

*

/

MOD

Add
Subtract

+
-

Compare

<,>,<=,>=

Equal to Not equal to

= <>

Boolean AND

AND

Boolean XOR

XOR

Boolean OR

OR

Weakest binding

Instruction type

Example

Assignment

A:=B; CV := CV + 1; C:=SIN(X);

Calling a function block and
use of the FB output

CMD_TMR(IN := %IX5, PT := 300);

A:=CMD_TMR.Q

RETURN RETURN;

IF

D:=B*B;

IF D<0.0 THEN

C:=A;

ELSIF D=0.0 THEN

C:=B;

ELSE

C:=D;
END_IF;

Advertising