Re: [foxboro] Memory Register in Calc type blocks

May I suggest:
1) use "iccapi" commands instead of getpars and setpars.
2) Send your memory register data to CALC block output parameters and
connect those outputs to the input parameters of a dummy sequence block
(e.g., an IND block without any code). This way the IND block data can be
retrieved by upload.

Jim Pan
Lifetime Learning

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Jeremy Milum
Sent: Monday, November 15, 2004 11:36 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Memory Register in Calc type blocks

I have a problem (well I have lots, but let's focus on just one right
now).  We have
a lot of CALC blocks that generate data for daily reports and stuff. 
These blocks
store some of their data in memory registers to be used again for the
next calculation
which usually occurs the next day(example: month-to-date totals and
averages).
The problem is that memory registers are not saved during an upload so if a
CP
reboots I lose it all.  The only way I can see to save the data is to
use getpars,
and then use setpars to put it back in. This will work if I know the
CP is going down,
but what if I don't?  getpars puts a load on the CP so this is not
ideal, but I could
run it once a day to save the data, and only be off a bit if we had an
unexpected
reboot.

Perhaps I shouldn't have used memory registers to store important data, but
it's
too late know.  Any thoughts?

-- 
Patron saints in general are broadband connections to the Almighty
- Michelle Delio, Wired News
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: