Field of the Invention
The present invention relates to a calibration method for a level sensing apparatus and an anti-interference method for plural level sensing apparatuses, and especially relates to a calibration method for a capacitance level sensing apparatus and an anti-interference method for plural capacitance level sensing apparatuses.
Description of the Related Art
The principle for the capacitance level sensing apparatus is as following. The measured material and the tank are deemed as an equivalent capacitor. When the sensing rod of the capacitance level sensing apparatus is covered by the measured material, the capacitance is generated, so that the circuit signal is changed. However, the accuracy of the capacitance level sensing apparatus is affected by a lot of factors and variables. Therefore, after the capacitance level sensing apparatus is arranged, the user has to adjust the capacitance level sensing apparatus by hands. It is inconvenient. Moreover, when plural capacitance level sensing apparatuses are used at the same time, the capacitance level sensing apparatuses interfere to each other. The accuracy of the capacitance level sensing apparatus is also affected by that.
In order to solve the above-mentioned problems, an object of the present invention is to provide a calibration method for a capacitance level sensing apparatus.
In order to solve the above-mentioned problems, another object of the present invention is to provide an anti-interference method for plural capacitance level sensing apparatuses.
In order to achieve the object of the present invention mentioned above, the calibration method is applied for a tank measurement and comprises following steps. A measurement signal generating circuit generates a measurement signal to proceed with the tank measurement. According to a measurement result measured through the measurement signal, a sensing circuit transmits a sensing signal to a control unit. According to the sensing signal, the control unit determines whether the sensing signal is in an effective range or not. If the control unit determines that the sensing signal is in the effective range, the control unit sets a total capacitance in accordance with the sensing signal as a measurement base value. If the control unit determines that the sensing signal is not in the effective range, the control unit controls the measurement signal generating circuit to adjust a measurement frequency of the measurement signal until the sensing signal is in the effective range. Then the control unit controls the measurement signal generating circuit to stop adjusting the measurement frequency of the measurement signal.
In order to achieve another object of the present invention mentioned above, the anti-interference method is applied for a tank measurement. The capacitance level sensing apparatus comprises a control unit, a measurement signal generating circuit and a sensing circuit. The anti-interference method comprises following steps. One of the capacitance level sensing apparatuses is selected as a selected capacitance level sensing apparatus. The control unit of the selected capacitance level sensing apparatus obtains a plurality of reference signal frequency values and a plurality of reference rod capacitances of the other capacitance level sensing apparatuses. According to the reference signal frequency values and the reference rod capacitances of the other capacitance level sensing apparatuses, the control unit of the selected capacitance level sensing apparatus calculates a plurality of reference equivalent capacitances between the selected capacitance level sensing apparatus and the other capacitance level sensing apparatuses respectively. The control unit of the selected capacitance level sensing apparatus calculates the reference equivalent capacitances and a rod capacitance of the selected capacitance level sensing apparatus to obtain a calculation result. The control unit of the selected capacitance level sensing apparatus multiplies the rod capacitance of the selected capacitance level sensing apparatus and a proportional constant to obtain a proportional rod capacitance. The control unit of the selected capacitance level sensing apparatus determines whether the calculation result is less than the proportional rod capacitance or not. If the control unit of the selected capacitance level sensing apparatus determines that the calculation result is less than the proportional rod capacitance, the selected capacitance level sensing apparatus is processed by the calibration method mentioned above. If the control unit of the selected capacitance level sensing apparatus determines that the calculation result is not less than the proportional rod capacitance, the selected capacitance level sensing apparatus is processed by the calibration method mentioned above. If the control unit of the selected capacitance level sensing apparatus determines that the sensing signal is not in the effective range, the control unit of the selected capacitance level sensing apparatus controls the measurement signal generating circuit of the selected capacitance level sensing apparatus to adjust a measurement frequency of the measurement signal. Moreover, a measurement frequency value of the measurement frequency of the measurement signal is not equal to the reference signal frequency values of the other capacitance level sensing apparatuses.
The advantage of the present invention is to calibrate the capacitance level sensing apparatus automatically, and to provide the anti-interference method for the capacitance level sensing apparatuses.
Please refer to following detailed description and figures for the technical content of the present invention. The following detailed description and figures are referred for the present invention, but the present invention is not limited to it.
S02: The measurement signal generating circuit 102 generates a measurement signal 104 to proceed with the tank measurement through the sensing rod 106. Then the calibration method goes to a step S04. Moreover, the measurement signal generating circuit 102 is a sine wave generating circuit.
S04: According to a measurement result measured through the measurement signal 104, the sensing circuit 108 transmits a sensing signal 110 to the control unit 112. Then the calibration method goes to a step S06.
S06: According to the sensing signal 110, the control unit 112 determines whether the sensing signal 110 is in an effective range or not. If the control unit 112 determines that the sensing signal 110 is in the effective range, the calibration method goes to a step S08. If the control unit 112 determines that the sensing signal 110 is in the effective range, the calibration method goes to a step S12.
S08: The control unit 112 sets a total capacitance in accordance with the sensing signal 110 as a measurement base value. Then the calibration method goes to a step S10.
S10: The control unit 112 controls the measurement signal generating circuit 102 to stop adjusting a measurement frequency of the measurement signal 104.
S12: The control unit 112 controls the measurement signal generating circuit 102 to adjust the measurement frequency of the measurement signal 104.
The step S12 comprises following steps.
S14: The control unit 112 determines whether the sensing signal 110 is greater than a maximum of the effective range or less than a minimum of the effective range. If the control unit 112 determines that the sensing signal 110 is greater than the maximum of the effective range, the calibration method goes to a step S16. If the control unit 112 determines that the sensing signal 110 is less than the minimum of the effective range, the calibration method goes to a step S18.
S16: The control unit 112 controls the measurement signal generating circuit 102 to decrease the measurement frequency of the measurement signal 104. Then the calibration method goes back to the step S02.
S18: The control unit 112 controls the measurement signal generating circuit 102 to increase the measurement frequency of the measurement signal 104. Then the calibration method goes back to the step S02.
Moreover, in the step S16 and in the step S18, the control unit 112 controls the measurement signal generating circuit 102 to decrease or increase the measurement frequency of the measurement signal 104 with a arithmetic method (namely, the measurement frequencies are a arithmetic progression; the measurement frequency is adjusted by a constant value for each time adjusting).
A first capacitance level sensing apparatus 12, a second capacitance level sensing apparatus 14, a third capacitance level sensing apparatus 16 and a fourth capacitance level sensing apparatus 18 are arranged in a tank 20. The first capacitance level sensing apparatus 12 has a first rod capacitance Ca. The second capacitance level sensing apparatus 14 has a second rod capacitance Cb. The third capacitance level sensing apparatus 16 has a third rod capacitance Cc. The fourth capacitance level sensing apparatus 18 has a fourth rod capacitance Cd. Because the types of the first capacitance level sensing apparatus 12, the second capacitance level sensing apparatus 14, the third capacitance level sensing apparatus 16 and the fourth capacitance level sensing apparatus 18 are different, the first rod capacitance Ca, the second rod capacitance Cb, the third rod capacitance Cc and the fourth rod capacitance Cd are different.
After the first capacitance level sensing apparatus 12, the second capacitance level sensing apparatus 14, the third capacitance level sensing apparatus 16 and the fourth capacitance level sensing apparatus 18 are arranged in the tank 20, plural reference equivalent capacitances are obtained due to distances between the first capacitance level sensing apparatus 12, the second capacitance level sensing apparatus 14, the third capacitance level sensing apparatus 16 and the fourth capacitance level sensing apparatus 18. For example, a first reference equivalent capacitance Cab is obtained between the first capacitance level sensing apparatus 12 and the second capacitance level sensing apparatus 14. A second reference equivalent capacitance Cac is obtained between the first capacitance level sensing apparatus 12 and the third capacitance level sensing apparatus 16. A third reference equivalent capacitance Cad is obtained between the first capacitance level sensing apparatus 12 and the fourth capacitance level sensing apparatus 18.
The anti-interference method for plural level sensing apparatuses (namely, the first capacitance level sensing apparatus 12, the second capacitance level sensing apparatus 14, the third capacitance level sensing apparatus 16 and the fourth capacitance level sensing apparatus 18) is applied for a tank measurement. The capacitance level sensing apparatus comprises a control unit, a measurement signal generating circuit and a sensing circuit. The anti-interference method comprises following steps.
T02: One of the capacitance level sensing apparatuses is selected as a selected capacitance level sensing apparatus. For example, the first capacitance level sensing apparatus 12 is selected as the selected capacitance level sensing apparatus. Then the anti-interference method goes to a step T04.
T04: The control unit of the selected capacitance level sensing apparatus obtains a plurality of reference signal frequency values and a plurality of reference rod capacitances (namely, the second rod capacitance Cb, the third rod capacitance Cc and the fourth rod capacitance Cd) of the other capacitance level sensing apparatuses. For example, the capacitance level sensing apparatuses sends the reference signal frequency values and the reference rod capacitances to a server (not shown in
T06: According to the reference signal frequency values and the reference rod capacitances of the other capacitance level sensing apparatuses, the control unit of the selected capacitance level sensing apparatus calculates a plurality of reference equivalent capacitances (namely, the first reference equivalent capacitance Cab, the second reference equivalent capacitance Cac and the third reference equivalent capacitance Cad) between the selected capacitance level sensing apparatus and the other capacitance level sensing apparatuses respectively. Then the anti-interference method goes to a step T08.
T08: The control unit of the selected capacitance level sensing apparatus calculates the reference equivalent capacitances and a rod capacitance of the selected capacitance level sensing apparatus to obtain a calculation result. Then the anti-interference method goes to a step T10.
For example, the control unit of the selected capacitance level sensing apparatus adds the reference equivalent capacitances and the rod capacitance of the selected capacitance level sensing apparatus to obtain the calculation result. Namely, the Cab+the Cac+the Cad+the Ca=the calculation result.
T10: The control unit of the selected capacitance level sensing apparatus multiplies the rod capacitance of the selected capacitance level sensing apparatus and a proportional constant (for example, 0.99) to obtain a proportional rod capacitance. For example, the proportional rod capacitance=the Ca*0.99. Then the anti-interference method goes to a step T12.
T12: The control unit of the selected capacitance level sensing apparatus determines whether the calculation result is less than the proportional rod capacitance or not. Namely, determines whether the Cab+the Cac+the Cad+the Ca is less than the Ca*0.99 or not. If the control unit of the selected capacitance level sensing apparatus determines that the calculation result is less than the proportional rod capacitance, the anti-interference method goes to a step T14. If the control unit of the selected capacitance level sensing apparatus determines that the calculation result is not less than the proportional rod capacitance, the anti-interference method goes to a step T16.
T14: The selected capacitance level sensing apparatus is processed by the calibration method mentioned in
T16: The selected capacitance level sensing apparatus is processed by the calibration method mentioned in
Moreover, when the anti-interference method goes to
The advantage of the present invention is to calibrate the capacitance level sensing apparatus automatically, and to provide the anti-interference method for the capacitance level sensing apparatuses.
Although the present invention has been described with reference to the preferred embodiment thereof, it will be understood that the invention is not limited to the details thereof. Various substitutions and modifications have been suggested in the foregoing description, and others will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.