Subtract
Subtracts the second input from the first.
- signal
- Gradara equations
- 3 ports
subtractLibraryMathDescription
Subtracts the second input from the first. Use it to form a control error: setpoint on +, measurement on −.
Example
Arithmetic Sum, difference, product, quotient, minimum, and maximum of a ramp and a constant.
a = tb = 2a + ba − ba · ba / bmin(a, b)max(a, b)
Ports
Inputs 2
-
+
aInput added (+).
-
−
bInput subtracted (−).
Outputs 1
-
y
Output signal, a − b.
Equations
Modelica
y = a − b
Implementation
The block’s Modelica model
y = a - b;
Used in
These larger examples use it too. Open them from Examples in the app.
- Data center cooling control
- EV drivetrain
- PMSM · Field-oriented control
See also
Select a block in Gradara and press F1 to open its page offline.