Table of Contents

ADD

Function name

ADD

ST call

PROGRAM ADD_DEMO
   VAR
     REAL1,REAL2,REAL3: REAL;
    END_VAR
 REAL3:= ADD(IN1:=REAL1, IN2:=REAL2);
END_PROGRAM

Description

Returns the sum of input number types. Number of inputs may be higher than 2.

Inputs

InputType Description
IN1 ANY_MAGNITUDEInput value
IN2 ANY_MAGNITUDEInput value

Outputs

OutputType Description
ANY_MAGNITUDEOutput value

Application example