ADD

The ADD instruction adds two or more Integer, Real, Time, or String values.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
ADD
ADD
ADD parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
When set to true, the instruction is enabled.
  • TRUE: Execute the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
i1
Input
SINT
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
STRING
Addend of the Real, Time, or String data type.
All inputs must use the same data type.
i2
Input
SINT
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
STRING
Addend of the Real, Time, or String data type.
All inputs must be of the same data type.
o1
Output
SINT
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
STRING
Sum of the input values in Real, Time, or String format.
Input and output must use the same data type.
ENO
Output
BOOL
Enables output. Applies to ladder diagram programs.

ADD examples

ADD function block diagram example
ADD function block diagram example
ADD ladder diagram program example
ADD ladder diagram program example
(* ST equivalence: *) ao10 := ai101 + ai102; ao5 := (ai51 + ai52) + ai53;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal