Hi,
I believe this explains it:
https://urldefense.us/v3/__https://epics.anl.gov/tech-talk/2012/msg01362.php__;!!G_uCfscf7eWS!b3GHpOD-DjC9Wy4RA4ORQY53vsLVgVnnzJht73Y6d7f43VO2i9wkrT5NGLm4RTuAlkYdvVHgEEE3LKPIhRH5lFHf$
Cheers,
Matt
-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Torsten Bögershausen via Tech-talk
Sent: Friday, April 19, 2024 9:11 AM
To: Hinko Kocevar <Hinko.Kocevar at ess.eu>; tech-talk at aps.anl.gov
Subject: [EXTERNAL] Re: caput with ca_put_callback
Hej Hinko,
>can someone explain what is going on in the first case with caput >command both using ca_put_callback ?
At least I can not.
My coment would be, that the "wait/callback", the "-w" in caput, is only intended for the VAL field (or RVAL,DVAL). May be homing.
But not for STOP.
Does this help ?
BR
/Torsten
On 2024-04-19 14:30, Hinko Kocevar via Tech-talk wrote:
> I'm playing around with the motor record (motorMotorSim) and how one could abort the motion in progress.
>
> With initial position at 0 I do the following in three terminals ; executing commands one after another:
>
> TERM1:
> $ camonitor IOC:m1.RBV
> IOC:m1.RBV 2024-04-19 14:17:15.641496 0
> IOC:m1.RBV 2024-04-19 14:17:22.458046 0.02
> IOC:m1.RBV 2024-04-19 14:17:22.558330 0.09
> ...
> IOC:m1.RBV 2024-04-19 14:17:37.500906 14.99
> IOC:m1.RBV 2024-04-19 14:17:37.601177 15
>
>
> TERM2:
> $ caput -l -c -w 20 IOC:m1.VAL 15
> Old : IOC:m1.VAL 2024-04-19 14:17:15.641496 0
> New : IOC:m1.VAL 2024-04-19 14:17:37.601294 15
>
>
> TERM3:
> $ caput -l -c -w 20 IOC:m1.STOP 1
> Old : IOC:m1.STOP 2024-04-19 14:17:23.059605 0
> New : IOC:m1.STOP 2024-04-19 14:17:37.601294 0
>
>
> The TERM3 caput to .STOP is waiting TERM2 caput to .VAL to finish.
>
> If the caput command in TERM3 is not using the ca_put_callback then the motor motion is aborted immediately as seen below:
>
> TERM1:
> $ camonitor IOC:m1.RBV
> IOC:m1.RBV 2024-04-19 14:24:48.447635 0
> IOC:m1.RBV 2024-04-19 14:24:54.863364 0.02
> IOC:m1.RBV 2024-04-19 14:24:54.963617 0.09
> ...
> IOC:m1.RBV 2024-04-19 14:24:57.269834 2.3
> IOC:m1.RBV 2024-04-19 14:24:57.370032 2.31
>
>
> TERM2:
> $ caput -l -c -w 20 IOC:m1.VAL 15
> Old : IOC:m1.VAL 2024-04-19 14:24:48.447635 0
> New : IOC:m1.VAL 2024-04-19 14:24:57.370032 2.31
>
>
> TERM3:
> $ caput -l -w 20 IOC:m1.STOP 1
> Old : IOC:m1.STOP 2024-04-19 14:24:57.069324 0
> New : IOC:m1.STOP 2024-04-19 14:24:57.085839 0
>
>
> can someone explain what is going on in the first case with caput command both using ca_put_callback ?
>
> Thanks,
> //hinko
- Replies:
- Re: [EXTERNAL] Re: caput with ca_put_callback Hinko Kocevar via Tech-talk
- References:
- caput with ca_put_callback Hinko Kocevar via Tech-talk
- Re: caput with ca_put_callback Torsten Bögershausen via Tech-talk
- Navigate by Date:
- Prev:
Re: caput with ca_put_callback Torsten Bögershausen via Tech-talk
- Next:
Re: [EXTERNAL] Re: caput with ca_put_callback Hinko Kocevar 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:
Re: caput with ca_put_callback Torsten Bögershausen via Tech-talk
- Next:
Re: [EXTERNAL] Re: caput with ca_put_callback Hinko Kocevar 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>
|