The problem must be that your SNL code is effectively doing a ca_put_callback when it writes to the VAL field. That will wait for the motor to complete the move. Are you using the "SYNC" option on pvPut()? If so you should remove it.
Mark
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Hovanes Egiyan
> Sent: Friday, March 09, 2018 10:36 AM
> To: [email protected]
> Cc: Vanik Kakoyan <[email protected]>
> Subject: problem using motor record and SNL
>
> Hi,
>
> we are trying to move a motor and then stop it using EPICS sequencer
> code and motor record.
> The state code dials the desired location into the VAL field via pvPut()
> and makes
> the motor move. If the user requests the motion to be aborted during the
> motion, the
> state code attempts to stop the motor either using STOP field or SPMG
> fields. And for some reason this does not work. Actual change of the
> SPMG field to
> "Stop" only happens when the motor motion is complete, and setting
> STOP field to 1 from the state code does not have any effect.
>
> But if either moving the motor is done using caput to the VAL field or
> the stopping the motor is done via caput to the STOP or SPMG fields, it
> works. What is
> the reason for such a behavior? Is this expected? Any advice would be
> appreciated.
>
> We are using motorR6-8 and seq-2.1.12 for this with R3-14-12-3 on RHEL6.
>
> Thanks,
> Hovanes Egiyan.
- Replies:
- Re: problem using motor record and SNL Hovanes Egiyan
- References:
- problem using motor record and SNL Hovanes Egiyan
- Navigate by Date:
- Prev:
problem using motor record and SNL Hovanes Egiyan
- Next:
RE: Mako G-234B (6408) - Prosilica Area Detector question Mark Rivers
- 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:
problem using motor record and SNL Hovanes Egiyan
- Next:
Re: problem using motor record and SNL Hovanes Egiyan
- 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
|