INTEGRAL
Function Block - Calculates the integral of a signal.
Inputs
|
Input |
Data type |
Description |
|
RUN |
BOOL |
Run command: TRUE=integrate / FALSE=hold: |
|
R1 |
BOOL |
Overriding reset. |
|
XIN |
REAL |
Input signal. |
|
X0 |
REAL |
Initial value. |
|
CYCLE |
TIME |
Sampling period (should not be less than the target cycle timing). |
Outputs
|
Output |
Data type |
Description |
|
Q |
DINT |
Running mode report: NOT (R1). |
|
XOUT |
REAL |
Output signal. |
Remarks
In LD language, the input rung is the RUN command. The output rung is the Q report status.
ST Language
MyIntg is a declared instance of INTEGRAL function block.
MyIntg (RUN, R1, XIN, X0, CYCLE);
Q := MyIntg.Q;
XOUT := MyIntg.XOUT;
FBD Language

LD Language

INTEGRAL |
|
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > INTEGRAL |
Created with the Personal Edition of HelpNDoc: Full-featured EBook editor

