IEC operator for the addition of variables
Allowed types
oBYTE
oWORD
oDWORD
oLWORD
oSINT
oUSINT
oINT
oUINT
oDINT
oUDINT
oLINT
oULINT
oREAL
oLREAL
oTIME
oTIME_OF_DAY(TOD)
oDATE
oDATE_AND_TIME(DT)
For time data types, the following combinations are possible:
oTIME+TIME=TIME
oTOD+TIME=TOD
oDT+TIME=DT
In the FBD/LD editor, the ADD operator is an extensible box. This means, instead of a series of concatenated ADD boxes, you can use 1 box with multiple inputs. Use the command Insert Input for adding further inputs. The number is unlimited.
LD 7
ADD 2
ADD 4
ADD 7
ST iVar
var1 := 7+2+4+7;
1. series of ADD boxes
2. extended ADD box
3. ADD box with EN/ENO parameters