Experimental Physics and Industrial Control System
Hi John,
On Tuesday 04 January 2011 13:46:19 John Dobbins wrote:
>
> I have a record connected to hardware through device support that I have
> written. I have a situation in which the record ends up in the state STAT =
> SCAN, SEVR = INVALID
>
> I looked in dbAccess.c and it appears to me that this can mean that
> MAX_LOCK requests were made to process an already processing record. Is
> this correct?
Yup, if PACT is true for MAX_LOCK successive attempts to process the record it
will go into this state (but that won't stop the device support from running
the second half of record processing if it eventually tries that).
> I am guessing my device support is not finishing properly so that
> consecutive requests pile up. Is this a good guess?
Most likely. The requests don't actually pile up though, they just get
counted, up to MAX_LOCK times, and immediately discarded.
> Apologies for the open ended nature of this query. Searching for "STAT"
> and "SCAN" can find a lot of not particularly helpful info.
Apologies that this was not better documented, I've added a bug against the
AppDevGuide which should at least have an index entry; SCAN_ALARM is mentioned
briefly in section 5.9.
- Andrew
--
If a man is offered a fact which goes against his instincts, he will
scrutinize it closely, and unless the evidence is overwhelming, he will
refuse to believe it. If, on the other hand, he is offered something
which affords a reason for acting in accordance to his instincts, he
will accept it even on the slightest evidence. -- Bertrand Russell
- References:
- record STAT = SCAN John Dobbins
- Navigate by Date:
- Prev:
record STAT = SCAN John Dobbins
- Next:
APS Webserver Upgrade tomorrow Andrew Johnson
- 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:
record STAT = SCAN John Dobbins
- Next:
APS Webserver Upgrade tomorrow Andrew Johnson
- 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