Is there any sample PLC code or code for sale that allows temperature
compensation through RTD 4-20mA analog inputs and uses table API 6b?
The application is a four-loop PID blender that mixes four ingredients
that change in volume depending on temperature. The temperature
compensation would multiply the gross recipe volume by a factor in the
table to give the net volume required at that temperature. Allen
Bradley RSLogix 500 for MicroLogix 1500 code is preferred, but any
similar ladder logic will be acceptable. |
Clarification of Question by
welday007-ga
on
16 May 2003 18:21 PDT
The following is from literature about a similar blend controller:
Automatic Temperature Compensation
The e-BLEND Controller includes automatic temperature compensation as
a standard feature to allow blending on a net volume basis. With this
feature the e-BLEND will accept temperature inputs from each blend
component loop and automatically convert the measured gross volume to
an equivalent net volume at a reference temperature, 600F or 150C.
This computation is based on the latest API tables or by linear slope.
Computation formulas for the API Standard 2540, Tables 6A, 6B and 6D
and temperature slope algorithm are included in the standard e-BLEND
software and selectable by a simple data entry item.
My controller is only concerned with the 6B and temperature slope
algorithm.
Another source describes the problem as this:
All such volumes will be corrected to standard conditions (60°F and
equilibrium vapor pressure) by the application of correction factors
listed in Petroleum Measurement Tables API Standard 2540, latest
revision (Table 6A for JP-4; Table 6B for all other Petroleum
Products).
One more source describes the table as:
Table 6B - Generalized Products, Correction of Volume to 60 Degrees F
Against API Gravity at 60 Degrees F
The table is quite lengthy and I believe there is a formula that may
not be exact but that is used in electronic controllers for obtaining
the values in the table. This formula is what I really need. I can
probably figure the ladder logic out myself.
|
Request for Question Clarification by
mathtalk-ga
on
18 May 2003 07:39 PDT
Hi, welday007-ga:
Are these gases that are being blended?
regards, mathtalk-ga
|
Clarification of Question by
welday007-ga
on
19 May 2003 06:23 PDT
The four ingredients are liquid petroleum products used in concrete and blacktop.
|
Request for Question Clarification by
mathtalk-ga
on
25 May 2003 08:05 PDT
If the temperature-based volume correction is to be applied over a
moderately narrow range of temperatures, then the "slope"
approximation would be adequate.
Although your quoted text references temperatures 60F and 600F, I
assume from the intended application that a somewhat narrower range of
temperatures can be specified. If you will give me a range to work
with and the corresponding list of volume correction factors, I could
determine a formula which fits the data well. However the American
Petroleum Institute seems to have prepared both the Table 6B data and
a collection of formulas to fit this data, which they are willing to
license.
If you wanted to develop a data set and formula approximation that is
independent of the API licensing agreement, you could identify a
particular petroleum liquid (e.g. fuel oil?) to which Table 6B
applies, and we could then work from non-proprietary data in the
scientific literature.
In between "reinventing the wheel" and finding a code vendor for this
specific application that works with your specific PLC, there are 1)
other pet-liquid flow control device vendors who have presumably
addressed the same problem (but who are likely perceived as
competitors), and 2) some sources for non-PLC code for volume
correction factors. I've posted a comment below about one of these.
regards, mathtalk-ga
|