EPICS Home

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  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: initializing a constant pv at startup
From: "Tran, Phi Dung via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 21 Nov 2023 14:54:58 +0000
Hi,

I am using a soft channel $(P) in one IOC to control three real motors in another IOC.
I attempted to initialize a PV, $(P)-DSI, at startup. Then, this PV should remain constant.
When $(P)-DM was processed, it has this NPP input link field to the $(P)-DSI,
field(INPB,"$(P)-DSI.VAL NPP NMS").

My $(P)-DSI was also processed to be the same as $(DOWNSTREAMMTR).VAL.  Therefore, the $(P)-DSI did not remain constant.  How do I fix problem by replacing CPP?  I tried PP and got zero for default.

Below are my records and trace
record(calc,"$(P)-DSI"){
    field(DESC,"initial downstream")
    field(INPA,"$(DOWNSTREAMMTR).VAL CPP MS")
    field(CALC,"a")
    field(PINI,"YES") #move motors
}

record(calcout,"$(P)-DM"){
    field(INPA,"$(P).VAL NPP MS")
    field(INPB,"$(P)-DSI.VAL NPP NMS")
    field(CALC,"a+b")
    field(OUT,"$(DOWNSTREAMMTR).VAL PP MS ")
}

ca:ptran1 at xf19id2-ws3.nsls2.bnl.local: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr'
ca:ptran1 at xf19id2-ws3.nsls2.bnl.local: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-FF'
ca:ptran1 at xf19id2-ws3.nsls2.bnl.local: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-OM'
ca:ptran1 at xf19id2-ws3.nsls2.bnl.local: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-IM'
ca:ptran1 at xf19id2-ws3.nsls2.bnl.local: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-DM'
scanOnce: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-OBI'
scanOnce: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-IBI'
scanOnce: dbProcess of 'XF:19IDC-ES-G0{Ymove}Mtr-DSI'

Thanks,
Phi

Attachment: galil0_Ymove_ib_ob_ds.db
Description: galil0_Ymove_ib_ob_ds.db


Navigate by Date:
Prev: New releases of mrfioc2 drivers for MRF timing hardware Jerzy via Tech-talk
Next: Simulated limit switches on motorSim motor Nariyoshi, Pedro 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  <20232024 
Navigate by Thread:
Prev: New releases of mrfioc2 drivers for MRF timing hardware Jerzy via Tech-talk
Next: Simulated limit switches on motorSim motor Nariyoshi, Pedro 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  <20232024