Arithmetic operators, Arithmetic operators 3, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 1045
Advertising
L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
1043
16.3.2
Arithmetic Operators
The following operators, prescribed by the IEC1131-3 standard, are available:
• ADD, MUL, SUB, DIV, MOD, MOVE
There are also two norm-extending operators:
• INDEXOF, SIZEOF
ADD
IEC Operator: Addition of variables.
Allowed types: BYTE, WORD, DWORD, LWORD, SINT, USINT, INT, UINT, DINT, UDINT,
LINT, ULINT, REAL and LREAL.
Two TIME variables can also be added together resulting in another time
(for example, t#45s + t#50s = t#1m35s)
Example in IL:
Example in ST:
var1 := 7+2+4+7;
Example in FBD:
Advertising