DERIVATE
Differentiation of a real value.
If the CYCLE parameter value is less than the real duration of the cycle time in the virtual
machine, the sampling period uses the real duration of the cycle time.

Arguments | ||
---|---|---|
RUN | BOOL | Mode: TRUE=normal / FALSE=reset |
XIN | REAL | Input: any real value |
CYCLE | TIME | Sampling period. Possible values range from 0ms to 23h59m59s999ms. |
XOUT | REAL | Differentiated output |
Example
(* FBD program using the DERIVATE block: *)

(* ST Equivalence: DERIVATE1 instance of DERIVATE block *)
DERIVATE1(manual_mode, sensor_value, T#100ms); derivated_value := DERIVATE1.XOUT;
Provide Feedback