Oops, sorry for the botched subject.
Am 13.02.21 um 10:50 schrieb Ben Franksen via Tech-talk:
> I have a question regarding the epid record type, which is part of
> https://github.com/epics-modules/std.
>
> According to the docs, the formula to calculate the output is
>
> OVAL = P + I + D
> P = KP * E(n)
> I = KP * KI * SUMi ( E(i) * dT(n) )
> D = KP * KD * ( (E(n) - (E(n-1) ) / dT(n) )
>
> I checked that the code (in the soft device support) really does that. I
> am ignoring the extra functionality that limits the output to be between
> DRVL and DRVH as this is irrelevant here.
>
> Suppose we have been at the target position for some time, i.e.
> VAL=OVAL, so that E(n)=0 for all n. Then all terms become 0 and the
> output is OVAL=0 as well. But shouldn't it be OVAL=VAL instead?
>
> Either I am mising something here or this is a bug and line 171 of
> stdApp/src/devEpidSoft.c should not be
>
> oval = p + i + d;
>
> but rather
>
> oval += p + i + d;
>
> and the formula above start with
>
> OVAL += P + I + D
>
> Cheers
> Ben
>
--
I would rather have questions that cannot be answered, than answers that
cannot be questioned. -- Richard Feynman
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- EPICS Record Ben Franksen via Tech-talk
- Navigate by Date:
- Prev:
EPICS Record Ben Franksen via Tech-talk
- Next:
Re: EPID Record Mark Rivers via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
- Navigate by Thread:
- Prev:
EPICS Record Ben Franksen via Tech-talk
- Next:
Re: EPID Record Mark Rivers via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
|