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  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Re: How to set bo PV to zero when starting Modbus IOC
From: 高振华 via Tech-talk <tech-talk at aps.anl.gov>
To: "mark rivers" <rivers at cars.uchicago.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 25 May 2021 15:26:48 +0800 (GMT+08:00)
Hi Mark,
Thanks,two questions remain:
 1. Is the Dbpf command placed after iocInit written to the PLC after the IOC is started and before the scanner
    mechanism starts scanning processing?
 2. Is it performed as the first write to the PLC with the start of the IOC?

Best regards.
Gao Zhenhua


> -----原始邮件-----
> 发件人: "Mark Rivers" <rivers at cars.uchicago.edu>
> 发送时间: 2021-05-25 09:00:06 (星期二)
> 收件人: "高振华" <gaozh at ihep.ac.cn>
> 抄送: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
> 主题: Re: How to set bo PV to zero when starting Modbus IOC
> 
> Hi Zhenhua,
> 
> The value in the database file will be replaced by the value read from the device. 
> 
> There are 2 ways to force the value to zero when the IOC start up:
> 
> - Add the PV to autosave and set the value to 0 before the IOC reboots. The value in autosave will be written to the device if PINI=1.
> - Put a dbpf command after iocInit which writes zero to the PV.
> 
> Mark
> 
> 
> Sent from my iPhone
> 
> > On May 24, 2021, at 7:39 PM, 高振华 <gaozh at ihep.ac.cn> wrote:
> > 
> > Hi Mark,
> > I tried to set BO PV to zero when starting Modbus R2-11 IOC, but failed. PINI worked, but VAL didn't work.When IOC is started, what is written to PLC is the value that has just been read.
> > Can't the Modbus R2-11 driver set BO PV to zero when IOC starts?
> > 
> > Best regards.
> > Gao Zhenhua
> > 
> > --
> > BSRF(Beijing Synchrotron Radiation Facility)
> > Email:gaozh at ihep.ac.cn
> > 
> > 
> > 


--
      
祝好!
高振华


电话:010-88235426
Email:gaozh at ihep.ac.cn



Replies:
Re: Re: How to set bo PV to zero when starting Modbus IOC Mark Rivers via Tech-talk
References:
How to set bo PV to zero when starting Modbus IOC 高振华 via Tech-talk
Re: How to set bo PV to zero when starting Modbus IOC Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: "Starter Kit" for learning EPICS? Patrick Oppermann via Tech-talk
Next: Re: "Starter Kit" for learning EPICS? Fujita Jiro 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: How to set bo PV to zero when starting Modbus IOC Mark Rivers via Tech-talk
Next: Re: Re: How to set bo PV to zero when starting Modbus IOC Mark Rivers 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  <20212022  2023  2024 
ANJ, 25 May 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·