Operator ‘ADD’

This IEC operator is used for adding variables.

Permitted data types: BYTE, WORD, DWORD, LWORD, SINT, USINT, INT, UINT,DINT, UDINT, LINT, ULINT, REAL, LREAL, TIME, TIME_OF_DAY (TOD), DATE, DATE_AND_TIME(DT)

Possible combinations for TIME data types: TIME+TIME = TIME, TOD+TIME = TOD, DT+TIME = DT

Feature in the FBD/LD editor: You can extend the ADD operator to function block inputs. The number of additional function block inputs is limited.

Examples

ST:

var1 := 7+2+4+7;

FBD:

../_images/6c5c1da5bcaeed13c0a8640e00d76004