Experimental Physics and
| |||||||||||||||
|
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
| ||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |