Redundancy in Measurement Systems
Redundancy in Measurement Systems
Redundancy in Measurement Systems
Alan McCartney and Kenneth Elliott OMNI Flow Computers Inc USA describe equipment redundancy and its effects on metering systems
his article deals with equipment redundancy, and discusses trends in hardware and software technologies impacting on electronic metering systems, including the use of digital protocols, Ethernet and OPC. Some of the current trends applied to fiscal measurement systems by major oil transporters in the Middle East, North and South America, and to a lesser extent by other national or regional oil pipeline companies, are discussed. An explanation of emerging communications standards being introduced into metering systems is also included.
Failure types
Type 1: A fiscal electronic measurement system must be able to quickly detect a failure of an electronic flow measurement device such as flow computers and automatically continue measurement operations using a redundant device without introducing unacceptable measurement errors. Type 2: Failures of mechanical components such as turbine flowmeters are handled by employing redundant meter runs. A failure in this case requires diverting flow from the damaged meter run to a backup meter run equipped with its own measurement electronics. In reality, a failure of type 1 is likely to be easier to
accommodate and adjust to, because it is possible to make the changeover of flow computers almost transparent to the user and his data collection system. Type 2 failures require much more effort on the part of the user. In this case, not only must the flow be diverted, but the user must also piece together partial delivery ticket data from two different flow computer systems unless the system is multi-stream.
27
flow control
flow computer. In this case there is no detectable failure of the primary unit and therefore no watchdog activity. Someone may simply have disconnected the wrong wire while troubleshooting another unrelated problem. Switch over of all batch totalising, PID control and proving functions. Switchover of functions such as batch totalising, PID control, and proving functions work as follows: all measurement I/O such as temperatures, pressures, densities and flow meters are wired in parallel to both the primary and secondary flow computers. In effect, at all times the secondary flow computer is seeing all of the same input parameters and is performing all of the same calculations as the primary flow computer. The secondary unit is therefore always ready to assume the duties of the primary unit and serves as a truly redundant device. No attempt is made to transfer totaliser values between primary and secondary units thus eliminating any chance that a failing primary flow computer could corrupt the totalisers of a healthy secondary computer. Experience shows that many failures are not clean catastrophic failures but gradual performance deterioration. PID control valve signals originating from each of the redundant flow computers are usually isolated via dry relay contacts. Control of the relay is by way of the master/slave status that is output via the flow computers digital I/O. Prover control, status signals and detector switch signals are simply wired in parallel to the primary and secondary flow computers. Synchronisation of critical variables and historical data must be maintained between the primary and secondary flow computers: In the event of a failure, the secondary flow computer must be ready to assume all measurement and control functions. This is accomplished by continuously exchanging critical data over a peer-topeer data link between the primary and secondary flow computer. Data transmitted includes: PID setpoints, control valve positions, meter factors, and prove result data needed to maintain the data base containing the results of the last 10 provings. Communication to the MMI and/or SCADA host must be maintained at all times: In many instances redundant communication links are provided to each of the redundant flow computers. The designer of the MMI/SCADA system usually wants the serial data interface to look like there is only one device present. Polling only the primary device eliminates the need to configure duplicate databases in the MMI/SCADA host, offering significant savings in resources and effort. This is accomplished automatically by control logic within the primary and secondary flow computers which swaps unit ID numbers. In this way the MMI/SCADA system is always talking to the current master who is always addressed as unit ID number one. The switch over between flow computers is virtually instantaneous and could go unnoticed unless the MMI/SCADA system monitors a unique identifying data field within the current primary flow computer and/or the various flow computer status bits indicating that an event took place. Automatic switch back to primary status is not allowed: Should a fail-over occur, the data in the new primary computer should be used until the end of the current
detected by having each flow computer continuously monitor the watchdog status of the others. In the systems employing Omni 6000s, this is accomplished by crossing digital I/O points between the units as shown in the diagram below. An additional set of crossed digital I/O points provide the ability to promote or demote a flow computer from secondary status to primary status or vice versa. The MMI/SCADA system normally controls the primary/secondary status of the flow computers by a serial data write to either the primary or secondary computer. This would be necessary, for instance, if the MMI/SCADA host lost communication with the primary
28
flow control
batch or transaction. If the original primary computer is repaired and placed back in service it should not automatically promote itself to primary status. This could cause flow to be undercounted. The Omni 6000 logic requires the user to manually promote the repaired flow computer to primary status, usually at the end of the current batch in progress.
flow computer runs counter to electrical, mechanical and metrological theories, practice and fiscal data security. Worn thrust bearings on some flowmeters can cause problems when attempting to apply dual pulse fidelity checking. This is thought to be a result of rapid shuttling back and forth of the turbine rotor on the bearing shaft. This back and forth movement, while seemingly not affecting the proving and measurement performance of the flowmeter, can modify the phase relationship between the A and B channel pulses sufficiently to cause errors to be reported. For a microprocessor based flow meter, obtaining two pulse outputs is very easy to achieve and even putting a phase difference between the two pulse outputs is not difficult. However, these two pulse outputs would be meaningless as they are derived from the same set of indirect measurements, by the same microprocessor, using the same software routine, and output from the same set of data, again by the same microprocessor. They are not two independent sources such as the two individual pulse transmitters on a turbine meter envisaged by ISO 6551. Unless there is a software fault in the flow transmitter (and all others installed with the same application software), these two pulse outputs would always be in agreement. They would only detect faults such as disconnected cables, or induced EMFs in the field cabling by RF, which are usually the result of bad practice or poor cable installation, and not errors with the primary flow device as is the intent of ISO 6551. It is being observed with these smart flow meters that knowledgeable users require both pulsed and serial data to be transmitted to the flow computer for fidelity purposes in an attempt to meet national weights and measures regulations (usually based on ISO 6551 or OIML R117 Regulations) and for signal redundancy purposes. But, in these so called mixed systems, the combining of the two signal types, pulse and serial, cannot achieve meaningful fideliWORLD PIPELINES JANUARY/FEBRUARY 2003
29
flow control
One should verify that it does support multiple virtual connections via the TCP/IP link, and that it has the ability to service more than one poll request at a time. Is it possible to adjust the configuration parameters without interrupting the polls for real time data by the SCADA for example? Can the pipeline integrity application running on the system LAN get the information that it requires, while the PLC, MMI and SCADA are sending and receiving data? The addition of Ethernet/TCP/IP into the fiscal measurement system opens up all sorts of possibilities: Multiple virtual connections via an infinitely scalable enterprise network. Configuration access of equipment from the desks of authorised personnel. Browser access to pre-configured web pages within the flow computer. Automatic distribution of flow computer reports via email to selected recipients. Automatic email alerts of critical alarm occurrences. Ability to download historical archive files, alarm logs, audit trail logs and text reports using FTP - no Modbus transactions involved.
meters,
gas
chromatographs;
ty checks, only signal redundancy. Unfortunately, existing standards are not being modified to reflect changing technologies and guide users.
30
flow control
Conclusion
Among the trends in fiscal measurement observed by the author, none are deemed more important by the end user than the ability to employ the principle of redundancy in the design of the measurement system at all critical levels. This includes the flow computer, MMI, PLCs, and communication links that interface them. Any advance in equipment or technology that makes this redundancy easier to implement and less complicated to operate and understand, will be gladly welcomed by the designers and users of the measurement system. The experience of major transporters of hydrocarbon products shows that it is possible to optimise and monitor the performance of turbine meters operating over a wide range of flowrates by implementing meter factor linearising using a base meter factor curve. In addition to performing real time linearisation of the flowmeter, the flow computer also monitors the ongoing performance of the meter as it wears. The flow computer refers to the base meter factor curve of the meter each time a prove is performed. While slow shifts in performance due to gradual wear are acceptable over a preset range, any sudden change in performance when compared against the last 10 provings, is automatically flagged. The concept of dual pulse fidelity fits in with the philosophy of redundancy. Experience has shown however that, while there have been situations where the flow computer has quite rightly detected and alarmed abnormalities in the flowmeters pulse channel signal phasing, no actual correction is made by the flow computer to its totalisation of flow through the meter. Performance abnormalities of the flow meter require physical inspection of the suspect meter. The use of serial data for communication from the flow meter or flow transmitter to flow computing devices needs to be assessed in terms of its suitability as a stand-alone signal means as it relates to custody transfer flow measurement. The issue is not Should the protocol be Modbus, Ethernet, Hart, Profibus or Fieldbus?, as these are just a transportation means for getting the data from one point to another, but Is a serial, two-wire or four-wire digital means alone really a suitable medium given the latency in data transfer? The answer will depend on improvements of the underlying meter technology, the speed of the measurement update, and the latency of the data transfer in the meter device, coupled with a close integration with the computational device. The common thread that increasingly ties together all of the critical instruments of the fiscal measurement system is proving to be Ethernet/TCP This ubiquitous . network protocol, capable of transporting and supporting many simultaneous messages and protocols at high speed, provides many advantages, some of which include scalability, remote access and configuration, and interoperability between devices. Ethernet/TCP equipped flow computer devices which support multiple Modbus masters without resorting to an external bridge Mux are available. This can lead to significant savings and simplification of the communication network design. OPC eliminates the need for many higher level applications to poll the field devices for data by defining a common, high performance interface that permits this work to be done once, and then easily reused by HMI, SCADA, control and custom applications. Redundant
OPC servers can be employed providing system redundancy all of the way up to the higher enterprise level databases. Changing standards and expectations from new technologies are the continuing challenge for designers and users of metering instrumentation. Measurement and electronic standards are constantly being revised in a continuing effort to reduce uncertainty and improve system performance. Electronic and signal integrity also becomes even more of an issue due to flow computers becoming multi-tasking operational devices with many control, calibration, security and data logging functions embedded. This only elevates their importance. Enquiry no: 12
Enquiry no: 13
WORLD PIPELINES JANUARY/FEBRUARY 2003
31