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  2021  <20222023  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  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Substituting every period scan in EPICS MODBUS by I/O Interrupt
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "Marco A. Barra Montevechi Filho" <marco.filho at lnls.br>
Cc: tech-talk <tech-talk at aps.anl.gov>
Date: Mon, 25 Jul 2022 22:20:47 +0000

Ø  Does this mean that, whatever the modbus device is that i am communicating, i can always substitute my 'field(SCAN, "1 Second")' to 'field(SCAN, "I/O Intr")' and go out unpunished?

 

Yes, that is true.  This assumes that you are not using the “absolute” addressing option, because in that case there is no poller thread.  When you are not using absolute addressing then the poller thread is constantly reading a block of Modbus registers.  If your record has SCAN=1 second, for example, then it calls the driver and retrieves the most recent poll value.  It does not cause a Modbus transaction to occur.  If you use SCAN=I/O Intr then your record will only process when the driver finds that the value has changed.  This will be much more efficient for bits and registers that rarely change state.

 

Ø  Will this work against me in the future?

 

No, it is the recommended way to run.

 

Mark

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Marco A. Barra Montevechi Filho via Tech-talk
Sent: Monday, July 25, 2022 4:40 PM
To: tech-talk at aps.anl.gov
Subject: Substituting every period scan in EPICS MODBUS by I/O Interrupt

 

Good evening for all.

I was reading the EPICS MODBUS documentation after realising that i had misspelled a SCAN field in my modbus application and came across the following:

> modbus supports pseudo-interrupt mode on inputs. The poller thread calls device support when there is a new value, so the EPICS records can have >SCAN=I/O Intr and do not need to periodically read the inputs. This is more efficient.

Does this mean that, whatever the modbus device is that i am communicating, i can always substitute my 'field(SCAN, "1 Second")' to 'field(SCAN, "I/O Intr")' and go out unpunished? Will this work against me in the future?

Thanks for any tips.

Marco.

 

Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


References:
Substituting every period scan in EPICS MODBUS by I/O Interrupt Marco A. Barra Montevechi Filho via Tech-talk

Navigate by Date:
Prev: Re: Delta Tau issue Andy Foster via Tech-talk
Next: Re: StreamDevice issues (Genesys power supply, Moxa) Zimoch Dirk (PSI) 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  <20222023  2024 
Navigate by Thread:
Prev: Substituting every period scan in EPICS MODBUS by I/O Interrupt Marco A. Barra Montevechi Filho via Tech-talk
Next: PINI field not working with modbus Marco A. Barra Montevechi Filho 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·