Subtraction
Subtracts two integer or real variables (first - second).

Arguments | ||
---|---|---|
IN1 | DINT - REAL | can be integer or real format |
IN2 | DINT - REAL | (IN1 and IN2 must have the same format) |
Q | DINT - REAL | subtraction (first - second) |
Example
(* FBD example with Subtraction Operators *)

(* ST equivalence: *)
ao10 := ai101 - ai102;
ao5 := (ai51 - 1) - ai53;
Provide Feedback