EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: seq and synchronous writes
From: "Konrad, Martin" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 5 Sep 2013 20:08:06 +0000
Hi Mark,
> The problem is that synchronous puts to the motor record wait for the
> motor to stop moving, or the timeout (10 seconds default) to occur.
> You don't want to use SYNC here.
So the solution would be something like this?

state state1 {
    entry {
      sprintf(stateMsg, "state 1");
      pvPut(stateMsg);
    }

    when(foo) {
      motor = bar;
      pvPut(motor);
    } state intermediate
}

state intermediate {
   when(motorDMOV == 0) {
   } state state2
}

state state2 {
    entry {
      sprintf(stateMsg, "state 2");
      pvPut(stateMsg);
    }
}

Can I be sure that this always works? Even in case the motor is 
commanded to the same position again and DMOV is 0 only for a very short 
time?

Martin


Replies:
RE: seq and synchronous writes Mark Rivers
References:
seq and synchronous writes Konrad, Martin

Navigate by Date:
Prev: RE: seq and synchronous writes Mark Rivers
Next: Re: seq and synchronous writes Konrad, Martin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: seq and synchronous writes Mark Rivers
Next: RE: seq and synchronous writes Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·