integral

PLCopen motion icon

 Function Block - Calculates the integral of a signal with respect to time.

Inputs

Input

Data Type

Range

Unit

Default

Description

CYCLE

TIME

 

 

 

  • Sampling period.
  • Must not be less than the target cycle timing.

R1

BOOL

 

 

 

Overriding reset.

RUN

BOOL

 

 

 

Run command:

  • TRUE = integrate.
  • FALSE = hold.

X0

REAL

 

 

 

Initial value.

XIN

REAL

 

 

 

Input signal.

Outputs

Output

Data Type

Range

Unit

Description

Q

DINT

 

 

Running mode report: NOT (R1).

XOUT

REAL

 

 

Output signal.

Remarks

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

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the input rung is the RUN command.
    • The output rung is the Q report status.

IL Language Example

Not available.

ST Language Example

(* MyIntg is a declared instance of INTEGRAL function block. *)
MyIntg (RUN, R1, XIN, X0, CYCLE);
Q := MyIntg.Q;
XOUT := MyIntg.XOUT;

See Also