derivate

PLCopen motion icon

 Function Block - Computes the derivative of a signal with respect to time.

  • The time unit is seconds.
  • The output signal has the units of the input signal divided by seconds.
  • The derivate block samples the input signal at a maximum rate of 1 millisecond.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

RUN

BOOL

FALSE, TRUE

 

 

Run command:

  • TRUE=derivate.
  • FALSE=hold.

XIN

REAL

 

 

 

Input signal.

CYCLE

TIME

 

 

 

Sampling period.

Must not be less than the target cycle timing.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

XOUT

REAL

 

 

Output signal.

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the input rung is the RUN command.
    • The output rung keeps the state of the input rung.
    • ENO has the same state as RUN.

IL Language Example

Not available.

ST Language Example

(* MyDerv is a declared instance of DERIVATE function block. *)
MyDerv (RUN, XIN, CYCLE);
XOUT := MyDerv.XOUT;

See Also