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  <20182019  2020  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  <20182019  2020 
<== Date ==> <== Thread ==>

Subject: Modbus Polling disable/enable
From: "emilio.perez-juarez@diamond.ac.uk" <emilio.perez-juarez@diamond.ac.uk>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 6 Sep 2018 09:15:55 +0000
Hello Tech-talk


I'm currently working in a module which relies on the modbus module and I need to create a button in the user

interface that allows to disable the read polling.

As it is working now, readPoller still reads the values even if the associated record is disabled.


I found two ways of achieving the goal:

    1. Set pollMsec  to a value less or equal to 0 and add an extra record for each register that has periodic scan and writes to MODBUS_READ (disable button would disable this record)

    2. Use absolute addressing (modbusStartAddress=-1) and change all the records to be periodic scanned


The downside of the first solution is that I need to have double records for each modbus register.

The downside of the second solution is that this might be a feature of absolute addressing that might change, as documentation

is not explicit on the point that absolute addressing mode disables the readPoller thread and calls doModbusIO on record's demand.


My question is:  what is the recommended way?


Best regards and thank you,

Emilio

-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom


Replies:
RE: Modbus Polling disable/enable Mark Rivers

Navigate by Date:
Prev: asking for help on s7nodave =?gb18030?b?s8nN/rvG5a0=?=
Next: Re: asking for help on s7nodave Mark Rivers
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  <20182019  2020 
Navigate by Thread:
Prev: asking for help on s7nodave =?gb18030?b?s8nN/rvG5a0=?=
Next: RE: Modbus Polling disable/enable Mark Rivers
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  <20182019  2020 
ANJ, 06 Sep 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·