FB_SimIntegral

Integral block

The integral block integrates the input value 'fIn' with respect to time. The time difference that elapses between two calls of the block serves as the time base.

FB_SimIntegral 1:

VAR_INPUT

VAR_INPUT
    bRun   : BOOL; (* Integrate 1, Hold 0 *)
    bReset : BOOL; (* Reset *)
    XIN    : REAL; (* Input for Integral*)
    X0     : REAL; (* Initial value *)
END_VAR

bRun: Activates the block

bReset: Initialises the block with the initialisation value in 'fInit'

fIn: Input value for integration

fInit: Initialisation value

VAR_OUTPUT

VAR_OUTPUT
    fOut       : REAL; (* Integral out, Integrated over milliseconds*)
END_VAR

fOut: Integrated value

Requirements

Development
Environment

Target System

PLC Libraries to include

TwinCAT v2.9.0 Build > 1020

PC (i386)

TcSimManager.Lib

(Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically)