blockAdd2

Output the sum of the two inputs (inputs are on the left and below)
Diagram of Add2

Information

This blocks computes output y as difference of the commanded input u1 and the feedback input u2:

    y = u1 - u2;

Example:

     parameter:   n = 2

  results in the following equations:

     y = u1 - u2

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu1
Modelica.Blocks.Interfaces.RealInputu2
Modelica.Blocks.Interfaces.RealOutputy