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  2013  2014  <20152016  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  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: mbbi as the result of calc
From: "Mooney, Tim M." <[email protected]>
To: Benoit <[email protected]>, EPICS mailing list <[email protected]>
Date: Mon, 4 May 2015 17:22:38 +0000
Hi Benoit,

Yes, it's possible, and you almost have it.  I think this should work:

record(mbbi, "$(user):TunMechModeRdbk")
{
field(DESC ,"Cavity Phase increase")
field(ZRST, "Disable")
field(ZRVL, "0")
field(ONST, "Manual")
field(ONVL, "1")
field(TWST, "Auto")
field(TWVL, "2")
}
record(calcout, "$(user):TunMechModeCalc")
{
field(CALC, "A | ( B << 1 )")
field(INPA, "$(user):DOutTunmcEnStat.VAL CP MS")
field(INPB, "$(user):DOutTunmcAutoStat.VAL CP MS")
field(OUT,
"$(user):TunMechModeRdbk PP")
}

Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: [email protected] [[email protected]] on behalf of Benoit [[email protected]]
Sent: Monday, May 04, 2015 10:00 AM
To: EPICS mailing list
Subject: mbbi as the result of calc

Hi,

After finding out that CSS/BOY is very CPU consuming I am trying to put more effort on the IOC side and I was wondering if it is possible
to have the result of $(user):TunMechModeCalc in a mbbi to display it directly as a combo box without using script:


record(mbbi, "$(user):TunMechModeRdbk")
{
field(DESC ,"Cavity Phase increase")
field(FLNK,"$(user):TunMechModeCalc")
field(ZRST, "Disable")
field(ZRVL, "0")
field(ONST, "Manual")
field(ONVL, "1")
field(TWST, "Auto")
field(TWVL, "2")
}
record(calc, "$(user):TunMechModeCalc")
{
field(CALC, "A | ( B << 1 )")
field(INPA, "$(user):DOutTunmcEnStat.VAL CP MS")
field(INPB, "$(user):DOutTunmcAutoStat.VAL CP MS")
}

Regards,

--
Benoit


 

Benoit RAT LAMY

Replies:
Re: mbbi as the result of calc Benoit
References:
mbbi as the result of calc Benoit

Navigate by Date:
Prev: Re: Timestamp for EtherIP input records Kasemir, Kay
Next: APS Network Maintenance tonight Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: mbbi as the result of calc Benoit
Next: Re: mbbi as the result of calc Benoit
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·