User guide

ciwaa34a
Time-Lim-Int
F
In
c
LoweYLim
b
UpperLitn
b
InKand
w
Reset
b
DLakle
c
Pmrt
c
PmetVal
out
Description
It calculates the limited integral of the input
[xl.
It is possible to specify the Initial value of the integral [x
set]
(IuiCond), Reset the
integral,
Disable
the calculation or set the integral to a
PresetValue [x set].
C-style description
static float LimIutegral=O;
if (Reset != 0)
LimIntegrakO;
else if (Disable != 0)
{
/* Nothing is performed */I
else if (Preset != 0)
LimIntegral=PresetVaI;
else if (FirstRun != 0)
LimIntegral=IniCond+O.OOl *CycleTimeMsec*In;
else
/*
LimIntegral is limited
*/
LimIntegral=LimIntegral+OBO1 *CycleTimeMsec *In;
if (LimIntegral
<
LowerLim)
LimIntegral=LowerLim;
else if (LimIntegral > LowerLim)
LimIntegral=UpperLim
Out=LimIntegral;
192