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: help setting up XY table control with EPICS StreamerClass
From: Eric Norum <[email protected]>
To: Christian Pauly <[email protected]>
Cc: [email protected]
Date: Thu, 20 Jun 2013 09:53:22 -0700
Can the table accept commands while a previous command is active?   If not, what is wrong with just waiting for the OK?

On Jun 20, 2013, at 9:05 AM, Christian Pauly <[email protected]> wrote:

> Hi
> I am trying to set up EPICS control for a XY-scanning table.
> Control of the motor controller for the two stepper motors via RS232 is rather simple, and already implemented via StreamerClass:
> 
> The controller understands 4 simple commands:
> u100/r
> d100/r
> l100/r
> r100/r    to move the motors up/down/left/right by 100 steps.
> 
> In return, AFTER FINISHING the move (which can take up to 10sec), the controller returns a "OK/r/n"
> 
> So far i was using a protokoll like this:
> move {
>    out "\$1%d\r";
>    in "OK\r\n";
> }
> 
> and 4 EPICS records for moving like this:
> record(longout, "XY:movel")
> {
>    field(DESC, "Move XY-Table left")
>    field(DTYP, "stream")
>    field(OUT,  "@devXYtableSupport.proto move(l) $(PORT) $(A)")
>    field(FLNK, "XY:posX.PROC")
> }
> 
> However, due to the long move-times, this is not ideal. As i understand from the documentation, one should rather implement an asynchronous control.
> 
> Best would be, to have a separate boolan record "motorsmoving" which is set to "TRUE" every time i send a move command to the controller, and which is set back to "FALSE" once the controller sends back the "OK".
> 
> Any advice how to proceed ???
> I am fighting for days now...
> 
> Thanks for any help !
> 
> Christian
> 

-- 
Eric Norum
[email protected]






Replies:
Re: help setting up XY table control with EPICS StreamerClass Christian Pauly
References:
help setting up XY table control with EPICS StreamerClass Christian Pauly

Navigate by Date:
Prev: help setting up XY table control with EPICS StreamerClass Christian Pauly
Next: New EPICS support module "feller", release 0.1 Benjamin Franksen
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: help setting up XY table control with EPICS StreamerClass Christian Pauly
Next: Re: help setting up XY table control with EPICS StreamerClass Christian Pauly
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 ·