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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: modbus driver disconnect/rewrite poll time
From: Zenon Szalata <[email protected]>
To: <[email protected]>
Date: Thu, 23 May 2013 08:13:30 -0700
I am using modbus 2.4. Part of the distribution there is poll_delay.template file in the Db sub-directory. You can use it to create a data base record for the port in question and then at any time change the poll timeout for the associated thread poll routine. This works for me.
Zen

On 05/23/13 06:25, Fabian S. wrote:
Hello,

the current modbus driver is working fine but the client is a bit slow.
Unfortunately there a many (~100) different addresses where I have to
read data from. In the end the client is quite busy because of all the
opened connections.

There is the opportunity to collect the data from a couple of addresses
just once or not so often. (initialized are all with 1000mSec)
At first I tried to reconfigure them with "asynSetOptions" but thats not
possible with modbusdriver. Second I tried to reinitialize them with a
greater polltime but they were already configured of course.

Is there a way to disconnect the driver and reinitialize them afterwards
or better of course any way to reset the poll time?

here is the used config as an example

## drvModbusAsynConfigure(portName,         tcpPortName, slaveAddress,
     modbusFunction, modbusStartAddress, modbusLength, dataType,
pollMsec, plcType);
drvModbusAsynConfigure("modbus_Errors_read",    "modbusdevice01",     1,
         4,          39268,          33,            0,      1000,     "none")
...
...

thanks in advance
Fabian


References:
modbus driver disconnect/rewrite poll time Fabian S.

Navigate by Date:
Prev: modbus driver disconnect/rewrite poll time Fabian S.
Next: Communications with serial/LAN devices not using string oriented data Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: modbus driver disconnect/rewrite poll time Fabian S.
Next: Communications with serial/LAN devices not using string oriented data Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·