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  2025  2026  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  2025  2026 
<== Date ==> <== Thread ==>

Subject: Re: How to set bo PV to zero when starting Modbus IOC
From: Mark Rivers via Tech-talk <[email protected]>
To: 高振华 <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 25 May 2021 01:00:06 +0000
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, 高振华 <[email protected]> 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:[email protected]
> 
> 
> 

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

Navigate by Date:
Prev: RE: Archiver Appliance mgmt tomcat issue Manoussakis, Adamandios via Tech-talk
Next: Issue with FPGA based encoder box when running with EPICS 7.0.5 Wlodek, Jakub 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  2025  2026 
Navigate by Thread:
Prev: How to set bo PV to zero when starting Modbus IOC 高振华 via Tech-talk
Next: Re: Re: How to set bo PV to zero when starting Modbus IOC 高振华 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  2025  2026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·