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
>
>
>
- 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
<2021>
2022
2023
2024
- 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
<2021>
2022
2023
2024
|