Hi,
Also, the offset field in combination with SYNC should provide a way to do your particular example, something like:
# Existing positions:
motor.RBV 0.5
motor.VAL 2.0
# set the offset:
caput -c motor.OFF 0.5
# New offset positions:
motor.RBV 1.0
motor.VAL 2.5
# Sync VAL to RBV
caput -c motor.SYNC 1
# Final positions
motor.RBV 1.0
motor.VAL 1.0
Cheers,
Matt
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Torsten Bögershausen via Tech-talk
Sent: Saturday, October 29, 2022 6:16 PM
To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>; tech-talk at aps.anl.gov
Subject: [EXTERNAL] Re: Motor record: motion relative to .RBV
Do you look for the .SYNC field ?
Hello all!
Im reading through the EPICS motor record to search for a field similar to .RLV. If i understand correctly, the .RLV will do something similar to summing the caputted value to .VAL instead of directly putting it into .VAL.
Is there a field that sums itself with .RBV instead and then puts this value into .VAL?
Example of expected behavior:
caget MOTOR.RBV
MOTOR.RBV 0.5
caget MOTOR.VAL
MOTOR.VAL 2 #Lets say that for some reason .VAL and .RBV are not in sync.
caput MOTOR.MISTERIOUS_FIELD 0.5
#wait for some time...
caget MOTOR.RBV
MOTOR.RBV 1
caget MOTOR.VAL
MOTOR.VAL 1
Sorry if the question is trivial but i couldnt find anything in the documentation. Thanks!
Marco
Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere
eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.
Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible
querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.