The present disclosure relates to process variable transmitters used in process control and monitoring systems. More specifically, the present disclosure relates to performing loop current diagnostics to identify on-scale errors in the loop current of a transmitter.
Process variable transmitters are used to measure process parameters (or process variables) in a process control or monitoring system. Microprocessor-based transmitters often include a sensor, an analog-to-digital converter for converting an output from the sensor into a digital form, a microprocessor for compensating the digitized output, and an output circuit for transmitting a compensated output. Currently, this transmission is normally done over a process control loop, such as a 4-20 milliamp control loop, or wirelessly.
Typically, in a 4-20 milliamp process instrument, the control loop is controlled by a loop current regulator. A loop current regulator regulates the loop current to reflect process variables sensed by the sensors in the instrument.
A process variable transmitter controls a signal on a communication loop. A diagnostic component on the transmitter compares an expected signal level on the communication loop with an actual value to detect on-scale errors.
Sensors 24 and 26 are illustratively process variable sensors that receive inputs from process 30 that is being sensed. For example, sensor 24 may illustratively be a thermocouple that senses temperature and sensor 26 may be either the same or a different type of sensor, such as a flow sensor. Other PV sensors can include a variety of sensors, such as pressure sensors, pH sensors, etc. Sensors 24 and 26 illustratively provide an output that is indicative of a sensed process variable to A/D converter 12.
Conditioning logic can also be included (but is now shown) for amplifying, linearizing, and otherwise conditioning the signals provided by sensors 24 and 26. In any case, A/D converter 12 receives signals indicative of the process variables sensed by sensors 24 and 26. A/D converter 12 converts the analog signals into digital signals and provides them to processor 14.
In one embodiment, processor 14 is a computer microprocessor or microcontroller that has associated memory and clock circuitry 16 and provides digital information indicative of the sensed process variables to D/A converter 18. D/A converter 18 illustratively converts the signals indicative of process variables into analog signals that are provided to loop control component 20, in order to control the current (I) on loop 28. Loop control component 20 can provide the information over control loop 28 either in digital format (such as by using the HART protocol), or in analog format (or both) by controlling current (I) through loop 28. In any case, the information related to the sensed process variables is provided over process control loop 28 by transmitter 10.
In one embodiment, D/A converter 18 also provides an input to loop current diagnostic component 22. Signals output by D/A converter 18 are indicative of a desired loop current (I). That is, the signal output by D/A converter 18 is illustratively indicative of a loop current (I) which will reflect the value of the sensed process variable. Based on the signal provided by D/A converter 18, loop control component 20 illustratively controls loop 28 such that current (I) indicates the signal output by D/A converter 18.
It can be helpful to determine whether loop control component 20 is controlling the loop current (I) on loop 28 accurately, especially where an error in the loop current is an on-scale error. In other words, in a 4-20 milliamp process control loop, the loop current varies, on-scale, between 4 and 20 milliamps (that is, it varies, between an on-scale minimum value and an on-scale maximum value of 4 and 20 milliamps, respectively). However, under some conditions (such as when the instrument's operating current exceeds available current) on-scale errors (incorrect readings between 4 and 20 milliamps) can occur. For instance, if the current on loop 28 is supposed to be set at 10.0 milliamps, but it is really regulating to 12.2 milliamps, it can be helpful to detect this type of on-scale error. This type of error can occur, by way of example only, when excessive current is drawn by an integrated circuit on the circuit board of process variable transmitter 10 or because of circuit board current leakage. Of course, these are examples only, and on-scale errors can occur for other reasons as well.
Therefore,
Diagnostic component 22 first receives the output from D/A converter 18. This is indicated by block 40 in
However, at block 46, it is determined that the two signals are not sufficiently close, then loop current diagnostic component 22 generates and sends an error indicator 50 to processor 14 and/or D/A converter 18, asserting an alarm condition. This is indicated by block 52 in
In order to determine whether the actual and expected loop currents are sufficiently close, current diagnostic component 22 illustratively compares the two signals to determine whether they are within a predetermined threshold value of one another. If so, then they are sufficiently close. Otherwise, they are not close enough and the error indicator 50 is generated. The particular threshold value can be set empirically, or in another way, and may vary based on the application, based on the particular control loop being used, or based on other factors. In one embodiment, it may be set to 100 microamps.
In order to describe loop current diagnostic component 22 in greater detail, an understanding of a conventional loop control component may be helpful.
In accordance with one embodiment, D/A converter 18 provides an analog output voltage that varies linearly in proportion to the desired loop current on loop 28. By way of example, D/A converter 18 illustratively provides, at its output, 0.25 volts when the loop current on loop 28 is desired to be 4 milliamps, and 1.25 volts when the loop current on loop 28 is desired to be 20 milliamps.
In order to regulate the loop current to the value set by the output voltage from D/A converter 18, loop control component 20 illustratively controls the loop current by measuring the voltage across a precision resistor 70, which may illustratively be 49.9 ohms. It can be seen from
From graphs 4 and 5, it can be seen that by inverting and scaling either the voltage output by D/A converter 18 (shown in
It can be seen in
Loop current diagnostic component 22 illustratively includes operational amplifiers 98, 100 and 102. Operational amplifier 98 is configured as an inverter such that the voltage developed across resistor 96 is inverted relative to circuit ground to have the same polarity as the voltage output by D/A converter 18. It can be seen that, in the embodiment shown in
Operational amplifier 100 is connected as a differential operational amplifier. It therefore compares the voltage output by D/A converter 18 (which also varies on-scale from 0.25 volts to 1.25 volts) to the output of operational amplifier 98. The two values should be substantially the same. If they are not, then loop control component 20 is not accurately controlling the loop current on loop 28 to reflect the output of D/A converter 18. However, because the two signals received by operational amplifier 100 may not be identical, but may still be sufficiently close to one another, comparator 102 is also provided. Comparator 102 compares the output of operational amplifier 100 (which reflects the difference between its two input signals) to a reference or threshold value. The output of comparator 102 will thus provide the error indicator 50 to processor 14 and/or D/A converter 18 only if the difference between the two signals provided at the input of operational amplifier 100 differ by a magnitude that is greater than the reference value input to operational amplifier 102.
The loop control component 20 then controls the loop current on loop 28 based on the voltage developed across resistor 96. This is indicated by block 124 in
However, if, at block 130, it is determined that the two compared voltages are not sufficiently close to one another, then loop current diagnostic component 22 sends the error indicator 50 to processor 14 and/or D/A converter 18. This is indicated by block 134 in
It will be appreciated that, while the disclosure has referred to illustrative embodiments, a variety of changes can be made. For example, the functions performed by loop current diagnostic component 22 and loop control component 20 can all be performed by a single component, or the functions can be allocated between those components (or among other components in transmitter 10) in different ways. Similarly, while values have been given for certain resistors, voltages and currents, other values can be used as well. Those, given are exemplary only. In addition, while certain components (op amps, resistive elements, resistor, etc. . . . ) are identified in
In addition, while the above description has given a number of examples for process variables that can be sensed, it will of course be appreciated that a wide variety of other process variables can be sensed and processed in substantially the same way. Examples of such other process variables include pressure, level, flow or flow rate, etc. Further, while the embodiment discussed herein is given in the context of a two-wire transmitter, the present disclosure can be just as easily applied to a four-wire transmitter or any other type of transmitter as well.
Although the present disclosure has been described with reference to illustrative embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the disclosure.