beautypg.com

L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 1046

background image

L-force | PLC Designer

Programming Reference

1044

DMS 4.1 EN 03/2011 TD29

MUL
IEC Operator: Multiplication of variables .
Allowed types: BYTE, WORD, DWORD, LWORD, SINT, USINT, INT, UINT, DINT, UDINT,
LINT, ULINT, REAL and LREAL.
Example in IL:

Example in ST:

var1 := 7*2*4*7;

Example in FBD:

SUB
IEC Operator: Subtraction of one variable from another one.
Allowed types: BYTE, WORD, DWORD, LWORD, SINT, USINT, INT, UINT, DINT, UDINT,
LINT, ULINT, REAL and LREAL.
A TIME variable may also be subtracted from another TIME variable resulting in third
TIME type variable. Note that negative TIME values are undefined.
Example in IL:

Example in ST:

var1 := 7-2;

Example in FBD: