# Patent

## Title
Method for controlling coil current of a magneto inductive, flow measuring device

## Abstract

A method for controlling coil current of a magneto inductive, flow measuring device with a first value representing an overvoltage UO and a second value representing a holding voltage UH, wherein the first value is greater than the second value, characterized by steps as follows: setting a first switching point IS for the electrical current level, up to which a coil should be supplied with the overvoltage UO; applying an overvoltage UO until the electrical current level rises to the switching point IS set for the electrical current level; switching from the overvoltage UO to the holding voltage UH, in order to hold the electrical current level at a constant electrical current end value IH. Also intended is a magneto inductive, flow measuring device.

## Background
TECHNICAL FIELD
The invention relates to a method for controlling the coil current of a magneto inductive, flow measuring device and to a magneto inductive, flow measuring device.
BACKGROUND DISCUSSION
A coil current flows in a coil arrangement, which has an inductance and which is part of a magnet system containing coil cores and/or pole shoes. The coil current is clocked such that the coil current is positive in a first half of a period and has a constant first electrical current end value and negative in the second half of the period with a constant second electrical current end value, which is of equal magnitude to that of the first electrical current end value.
The coil cores and/or pole shoes of the magnet system are, most often, formed of a soft magnetic material. There are, however, also magnet systems with ferromagnetic coil cores.
In the case of both types of magnet systems, there are induced in the magnet system, due to the rise and fall of the coil current, eddy currents, which prevent the rise of the magnetic field from following exactly the rise of the coil current, such as would be the case, if the coil cores and/or pole shoes were absent. Rather, the rise of the magnetic field is delayed and flattened, compared with that of the coil current. In such a situation, an exact control of the coil current to a constant end magnitude is required.
European Patent EP 0 969 268 A1 discloses a method for controlling coil current, wherein, first of all, an overvoltage is provided for a predetermined time interval and after this time interval a feedback control occurs. This method has, as a rule, proved itself in practice. If, however, due to fluctuations or disturbances, there is a shifting of the starting point, then, for example, a higher maximum electrical current level would be produced in the constant time interval and this could, in given cases, lead to overloading.
Moreover, also known are methods, which have a diagnostic function to check for a maximum electrical current level. In these methods, however, the electrical current level serves not as a control variable, but, instead, is only taken into consideration as a value for checking the control unit.
SUMMARY OF THE INVENTION
It is, consequently, an object of the present invention, based on EP 0 969 268 A1 as a nearest state of the art, to provide an alternative method for controlling the coil current.
According to the invention, a method is provided for controlling the coil current of a magneto inductive, flow measuring device with a first value representing an overvoltage UO and a second value representing a holding voltage UH, wherein the first value is greater than the second value, characterized by steps as follows:

    A setting a first switching point IS for the electrical current level, up to which a coil should be supplied with the overvoltage UO;
    B applying an overvoltage UO until the electrical current level rises to the switching point IS set for the electrical current level;
    C switching from the overvoltage UO to the holding voltage UH, in order to hold the electrical current level at a constant electrical current end value IH.


The method of the invention reliably avoids the disadvantages described for the state of the art.
Advantageous embodiments of the invention are subject matter of the dependent claims.
After the switching of the overvoltage to the holding voltage, which is preferably controlled by a comparator, the electrical current level still rises slightly due to the self-inductance of the coil. After the small rise in the electrical current level, a likewise small decline of the electrical current level can occur, which can cause the comparator to switch back to the overvoltage. In order to prevent this switching back, the switching is monitored. The monitoring and the preventing of the switch back of the comparator resulting from the special method for controlling the coil current can advantageously be implemented by a flip-flop circuit.
Especially preferably, the method for controlling the coil current in a magneto inductive, flow measuring device is applied in the case of a two-conductor field device.
Traditionally, such two-conductor field devices are predominantly so designed that an instantaneous electrical current level of the supply current instantaneously flowing in a single pair line formed as an electrical current loop at a value between 4 mA and 20 mA simultaneously also represents the measured value produced at the moment by the field device, respectively the actuating value sent at the moment to the field device. As a result of this, a special problem of such two-conductor field devices is that the electrical power at least nominally convertible or to be converted by the field device-electronics during operation (in the following referred to as “available power” for short) can fluctuate in a practically unpredictable manner over a broad range. Taking this into consideration, modern two-conductor field devices (2L field devices), especially modern two-conductor measuring devices (2L measuring devices) with a (4 mA to 20 mA) electrical current loop, are, consequently, usually so designed that their device functionality implemented by means of a microcomputer provided in the evaluating and operating circuit is changeable, and, thus, the operating and evaluating circuit converting most often in any event only little power can be adapted to the instantaneously available power.



BRIEF DESCRIPTION OF THE DRAWINGS
In the following, a preferred embodiment of the invention will now be explained in greater detail based on the appended drawing, the figures of which show as follows:
FIG. 1 is a schematic representation of a circuit working according to the method of the invention; and
FIG. 2 is a graph of the electrical current in the method of the invention.



DETAILED DISCUSSION IN CONJUNCTION WITH THE DRAWINGS
The method of the invention will now be described in greater detail based on the graph of FIG. 2.
FIG. 2 shows firstly electrical current for coil control. A coil current flows in a coil arrangement having an inductance L. The coil arrangement is part of a magnet system. The coil current is positive in the first half of a period and then negative in a second half of the period. In the method disclosed in EP 0 969 268, an overvoltage is applied for a time ta, in order to elevate an electrical current level from the so-called negative field to the level Im. Then, for a time tc, a holding voltage is supplied. In such case, the electrical current level rises during the time ta to the value Im. The coil current I rises steeply during the time ta.
It has, thus, long been the practice to associate the setting of the electrical current level with a starting point in the negative field. The electrical current is elevated with an overvoltage and the time of application of the overvoltage controlled to achieve the desired electrical current level.
In contrast therewith, there occurs in the case of the method of the invention a supplying of the coil arrangement with an overvoltage UO and then with a holding voltage UH, wherein the overvoltage is greater than the holding voltage. In such case, there occurs, first of all, a setting of a switching point IS for the electrical current level, up to which a coil should be supplied with the overvoltage UO.
Then, there occurs an applying of an overvoltage UO, until the electrical current level rises to the instantaneously set, desired value IS of the electrical current level.
Finally, there occurs a switching of the overvoltage UO to the holding voltage UH, in order to hold the electrical current level at a constant electrical current end value IH.
FIG. 1 shows a circuit for performing the method. In the circuit, an amplifier 4 is connected to a first input of a comparator 1. The output of the comparator 1 is connected with a flip-flop circuit 3. Furthermore, a D/A converter 2 is connected with a second input of the comparator. D/A converter is connected at its input with an evaluation unit 5 and converts digital signals of the evaluation unit 5 into analog signals, which are led to the second input of the comparator 1. From the connection between the amplifier 4 and the comparator 1 a path leads to an A/D converter 6, which is connected with the evaluation unit 5. The preset of the flip-flop circuit 3 is connected with the evaluation unit, while the output of the flip-flop circuit 3 is connected to a voltage source (not shown). Branching from the output of the flip-flop circuit is a connection to an input of the evaluation unit 5.
The operation of the circuit will now be explained in greater detail based on electrical current equivalent voltages. The circuit is supplied with an input signal in the form of a voltage of small amplitude, which is firstly amplified in the amplifier 4. The amplified input signal is then forwarded to the comparator 1. A comparator is, as is known, an operational amplifier without negative feedback and enables the comparison of very small voltage differences. In practice, compared on the input side of the comparator 1 are the amplified input signal E, on the one hand, and, on the other hand, a desired value S for an electrical current level equivalent voltage. This desired value S corresponds to a switching point IS for an electrical current level, up to which a coil should be supplied with the overvoltage UO. The desired value S is predetermined by the evaluation unit 5 and goes through the D/A converter 2 two the second input of the comparator 1. The desired value S can be adjusted.
As long as the signal fed to the first input lies below the desired value, thus E<S, the coil is supplied the overvoltage UO by the above-mentioned voltage source (connected with the output of the flip-flop circuit 3). Upon reaching the desired value, the output signal of the comparator changes in such a manner that the new output signal effects a switching from the overvoltage UO to a holding voltage UH, for example, as a result of a sign change or a switching from 1 to 0.
Upon the switching, due to the self-inductance of the coil arrangement, an additional slight rise of the electrical current level can occur, accompanied by the electrical current level equivalent voltage. The electrical current level then falls to a constant electrical current end value IEnd at the holding voltage UH. This decline can lead for a short time to the fact that the input signal E is once more less than the desired value S, which would lead to a switching of the comparator 1 back to overvoltage operation. In order to prevent this switching back to overvoltage operation, the comparator 1 is connected on its output side with a flip-flop circuit 3.
The comparator, thus, with reference to the electrical current level wave form of FIG. 2, starting at some starting point Istart, tracks the electrical current increase up to a set switching point Is. The comparator 1 performs this tracking with the aid of the D/A converter 2. The comparator 1 also initiates the switching to a holding voltage UH. This is shown in FIG. 1. In an especially preferred embodiment of FIG. 1, the circuit includes, supplementally, the flip-flop 3, whose function has been explained above. After the switching to the holding voltage UH and a subsequent time dependent on the self-induction of the coil, a constant electrical current end value IEnd results. This electrical current end value IEnd in the present example of an embodiment is preset, respectively fixed, as a desired end value.
In the preferred embodiment of FIG. 1, the circuit additionally includes an A/D converter 6, which converts an electrical current equivalent voltage of a current electrical current level I at the first input of the comparator 1 into a digital signal and sends such to the evaluation unit 5. This input signal E is converted by the A/D converter 6 into a digital signal, which is proportional to the currently applied electrical current level. At a discrete point in time after the switching to the holding voltage UH, for example, after 5 ms, the evaluation unit queries the output value of the A/D converter corresponding to the current electrical current level IR at the measurement point in time. If the queried value IR is less than the electrical current end value IH of the holding voltage UH, then the switching point IS for the electrical current level, up to which a coil should be supplied with the overvoltage UO, respectively the thereto electrical current equivalent voltage S on the input of the comparator, is set by the evaluation unit 5 and the D/A transducer 2 to a higher value.
The preceding explanation of a possible adjusting of the switching point Is for the electrical current level, up to which a coil should be supplied with the overvoltage UO, is to be understood only as preferred embodiment.
Thus, in an additional embodiment, selected as a desired end value can be, instead of the electrical current end value IEnd, for example, an electrical current level, which is greater than the electrical current end value IEnd.
According to the invention, the electrical current level is a control variable in the present method. In such case, for example, at start-up, a first switching point IS of 22 mA is predetermined. Based on this first starting value, there occurs a first increasing of the electrical current level to the said switching point.
Following the increasing and switching, for example, after a time of 5 ms, there occurs a comparison of the current electrical current level IR with the predetermined desired end value. If, for example, the current electrical current level IR lies below the desired end value, then the controllable switching point IS is increased. If, for example, the current electrical current level IR lies above the desired end value, then the adjustable switching point IS is lowered. Thus, there occurs before each increasing a re-setting of the switching point IS, with whose electrical current equivalent voltage S the comparator 1 performs the already described comparison with the input signal E.
Thus, this circuit permits execution of a method for coil current control of a magneto inductive, flow measuring device.
As a result—other than in the past—the switching between the overvoltage and the holding voltage is directly controllable based on a settable switching point IS for the electrical current level, while the time interval up to the setting of this switching point IS is variable. The control of the switching interval by the specification of an electrical current level has the advantage that, in this way, also power supplies with less constant voltages can be applied for flow measuring devices. Since voltage fluctuations have less influence, then, also smaller power supplies can be used, whereby a miniaturization and a saving of material costs is achieved. A supplying of the coils with clocked electrical current with pulse pauses is, consequently, possible, wherein, in the case of two-conductor field devices, as a whole, a better management of the small available electrical current level is possible. Moreover, an independence from the starting point Istart (at t0) is achieved.
An additional advantage of the present invention lies in the faster approach time. As was customary, the time ta had to be slowly increased, in order to prevent overloading. Thus, it was, for example, possible that within the time interval ta due to external influences the electrical current level could rise far above the intended value. This can be prevented in the present method by specification of the switching point for IS.
On the whole, the new method is more robust than the previous method as regards environmental influences. The new method is independent of the starting point and the stability of the applied voltage.

## Claims

1. A method for controlling coil current of a magneto inductive, flow measuring device with a first value representing an overvoltage UO and a second value representing a holding voltage UH, wherein the first value is greater than the second value, comprising the steps of:
setting a first switching point IS for the electrical current level, up to which a coil should be supplied with the overvoltage UO;
applying an overvoltage UQ until the electrical current level rises to the switching point Is set for the electrical current level;
switching from the overvoltage UQ to the holding voltage UH, in order to hold the electrical current level at a constant electrical current end value IH; and
after said switching, an evaluation of a current electrical current level I occurs, along with an adjusting of the switching point L of the electrical current level is performed by a comparator.

2. The method as claimed in claim 1, wherein:
a comparison of the current electrical current level IR with said switching point IS of the electrical current level is performed by a comparator.

3. The method as claimed in claim 2, wherein:
said switching from the overvoltage UO to the holding voltage UH is initiated by said comparator; and
said switching of said comparator is evaluated, in order to prevent a switching back to the overvoltage UO.

4. The method as claimed in claim 3, wherein:
said switching back of the holding voltage UH to the overvoltage UO is prevented by a flip-flop circuit.

5. The method as claimed in claim 1, wherein:
a comparison of an input signal E of an electrical current equivalent voltage with a desired value for an electrical current level equivalent voltage S of the switching point IS occurs time independently before said switching.

6. The method as claimed in claim 1, wherein:
said setting of the first switching point IS occurs according to the following:
i) ascertaining a value, which represents a current electrical current level IR, after said switching;
ii) comparing the current electrical current level IR with a preset desired end value for the electrical current end value IEnd, which occurs in the case of continued holding voltage UH; and
iii) changing the switching point IS, in the case of a deviation of the current electrical current level IR from the electrical current end value IEnd.

7. The method as claimed in claim 1, wherein:
the first value representing the overvoltage UO is greater than twice as large as the second value representing the holding voltage UH.

8. The use of the method as claimed in claim 1, for controlling the coil current of a magneto inductive, flow measuring device in two conductor technology.

9. A magneto inductive, flow measuring device, comprising:
a coil arrangement; and
a circuit for controlling a coil current, according to a method which comprises a method for controlling coil current of a magneto inductive, flow measuring device with a first value representing an overvoltage UO and a second value representing a holding voltage UH, wherein the first value is greater than the second value, comprising the steps of: setting a first switching point IS for the electrical current level, up to which a coil should be supplied with the overvoltage UO; applying an overvoltage UO until the electrical current level rises to the switching point IS set for the electrical current level; and switching from the overvoltage UO to the holding voltage UH, in order to hold the electrical current level at a constant electrical current end value IH, which circuit is designed to supply the coil arrangement with an overvoltage UO and a holding voltage UH, wherein:
said circuit has a comparator for comparing the current electrical current level IR with a switching point Is of the electrical current level;
said circuit is adapted to switch from the overvoltage UO to the holding voltage UH upon reaching the switching point IS of the electrical current level; and
after switching, an evaluation of a current electrical current level I occurs, along with an adjusting of the switching point IS of the electrical current level is performed by a comparator.

10. The magneto inductive flow measuring device as claimed in claim 9, wherein:
said magneto inductive flow measuring device is embodied preferably as a two conductor field device.

11. The magneto inductive flow measuring device as claimed in claim 10, wherein:
said circuit additionally contains a flip-flop circuit for preventing switching back from the holding voltage UH to the overvoltage UO.