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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Dynamically changing HIHI PV field |
From: | "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Torsten Bögershausen <Torsten.Bogershausen at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 12 Apr 2022 17:49:37 +0000 |
Thanks, Torsten! It worked exactely as planned.
The only things i had to adjust were the scan fields: since my records are not asyn type, i changed the $(PREFIX)$(MOTOR_NAME)-CfgVELO-RB_ scan field to 1 second and the $(PREFIX)$(MOTOR_NAME)-CfgVELO-RB scan field to passive. So now the HIHI field of MY:VARIABLE is updated every 1 second. Marco From: Torsten Bögershausen <Torsten.Bogershausen at ess.eu>
Sent: 12 April 2022 13:46 To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Re: Dynamically changing HIHI PV field I think that you need two helper records. (this is a copy of our motor-business "as is", you need to adjust the macros and such)
One record that is "filled" by the hardware (driver), like below, which is an input record:
record(ai, "$(PREFIX)$(MOTOR_NAME)-CfgVELO-RB") { field(DTYP, "asynFloat64") field(PREC, "$(PREC)") field(INP, "@asyn($(MOTOR_PORT),$(AXIS_NO))CfgVELO-RB") field(SCAN, "I/O Intr") }
######### The next helper record is an output record, that "pushes" it's value into the field of the "wanted record", specified in the OUT field:
record(ao, "$(PREFIX)$(MOTOR_NAME)-CfgVELO-RB_") { field(PREC, "$(PREC)") field(DOL, "$(PREFIX)$(MOTOR_NAME)-CfgVELO-RB CP") field(OUT, "$(PREFIX)$(MOTOR_NAME).VELO") field(OMSL, "closed_loop") }
HTH
From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov>
Hello all. Im trying to get that PV result and put it in the HIGH field of another PV. Something like: field(HIHI, 10) field(HIGH, "ANOTHER:PV:HIGH:LIMIT PP") field(LOW, -1) field(LOLO, -5) field(HHSV, MAJOR) field(HSV, MINOR) field(LSV, MINOR) field(LLSV, MAJOR) }
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. |