EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Use of waveform records
From: Dave Reid <[email protected]>
To: Touchard Dominique <[email protected]>, [email protected]
Date: Wed, 19 Sep 2007 08:05:54 -0700
Touchard Dominique wrote:

Second question : do we have to use the gensub record to manipulate
values inside a waveform record ? In this case, is there any example
that shows how to do this ? Could somebody send us an example on this ?

We are now using Mark Rivers modbus support in conjunction with a genSub record that reads 120 BO records, using the dbGetField function, and then stuffs this into a waveform record, which then gets sent out, via Asyn, to our Modicon PLC's. We set the scan rate on the genSub record to 0.1 second, so that we send out all 120 bits in one shot.


The only major drawback to this is that to get the 120 bits, we had to hardcode into the genSub subroutines the PV names of the output bits. This works ok for us, since we are dealing with a relatively small number of bits per IOC that are talking with the PLC's, but that could be problematic if you try to scale things up.

I will send along my genSub code if you are interested.

dave


References:
Use of waveform records Touchard Dominique

Navigate by Date:
Prev: Re: confusion with config dir in base Andrew Johnson
Next: Re: exceed Rolf Keitel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Use of waveform records Touchard Dominique
Next: RE: Use of waveform records Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·