ADD
IEC operator for the addition of variables
Allowed types
__UXINT
__XINT
__XWORD
BYTE
DATE
DATE_AND_TIME
DINT
DT
DWORD
INT
LDATE
LDATE_AND_TIME
LDT
LINT
LREAL
LTIME
LTOD
LWORD
REAL
SINT
TIME
TIME_OF_DAY
TOD
UDINT
UINT
ULINT
USINT
WORD
For time data types, the following combinations are possible:
TIME+TIME=TIME
TIME+LTIME=LTIME
LTIME+LTIME=LTIME
For date and time data types, the following combinations are possible:
TOD+TIME=TOD
DT+TIME=DT
TOD+LTIME=LTOD
DT+LTIME=LDT
LTOD+TIME=LTOD
LDT+LTIME=LDT
LTOD+LTIME=LTOD
LDT+LTIME=LDT
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 for adding further inputs. The number is unlimited.