ADD

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:

ADD 1: