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  <20202021  2022  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Modbus alarms question
From: John Dobbins via Tech-talk <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 8 Jul 2020 18:58:54 +0000
Mark

Thanks. I'll start by upgrading to latest version and do a new test.  After the test I'll send all the details.

John


From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Wednesday, July 8, 2020 1:38 PM
To: John Dobbins <john.dobbins at cornell.edu>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Subject: Re: Modbus alarms question
 
Hi John,


Some questions:


- What version of asyn are you using?

- Are you using relative or absolute Modbus addressing?

- Is this Modbus TCP over Ethernet?

- For the records that generate the alarm, what is:

    - The record type

    - The Modbus function code

    - The SCAN rate

    - The polling rate of the modbus driver

    - The time between alarm status changes

- Is it possible for you update to modbus R3-0 and see if the problem persists?  It will make it easier for me to fix if you are running the latest release.


The alarm status is set according to the status returned by the function doModusIO().  The driver should only do callbacks with a new alarm status when that status return changes.


It would probably be a good idea to turn on asynTrace of the underlying asynIPPort driver and see if its status is changing.


Mark



________________________________
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of John Dobbins via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, July 8, 2020 11:54 AM
To: tech-talk at aps.anl.gov
Subject: Modbus alarms question

All,

We have a PLC from which data is read by an IOC via Modbus (R2-11).  The PLC was turned off and while the PLC was off the IOC generated a stream of alarm messages from the Alarm Server (BEAST) while the PVs toggled between

SEVERITY: INVALID           STATUS: READ_ALARM

and

SEVERITY:  INVALID           STATUS: TIMEOUT_ALARM

Aside from configuring these alarms to be latching in the Alarm Server configuration is there some other way to make it so this state (loss of modbus communication) doesn't generate a stream of alarms?

Regards,

John Dobbins

Research Support Specialist
Cornell High Energy Synchrotron Source
Cornell University

www.chess.cornell.edu



References:
Modbus alarms question John Dobbins via Tech-talk
Re: Modbus alarms question Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Asyn/StreamDevice for HP3458A through Agilent E5810 LAN/GPIB Gateway Michael Davidsaver via Tech-talk
Next: RE: Process at Init of mbbo-record 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Modbus alarms question Mark Rivers via Tech-talk
Next: RE: Modbus alarms question 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  <20202021  2022  2023  2024 
ANJ, 15 Jul 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·