DERIVATE

Differentiates a real value.
Arguments
RUN
BOOL
Mode: TRUE=normal / FALSE=reset
XIN
REAL
Input: any real value
CYCL
TIME
Sampling period. Possible values range from 0ms to 23h59m59s999ms.
XOUT
REAL
Differentiated output
If the "CYCLE" parameter value is less than the real duration of the cycle time in the virtual machine, the sampling period will use the real duration of the cycle time.

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
Have questions or feedback about this documentation? Please submit your feedback here.
Normal