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

Page 463

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions



DMS 3.2 EN 02/2011 TD29

461

9.2

Arithmetic Operators...

9.2.1

ADD

PLC Designer IEC operator: Addition of variables of the types: BYTE, WORD, DWORD,
SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL.

Two TIME variables can also be added together resulting in another time

(e.g., t#45s + t#50s = t#1m35s)

Example in IL:

LD 7

ADD 2,4,7

ST Var1

Example in ST:

var1 := 7+2+4+7;

Example in FBD:

9.2.2

MUL

PLC Designer IEC operator: Multiplication of variables of the types: BYTE, WORD,
DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL.

Example in IL:

LD 7

MUL 2,4,7

ST Var1

Example in ST:

var1 := 7*2*4*7;

Advertising