Angle detection device and positioner

The angle detection device uses bridge circuits and determination units to address issues of inaccurate angle detection due to varying magnetic field strength and sensor selection, ensuring precise angle calculation and correction of offset for reliable sensor operation.

JP2024158981AInactive Publication Date: 2024-11-08AZBIL CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023074672
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-11-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional angle sensors using magnetoresistive elements face challenges in accurately detecting angles when the magnetic field strength is insufficient, leading to unclear output relationships and difficulties in selecting the correct sensor, especially when the magnet moves outside the detection range, and require offset correction for precise angle calculation.

Method used

The angle detection device incorporates a configuration with first and second bridge circuits of magnetoresistive elements, a memory section, and determination units to determine accurate angle calculation timing, correct offset, and select the appropriate sensor, using geometric relationships and average voltage changes to ensure precise angle detection.

Benefits of technology

Enables accurate angle detection by determining suitable timing and correcting offset, ensuring reliable angle calculation even when magnetic field strength varies, and selecting the correct sensor among multiple sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024158981000001_ABST
    Figure 2024158981000001_ABST
Patent Text Reader

Abstract

To detect an angle of a magnetic field without correcting offset of output of a MR sensor.SOLUTION: An angle detection device 1 includes: a MR sensor 10; sensor output measurement sections 111, 112 for measuring an output voltage of the MR sensor 10; a storage section 113 for storing an output voltage and an angle of a magnetic field when the magnetic field is applied to the MR sensor 10 from a magnetic field generation section for at least four points on a track of the magnetic field generation section; an angle calculation section 118 for calculating the angle of a magnetic field on the basis of the measured output voltage and information stored in the storage section 113; and a determination section 116 for determining whether a value obtained by dividing the output voltage measured when detecting an angle by known amplitude satisfies a geometrical relationship and determining whether timing is appropriate for calculating an accurate angle. The angle calculation section 118 determines whether the calculated value is adopted as an accurate value on the basis of a result obtained from the determination section 116.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an angle detection device using a magnetoresistive element and a positioner using the angle detection device. [Background technology]

[0002] Conventionally, as an angle sensor, a sensor that measures the rotation angle of a magnetic field generated by a magnet attached to a rotating body has been known. For angle measurement, a sensor circuit using a magneto-resistance effect (MR) element or the like is used (see Patent Documents 1 to 4).

[0003] Fig. 35 is a block diagram showing the configuration of a conventional MR sensor. The MR sensor 10 is composed of two bridge circuits 100 and 101 composed of MR elements whose electrical resistance changes with a vector change of a magnetic field. The bridge circuit 100 is a parallel connection of a series circuit 103 in which MR elements R1 and R2 are connected in series, and a series circuit 104 in which MR elements R3 and R4 are connected in series. Similarly, the bridge circuit 101 is a parallel connection of a series circuit 105 in which MR elements R5 and R6 are connected in series, and a series circuit 106 in which MR elements R7 and R8 are connected in series.

[0004] When a magnet rotates around the bridge circuits 100, 101 together with a rotor (not shown), the direction of the magnetic field acting on the bridge circuits 100, 101 changes, changing the resistance values ​​of the MR elements R1 to R8 of the bridge circuits 100, 101. If a magnetic field is applied to the bridge circuits 100, 101 of the MR sensor 10 at an angle α of 0° to 360° as shown in Fig. 36, then if the output voltage V1 of the bridge circuit 100 can be expressed as a cosine (cos) wave, the output voltage V2 of the bridge circuit 101 can be expressed as a sine (sin) wave.

[0005] When anisotropic magnetoresistance effect (AMR) elements are used as the MR elements R1 to R8, the period of the output voltages V1 and V2 of the bridge circuits 100 and 101 is 180°, so that the following equation is obtained. V1=V m1 cos2α+V1off (1) V2=V m2 sin2α+V2off ​​(2)

[0006] V m1 is the maximum amplitude of the output voltage V1, V m2 is the maximum amplitude of the output voltage V2, V1off is the offset of the output voltage V1, and V2off ​​is the offset of the output voltage V2. m1 ,V m2 If these are obtained in advance, the magnetic field angle α can be calculated by measuring the output voltages V1 and V2. Furthermore, when Giant Magneto Resistance effect (GMR) elements or Tunnel Magneto Resistance effect (TMR) elements are used as the MR elements R1 to R8, the period of the output voltages V1 and V2 is 360°, so 2α in formulas (1) and (2) becomes α.

[0007] However, the formulas (1) and (2) are for a state where a sufficient magnetic field is applied for accurate angle detection. If a sufficient magnetic field is not applied, the relationship between the output voltages V1 and V2 of the bridge circuits 100 and 101 becomes unclear (it does not necessarily become a sine wave or cosine wave relationship). For example, when the MR sensor 10 and the magnet 130 are in a positional relationship as shown in FIG. 37, the MR sensor 10 is in a state where a sufficient magnetic field is applied, and it is possible to detect the magnetic field angle α. On the other hand, when the MR sensor 10 and the magnet 130 are in a positional relationship as shown in FIG. 38, the strength of the magnetic field applied to the MR sensor 10 becomes insufficient, and it is impossible to detect the angle α. In FIG. 37 and FIG. 38, the inside of the solid line 131 indicates the angle detectable range of the MR sensor 10.

[0008] Fig. 39 is a diagram showing the relationship between the magnetic field angle α and the output voltages V1, V2 of the bridge circuits 100, 101 when AMR elements are used as the MR elements R1 to R8. 500 in Fig. 39 indicates the range in which a magnetic field of sufficient strength for angle detection is applied to the MR sensor, and 501 indicates the range in which the magnetic field strength is insufficient.

[0009] As described above, in conventional technology, when detecting magnet movement that exceeds the detection range of the MR sensor, the relationship between the output voltages V1 and V2 becomes unclear when it is outside the detection range, which poses the problem of not knowing when to start sensing in order to accurately detect the angle. In addition, the output of the MR sensor has an offset that can cause angle errors, which means that the offset must be corrected in order to calculate an accurate angle. In addition, when there are multiple MR sensors, it is not clear which sensor to select in order to accurately detect the angle. [Prior art documents] [Patent documents]

[0010] [Patent Document 1] U.S. Pat. No. 1,057,1305 [Patent Document 2] European Patent No. 2672285 [Patent Document 3] Patent Publication No. 2021-148447 [Patent Document 4] US Patent Application Publication No. 2020 / 0191546 Summary of the Invention [Problem to be solved by the invention]

[0011] The present invention has been made to solve the above-mentioned problems, and has an object to provide an angle detection device and a positioner that can detect the angle of a magnetic field by determining whether the timing is such that an accurate angle can be calculated, and that can detect the angle of a magnetic field without correcting the offset of the output of the MR sensor. Another object of the present invention is to provide an angle detection device and a positioner that, when there are multiple MR sensors, can detect the angle of a magnetic field by determining which sensor should be selected to accurately calculate the angle, and can detect the angle of a magnetic field without correcting the offset of the output of the MR sensor. [Means for solving the problem]

[0012] The angle detection device of the present invention includes an MR sensor including a first bridge circuit including first to fourth magnetoresistance effect elements and a second bridge circuit including fifth to eighth magnetoresistance effect elements arranged so that the phase of the output voltage is different from that of the first bridge circuit; a sensor output measurement unit configured to measure the output voltages of the first and second bridge circuits, respectively; a memory unit configured to store in advance, for at least four points on the orbit of the magnetic field generator, the output voltage and the angle of the magnetic field when a magnetic field is applied to the MR sensor from an external magnetic field generator; an angle calculation unit configured to calculate the angle of the magnetic field based on the output voltage measured by the sensor output measurement unit during angle detection and information stored in the memory unit; and a first judgment unit configured to judge whether or not it is a timing when the MR sensor can accurately calculate an angle by judging whether a value obtained by dividing the output voltage measured by the sensor output measurement unit during angle detection by a known amplitude satisfies a predetermined geometric relationship, and the angle calculation unit is characterized in that it judges whether or not the calculated value should be adopted as an accurate value of the angle of the magnetic field based on the result obtained from the first judgment unit.

[0013] In addition, in one configuration example of the angle detection device of the present invention, the angle calculation unit selects a point on the trajectory of the magnetic field generating unit from the information stored in the memory unit during angle detection, and calculates the angle of the magnetic field when the magnetic field generating unit is located at the midpoint between the position of the magnetic field generating unit during angle detection and the selected point based on the output voltage at the selected point and the output voltage measured during angle detection, and calculates the angle of the magnetic field applied from the magnetic field generating unit to the MR sensor during angle detection based on this calculated angle and the angle of the magnetic field at the selected point.

[0014] In addition, one configuration example of the angle detection device of the present invention further includes a second judgment unit configured to determine whether the timing is such that an accurate angle can be calculated by the MR sensor by determining whether the average rate of change of the output voltage due to the angular change of the magnetic field during angle detection satisfies a predetermined condition, and the angle calculation unit is characterized in that it determines whether to adopt the calculated value as the accurate value of the angle of the magnetic field based on the result obtained from the second judgment unit in addition to the result obtained from the first judgment unit.

[0015] Moreover, one configuration example of the angle detection device of the present invention further includes an initial setting unit configured to set information to be stored in the storage unit at an initial setting, wherein the angle calculation unit calculates, based on the output voltages measured at two adjacent points on a trajectory of the magnetic field generation unit at the initial setting, an angle of the magnetic field when the magnetic field generation unit is located at a midpoint between the two adjacent points, and the second determination unit acquires, from the angle calculation unit at the initial setting, a value of the angle of the magnetic field at a midpoint between a first point and a second point and a value of the angle of the magnetic field at a midpoint between the second point and a third point when the magnetic field generation unit moves through three consecutive points on the trajectory, and calculates an average voltage of the output voltages measured at the first and second points as an output voltage when the magnetic field generation unit is located at a midpoint between the first point and the second point ... second and third points as an output voltage when the magnetic field generation unit is located at a midpoint between the first point and the second point. The initial setting unit calculates an average voltage of the output voltage measured in each case as the output voltage when the magnetic field generating unit is located at the midpoint between the second point and the third point, and determines whether the average rate of change of the output voltage with the change in angle of the magnetic field satisfies a predetermined condition based on the calculated output voltage and the angle of the magnetic field obtained from the angle calculation unit, thereby determining whether the timing is such that accurate angle calculation is possible by the MR sensor, and when the second determination unit obtains a determination result that accurate angle calculation is possible by the MR sensor, the initial setting unit stores in the memory unit the output voltage when the magnetic field generating unit is located at the midpoint between the first point and the second point, and the angle of the magnetic field when the magnetic field generating unit is located at the midpoint between the first point and the second point, as information about the midpoint between the first point and the second point.

[0016] Moreover, one configuration example of the angle detection device of the present invention includes a plurality of the MR sensors, the sensor output measurement unit measures the output voltage of the first and second bridge circuits for each of the plurality of MR sensors, the memory unit stores information on the output voltage and the angle of the magnetic field for at least four points on the orbit of the magnetic field generation unit for each of the plurality of MR sensors, the angle calculation unit calculates the angle of the magnetic field applied from the magnetic field generation unit for each of the plurality of MR sensors, the first determination unit determines for each MR sensor whether a value obtained by dividing the output voltage measured by the sensor output measurement unit by a known amplitude during angle detection satisfies a predetermined geometric relationship, thereby determining whether it is a timing when an accurate angle can be calculated, and the angle calculation unit determines whether to adopt the value calculated for each of the plurality of MR sensors during angle detection as an accurate value of the angle of the magnetic field based on the result obtained from the first determination unit.

[0017] Moreover, one configuration example of the angle detection device of the present invention includes a plurality of the MR sensors, the sensor output measurement unit measures the output voltage of the first and second bridge circuits for each of the plurality of MR sensors, the memory unit stores information on the output voltage and the angle of the magnetic field for at least four points on the trajectory of the magnetic field generation unit for each of the plurality of MR sensors, the angle calculation unit calculates the angle of the magnetic field applied from the magnetic field generation unit for each of the plurality of MR sensors, the first determination unit determines for each MR sensor whether a value obtained by dividing the output voltage measured by the sensor output measurement unit by a known amplitude during angle detection satisfies a predetermined geometric relationship, thereby determining whether it is a timing at which an accurate angle can be calculated, and the second determination unit determines for each MR sensor whether an average rate of change of the output voltage in an angle change of the magnetic field during angle detection satisfies a predetermined condition, thereby determining whether it is a timing at which an accurate angle can be calculated. The angle calculation unit is characterized in that it determines whether or not to adopt the value calculated for each of the multiple MR sensors during angle detection as an accurate value of the magnetic field angle based on the results obtained from the first and second determination units.

[0018] In one configuration example of the angle detection device of the present invention, the first determination unit selects three sets of information from the information stored in the storage unit, and determines the output voltage of the first bridge circuit in the selected first set as V 1A , the output voltage of the second bridge circuit in the first set is V 2A , the output voltage of the first bridge circuit in the selected second set is V 1B , the output voltage of the second bridge circuit in the second set is V 2B , the output voltage of the first bridge circuit in the selected third set is V 1D , the output voltage of the second bridge circuit in the third set is V 2D The output voltage of the first bridge circuit measured during angle detection is V 1E The output voltage of the second bridge circuit measured during angle detection is V 2E Let the known amplitude of the output voltage of the first bridge circuit be V m1 , the known amplitude of the output voltage of the second bridge circuit is V m2 Let the point (V 1A / V m1 ,V 2A / V m2 ) and point (V 1B / V m1 ,V 2B / V m2 ) is the length of the side connecting AB and point (V 1B / V m1 ,V 2B / V m2 ) and point (V 1D / V m1 ,V 2D / V m2 ) is the length of the side connecting the points (V 1D / V m1 ,V 2D / V m2 ) and point (V 1A / V m1 ,V2A / V m2 ) is the length of the side connecting the points (V 1A / V m1 ,V 2A / V m2 ) and point (V 1E / V m1 ,V 2E / V m2 ) is the length of the side connecting the points AE and V 1E / V m1 ,V 2E / V m2 ) and point (V 1D / V m1 ,V 2D / V m2 ) is the length of the side connecting |(AB 2 +BD 2 -DA 2 ) / (2AB×BD)|≒|(AE 2 +ED 2 -DA 2 When the following equation holds, it is determined that this is the timing at which the MR sensor can perform accurate angle calculation.

[0019] In one configuration example of the angle detection device of the present invention, the first to eighth magnetoresistance effect elements are AMR elements, and the second determination unit determines the output voltage of the first bridge circuit when the magnetic field generation unit is located at a midpoint between the first point and the second point as aveV. 1α1α2 The output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV 2α1α2 The output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the second point and the third point is aveV 1α2α3 The output voltage of the second bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV 2α2α3 The angle of the magnetic field at the midpoint between the first point and the second point is (α2+α1) / 2, the angle of the magnetic field at the midpoint between the second point and the third point is (α3+α2) / 2, and the known amplitude of the output voltage of the first bridge circuit is V m1, the known amplitude of the output voltage of the second bridge circuit is V m2 Then, the average rate of change of the output voltage of the first bridge circuit with respect to the angular change of the magnetic field (cos2α3-cos2α1) / (α3-α1) is defined as (aveV 1α2α3 -aveV 1α1α2 ) / {(α2+α3) / 2-(α1+α2) / 2} / V m1 = (cos2α3-cos2α1) / (α3-α1), and the average rate of change of the output voltage of the second bridge circuit with respect to the angular change of the magnetic field (sin2α3-sin2α1) / (α3-α1) is calculated as (aveV 2α2α3 -aveV 2α1α2 ) / {(α2+α3)-(α1+α2)} / V m2 = (sin2α3-sin2α1) / (α3-α1), calculated as (1 / 4) × {(cos2α3-cos2α1) / (α3-α1)} 2 +{(sin2α3-sin2α1) / (α3-α1)} 2 When the relation between the angle and the MR sensor is satisfied, it is determined that this is the timing at which the MR sensor can perform accurate angle calculation.

[0020] In one configuration example of the angle detection device of the present invention, the first to eighth magnetoresistance effect elements are GMR elements or TMR elements, and the second determination unit determines the output voltage of the first bridge circuit when the magnetic field generation unit is located at a midpoint between the first point and the second point as aveV. 1α1α2 The output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV 2α1α2 The output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the second point and the third point is aveV 1α2α3 The output voltage of the second bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV 2α2α3 The angle of the magnetic field at the midpoint between the first point and the second point is (α2+α1) / 2, the angle of the magnetic field at the midpoint between the second point and the third point is (α3+α2) / 2, and the known amplitude of the output voltage of the first bridge circuit is Vm1 , the known amplitude of the output voltage of the second bridge circuit is V m2 Then, the average rate of change of the output voltage of the first bridge circuit with respect to the angular change of the magnetic field (cosα3-cosα1) / (α3-α1) is defined as (aveV 1α2α3 -aveV 1α1α2 ) / {(α2+α3) / 2-(α1+α2) / 2} / V m1 = (cosα3-cosα1) / (α3-α1), and the average rate of change of the output voltage of the second bridge circuit with respect to the angular change of the magnetic field (sinα3-sinα1) / (α3-α1) is calculated as (aveV 2α2α3 -aveV 2α1α2 ) / {(α2+α3)-(α1+α2)} / V m2 = (sinα3-sinα1) / (α3-α1), {(cosα3-cosα1) / (α3-α1)} 2 +{(sinα3-sinα1) / (α3-α1)} 2 When the relation between the angle and the MR sensor is satisfied, it is determined that this is the timing at which the MR sensor can perform accurate angle calculation.

[0021] Moreover, a positioner of the present invention includes an angle detection device, an actual opening value generating unit configured to obtain an actual opening value of the valve based on the angle of the magnetic field adopted as an accurate value by the angle calculation unit during valve control operation, and a control signal generating unit configured to generate a control signal for controlling the opening of the valve based on the valve opening set value and the actual opening value during the valve control operation, and the MR sensor is characterized in being positioned to detect the angle of the magnetic field applied from the magnetic field generating unit that moves due to opening and closing of the valve. Effect of the Invention

[0022] According to the present invention, by providing a first judgment unit, it is possible to detect the angle of the magnetic field by judging whether it is a timing when accurate angle calculation is possible. Also, in the present invention, by providing a storage unit and an angle calculation unit, it is possible to detect the angle of the magnetic field without correcting the offset of the output of the MR sensor. Also, in the present invention, by providing a first judgment unit, it is possible to detect the angle of the magnetic field by judging, in the case where there are multiple MR sensors, which sensor should be selected to accurately calculate the angle.

[0023] Furthermore, in the present invention, by providing a second determination unit, it is possible to deal with a situation in which it is desired to detect the angle of the magnetic field only when the magnetic field generating unit is stopped within the angle detectable range of the MR sensor. [Brief description of the drawings]

[0024] [Figure 1] FIG. 1 is a block diagram showing the configuration of an angle detection device according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is a block diagram showing a configuration of a data processing control unit according to the first embodiment of the present invention. [Diagram 3] FIG. 3 is a diagram for explaining the direction of the magnetic field that minimizes the resistance value when an AMR element is used as the MR element. [Figure 4] FIG. 4 is a diagram for explaining the magnetization direction of the pinned layer when a GMR element or a TMR element is used as the MR element. [Diagram 5] FIG. 5 is a diagram showing an example of the relationship between the angle of the magnetic field and the output voltage of the bridge circuit of the MR sensor when an AMR element is used as the MR element. [Figure 6] FIG. 6 is a diagram showing an example of the relationship between the angle of the magnetic field and the output voltage of the bridge circuit of the MR sensor when a GMR element or a TMR element is used as the MR element. [Figure 7] FIG. 7 is a flowchart illustrating the operation at the time of initial setting of the angle detection device according to the first embodiment of the present invention. [Figure 8]FIG. 8 is a diagram for explaining the operation of the initial setting unit of the angle detection device according to the first embodiment of the present invention. [Figure 9] FIG. 9 is a diagram for explaining the operation of the initial setting unit of the angle detection device according to the first embodiment of the present invention. [Figure 10] FIG. 10 is a flowchart illustrating the operation of the angle detection device according to the first embodiment of the present invention when detecting an angle. [Figure 11] FIG. 11 is a diagram for explaining the geometric relationship of the output voltage of the bridge circuit of the MR sensor. [Figure 12] FIG. 12 is a diagram showing the determination results of the angle calculation unit for different positional relationships between the MR sensor and the magnetic field generation unit. [Figure 13] FIG. 13 is a diagram showing an example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 14] FIG. 14 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 15] FIG. 15 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 16] FIG. 16 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 17] FIG. 17 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 18] FIG. 18 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 19] FIG. 19 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 20] FIG. 20 is a block diagram showing the configuration of a positioner according to the second embodiment of the present invention. [Figure 21] FIG. 21 is a block diagram showing a configuration of a data processing control unit according to the second embodiment of the present invention. [Figure 22] FIG. 22 is a diagram showing an example of a valve. [Diagram 23] FIG. 23 is a diagram showing the relationship between the MR sensor according to the second embodiment of the present invention and a magnetic field generating unit. [Figure 24]FIG. 24 is a flowchart illustrating the operation during valve control of the positioner according to the second embodiment of the present invention. [Diagram 25] FIG. 25 is a block diagram showing a configuration of an angle detection device according to the third embodiment of the present invention. [Figure 26] FIG. 26 is a diagram showing the relationship between the MR sensor according to the third embodiment of the present invention and a magnetic field generating unit. [Figure 27] FIG. 27 is a block diagram showing a configuration of a data processing control unit according to the third embodiment of the present invention. In FIG. [Figure 28] FIG. 28 is a flowchart illustrating the operation at the time of initial setting of the angle detection device according to the third embodiment of the present invention. [Figure 29] FIG. 29 is a flowchart illustrating the operation of the angle detection device according to the third embodiment of the present invention when detecting an angle. [Diagram 30] FIG. 30 is a block diagram showing the configuration of a positioner according to the fourth embodiment of the present invention. [Diagram 31] FIG. 31 is a block diagram showing a configuration of a data processing control unit according to the fourth embodiment of the present invention. In FIG. [Diagram 32] FIG. 32 is a diagram showing the relationship between the MR sensor according to the fourth embodiment of the present invention and a magnetic field generating unit. [Diagram 33] FIG. 33 is a flowchart explaining the operation during valve control of the positioner according to the fourth embodiment of the present invention. [Diagram 34] FIG. 34 is a block diagram showing an example of the configuration of a computer that realizes the angle detection device or the positioner according to the first to fourth embodiments of the present invention. [Diagram 35] FIG. 35 is a block diagram showing the configuration of a conventional MR sensor. [Diagram 36] FIG. 36 is a diagram for explaining the angle of the magnetic field applied to the MR sensor. [Figure 37] FIG. 37 is a diagram showing a case where the MR sensor can detect the angle of the magnetic field. [Figure 38] FIG. 38 is a diagram showing a case where the MR sensor cannot detect the angle of the magnetic field. [Figure 39] FIG. 39 is a diagram showing the relationship between the angle of the magnetic field and the output voltage of the bridge circuit of the MR sensor when an AMR element is used as the MR element. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025] [First Example] Hereinafter, embodiments of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of an angle detection device according to a first embodiment of the present invention. The angle detection device 1 includes an MR sensor 10, which is an angle sensor, and a data processing control unit 11.

[0026] The MR sensor detects the position of the magnetic field generating unit 12 based on the angle of the applied magnetic field. The data processing control unit 11 calculates the angle of the magnetic field based on the output signal of the MR sensor . 2 is a block diagram showing the configuration of the data processing control unit 11 of this embodiment. The data processing control unit 11 includes a power supply 110, sensor output measurement units 111 and 112, a storage unit 113, an amplitude calculation unit 114, an initial setting unit 115, determination units 116 and 117, an angle calculation unit 118, and a control signal generation unit 119.

[0027] The configuration of the MR sensor 10 is as shown in Fig. 35. When the power supply 110 of the data processing control unit 11 is turned on, a constant voltage V is applied between P and GND of the bridge circuit 100 in Fig. 35 and between Q and GND of the bridge circuit 101, and a current I flows. The midpoint potential difference V1 of bridge circuit 100 (the potential difference between the midpoint of series circuit 103 and the midpoint of series circuit 104) is defined as the output voltage of bridge circuit 100, and the midpoint potential difference V2 of bridge circuit 101 (the potential difference between the midpoint of series circuit 105 and the midpoint of series circuit 106) is defined as the output voltage of bridge circuit 101.

[0028] When AMR elements are used as the MR elements R1 to R8, as shown by the arrows in FIG. 3, the magnetic field direction at which the resistance values ​​of the MR elements R1 and R4 in the bridge circuit 100 become minimum is the same, and the magnetic field direction at which the resistance values ​​of the MR elements R2 and R3 become minimum is the same. The magnetic field directions at which the resistance values ​​of adjacent MR elements in the bridge circuit 100 become minimum are orthogonal to each other. Similarly, the magnetic field direction at which the resistance values ​​of the MR elements R5 and R8 in the bridge circuit 101 become minimum is the same, and the magnetic field direction at which the resistance values ​​of the MR elements R6 and R7 become minimum is the same. The magnetic field directions at which the resistance values ​​of adjacent MR elements in the bridge circuit 101 become minimum are orthogonal to each other. The bridge circuits 100 and 101 are arranged so that the magnetic field directions at which the resistance values ​​become minimum are shifted by 45°.

[0029] When GMR elements or TMR elements are used as the MR elements R1 to R8, as shown by the arrows in FIG. 4, the magnetization directions of the pin layers of the MR elements R1 and R4 in the bridge circuit 100 are the same, and the magnetization directions of the pin layers of the MR elements R2 and R3 are the same. The magnetization directions of the pin layers of adjacent MR elements in the bridge circuit 100 are opposite to each other. Similarly, the magnetization directions of the pin layers of the MR elements R5 and R8 in the bridge circuit 101 are the same, and the magnetization directions of the pin layers of the MR elements R6 and R7 are the same. The magnetization directions of the pin layers of adjacent MR elements in the bridge circuit 101 are opposite to each other. The bridge circuits 100 and 101 are arranged so that the magnetization directions of the pin layers are perpendicular to each other.

[0030] The magnetic field generating unit 12 (magnet) generates a magnetic field that acts on the bridge circuits 100 and 101. The magnetic field generating unit 12 moves along a trajectory on a plane perpendicular to a sensor surface (a surface parallel to the paper surfaces of FIGS. 3 and 4) on which the thin film resistor patterns of the MR elements R1 to R8 are formed.

[0031] As shown in FIG. 36, when a magnetic field is applied to the bridge circuits 100 and 101 of the MR sensor 10 at an angle α (where 0°≦α≦360°), if the output voltage V1 of the bridge circuit 100 can be represented as a cosine wave, the output voltage V2 of the bridge circuit 101 can be represented as a sine wave.

[0032] When AMR elements are used as the MR elements R1 to R8, the period of the output voltages V1 and V2 is 180°, and when GMR elements or TMR elements are used as the MR elements R1 to R8, the period of the output voltages V1 and V2 is 360°. Therefore, when AMR elements are used as the MR elements R1 to R8, the relationship between the magnetic field angle α and the output voltages V1 and V2 is as shown in FIG. 5. Also, when GMR elements or TMR elements are used as the MR elements R1 to R8, the relationship between the magnetic field angle α and the output voltages V1 and V2 is as shown in FIG. 6. However, FIG. 5 and FIG. 6 show the case where a magnetic field strong enough for angle detection is applied to the MR sensor 10.

[0033] As described above, the output voltages V1 and V2 of the bridge circuits 100 and 101 can be expressed as a cosine wave and a sine wave, respectively, but generally, both have an offset. The offset of the output voltage V1 of the bridge circuit 100 is V1off, and the offset of the output voltage V2 of the bridge circuit 101 is V2off. m1 is the maximum amplitude of the output voltage V1, V m2 is the maximum amplitude of the output voltage V2. When a magnetic field strong enough for angle detection is applied to the MR sensor 10, the output voltages V1 and V2 of the bridge circuits 100 and 101 can be expressed as equations (1) and (2) when AMR elements are used as the MR elements R1 to R8.

[0034] 7 is a flowchart for explaining the operation at the time of initial setting of the angle detection device 1 of this embodiment. When the angle detection device 1 is shipped from the factory, the amplitude calculation unit 114 calculates the amplitude V m1 ,V m2 (Step S100 in FIG. 7).

[0035] Specifically, for example, a worker in a factory moves the magnetic field generating unit 12 (magnet) to change the direction of the magnetic field acting on the bridge circuits 100, 101 of the MR sensor 10. At this time, the position of the magnetic field generating unit 12 needs to be within a range where a magnetic field of sufficient strength for angle detection is applied to the MR sensor 10.

[0036] The sensor output measuring unit 111 of the data processing control unit 11 measures the output voltage V1 of the bridge circuit 100 of the MR sensor 10, and the sensor output measuring unit 112 measures the output voltage V2 of the bridge circuit 101. The values ​​of the output voltages V1 and V2 measured by the sensor output measuring units 111 and 112 are stored in the memory unit 113.

[0037] For example, when an instruction to execute a calculation process is given by a factory worker, the amplitude calculation unit 114 of the data processing control unit 11 detects the maximum and minimum values ​​of the output voltage V1 of the bridge circuit 100, and calculates the amplitude V by dividing the difference between the maximum and minimum values ​​by 2. m1 Similarly, the amplitude calculation unit 114 detects the maximum and minimum values ​​of the output voltage V2 of the bridge circuit 101, and calculates the difference between the maximum and minimum values ​​divided by 2 as the amplitude V m2 The amplitude V calculated by the amplitude calculation unit 114 is calculated as follows. m1 ,V m2 is stored in the storage unit 113.

[0038] Next, after the angle detection device 1 is installed at a site such as a chemical plant, when, for example, an operator at the site issues a setup execution instruction, the amplitude calculation unit 114 calculates the amplitude V m1 ,V m2 The process of step S101 can be performed in the same manner as step S100. m1 ,V m2 The value of the amplitude V is updated by the process of step S101. m1 ,V m2 The reason for recalculating the value of is that the amplitude V m1 ,V m2 This is because changes.

[0039] Next, the initial setting unit 115 linearly moves the magnetic field generating unit 12 (magnet) at a constant speed as shown in Fig. 8 in order to obtain the output voltages V1, V2 of the bridge circuits 100, 101 and the magnetic field angle α for at least four points on the trajectory of the magnetic field generating unit 12 (step S102 in Fig. 7). At this time, it is desirable to make the sampling interval as short as possible. The magnetic field generating unit 12 may be moved by the initial setting unit 115 supplying a control signal to a driving device of the object to which the magnetic field generating unit 12 is attached, or a control signal may be supplied from an external input device.

[0040] The sensor output measuring unit 111 measures the output voltage V1 of the bridge circuit 100 of the MR sensor 10, and the sensor output measuring unit 112 measures the output voltage V2 of the bridge circuit 101 (Step S103 in FIG. 7).

[0041] The determination section 117 of the data processing control section 11 determines whether the average rate of change of the output voltages V1, V2 measured in step S103 satisfies a predetermined condition, thereby determining whether it is time to accurately calculate the angle.

[0042] As described above, the output voltages V1 and V2 of the bridge circuits 100 and 101 can be expressed as equations (1) and (2). α2 If the angle of the magnetic field at this time is α2, then the output voltage V1 = V 1α2 ,V2=V 2α2 is expressed as equations (3) and (4). V 1α2 =V m1 cos2α2+V1off (3) V 2α2 =V m2 sin2α2+V2off ​​(4)

[0043] The output voltages V1 and V2 are measured periodically at time t=t α2 The time t before t=t α1 (t α1 <t α2 ) the angle of the magnetic field is α1, then the output voltage V1 = V 1α1,V2=V 2α1 is expressed as equations (5) and (6). V 1α1 =V m1 cos2α1+V1off (5) V 2α1 =V m2 sin2α1+V2off ​​(6)

[0044] From equations (3) to (6), equations (7) and (8) are obtained. V 1α2 -V 1α1 =V m1 (cos2α2-cos2α1) (7) V 2α2 -V 2α1 =V m2 (sin2α2-sin2α1) ···(8)

[0045] cos2α2-cos2α1 on the right side of equation (7) is expressed as equation (9). Also, sin2α2-sin2α1 on the right side of equation (8) is expressed as equation (10). cos2α2-cos2α1=-2sin(α2+α1)sin(α2-α1) (9) sin2α2-sin2α1=2sin(α2-α1)cos(α2+α1) (10)

[0046] Equation (11) is obtained from equations (9) and (10). |-2sin(α2+α1)sin(α2-α1)| / |2sin(α2-α1)cos(α2+α1)|=|tan(α2+α1)| ···(11)

[0047] Equation (12) is obtained from equations (7), (8), and (11). |α2+α1| =|tan -1 {(V m2 / V m1 )×(V 1α2 -V 1α1 ) / (V 2α2 -V 2α1)}| (12)

[0048] The angle calculation unit 118 actually uses the following equation (13). |α2+α1| / 2 =(1 / 2) ×|tan -1 {(V m2 / V m1 )×(V 1α2 -V 1α1 ) / (V 2α2 -V 2α1 )}| (13)

[0049] When GMR elements or TMR elements are used as the MR elements R1 to R8, 2α in formulas (1) to (8) should be changed to α, 2α1 to α1, and 2α2 to α2. As a result, when GMR elements or TMR elements are used, formulas (9) and (10) become formulas (14) and (15). cosα2-cosα1=-2sin{(α2+α1) / 2} ×sin{(α2-α1)) / 2} (14) sin2α2-sin2α1=2sin{(α2-α1) / 2} ×cos{(α2+α1) / 2} (15)

[0050] Equation (16) is obtained from equations (14) and (15). |-2sin{(α2+α1) / 2}×sin{(α2-α1) / 2}| / |2sin{(α2-α1) / 2}×cos{(α2+α1) / 2}| =|tan(α2+α1) / 2| (16)

[0051] From equation (16), equation (17), which corresponds to equation (13), can be obtained. |α2+α1| / 2 =|tan -1 {(V m2 / V m1 )×(V 1α2 -V 1α1 ) / (V 2α2-V 2α1 )}| (17)

[0052] The angle calculation unit 118 calculates the angle at the previous time t=t α1 Output voltage V1=V 1α1 ,V2=V 2α1 and the latest time t=t α2 Output voltage V1=V 1α2 ,V2=V 2α2 and the amplitude V stored in the storage unit 113 m1 ,V m2 Based on this, the angle |α2+α1| / 2 of the magnetic field when the magnetic field generating unit 12 is located at the midpoint between the second point (the position of the magnetic field generating unit 12 when the magnetic field angle is α2) and the first point (the position of the magnetic field generating unit 12 when the magnetic field angle is α1) is calculated (FIG. 7, step S104). Specifically, when AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle |α2+α1| / 2 by equation (13). Also, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle |α2+α1| / 2 by equation (17).

[0053] The angle calculation unit 118 calculates the angle at the next time t=t α3 (t α2 <t α3 ) at the previous time t=t α Output voltage at 2 V1 = V 1α2 ,V2=V 2α2 and the latest time t=t α Output voltage V1 at 3 = V 1α3 ,V2=V 2α3 and the amplitude V stored in the storage unit 113 m1 ,V m2 Based on this, the magnetic field angle |α3+α2| / 2 is calculated when the magnetic field generating unit 12 is located at the midpoint between the third point (the position of the magnetic field generating unit 12 when the magnetic field angle is α3) and the second point (the position of the magnetic field generating unit 12 when the magnetic field angle is α2) (step S104).

[0054] When AMR elements are used as the MR elements R1 to R8, the angle calculation section 118 calculates the angle |α3+α2| / 2 by equation (18), which is similar to equation (13). |α3+α2| / 2 =(1 / 2) ×|tan -1 {(V m2 / V m1 )×(V 1α3 -V 1α2 ) / (V 2α3 -V 2α2 )}| (18)

[0055] Furthermore, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation section 118 calculates the angle |α3+α2| / 2 by equation (19) which is similar to equation (17). |α3+α2| / 2 =|tan -1 {(V m2 / V m1 )×(V 1α3 -V 1α2 ) / (V 2α3 -V 2α2 )}| (19)

[0056] When AMR elements are used as the MR elements R1 to R8, at time t=t α1 The output voltage V1 of the bridge circuit 100 when V=V 1α1 and time t=t α2 The output voltage V1 of the bridge circuit 100 when V=V 1α2 and the average voltage aveV 1α1α2 From equations (3) and (5), we obtain equation (20). aveV 1α1α2 =(V 1α1 +V 1α2 ) / 2 ={V m1 (cos2α1+cos2α2)+2V1off} / 2 ···(20)

[0057] When AMR elements are used as the MR elements R1 to R8, at time t=t α2The output voltage V1 of the bridge circuit 100 when V=V 1α2 and time t=t α3 The output voltage V1 of the bridge circuit 100 when V=V 1α3 and the average voltage aveV 1α2α3 is expressed as equation (21). aveV 1α2α3 =(V 1α2 +V 1α3 ) / 2 ={V m1 (cos2α2+cos2α3)+2V1off} / 2 ···(21)

[0058] When AMR elements are used as the MR elements R1 to R8, at time t=t α1 The output voltage V2 of the bridge circuit 101 when V = V 2α1 and time t=t α2 The output voltage V2 of the bridge circuit 101 when V = V 2α2 and the average voltage aveV 2α1α2 From equations (4) and (6), we obtain equation (22). aveV 2α1α2 =(V 2α1 +V 2α2 ) / 2 ={V m2 (sin2α1+sin2α2)+2V2off} / 2 ···(22)

[0059] When AMR elements are used as the MR elements R1 to R8, at time t=t α2 The output voltage V2 of the bridge circuit 101 when V = V 2α2 and time t=t α3 The output voltage V2 of the bridge circuit 101 when V = V 2α3 and the average voltage aveV 2α2α3 is expressed as equation (23). aveV 2α2α3 =(V 2α2 +V 2α3 ) / 2 ={V m2 (sin2α2+sin2α3)+2V2off} / 2 ···(23)

[0060] Therefore, when AMR elements are used as the MR elements R1 to R8, the average rates of change of the output voltages V1, V2 with respect to the angular change of the magnetic field are expressed by equations (24) and (25). (aveV 1α2α3 -aveV 1α1α2 ) / {(α2+α3) / 2-(α1+α2) / 2} / V m1 =(cos2α3-cos2α1) / (α3-α1) ···(24) (aveV 2α2α3 -aveV 2α1α2 ) / {(α2+α3)-(α1+α2)} / V m2 =(sin2α3-sin2α1) / (α3-α1) ···(25)

[0061] When (α3-α1) approaches 0 infinitesimally, the average rate of change is equivalent to the derivative. When (α3-α1) approaches 0 infinitesimally, equation (26) can be obtained from equation (24) and equation (25). (1 / 4)×{(cos2α3-cos2α1) / (α3-α1)} 2 +{(sin2α3-sin2α1) / (α3-α1)} 2 ≒1 ··(26)

[0062] When the difference between angles α3 and α1 is small (time t α3 and α1 is small), we obtain equations (27) to (29).

[0063]

number

[0064] (1 / 4)×{(-2sin2α1) 2 +(2cos2α1) 2}=1 ··(29)

[0065] On the other hand, when GMR elements or TMR elements are used as the MR elements R1 to R8, 2α1 in the formulas (20) to (23) should be changed to α1, 2α2 to α2, and 2α3 to α3. Therefore, the average rates of change of the output voltages V1 and V2 with respect to the angular change of the magnetic field are as shown in the formulas (30) and (31). (aveV 1α2α3 -aveV 1α1α2 ) / {(α2+α3) / 2-(α1+α2) / 2} / V m1 =(cosα3-cosα1) / (α3-α1) ···(30) (aveV 2α2α3 -aveV 2α1α2 ) / {(α2+α3)-(α1+α2)} / V m2 =(sinα3-sinα1) / (α3-α1) ···(31)

[0066] When (α3-α1) approaches 0 infinitesimally, the average rate of change is equivalent to the derivative. When (α3-α1) approaches 0 infinitesimally, equation (32) can be obtained from equations (30) and (31). {(cosα3-cosα1) / (α3-α1)} 2 +{(sinα3-sinα1) / (α3-α1)} 2 ≒1 ···(32)

[0067] When the difference between angles α3 and α1 is small (time t α3 and α1 is small), we obtain equations (33) to (35).

[0068]

number

[0069] {(-sinα1) 2 +(cosα1) 2}=1 ···(35)

[0070] When AMR elements are used as the MR elements R1 to R8, the determination unit 117 determines whether the average rate of change of the output voltages V1 and V2 in response to the angular change of the magnetic field satisfies the condition of formula (26) to determine whether it is a timing when accurate angle calculation is possible (step S105 in FIG. 7). Also, when GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117 determines whether the average rate of change of the output voltages V1 and V2 in response to the angular change of the magnetic field satisfies the condition of formula (32) to determine whether it is a timing when accurate angle calculation is possible (step S105).

[0071] Specifically, when AMR elements are used as the MR elements R1 to R8, the determination unit 117 determines the output voltage V 1α1 ,V 1α2 Average voltage aveV 1α1α2 is calculated using equation (20), and the output voltage V 1α2 ,V 1α3 Average voltage aveV 1α2α3 is calculated using equation (21), and the output voltage V 2α1 ,V 2α2 Average voltage aveV 2α1α2 is calculated using equation (22), and the output voltage V 2α2 ,V 2α3 Average voltage aveV 2α2α3 is calculated using equation (23).

[0072] Next, the determination unit 117 determines the average voltage aveV 1α1α2 ,aveV 1α2α3 the magnetic field angles |α2+α1| / 2, |α3+α2| / 2 calculated by the angle calculation unit 118, and the amplitude V m1 Based on this, the average rate of change of the output voltage V1 with respect to the angular change of the magnetic field is calculated by the formula (24), that is, (cos2α3-cos2α1) / (α3-α1). 2α1α2 ,aveV 2α2α3, the magnetic field angles |α2+α1| / 2, |α3+α2| / 2, and the amplitude V stored in the storage unit 113. m2 Based on this, the average rate of change of the output voltage V2 with respect to the angular change of the magnetic field, (sin2α3-sin2α1) / (α3-α1), is calculated using equation (25).

[0073] Then, the determination unit 117 substitutes the calculated average change rates (cos2α3-cos2α1) / (α3-α1), (sin2α3-sin2α1) / (α3-α1) into equation (26), and when equation (26) holds, it determines that the average change rates of the output voltages V1 and V2 in the angle change of the magnetic field satisfy a predetermined condition and that it is a timing at which accurate angle calculation is possible. When equation (26) does not hold, the determination unit 117 determines that it is a timing at which accurate angle calculation is impossible. At this time, the determination unit 117 determines that equation (26) holds when the left side of equation (26) is within the range of 1±β (β is a real number that defines a predetermined allowable range) and determines that equation (26) does not hold when it is outside the range of 1±β.

[0074] When GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117 determines the average voltage aveV 1α1α2 ,aveV 1α2α3 ,aveV 2α1α2 ,aveV 2α2α3 Next, the determination unit 117 calculates the average voltage aveV 1α1α2 ,aveV 1α2α3 , the magnetic field angles |α2+α1| / 2, |α3+α2| / 2, and the amplitude V m1 Based on this, the average rate of change of the output voltage V1 with respect to the angular change of the magnetic field is calculated by the formula (30), that is, (cosα3-cosα1) / (α3-α1). 2α1α2 ,aveV 2α2α3 , the magnetic field angles |α2+α1| / 2, |α3+α2| / 2, and the amplitude V m2 Based on this, the average rate of change (sinα3-sinα1) / (α3-α1) of the output voltage V2 with respect to the angular change of the magnetic field is calculated using equation (31).

[0075] Then, the determination unit 117 substitutes the calculated average change rates (cosα3-cosα1) / (α3-α1), (sinα3-sinα1) / (α3-α1) into formula (32), and when formula (32) holds, it determines that the average change rates of the output voltages V1 and V2 in the angle change of the magnetic field satisfy a predetermined condition and that it is a timing at which accurate angle calculation is possible. When formula (32) does not hold, the determination unit 117 determines that it is a timing at which accurate angle calculation is impossible. At this time, the determination unit 117 determines that formula (32) holds when the left side of formula (32) is within the range of 1±β (β is a real number that defines a predetermined allowable range), and determines that formula (32) does not hold when it is outside the range of 1±β.

[0076] When the determination unit 117 determines that the angle can be calculated (YES in step S106 in FIG. 7), the initial setting unit 115 stores the output voltages of the bridge circuits 100 and 101 and the magnetic field angle at this time in the memory unit 113 (step S107 in FIG. 7). The magnetic field angles when the magnetic field generating unit 12 is at the positions P1, P2, and P3 in FIG. 9 are defined as α1, α2, and α3 as described above. The positions P1, P2, and P3 of the three points (at time t α1 ,t α2 ,t α 3) The output voltage V of the bridge circuits 100 and 101 is 1α1 ,V 1α2 ,V 1α3 ,V 2α1 ,V 2α2 ,V 2α3 When the determination unit 117 determines that the angle can be calculated, the initial setting unit 115 sets the voltage (average voltage) aveV at the midpoint between the first point P1 and the second point P2. 1α1α2 ,aveV 2α1α2 is stored in memory unit 113 as the output voltage of bridge circuits 100, 101 when magnetic field generating unit 12 is positioned at the midpoint, and angle |α2+α1| / 2 is stored in memory unit 113 as the angle of the magnetic field when magnetic field generating unit 12 is positioned at the midpoint.

[0077] The initial setting unit 115 judges whether four or more pairs of voltage and angle have been stored (step S108 in FIG. 7), and if four or more pairs have not been stored, the process returns to step S103. In this manner, the processes in steps S103 to S107 are repeated until at least four pairs of voltage and angle have been stored. In FIG. 8, the point on the trajectory of the magnetic field generating unit 12 where the voltage and angle have been stored is designated as P A ,P B ,P C ,P D It is expressed as:

[0078] These points P A ,P B ,P C ,P D are points where voltage measurements are not performed. For example, point P A is the point P A The first voltage measurement point (P1 above) and point P A The average voltage of the output voltage of the bridge circuit 100 at the first voltage measurement point and the second voltage measurement point (aboveV 1α1α2 ) and the average voltage of the output voltage of the bridge circuit 101 at the first voltage measurement point and the second voltage measurement point (the above aveV 2α1α2 ) and point P A The output voltage V of the bridge circuits 100 and 101 when the magnetic field generating unit 12 is located at 1A ,V 2A The magnetic field angle at the midpoint between the first and second voltage measurement points (|α2+α1| / 2 above) is stored as point P A The angle αA of the magnetic field when the magnetic field generating unit 12 is located at point P is stored. B Similarly, the output voltage V 1B ,V 2B and the magnetic field angle αB are stored, and point P C Regarding the output voltage V 1C ,V 2C and the magnetic field angle αC are stored, and point P D Regarding the output voltage V 1D ,V 2D and the magnetic field angle αD are stored. With this, the operation of the initial setting unit 115 is completed.

[0079] 10 is a flow chart for explaining the operation of the angle detection device 1 of this embodiment when detecting an angle. The amplitude calculation unit 114 of the data processing control unit 11 calculates the amplitude V m1 ,V m2 The process of step S200 can be performed in the same manner as step S100. m1 ,V m2 The value of the amplitude V is updated by the process of step S200. m1 ,V m2 The reason for recalculating the value of is that the amplitude V m1 ,V m2 This is because changes.

[0080] The sensor output measuring unit 111 measures the output voltage V1 of the bridge circuit 100 of the MR sensor 10, and the sensor output measuring unit 112 measures the output voltage V2 of the bridge circuit 101 (step S201 in FIG. 10). The values ​​of the output voltages V1 and V2 measured by the sensor output measuring units 111 and 112 are stored in the storage unit 113.

[0081] The determination unit 116 of the data processing control unit 11 determines whether the output voltage V1=V 1E ,V2=V 2E By determining whether a value obtained by dividing by the amplitude satisfies a predetermined geometric relationship, it is determined whether the timing is such that an accurate angle can be calculated (step S202 in FIG. 10).

[0082] Specifically, the determination unit 116 first determines whether the output voltage V1=V 1E is stored in the storage unit 113. m1 Divide by the amplitude V m1 The value divided by V 1E '(=V 1E / V m1 Similarly, the determination unit 116 determines whether the output voltage V2 measured in step S201 is equal to or greater than V 2Eis stored in the storage unit 113. m2 Divide by the amplitude V m2 The value divided by V 2E '(=V 2E / V m2 )

[0083] Here, the point P A The output voltage at V 1A ,V 2A , point P B The output voltage at V 1B ,V 2B , point P C The output voltage at V 1C ,V 2C , point P D The output voltage at V 1D ,V 2D The output voltage V 1A ,V 1B ,V 1C ,V 1D with amplitude V m1 The value divided by V 1A '(=V 1A / V m1 ),V 1B '(=V 1B / V m1 ),V 1C '(=V 1C / V m1 ),V 1D '(=V 1D / V m1 Similarly, the output voltage V 2A ,V 2B ,V 2C ,V 2D with amplitude V m2 The value divided by V 2A '(=V 2A / V m2 ),V 2B '(=V 2B / V m2 ),V 2C '(=V 2C / V m2 ),V 2D '(=V 2D / V m2 )

[0084] Output voltage V1 is set to amplitude V m1 The value V1' divided by V1 = V1 / V m1 is taken on the x-axis (horizontal axis), and the output voltage V2 is taken as the amplitude V m2 The value divided by V2' = V2 / V m2 On the xy plane with the y-axis (vertical axis) taken as the voltage (V 1A ',V 2A '),(V 1B ',V 2B '),(V 1C ',V 2C '),(V 1D ',V 2D When plotted, it results in a point on circle 200, as shown in Figure 11.

[0085] The determination unit 116 determines the point (V 1A ',V 2A '),(V 1B ',V 2B '),(V 1C ',V 2C '),(V 1D ',V 2D Among them, the point (V 1E ',V 2E Select any three points different from the point (V 1E ',V 2E The reason why the initial setting unit 115 stores four or more pairs of voltage and angle in the storage unit 113 is that the point (V 1E ',V 2E This is to allow the selection of three points different from the point (V 1A ',V 2A '),(V 1B ',V 2B '),(V 1D ',V 2D ') is selected.

[0086] Point (V 1A ',V 2A '),(V 1B ',V 2B '),(V 1D ',V 2D In triangle T1, whose vertices are1B ',V 2B Let the interior angle of the point (V 1A ',V 2A '),(V 1E ',V 2E '),(V 1D ',V 2D In triangle T2, whose vertices are 1E ',V 2E Let the interior angle of the point (V 1E ',V 2E When ') is a point on circle 200, equation (24) holds true by the cosine theorem. |cos∠ABD|≒|cos∠AED| (36)

[0087] Point (V 1A ',V 2A ') and point (V 1B ',V 2B Let the length of the side connecting AB and point (V 1B ',V 2B ') and point (V 1D ',V 2D Let the length of the side connecting the points (V 1D ',V 2D ') and point (V 1A ',V 2A The length of the side connecting the points (V 1A ',V 2A ') and point (V 1E ',V 2E Let the length of the side connecting the points (AE and V 1E ',V 2E ') and point (V 1D ',V 2D Let ED be the length of the edge connecting '). In this case, equation (36) can be written as equation (37). |(AB 2 +BD 2 -DA 2 ) / (2AB×BD)| ≒|(AE 2 +ED 2 -DA 2 ) / (2AE×ED)| ···(37)

[0088] When the formula (37) is satisfied, the determination unit 116 determines that the voltage V1E ',V 2E The timing is judged to be when the angle ' satisfies a predetermined geometric relationship and accurate angle calculation is possible. If the formula (37) holds, then the interior angles ∠ABD and ∠AED of the triangles T1 and T2, which share a common side, the chord DA on the circle 200, are almost equal, and the point (V 1E ',V 2E This means that the point A′) is a point on the circle 200. When the formula (37) does not hold, the determining unit 116 determines that it is a timing at which accurate angle calculation is not possible.

[0089] In the above, we have described the case of two triangles with chord DA on circle 200 as a common side. However, Table 1 shows the conditional equation equivalent to equation (36) when another chord on circle 200 is used as a common side of the two triangles.

[0090] [Table 1]

[0091] On the other hand, the determination unit 117 of the data processing control unit 11 determines the output voltage V 1E ,V 2E By determining whether the average rate of change of satisfies a predetermined condition, it is determined whether the timing is such that an accurate angle can be calculated.

[0092] At the time of angle detection, the angle calculation unit 118 detects the point P A Output voltage at V 1A ,V 2A and point P A The magnetic field angle αA at point P B Output voltage at V 1B ,V 2B and point P B The magnetic field angle αB at point P C Output voltage at V 1C ,V 2C and point P C The angle of the magnetic field at point P is αC. D Output voltage at V 1D ,V 2D and point P DAn arbitrary pair of voltage and angle is selected according to a predetermined selection rule. Here, V 1E ,V 2E The angle calculation unit 118 may select a voltage pair different from the voltage pair V measured in step S201 and may set an appropriate selection rule. 1E ,V 2E Based on the output voltage V 1E ,V 2E The angle αE of the magnetic field when is obtained is calculated (FIG. 10, step S203).

[0093] In this embodiment, point P A Output voltage at V 1A ,V 2A and point P A When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the output voltage V 1E ,V 2E The point P on the trajectory of the magnetic field generating unit 12 when E (position of magnetic field generating unit 12) and point P A The angle αAE=|αE+αA| / 2 of the magnetic field when the magnetic field generating unit 12 is positioned at the midpoint between these points is calculated. |αE+αA| / 2 =(1 / 2)×|tan -1 {(V m2 / V m1 )×(V 1E -V 1A ) / (V 2E -V 2A )}| (38)

[0094] Furthermore, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation section 118 calculates the angle αAE by equation (39), which is similar to equation (17). |αE+αA| / 2 =|tan -1 {(V m2 / V m1 )×(V 1E -V 1A) / (V 2E -V 2A )}| (39)

[0095] Since αAE=|αE+αA| / 2, the magnetic field angle αE can be calculated using the following formula: αE = 2αAE - αA (40)

[0096] In this manner, the angle calculation unit 118 calculates the angle αE of the magnetic field using the formula (40) based on the calculated angle αAE and the angle αA acquired from the storage unit 113 (step S203).

[0097] Also, the latest output voltage V1 measured in step S201 is V 1E ,V2=V 2E The output voltage measured one time before is V1 = V 1E-1 ,V2=V 2E-1 Let the output voltage measured two times before be V1 = V 1E-2 ,V2=V 2E-2 The angle calculation unit 118 calculates the output voltage V1=V 1E-2 ,V2=V 2E-2 The angle of the magnetic field αE when -2 And the output voltage V1 = V 1E-1 ,V2=V 2E-1 The angle of the magnetic field αE when -1 The intermediate angle between |αE -2 +αE -1 | / 2 is calculated (step S203). -2 +αE -1 | / 2 is the angle of the magnetic field when the magnetic field generating unit 12 is located at the midpoint between the position of the magnetic field generating unit 12 two positions before and the position of the magnetic field generating unit 12 one position before.

[0098] When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle |αE -2 +αE -1 Calculate | / 2. |αE -2 +αE -1 | / 2 =(1 / 2) ×|tan -1 {(V m2 / V m1 )×(V 1E-1 -V 1E-2 ) / (V 2E-1 -V 2E-2 )}| (41)

[0099] Furthermore, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle |αE -2 +αE -1 Calculate | / 2. |αE -2 +αE -1 | / 2 =|tan -1 {(V m2 / V m1 )×(V 1E-1 -V 1E-2 ) / (V 2E-1 -V 2E-2 )}| (42)

[0100] Also, the angle calculation unit 118 calculates the output voltage V1=V 1E-1 ,V2=V 2E-1 The angle of the magnetic field αE when -1 and output voltage V1=V 1E ,V2=V 2E The angle between the magnetic field angle αE and the angle |αE -1 +αE| / 2 is calculated (step S203). -1 +αE| is the position of the magnetic field generating unit 12 in the previous time and the output voltage V1=V 1E ,V2=V 2E is the angle of the magnetic field when the magnetic field generating unit 12 is positioned at the midpoint between the position of the magnetic field generating unit 12 when the magnetic field is measured.

[0101] When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle |αE -1 Calculate +αE| / 2. |αE-1 +αE| / 2 =(1 / 2) ×|tan -1 {(V m2 / V m1 )×(V 1E -V 1E-1 ) / (V 2E -V 2E-1 )}| (43)

[0102] Furthermore, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle |αE -1 Calculate +αE| / 2. |αE -1 +αE| / 2 =|tan -1 {(V m2 / V m1 )×(V 1E -V 1E-1 ) / (V 2E -V 2E-1 )}| (44)

[0103] The determination unit 117 determines whether the output voltage V1 measured in step S201 is equal to or greater than V 1E ,V2=V 2E It is determined whether the timing is such that an accurate angle can be calculated by determining whether the average rate of change of satisfies a predetermined condition (step S204 in FIG. 10).

[0104] Specifically, the determination unit 117 determines whether the output voltage V1 measured two times before is equal to or smaller than V 1E-2 and the output voltage V1 measured one time ago = V 1E-1 and the average voltage aveV 1E-2E-1 is calculated using equation (45). aveV 1E-2E-1 =(V 1E-2 +V 1E-1 ) / 2 ···(45)

[0105] Similarly, the determination unit 117 determines whether the output voltage V1 measured one time previously is equal to or larger than V 1E-1and the latest output voltage V1 measured in step S201 = V 1E and the average voltage aveV 1E-1E is calculated using equation (46). aveV 1E-1E =(V 1E-1 +V 1E ) / 2 ···(46)

[0106] In addition, the determination unit 117 determines whether the output voltage V2 measured two times before is equal to or greater than V 2E-2 and the output voltage V2 measured one time ago = V 2E-1 and the average voltage aveV 2E-2E-1 is calculated using equation (47). aveV 2E-2E-1 =(V 2E-2 +V 2E-1 ) / 2 ···(47)

[0107] Similarly, the determination unit 117 determines whether the output voltage V2 measured one time previously is equal to or greater than V 2E-1 and the latest output voltage V2 measured in step S201 = V 2E and the average voltage aveV 2E-1E is calculated using equation (48). aveV 2E-1E =(V 2E-1 +V 2E ) / 2 ···(48)

[0108] When AMR elements are used as the MR elements R1 to R8, the average rates of change of the output voltages V1, V2 with respect to the angular change of the magnetic field are expressed by equations (49) and (50). (aveV 1E-1E -aveV 1E-2E-1 ) / {(αE -1 +αE) / 2-(αE -2 +αE -1 ) / 2} / V m1 =(cos2αE-cos2αE -2 ) / (αE-αE -2 ) ···(49) (aveV 2α2αE -aveV 2α1α2 ) / {(αE -1+αE)-(αE -2 +αE -1 )} / V m2 =(sin2αE-sin2αE -2 ) / (αE-αE -2 ) ···(50)

[0109] (αE-αE -2 ) approaches 0, equation (51) can be obtained from equations (49) and (50). (1 / 4) × {(cos2αE-cos2αE -2 ) / (αE-αE -2 )} 2 +{(sin2αE-sin2αE -2 ) / (αE-αE -2 )} 2 ≒1 (51)

[0110] On the other hand, when GMR elements or TMR elements are used as the MR elements R1 to R8, the average rates of change of the output voltages V1, V2 with respect to the angular change of the magnetic field are expressed by equations (52) and (53). (aveV 1E-1E -aveV 1E-2E-1 ) / {(αE -1 +αE) / 2-(αE -2 +αE -1 ) / 2} / V m1 =(cosαE-cosαE -2 ) / (αE-αE -2 ) ···(52) (aveV 2α2αE -aveV 2α1α2 ) / {(αE -1 +αE)-(αE -2 +αE -1 )} / V m2 = (sinαE-sinαE -2 ) / (αE-αE -2 ) ···(53)

[0111] (αE-αE -2When (αE-α1) approaches 0 infinitesimally, the average rate of change is equivalent to the derivative. When (αE-α1) approaches 0 infinitesimally, equation (54) can be obtained from equation (52) and equation (53). {(cosαE-cosαE -2 ) / (αE-αE -2 )} 2 +{(sinαE-sinαE -2 ) / (αE-αE -2 )} 2 ≒1 ··(54)

[0112] When AMR elements are used as the MR elements R1 to R8, the determination unit 117 determines whether the average rate of change of the output voltages V1 and V2 in response to the angular change of the magnetic field satisfies the condition of formula (51) to determine whether it is a timing when accurate angle calculation is possible (step S204 in FIG. 10). Also, when GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117 determines whether the average rate of change of the output voltages V1 and V2 in response to the angular change of the magnetic field satisfies the condition of formula (54) to determine whether it is a timing when accurate angle calculation is possible (step S204).

[0113] Specifically, when AMR elements are used as the MR elements R1 to R8, the determination unit 117 determines the output voltage V 1E-2 ,V 1E-1 Average voltage aveV 1E-2E-1 is calculated using equation (45), and the output voltage V 1E-1 ,V 1E Average voltage aveV 1E-1E is calculated using equation (46), and the output voltage V 2E-2 ,V 2E-1 Average voltage aveV 2E-2E-1 is calculated using equation (47), and the output voltage V 2E-1 ,V 2E Average voltage aveV 2E-1E is calculated using equation (48).

[0114] Next, the determination unit 117 determines the average voltage aveV1E-2E-1 ,aveV 1E-1E and the magnetic field angle |αE calculated by the angle calculation unit 118. -2 +αE -1 | / 2,|αE -1 +αE| / 2 and the amplitude V m1 Based on this, the average rate of change of the output voltage V1 with respect to the angular change of the magnetic field (cos2αE-cos2αE -2 ) / (αE-αE -2 ) is calculated by the formula (49). The determination unit 117 also calculates the average voltage aveV 2E-2E-1 ,aveV 2E-1E and the magnetic field angle |αE -2 +αE -1 | / 2,|αE -1 +αE| / 2 and the amplitude V m2 Based on this, the average rate of change of the output voltage V2 with respect to the angular change of the magnetic field (sin2αE-sin2αE -2 ) / (αE-αE -2 ) is calculated using equation (50).

[0115] Then, the determination unit 117 calculates the average rate of change (cos2αE−cos2αE -2 ) / (αE-αE -2 ), (sin2αE-sin2αE -2 ) / (αE-αE -2 ) into equation (51), when equation (51) holds, the average rate of change of output voltages V1 and V2 with the angular change of the magnetic field satisfies a predetermined condition, and it is determined that this is a timing at which accurate angle calculation is possible. When equation (51) does not hold, the determination unit 117 determines that this is a timing at which accurate angle calculation is not possible. At this time, the determination unit 117 determines that equation (51) holds when the left side of equation (51) is within the range of 1±β (β is a real number that defines a predetermined tolerance), and determines that equation (51) does not hold when it is outside the range of 1±β.

[0116] When GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117 determines the average voltage aveV 1E-2E-1 ,aveV 1E-1E,aveV 2E-2E-1 ,aveV 2E-1E Next, the determination unit 117 calculates the average voltage aveV 1E-2E-1 ,aveV 1E-1E and the magnetic field angle |αE -2 +αE -1 | / 2,|αE -1 +αE| / 2 and amplitude V m1 Based on this, the average rate of change of the output voltage V1 with respect to the angular change of the magnetic field (cosαE-cosαE -2 ) / (αE-αE -2 ) is calculated by the formula (52). The determination unit 117 also calculates the average voltage aveV 2E-2E-1 ,aveV 2E-1E and the magnetic field angle |αE -2 +αE -1 | / 2,|αE -1 +αE| / 2 and amplitude V m2 Based on this, the average rate of change of the output voltage V2 with respect to the angular change of the magnetic field (sinαE-sinαE -2 ) / (αE-αE -2 ) is calculated using equation (53).

[0117] Then, the determination unit 117 calculates the average rate of change (cosαE−cosαE -2 ) / (αE-αE -2 ), (sinαE-sinαE -2 ) / (αE-αE -2 ) into equation (54), when equation (54) holds, the average rate of change of output voltages V1 and V2 in the angular change of the magnetic field satisfies a predetermined condition, and it is determined that this is a timing at which accurate angle calculation is possible. When equation (54) does not hold, the determination unit 117 determines that this is a timing at which accurate angle calculation is not possible. At this time, the determination unit 117 determines that equation (54) holds when the left side of equation (54) is within the range of 1±β (β is a real number that defines a predetermined tolerance), and determines that equation (54) does not hold when it is outside the range of 1±β.

[0118] The angle calculation unit 118 judges whether it is a timing at which an accurate angle can be calculated based on the results obtained from the judgment units 116 and 117 (step S205 in FIG. 10). In this embodiment, it is also possible to judge whether it is a timing at which an accurate angle can be calculated based only on the result obtained from the judgment unit 116.

[0119] The determination unit 116 can determine whether the magnetic field generating unit 12 is within or outside the angle detectable range of the MR sensor 10. The determination can be made even when the magnetic field generating unit 12 is stopped. However, when the magnetic field generating unit 12 is within the angle detectable range of the MR sensor 10, it cannot determine whether the magnetic field generating unit 12 is moving or stopped.

[0120] Similarly, the determination unit 117 can determine whether the magnetic field generating unit 12 is within or outside the angle detectable range of the MR sensor 10. The determination unit 117 can determine whether the magnetic field generating unit 12 is moving or stopped when the magnetic field generating unit 12 is within the angle detectable range of the MR sensor 10, but cannot determine whether the magnetic field generating unit 12 is within or outside the angle detectable range when the magnetic field generating unit 12 is stopped.

[0121] Both the methods of the determination units 116 and 117 are subject to the effects of noise, but the determination by the determination unit 117 is more susceptible to the effects of noise. In both cases, the accuracy changes depending on the sampling time, but since the method 116 uses information on a reference angle stored at a timing when accurate angle calculation is possible, whereas the method 117 must determine the timing when accurate angle calculation is possible every time sampling is performed, the determination by the determination unit 116 is generally more stable.

[0122] In a system in which the magnetic field generating unit 12 moves linearly and the magnetic field angle α (position of the magnetic field generating unit 12) is detected only when the magnetic field generating unit 12 stops within the angle detection range of the MR sensor 10, this can be handled by using the judgments of both the judgment unit 116 and the judgment unit 117.

[0123] Fig. 12 shows the judgment results of the angle calculation unit 118 for different positional relationships between the MR sensor 10 and the magnetic field generation unit 12. In Fig. 12, "Sensing judgment" indicates the judgment result of the angle calculation unit 118, "First judgment unit" indicates the judgment result of the judgment unit 116, and "Second judgment unit" indicates the judgment result of the judgment unit 117. "◯" indicates the result of timing at which accurate angle calculation is possible, and "X" indicates the result of timing at which accurate angle calculation is impossible.

[0124] "a" in Fig. 12 indicates a case where the magnetic field generating unit 12 is stopped outside the angle detectable range of the MR sensor 10 (inside the solid line 131) as shown in Fig. 13, "b" indicates a case where the magnetic field generating unit 12 is moving in a direction approaching the MR sensor 10 outside the angle detectable range of the MR sensor 10 as shown in Fig. 14. "c" in Fig. 12 indicates a case where the magnetic field generating unit 12 is moving in a direction approaching the MR sensor 10 within the angle detectable range of the MR sensor 10 as shown in Fig. 15, and "d" indicates a case where the magnetic field generating unit 12 is stopped within the angle detectable range of the MR sensor 10 as shown in Fig. 16. "e" in Figure 12 indicates a case in which the magnetic field generating unit 12 is moving in a direction away from the MR sensor 10 within the angle detectable range of the MR sensor 10 as shown in Figure 17, "f" indicates a case in which the magnetic field generating unit 12 is moving in a direction away from the MR sensor 10 outside the angle detectable range of the MR sensor 10 as shown in Figure 18, and "g" indicates a case in which the magnetic field generating unit 12 is stopped outside the angle detectable range of the MR sensor 10 as shown in Figure 19.

[0125] 12, the angle calculation unit 118 can determine whether or not it is a timing at which accurate angle calculation is possible based only on the result obtained from the determination unit 116. When the determination unit 116 determines that the angle can be calculated, the angle calculation unit 118 determines that it is a timing at which accurate angle calculation is possible (YES in step S205), and employs the angle αE calculated in step S203 as the accurate value of the magnetic field angle α (step S206 in FIG. 10).

[0126] The control signal generating unit 119 calculates the deviation between the angle setting value provided by the higher-level device 4 and the angle α calculated by the angle calculating unit 118, and generates a control signal so that the deviation becomes zero (step S207 in FIG. 10). By supplying this control signal to a driving device of the object to which the magnetic field generating unit 12 is attached, the position of the object can be controlled. The above-mentioned processes in steps S201 to S207 are repeatedly performed until the operation of the angle detection device 1 is terminated, for example, in response to an instruction from the operator (YES in step S208 in FIG. 10).

[0127] In the above example, whether or not the timing is capable of accurate angle calculation is determined only based on the result obtained from the determination unit 116, but there are cases where it is more preferable to use the determination results of both the determination units 116 and 117. Specifically, when it is desired to detect only the timing when the magnetic field generating unit 12 is stopped within the angle detectable range of the MR sensor 10, the determination results of both the determination units 116 and 117 are used. In this case, when the determination unit 116 determines that the angle can be calculated and the determination unit 117 determines that the angle cannot be calculated, the angle calculation unit 118 determines that the timing is capable of accurate angle calculation (YES in step S205), and employs the angle αE calculated in step S203 as the accurate value of the magnetic field angle α (step S206).

[0128] [Second Example] Next, a second embodiment of the present invention will be described. In the first embodiment, an example of calculating the angle α of the magnetic field applied to the MR sensor 10 was described. In this embodiment, a specific example of calculating and controlling the position of an object to which a magnetic field generating unit 12 is attached based on the angle α of the magnetic field using the angle detection device described in the first embodiment will be described.

[0129] Fig. 20 is a block diagram showing the configuration of a positioner according to this embodiment. The positioner 1a calculates the deviation between a set value of the valve opening of the valve 3 provided from a higher-level device 4 and an actual measured value of the valve opening of the valve 3, generates a pneumatic operation signal according to the deviation, and provides the signal to the actuator 2 to control the opening of the valve 3. The positioner 1a includes an MR sensor 10, a data processing control unit 11a, an electro-pneumatic conversion unit 13, and a pneumatic amplification unit 14.

[0130] The MR sensor 10 detects the opening of the valve 3 by the displacement of the feedback lever of the positioner 1a. The data processing control unit 11a generates a control signal for controlling the opening of the valve 3 based on the output signal of the MR sensor 10. Specifically, the data processing control unit 11a calculates an actual measurement value of the opening of the valve 3 based on the output signal of the MR sensor 10, calculates the deviation between the set value of the opening of the valve 3 provided by the higher-level device 4 and the actual measurement value of the opening, and generates a control signal so that the deviation becomes zero.

[0131] The electro-pneumatic converting unit 13 converts the control signal generated by the data processing control unit 11a into an air pressure signal and outputs it. Specifically, the electro-pneumatic converting unit 13 converts the supply pressure of air supplied from, for example, a pressure reducing valve (not shown) into a pressure corresponding to the control signal and outputs it as an air pressure signal.

[0132] The pneumatic pressure amplifier 14 amplifies the pressure of the pneumatic signal output from the electro-pneumatic converter 13 and outputs it to the actuator 2. Specifically, the pneumatic pressure amplifier 14 adjusts the supply pressure of the air supplied from, for example, a pressure reducing valve in accordance with the pressure of the pneumatic signal output from the electro-pneumatic converter 13, and outputs it as a pneumatic operation signal.

[0133] 21 is a block diagram showing the configuration of the data processing control unit 11a of this embodiment. The data processing control unit 11a includes a power source 110, sensor output measurement units 111 and 112, a storage unit 113, an amplitude calculation unit 114a, an initial setting unit 115a, judgment units 116 and 117, an angle calculation unit 118, an opening actual value generation unit 120, and a control signal generation unit 121.

[0134] The actuator 2 shown in FIG. 22 adjusts the opening degree of the valve body 30 by moving a valve stem 31 up and down in response to the output air pressure supplied from the positioner 1a. The MR sensor 10 detects the rotation angle on a vertical plane (a plane parallel to the paper surface of FIG. 22) of the feedback lever 32, which rotates in response to the up and down movement of the valve stem 31. That is, when the magnetic field generating unit 12 is attached to the feedback lever 32 as shown in FIG. 23, the magnetic field generating unit 12 moves on a vertical plane (a plane perpendicular to the paper surface in FIG. 23) in response to the rotation of the feedback lever 32. Therefore, the MR sensor 10 can be installed so that the sensor surface (paper surface in FIG. 23) is perpendicular to the trajectory of the magnetic field generating unit 12. As the magnetic field generating unit 12 moves in response to the up and down movement of the valve stem 31, a magnetic field in a direction corresponding to the opening degree of the valve 3 is applied to the bridge circuits 100, 101 of the MR sensor 10.

[0135] The flow of processing during the initial setting of the positioner 1a of this embodiment is similar to that of the first embodiment, and will be described using the symbols in Fig. 7. At the time of shipping the positioner 1a from the factory, the amplitude calculation unit 114a calculates the amplitudes V1 and V2 of the output voltages V1 and V2 of the bridge circuits 100 and 101 of the MR sensor 10 in the same manner as the amplitude calculation unit 114 of the first embodiment. m1 ,V m2 (Step S100 in FIG. 7).

[0136] Specifically, for example, when a factory worker moves the feedback lever 32 of the positioner 1a, the magnetic field generating unit 12 attached to the feedback lever 32 moves, and the direction of the magnetic field acting on the bridge circuits 100, 101 of the MR sensor 10 can be changed. The amplitude calculation unit 114a reads out all pairs of output voltages (V1, V2) measured by the sensor output measurement units 111, 112 and stored in the memory unit 113, and calculates the amplitude V m1 ,V m2 The amplitude V calculated by the amplitude calculation unit 114a is calculated. m1 ,V m2 is stored in the storage unit 113.

[0137] Next, after the positioner 1a is attached to the valve 3 at the site of a chemical plant or the like, when, for example, an operator at the site issues a command to execute setup, the amplitude calculation unit 114a calculates the amplitude V m1 ,V m2 is calculated again (step S101 in FIG. 7).

[0138] Here, the amplitude calculation unit 114a outputs a control signal corresponding to the magnetic field angle α (i.e., the valve opening) within a predetermined range to the electro-pneumatic conversion unit 13. The opening of the valve 3 is set to an opening corresponding to the control signal by the operations of the electro-pneumatic conversion unit 13, the pneumatic pressure amplifier 14, and the actuator 2 described above. As described above, the values ​​of the output voltages V1, V2 of the bridge circuits 100, 101 of the MR sensor 10 are measured by the sensor output measurement units 111, 112 and stored in the memory unit 113.

[0139] The amplitude calculation unit 114a measures the output voltages V1 and V2 while changing the control signal output to the electro-pneumatic conversion unit 13. After the output voltages V1 and V2 are measured for the angle α in a predetermined range, the amplitude calculation unit 114a reads out all pairs of output voltages (V1, V2) stored in the storage unit 113 and calculates the amplitude V m1 ,V m2 The angle α set here needs to be within the angle detectable range of the MR sensor 10. m1 ,V m2 The value of is updated by the process in step S101.

[0140] Next, the initial setting unit 115a linearly moves the magnetic field generating unit 12 (magnet) at a constant speed in order to acquire the output voltages V1, V2 of the bridge circuits 100, 101 and the magnetic field angle α for at least four points on the trajectory of the magnetic field generating unit 12 (step S102 in FIG. 7). At this time, it is desirable to shorten the sampling interval as much as possible. Here, the initial setting unit 115a outputs a control signal to the electro-pneumatic converting unit 13 and changes the opening degree of the valve 3, thereby moving the magnetic field generating unit 12 attached to the feedback lever 32. The processing in steps S103 to S108 in FIG. 7 is the same as that described in the first embodiment.

[0141] 24 is a flowchart for explaining the operation of the positioner 1a of this embodiment during valve control (when the plant is operating). The amplitude calculation unit 114a of the data processing control unit 11a calculates the amplitude V m1 ,V m2 The process of step S300 can be performed in the same manner as step S101. m1 ,V m2 The value of is updated by the process in step S300.

[0142] The processing of steps S301 to S306 during valve control is the same as steps S201 to S206 in the first embodiment. Next, the opening actual measurement value generating unit 120 calculates the current opening actual value PV of the valve 3 based on the angle α calculated by the angle calculating unit 118 (FIG. 24, step S307). The opening actual value PV can be calculated based on a known relationship between the angle α and the opening actual value PV.

[0143] The control signal generating unit 121 calculates the deviation between the opening set value SP of the valve 3 given from the higher-level device 4 and the opening measured value PV, generates a control signal so as to make the deviation zero, and outputs the control signal to the electro-pneumatic converting unit 13 (FIG. 24, step S308). In this way, the opening of the valve 3 can be controlled. The above-mentioned processes in steps S301 to S308 are repeatedly performed, for example, until the operation of the plant is stopped (YES in step S309 in FIG. 24).

[0144] [Third Example] Next, a third embodiment of the present invention will be described. In this embodiment, a case where a plurality of MR sensors are provided in the first embodiment will be described. Fig. 25 is a block diagram showing the configuration of an angle detection device according to the third embodiment of the present invention. An angle detection device 1b includes a plurality of MR sensors 10-1 and 10-2 and a data processing control unit 11b.

[0145] In this embodiment, the magnetic field generating unit 12 moves on a trajectory on a plane perpendicular to the sensor surfaces (planes parallel to the paper surface of FIG. 26) of the multiple MR sensors 10-1 and 10-2 as shown in FIG. 26. In FIG. 26, the inside of a solid line 131-1 indicates the angle detectable range of the MR sensor 10-1, and the inside of a solid line 131-2 indicates the angle detectable range of the MR sensor 10-2. The adjacent MR sensors 10-1 and 10-2 are arranged so that their angle detectable ranges 131-1 and 131-2 overlap.

[0146] 27 is a block diagram showing the configuration of the data processing control unit 11b of this embodiment. The data processing control unit 11b includes a power supply 110, sensor output measurement units 111-1, 111-2, 112-1, and 112-2, a storage unit 113, an amplitude calculation unit 114b, an initial setting unit 115b, determination units 116b and 117b, an angle calculation unit 118b, and a control signal generation unit 119.

[0147] 28 is a flowchart for explaining the operation at the time of initial setting of the angle detection device 1b of this embodiment. When the angle detection device 1b is shipped from the factory, the amplitude calculation unit 114b calculates the amplitude V m1 ,V m2 and the amplitude V of the output voltages V1 and V2 of the bridge circuits 100 and 101 of the MR sensor 10-2. m1 ,V m2 (Step S400 in FIG. 28).

[0148] In the following description, the output voltages V1 and V2 of the bridge circuits 100 and 101 of the MR sensor 10-1 are denoted as V11 and V21, and the amplitude V m1 ,V m2 Vm1 1,V m2 1, and the offsets V1off and V2off ​​are V1off1 and V2off1. Similarly, the output voltages V1 and V2 of the bridge circuits 100 and 101 of the MR sensor 10-2 are V12 and V22, and the amplitude V m1 ,V m2 V m1 2,V m2 2. Set the offsets V1off and V2off ​​to V1off2 and V2off2.

[0149] For example, a factory worker changes the direction of the magnetic field acting on the bridge circuits 100, 101 of the MR sensor 10-1 by moving the magnetic field generating unit 12. At this time, the position of the magnetic field generating unit 12 needs to be within a range where a magnetic field of sufficient strength for angle detection is applied to the MR sensor 10-1.

[0150] The sensor output measuring unit 111-1 of the data processing control unit 11b measures the output voltage V11 of the bridge circuit 100 of the MR sensor 10-1, and the sensor output measuring unit 112-1 measures the output voltage V21 of the bridge circuit 101. The values ​​of the output voltages V11 and V21 measured by the sensor output measuring units 111-1 and 112-1 are stored in the memory unit 113.

[0151] For example, when an instruction to execute a calculation process is given by a factory worker, the amplitude calculation unit 114b detects the maximum and minimum values ​​of the output voltage V11, and calculates the amplitude V by dividing the difference between the maximum and minimum values ​​by 2. m1 Similarly, the amplitude calculation unit 114b detects the maximum and minimum values ​​of the output voltage V21, and calculates the difference between the maximum and minimum values ​​divided by 2 as the amplitude V m2 Calculated as 1.

[0152] Similarly, for the MR sensor 10-2, the direction of the magnetic field acting on the bridge circuits 100 and 101 of the MR sensor 10-2 is changed. At this time, the position of the magnetic field generating unit 12 needs to be within a range in which a magnetic field of sufficient strength for angle detection is applied to the MR sensor 10-2.

[0153] The sensor output measuring unit 111-2 measures the output voltage V12 of the bridge circuit 100 of the MR sensor 10-2, and the sensor output measuring unit 112-2 measures the output voltage V22 of the bridge circuit 101. The values ​​of the output voltages V12 and V22 measured by the sensor output measuring units 111-2 and 112-2 are stored in the memory unit 113.

[0154] The amplitude calculation unit 114b calculates the amplitude V m1 2,V m2 Calculate 2. The amplitude V calculated by the amplitude calculation unit 114b m1 1,V m1 2,V m2 1,V m2 2 is stored in the storage unit 113.

[0155] Next, after the angle detection device 1b is installed at a site such as a chemical plant, when, for example, an operator at the site issues a setup execution instruction, the amplitude calculation unit 114b calculates the amplitude V of the output voltages V11, V12, V21, and V22 of the MR sensors 10-1 and 10-2. m1 1,V m1 2,V m2 1,V m2 2 is calculated again (step S401 in FIG. 28). The process of step S401 can be performed in the same manner as step S400. m1 1,V m1 2,V m2 1,V m2 The value of 2 is updated by the process in step S401.

[0156] Next, the initial setting unit 115b linearly moves the magnetic field generating unit 12 (magnet) at a constant speed in order to acquire the output voltages V1, V2 of the bridge circuits 100, 101 and the magnetic field angle α for at least four points on the trajectory of the magnetic field generating unit 12 for each of the MR sensors 10-1, 10-2 (step S402 in FIG. 28). At this time, it is desirable to shorten the sampling interval as much as possible. The magnetic field generating unit 12 may be moved by the initial setting unit 115b supplying a control signal to a driving device of the object to which the magnetic field generating unit 12 is attached, or a control signal may be supplied from an external input device.

[0157] The sensor output measuring unit 111-1 measures the output voltage V11 of the bridge circuit 100 of the MR sensor 10-1, and the sensor output measuring unit 112-1 measures the output voltage V21 of the bridge circuit 101 of the MR sensor 10-1. The sensor output measuring unit 111-2 measures the output voltage V12 of the bridge circuit 100 of the MR sensor 10-2, and the sensor output measuring unit 112-2 measures the output voltage V22 of the bridge circuit 101 of the MR sensor 10-2 (FIG. 28, step S403).

[0158] The determination unit 117b of the data processing control unit 11b determines whether the average change rates of V11 and V21 measured in step S403 satisfy a predetermined condition, thereby determining whether it is a timing when the MR sensor 10-1 can accurately calculate the angle. The determination unit 117b also determines whether it is a timing when the MR sensor 10-2 can accurately calculate the angle, by determining whether V12 and V22 measured in step S403 satisfy a predetermined condition.

[0159] The angle calculation unit 118b calculates the angle at the previous time t=t α1 Output voltage at V11=V 1α1 1, V21 = V 2α1 1 and time t=t α2 Output voltage at V11=V 1α2 1, V21 = V 2α2 1 and the amplitude V m1 1,V m2Based on the angles α2 and α1, the angle calculation unit 118b calculates an intermediate angle |α2+α1| / 2 between the angles α2 and α1 for the MR sensor 10-1 (FIG. 28, step S404). α1 Output voltage at V12=V 1α1 2, V22 = V 2α1 2 and time t=t α2 Output voltage at V12=V 1α2 2, V21 = V 2α2 2 and the amplitude V m1 2,V m2 2, an intermediate angle |α2+α1| / 2 between the angles α2 and α1 is calculated for the MR sensor 10-2 (step S404).

[0160] Specifically, when AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |α2+α1| / 2 by equation (13). When GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |α2+α1| / 2 by equation (17). For the MR sensor 10-1, V in equations (13) and (17) m2 ,V m1 ,V 1α2 ,V 1α1 ,V 2α2 ,V 2α1 V m2 1,V m1 1,V 1α2 1,V 1α1 1,V 2α2 1,V 2α1 1. For the MR sensor 10-2, V in Equation (13) and Equation (17) can be replaced with m2 ,V m1 ,V 1α2 ,V 1α1 ,V 2α2 ,V 2α1 V m2 2,V m1 2,V 1α2 2,V 1α1 2,V 2α2 2,V 2α1 You can replace it with 2.

[0161] The angle calculation unit 118b calculates the angle at the next time t=t α3 (t α2 <t α3 ) at the previous time t=t α Output voltage at 2 V11 = V 1α2 1, V21 = V 2α2 1 and time t=t α Output voltage at 3 V11 = V 1α3 1, V21 = V 2α3 1 and the amplitude V m1 1,V m2 Based on the angles α3 and α2, the angle calculation unit 118b calculates an intermediate angle |α3+α2| / 2 between the angles α3 and α2 for the MR sensor 10-1 (step S404). α Output voltage at 2 V12 = V 1α2 2, V22 = V 2α2 2 and time t=t α Output voltage at 3 V12 = V 1α3 2, V22 = V 2α3 2 and the amplitude V m1 2,V m2 Based on the angles α3 and α2, the intermediate angle |α3+α2| / 2 between the angles α3 and α2 is calculated for the MR sensor 10-2 (step S404).

[0162] When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |α3+α2| / 2 by equation (18). When GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |α3+α2| / 2 by equation (19). For the MR sensor 10-1, V in equations (18) and (19) m2 ,V m1 ,V 1α3 ,V 1α2 ,V 2α3 ,V 2α2 V m2 1,V m1 1,V 1α3 1,V 1α2 1,V 2α3 1,V 2α21 for the MR sensor 10-2. m2 ,V m1 ,V 1α3 ,V 1α2 ,V 2α3 ,V 2α2 V m2 2,V m1 2,V 1α3 2,V 1α2 2,V 2α3 2,V 2α2 You can replace it with 2.

[0163] When AMR elements are used as the MR elements R1 to R8, the determination unit 117b determines whether the average rate of change of the output voltages V11 and V21 in the angular change of the magnetic field satisfies the condition of formula (26) to determine whether it is a timing when accurate angle calculation is possible by the MR sensor 10-1 (step S405 in FIG. 28). Also, when AMR elements are used as the MR elements R1 to R8, the determination unit 117b determines whether the average rate of change of the output voltages V12 and V22 in the angular change of the magnetic field satisfies the condition of formula (26) to determine whether it is a timing when accurate angle calculation is possible by the MR sensor 10-2 (step S405).

[0164] When GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117b determines whether the average rate of change of the output voltages V11, V21 in the angular change of the magnetic field satisfies the condition of formula (32) to determine whether it is a timing when the MR sensor 10-1 can accurately calculate the angle (step S405). When GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117b determines whether the average rate of change of the output voltages V12, V22 in the angular change of the magnetic field satisfies the condition of formula (32) to determine whether it is a timing when the MR sensor 10-2 can accurately calculate the angle (step S405).

[0165] Specifically, when AMR elements are used as the MR elements R1 to R8, the determining unit 117b determines the output voltage V 1α1 ,V 1α2 Average voltage aveV 1α1α2 is calculated for each of the MR sensors 10-1 and 10-2 by the formula (20). 1α2 ,V 1α3 Average voltage aveV 1α2α3 is calculated for each of the MR sensors 10-1 and 10-2 by the formula (21). 2α1 ,V 2α2 Average voltage aveV 2α1α2 The determination unit 117b calculates the output voltage V 2α2 ,V 2α3 Average voltage aveV 2α2α3 is calculated for each of the MR sensors 10-1 and 10-2 using equation (23).

[0166] For the MR sensor 10-1, V in Equations (20) to (23) 1α1 ,V 1α2 ,V 1α3 ,V 2α1 ,V 2α2 ,V 2α3 V 1α1 1,V 1α2 1,V 1α3 1,V 2α1 1,V 2α2 1,V 2α3 1. For the MR sensor 10-2, V in Equations (20) to (23) can be replaced with 1α1 ,V 1α2 ,V 1α3 ,V 2α1 ,V 2α2 ,V 2α3 V 1α1 2,V 1α2 2,V 1α3 2,V 2α1 2,V 2α2 2,V 2α3 You can replace it with 2.

[0167] Next, the determination unit 117b determines the average voltage aveV 1α1α2 ,aveV 1α2α3 Based on the magnetic field angles |α2+α1| / 2, |α3+α2| / 2 calculated by the angle calculation unit 118, the average change rate (cos2α3-cos2α1) / (α3-α1) of the output voltage V1 with respect to the change in the magnetic field angle is calculated for each of the MR sensors 10-1 and 10-2 by equation (24). 2α1α2 ,aveV 2α2α3 Based on the magnetic field angles |α2+α1| / 2, |α3+α2| / 2, the average rate of change of the output voltage V2 with the change in the magnetic field angle (sin2α3-sin2α1) / (α3-α1) is calculated for each of the MR sensors 10-1 and 10-2 by equation (25). m1 V m1 1. For the MR sensor 10-2, the amplitude V m1 V m1 You can replace it with 2.

[0168] When formula (26) is satisfied for the MR sensor 10-1, the determination unit 117b determines that the average rate of change of the output voltages V11, V21 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is the timing when the MR sensor 10-1 can perform accurate angle calculation. When formula (26) is satisfied for the MR sensor 10-2, the determination unit 117b determines that the average rate of change of the output voltages V12, V22 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is the timing when the MR sensor 10-2 can perform accurate angle calculation.

[0169] When GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117b determines the average voltage aveV as in the case of the AMR elements. 1α1α2 ,aveV 1α2α3 ,aveV 2α1α2 ,aveV 2α2α3Next, the determination unit 117b calculates the average voltage aveV 1α1α2 ,aveV 1α2α3 Based on the magnetic field angles |α2+α1| / 2, |α3+α2| / 2, the determination unit 117b calculates the average change rate (cosα3-cosα1) / (α3-α1) of the output voltage V1 with respect to the change in the magnetic field angle for each of the MR sensors 10-1 and 10-2 using the formula (30). 2α1α2 ,aveV 2α2α3 Based on the magnetic field angles |α2+α1| / 2, |α3+α2| / 2, the average rate of change of the output voltage V2 with the change in the magnetic field angle (sinα3-sinα1) / (α3-α1) is calculated for each of the MR sensors 10-1 and 10-2 by equation (31). m1 V m1 1. For the MR sensor 10-2, the amplitude V m1 V m1 You can replace it with 2.

[0170] When formula (32) is satisfied for the MR sensor 10-1, the determination unit 117b determines that the average rate of change of the output voltages V11, V21 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is the timing when the MR sensor 10-1 can perform accurate angle calculation. When formula (32) is satisfied for the MR sensor 10-2, the determination unit 117b determines that the average rate of change of the output voltages V12, V22 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is the timing when the MR sensor 10-2 can perform accurate angle calculation.

[0171] When the determination unit 117b determines that the angle can be calculated by the MR sensor 10-1 (YES in step S406 in FIG. 28), the initial setting unit 115b stores the output voltages of the bridge circuits 100, 101 of the MR sensor 10-1 and the angle of the magnetic field at this time in the storage unit 113 (step S407 in FIG. 28). When the determination unit 117b determines that the angle can be calculated by the MR sensor 10-2 (YES in step S406), the initial setting unit 115b stores the output voltages of the bridge circuits 100, 101 of the MR sensor 10-2 and the angle of the magnetic field at this time in the storage unit 113 (step S407).

[0172] The initial setting unit 115b judges whether or not four or more pairs of voltage and angle have been stored for the MR sensor 10-1 and four or more pairs of voltage and angle have been stored for the MR sensor 10-2 (FIG. 28 step S408), and returns to step S403 if four or more pairs have not been stored for at least one of the MR sensors 10-1 and 10-2. In this manner, the processing of steps S403 to S407 is repeated until at least four pairs of voltage and angle have been stored for each of the MR sensors 10-1 and 10-2. This ends the operation of the initial setting unit 115b.

[0173] 29 is a flowchart for explaining the operation of the angle detection device 1 of this embodiment when detecting an angle. The amplitude calculation unit 114b of the data processing control unit 11b calculates the amplitudes V11, V12, V21, and V22 of the output voltages V11, V12, V21, and V22 of the MR sensors 10-1 and 10-2 at the start of angle detection. m1 1,V m1 2,V m2 1,V m2 2 is calculated again (step S500 in FIG. 29). The process of step S500 can be performed in the same manner as step S401. m1 1,V m1 2,V m2 1,V m2 The value of 2 is updated by the process in step S500.

[0174] The sensor output measuring unit 111-1 measures the output voltage V11 of the bridge circuit 100 of the MR sensor 10-1, and the sensor output measuring unit 112-1 measures the output voltage V21 of the bridge circuit 101 of the MR sensor 10-1. The sensor output measuring unit 111-2 measures the output voltage V12 of the bridge circuit 100 of the MR sensor 10-2, and the sensor output measuring unit 112-2 measures the output voltage V22 of the bridge circuit 101 of the MR sensor 10-2 (FIG. 29, step S501).

[0175] The determination unit 116b of the data processing control unit 11b determines whether the value obtained by dividing V11 and V21 measured in step S501 by the amplitude satisfies a predetermined geometric relationship, thereby determining whether it is a timing when the MR sensor 10-1 can accurately calculate the angle (FIG. 29, step S502).The determination unit 116b also determines whether the value obtained by dividing V12 and V22 measured in step S501 by the amplitude satisfies a predetermined geometric relationship, thereby determining whether it is a timing when the MR sensor 10-2 can accurately calculate the angle (step S502).

[0176] Specifically, the determination unit 116b first determines whether the output voltage V11 measured in step S501 is equal to or greater than V 1E 1 to the amplitude V of the output voltage V11 stored in the storage unit 113. m1 Divide by 1. Amplitude V m1 Divide the value by 1 and put it into V 1E 1'(=V 1E 1 / V m1 1). Similarly, the determination unit 116b determines whether the output voltage V21 measured in step S501 is equal to or greater than V 2E 1 to the amplitude V of the output voltage V21 stored in the storage unit 113. m2 Divide by 1. Amplitude V m2 Divide the value by 1 and put it into V 2E 1'(=V 2E 1 / V m2 1). The determination unit 116b determines whether the output voltage V12 measured in step S501 is equal to or greater than V 1E 2 is the amplitude V of the output voltage V12 stored in the storage unit 113. m1 Divide by 2. Amplitude V m1Divide the value by 2 and put it into V 1E 2'(=V 1E 2 / V m1 2). Similarly, the determination unit 116b determines whether the output voltage V22 measured in step S501 is equal to or greater than V 2E 2 is the amplitude V of the output voltage V22 stored in the storage unit 113. m2 Divide by 2. Amplitude V m2 Divide the value by 2 and put it into V 2E 2'(=V 2E 2 / V m2 2).

[0177] Here, the point P A Let the output voltage at 1 be V 1A 1,V 2A 1, point P B Let the output voltage at 1 be V 1B 1,V 2B 1, point P C Let the output voltage at 1 be V 1C 1,V 2C 1, point P D Let the output voltage at 1 be V 1D 1,V 2D Let 1. Output voltage V 1A 1,V 1B 1,V 1C 1,V 1D 1 to the amplitude V m1 Divide the value by 1 and put it into V 1A 1'(=V 1A 1 / V m1 1), V 1B 1'(=V 1B 1 / V m1 1), V 1C 1'(=V 1C 1 / V m1 1), V 1D 1'(=V 1D 1 / V m1 1). Similarly, the output voltage V 2A 1,V 2B 1,V 2C 1,V 2D 1 to the amplitude V m2 Divide the value by 1 and put it into V 2A 1'(=V 2A 1 / V m2 1), V 2B1'(=V 2B 1 / V m2 1), V 2C 1'(=V 2C 1 / V m2 1), V 2D 1'(=V 2D 1 / V m2 1).

[0178] In addition, the point P A Let the output voltage at 2 be V 1A 2,V 2A 2, point P B Let the output voltage at 2 be V 1B 2,V 2B 2, point P C Let the output voltage at 2 be V 1C 2,V 2C 2, point P D Let the output voltage at 2 be V 1D 2,V 2D 2. Output voltage V 1A 2,V 1B 2,V 1C 2,V 1D 2 is the amplitude V m1 Divide the value by 2 and put it into V 1A 2'(=V 1A 2 / V m1 2), V 1B 2'(=V 1B 2 / V m1 2), V 1C 2'(=V 1C 2 / V m1 2), V 1D 2'(=V 1D 2 / V m1 2) Similarly, the output voltage V 2A 2,V 2B 2,V 2C 2,V 2D 2 is the amplitude V m2 Divide the value by 2 and put it into V 2A 2'(=V 2A 2 / V m2 2), V 2B 2'(=V 2B 2 / V m2 2), V 2C 2'(=V 2C 2 / V m2 2), V2D 2'(=V 2D 2 / V m2 2).

[0179] Output voltage V11 has amplitude V m1 Value divided by 1: V11'=V11 / V m1 1 is taken on the x-axis (horizontal axis), and the output voltage V21 is expressed as the amplitude V m2 Value divided by 1: V21' = V21 / V m2 On the xy plane with 1 on the y-axis (vertical axis), the voltage (V 1A 1',V 2A 1'),(V 1B 1',V 2B 1'),(V 1C 1',V 2C 1'),(V 1D 1',V 2D 1'), it will be a point on the same circle 200 as in Figure 11. Similarly, if the output voltage V12 is set to an amplitude V m1 Value divided by 2: V12'=V12 / V m1 2 is taken on the x-axis, and the output voltage V22 is taken as the amplitude V m2 The value divided by 2 is V22'=V22 / V m2 On the xy plane with 2 as the y axis, the voltage (V 1A 2',V 2A 2'),(V 1B 2',V 2B 2'),(V 1C 2',V 2C 2'),(V 1D 2',V 2D 2'), the point is on circle 200, the same as in Figure 11.

[0180] The determination unit 116b determines whether the point (V 1A 1',V 2A 1'),(V 1B 1',V 2B 1'),(V 1C 1',V 2C 1'),(V 1D 1',V 2D 1'), point (V 1E 1',V 2E1') in accordance with a predetermined selection rule. 1A 2',V 2A 2'),(V 1B 2',V 2B 2'),(V 1C 2',V 2C 2'),(V 1D 2',V 2D 2'), point (V 1E 2',V 2E 2') are selected. In this embodiment, the point (V 1A 1',V 2A 1'),(V 1B 1',V 2B 1'),(V 1D 1',V 2D 1'), (V 1A 2',V 2A 2'),(V 1B 2',V 2B 2'),(V 1D 2',V 2D Assume that option 2') is selected.

[0181] When the formula (37) is satisfied for the MR sensor 10-1, the determination unit 116b determines that the voltage V 1E 1',V 2E When the equation (37) is satisfied for the MR sensor 10-2, the determining unit 116b determines that the voltage V 1E 2',V 2E 2' satisfies a predetermined geometric relationship, and it is determined that this is the timing at which an accurate angle can be calculated by the MR sensor 10-2.

[0182] For the MR sensor 10-1, the point (V 1A 1',V 2A 1') and point (V 1B 1',V 2B The length of the side connecting AB and point (V 1B 1',V 2B 1') and point (V 1D 1',V 2D 1') is BD, and point (V1D 1',V 2D 1') and point (V 1A 1',V 2A 1') is DA, and point (V 1A 1',V 2A 1') and point (V 1E 1',V 2E 1') is the length of the side connecting point (AE, V 1E 1',V 2E 1') and point (V 1D 1',V 2D The length of the side connecting the points (V 1A 2',V 2A 2') and point (V 1B 2',V 2B 2') is the length of the side connecting AB and point (V 1B 2',V 2B 2') and point (V 1D 2',V 2D 2') is BD, and point (V 1D 2',V 2D 2') and point (V 1A 2',V 2A 2') is DA, and point (V 1A 2',V 2A 2') and point (V 1E 2',V 2E 2') is the length of the side connecting point (AE, V 1E 2',V 2E 2') and point (V 1D 2',V 2D 2') should be the length of the side connecting ED.

[0183] On the other hand, the determination unit 117b of the data processing control unit 11b determines the output voltage V 1E 1,V 2E By determining whether the average rate of change of the output voltage V measured in step S501 satisfies a predetermined condition, the determination unit 117b of the data processing control unit 11b determines whether the timing is such that the MR sensor 10-1 can accurately calculate the angle. 1E 2,V 2EBy determining whether the average rate of change of the MR sensor 10-2 satisfies a predetermined condition, it is determined whether the timing is such that the MR sensor 10-2 can accurately calculate the angle.

[0184] At the time of angle detection, the angle calculation unit 118b calculates the angle P A Output voltage at 1 V 1A 1,V 2A 1 and point P A The magnetic field angle αA1 at point P B Output voltage at 1 V 1B 1,V 2B 1 and point P B The magnetic field angle αB1 at point P C Output voltage at 1 V 1C 1,V 2C 1 and point P C The angle αC1 of the magnetic field at point P D Output voltage at 1 V 1D 1,V 2D 1 and point P D An arbitrary pair of voltage and angle is selected from the magnetic field angle αD1 at V1 according to a predetermined selection rule. 1E 1,V 2E 1, a voltage pair different from the output voltage V measured in step S501 may be selected, and an appropriate selection rule may be set. 1E 1,V 2E 1 and based on the output voltage V 1E 1,V 2E The angle αE1 of the magnetic field when 1 is obtained is calculated (FIG. 29, Step S503).

[0185] In addition, the angle calculation unit 118b calculates the angle of the point P A Output voltage at 2 V 1A 2,V 2A 2 and point P A The angle αA2 of the magnetic field at point P B Output voltage at 2 V 1B 2,V 2B 2 and point P BThe magnetic field angle αB2 at point P C Output voltage at 2 V 1C 2,V 2C 2 and point P C The angle αC2 of the magnetic field at point P D Output voltage at 2 V 1D 2,V 2D 2 and point P D An arbitrary pair of voltage and angle is selected from the magnetic field angle αD2 at V2 according to a predetermined selection rule. 1E 2,V 2E 2, a voltage pair different from the output voltage V 1 measured in step S501 may be selected, and an appropriate selection rule may be set. The angle calculation unit 118b calculates the output voltage V 1 measured in step S501 by calculating the voltage and angle pair selected in step S501. 1E 2,V 2E 2 and based on the output voltage V 1E 2,V 2E The angle αE2 of the magnetic field when 2 is obtained is calculated (step S503).

[0186] In this embodiment, point P A Output voltage at 1 V 1A 1,V 2A 1 and point P A Select the angle αA1 of the magnetic field at point P A Output voltage at 2 V 1A 2,V 2A 2 and point P A Assume that the angle αA2 of the magnetic field at the MR sensor 10-1 is selected. When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the output voltage V 1E 1,V 2E Point P on the orbit of the magnetic field generating unit 12 when 1 is obtained E 1 and point P A The angle αAE1=|αE1+αA1| / 2 of the magnetic field at the midpoint between the MR sensor 10-1 and the MR sensor 10-2 is calculated by the equation (38). 1E 2,V 2E Point P on the orbit of the magnetic field generating unit 12 when 2 is obtained E 2 and point P ACalculate the magnetic field angle αAE2 = |αE2 + αA2| / 2 at the midpoint between 2 using equation (38).

[0187] Furthermore, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates an output voltage V 1E 1,V 2E Point P on the orbit of the magnetic field generating unit 12 when 1 is obtained E 1 and point P A The angle αAE1=|αE1+αA1| / 2 of the magnetic field at the midpoint between the MR sensor 10-1 and the MR sensor 10-2 is calculated by the equation (39). 1E 2,V 2E Point P on the orbit of the magnetic field generating unit 12 when 2 is obtained E 2 and point P A Calculate the magnetic field angle αAE2 = |αE2 + αA2| / 2 at the midpoint between 2 using equation (39).

[0188] For the MR sensor 10-1, V in Equation (38) and Equation (39) m2 ,V m1 ,V 1E ,V 1A ,V 2E ,V 2A V m2 1,V m1 1,V 1E 1,V 1A 1,V 2E 1,V 2A 1. For the MR sensor 10-2, V in Equation (38) and Equation (39) can be replaced with m2 ,V m1 ,V 1E ,V 1A ,V 2E ,V 2A V m2 2,V m1 2,V 1E 2,V 1A 2,V 2E 2,V 2A You can replace it with 2.

[0189] The angle calculation unit 118b calculates the magnetic field angle αE=αE1 for the MR sensor 10-1 using equation (40), and calculates the magnetic field angle αE=αE2 for the MR sensor 10-2 using equation (40) (step S503). For the MR sensor 10-1, αAE and αA in equation (40) should be replaced with αAE1 and αA1, respectively. For the MR sensor 10-1, αAE and αA in equation (40) should be replaced with αAE2 and αA2, respectively.

[0190] In addition, the latest output voltage V11 measured in step S501 for the MR sensor 10-1 is V 1E 1, V21 = V 2E The output voltage measured one time before 1 is V11 = V 1E-1 1, V21 = V 2E-1 1, and the output voltage measured two times before is V11 = V 1E-2 1, V2 = V 2E-2 1. The latest output voltage V12 measured in step S501 for the MR sensor 10-2 is V 1E 2, V22 = V 2E The output voltage measured one time before 2 is V12 = V 1E-1 2, V22 = V 2E-1 2, and the output voltage measured two times before is V12 = V 1E-2 2, V2 = V 2E-2 Let's say it's 2.

[0191] The angle calculation unit 118b calculates the output voltage V11=V 1E-2 1, V21 = V 2E-2 The angle of the magnetic field αE when 1 is measured -2 1 and the output voltage V11 = V 1E-1 1, V21 = V 2E-1 The angle of the magnetic field αE when 1 is measured -1 The intermediate angle between 1 and |αE -2 1+αE -1 1| / 2 (step S503). In addition, the angle calculation unit 118b calculates the output voltage V12=V 1E-2 2, V22 = V 2E-2 The angle of the magnetic field αE when 2 is measured-2 2 and the output voltage V12 = V 1E-1 2, V22 = V 2E-1 The angle of the magnetic field αE when 2 is measured -1 The intermediate angle between 2 and |αE -2 2+αE -1 2| / 2 is calculated (step S503).

[0192] When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |αE -2 1+αE -1 1| / 2,|αE -2 2+αE -1 2| / 2. When GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |αE -2 1+αE -1 1| / 2,|αE -2 2+αE -1 Calculate 2| / 2.

[0193] For the MR sensor 10-1, V in Equation (41) and Equation (42) m2 ,V m1 ,V 1E-1 ,V 1E-2 ,V 2E-1 ,V 2E-2 V m2 1,V m1 1,V 1E-1 1,V 1E-2 1,V 2E-1 1,V 2E-2 1. For the MR sensor 10-2, V in Equation (41) and Equation (42) can be replaced with m2 ,V m1 ,V 1E-1 ,V 1E-2 ,V 2E-1 ,V 2E-2 V m2 2,V m1 2,V 1E-1 2,V 1E-2 2,V 2E-1 2,V 2E-2 You can replace it with 2.

[0194] In addition, the angle calculation unit 118b calculates the output voltage V11=V 1E-1 1, V21 = V 2E-1 The angle of the magnetic field αE when 1 is measured -1 1 and output voltage V11=V 1E 1, V21 = V 2E The angle between the magnetic field angle αE1 and the angle |αE -1 1+αE1| / 2 (step S503). In addition, the angle calculation unit 118b calculates the output voltage V12 of the MR sensor 10-2 one time ago as V12=V 1E-1 2, V22 = V 2E-1 The angle of the magnetic field αE when 2 is measured -1 2 and output voltage V12=V 1E 2, V22 = V 2E The angle between the magnetic field angle αE2 and the angle |αE -1 2+αE2| / 2 is calculated (step S503).

[0195] When AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |αE -1 1+αE1| / 2,|αE -1 2+αE2| / 2. When GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118b calculates the angle |αE -1 1+αE1| / 2,|αE -1 Calculate 2+αE2| / 2.

[0196] For the MR sensor 10-1, V in Equation (43) and Equation (44) m2 ,V m1 ,V 1E ,V 1E-1 ,V 2E ,V 2E-1 V m2 1,V m1 1,V 1E 1,V 1E-1 1,V 2E 1,V 2E-1 1. For the MR sensor 10-2, V in Equation (43) and Equation (44) can be replaced with m2 ,Vm1 ,V 1E ,V 1E-1 ,V 2E ,V 2E-1 V m2 2,V m1 2,V 1E 2,V 1E-1 2,V 2E 2,V 2E-1 You can replace it with 2.

[0197] The determination unit 117b determines whether the output voltage V11 measured in step S501 is equal to or greater than V 1E 1, V21 = V 2E By determining whether the average rate of change of the output voltage V12 measured in step S501 satisfies a predetermined condition, the determination unit 117b determines whether it is a timing when the MR sensor 10-1 can accurately calculate the angle (FIG. 29, step S504). 1E 2, V22 = V 2E By determining whether the average rate of change of the angle θ2 satisfies a predetermined condition, it is determined whether the timing is such that the MR sensor 10-2 can accurately calculate the angle (step S504).

[0198] Specifically, when AMR elements are used as the MR elements R1 to R8, the determining unit 117b determines whether the output voltage V1 measured two times before is equal to or greater than V 1E-2 and the output voltage V1 measured one time ago = V 1E-1 and the average voltage aveV 1E-2E-1 The determination unit 117b calculates the output voltage V1=V 1E-1 and the latest output voltage V1 measured in step S501 = V 1E and the average voltage aveV 1E-1E The determination unit 117b calculates the output voltage V2=V 2E-2 and the output voltage V2 measured one time ago = V 2E-1 and the average voltage aveV 2E-2E-1The determination unit 117b calculates the output voltage V2=V 2E-1 and the latest output voltage V2 measured in step S501 = V 2E and the average voltage aveV 2E-1E is calculated for each of the MR sensors 10-1 and 10-2 using equation (48).

[0199] For the MR sensor 10-1, V in Equations (45) to (48) 1E-2 ,V 1E-1 ,V 1E ,V 2E-2 ,V 2E-1 ,V 2E V 1E-2 1,V 1E-1 1,V 1E 1,V 2E-2 1,V 2E-1 1,V 2E 1. For the MR sensor 10-2, V in Equations (45) to (48) can be replaced with 1E-2 ,V 1E-1 ,V 1E ,V 2E-2 ,V 2E-1 ,V 2E V 1E-2 2,V 1E-1 2,V 1E 2,V 2E-2 2,V 2E-1 2,V 2E You can replace it with 2.

[0200] Next, the determination unit 117b determines the average voltage aveV 1E-2E-1 ,aveV 1E-1E and the magnetic field angle |αE calculated by the angle calculation unit 118b. -2 +αE -1 | / 2,|αE -1 +αE| / 2 and the amplitude V m1 Based on this, the average rate of change of the output voltage V1 with respect to the angular change of the magnetic field (cos2αE-cos2αE -2 ) / (αE-αE -2) for each of the MR sensors 10-1 and 10-2 using equation (49). 2E-2E-1 ,aveV 2E-1E and the magnetic field angle |αE -2 +αE -1 | / 2,|αE -1 +αE| / 2 and the amplitude V m2 Based on this, the average rate of change of the output voltage V2 with respect to the angular change of the magnetic field (sin2αE-sin2αE -2 ) / (αE-αE -2 ) is calculated for each of the MR sensors 10-1 and 10-2 using equation (50).

[0201] For the MR sensor 10-1, (αE -1 +αE) / 2,(αE -2 +αE -1 ) / 2,V m1 ,V m2 respectively (αE -1 1+αE1) / 2,(αE -2 1+αE -1 1) / 2,V m1 1,V m2 1. For the MR sensor 10-1, (αE -1 +αE) / 2,(αE -2 +αE -1 ) / 2,V m1 ,V m2 respectively (αE -1 2+αE2) / 2,(αE -2 2+αE -1 2) / 2,V m1 2,V m2 You can replace it with 2.

[0202] When formula (51) is satisfied for the MR sensor 10-1, the determination unit 117b determines that the average rate of change of the output voltages V11, V21 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is a timing when the MR sensor 10-1 can perform accurate angle calculation. When formula (51) is satisfied for the MR sensor 10-2, the determination unit 117b determines that the average rate of change of the output voltages V12, V22 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is a timing when the MR sensor 10-2 can perform accurate angle calculation.

[0203] When GMR elements or TMR elements are used as the MR elements R1 to R8, the determination unit 117b determines the average voltage aveV as in the case of the AMR elements. 1E-2E-1 ,aveV 1E-1E ,aveV 2E-2E-1 ,aveV 2E-1E for each of the MR sensors 10-1 and 10-2. Next, the determination unit 117b calculates the average voltage aveV 1E-2E-1 ,aveV 1E-1E and the magnetic field angle |αE -2 +αE -1 | / 2,|αE -1 +αE| / 2 and amplitude V m1 Based on this, the average rate of change of the output voltage V1 with respect to the angular change of the magnetic field (cosαE-cosαE -2 ) / (αE-αE -2 ) for each of the MR sensors 10-1 and 10-2 using equation (52). 2E-2E-1 ,aveV 2E-1E and the magnetic field angle |αE -2 +αE -1 | / 2,|αE -1 +αE| / 2 and amplitude V m2 Based on this, the average rate of change of the output voltage V2 with respect to the angular change of the magnetic field (sinαE-sinαE -2 ) / (αE-αE -2 ) is calculated for each of the MR sensors 10-1 and 10-2 using equation (53).

[0204] For the MR sensor 10-1, (αE-1 +αE) / 2,(αE -2 +αE -1 ) / 2,V m1 ,V m2 respectively (αE -1 1+αE1) / 2,(αE -2 1+αE -1 1) / 2,V m1 1,V m2 1. For the MR sensor 10-1, (αE -1 +αE) / 2,(αE -2 +αE -1 ) / 2,V m1 ,V m2 respectively (αE -1 2+αE2) / 2,(αE -2 2+αE -1 2) / 2,V m1 2,V m2 You can replace it with 2.

[0205] When formula (54) is satisfied for the MR sensor 10-1, the determination unit 117b determines that the average rate of change of the output voltages V11, V21 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is the timing when the MR sensor 10-1 can perform accurate angle calculation. When formula (54) is satisfied for the MR sensor 10-2, the determination unit 117b determines that the average rate of change of the output voltages V12, V22 in response to the angular change of the magnetic field satisfies a predetermined condition, and that this is the timing when the MR sensor 10-2 can perform accurate angle calculation.

[0206] The angle calculation unit 118b judges whether or not it is a timing at which accurate angle calculation is possible for each of the MR sensors 10-1 and 10-2 based on the results obtained from the judgment units 116b and 117b (step S505 in FIG. 29). In this embodiment, too, it is possible to judge whether or not it is a timing at which accurate angle calculation is possible based only on the results obtained from the judgment unit 116b.

[0207] When the judgment unit 116b judges that accurate angle calculation is possible for both the MR sensors 10-1 and 10-2 (YES in step S505), the angle calculation unit 118b adopts the angle αE calculated in step S503 for each of the MR sensors 10-1 and 10-2 as the accurate value of the magnetic field angle α (FIG. 29, step S506).

[0208] Furthermore, when the judgment unit 116b judges that accurate angle calculation is possible for only one of the MR sensors 10-1, 10-2 (YES in step S507 in FIG. 29), the angle calculation unit 118b adopts the angle αE obtained by the MR sensor that is judged to be able to calculate an accurate angle, among the angles αE calculated in step S503, as the accurate value of the magnetic field angle α (step S508 in FIG. 29). When the determination unit 116b determines that accurate angle calculation is impossible for both the MR sensors 10-1 and 10-2, the magnetic field angle α becomes indefinite.

[0209] The control signal generating unit 119 calculates the deviation between the angle setting value provided by the higher-level device 4 and the angle α calculated by the angle calculating unit 118b, and generates a control signal so that the deviation becomes zero (FIG. 29, step S509). By supplying this control signal to a driving device of the object to which the magnetic field generating unit 12 is attached, the position of the object can be controlled.

[0210] The above-mentioned processes in steps S501 to S509 are repeatedly performed until the operation of the angle detection device 1b is terminated, for example, in response to an instruction from the operator (YES in step S510 in FIG. 29).

[0211] As described above, in this embodiment, by providing a plurality of MR sensors 10-1, 10-2, it is possible to widen the detection range of the position of the magnetic field generating unit 12, so that, for example, when this embodiment is applied to a positioner, it is possible to detect the valve opening even when the linear region in the movement of the valve stem is expanded. Also, in this embodiment, it is possible to improve the measurement accuracy.

[0212] In the above example, whether or not the timing is one at which accurate angle calculation is possible is determined only based on the result obtained from the determination unit 116b, but there are cases where it is more preferable to use the determination results of both the determination units 116b and 117b. Specifically, when it is desired to detect only the timing at which the magnetic field generating unit 12 is stopped within the angle detectable range of either one or both of the MR sensors 10-1 and 10-2, the determination results of both the determination units 116b and 117b are used.

[0213] In this case, when the determination unit 116b determines that the angle calculation is possible for both the MR sensors 10-1 and 10-2 and the determination unit 117b determines that the angle calculation is impossible for both the MR sensors 10-1 and 10-2 (YES in step S505), the angle calculation unit 118b adopts the angle αE calculated in step S503 for each of the MR sensors 10-1 and 10-2 as the accurate value of the magnetic field angle α (step S506). When the determination unit 116b determines that the angle calculation is possible for only one of the MR sensors 10-1 and 10-2 and the determination unit 117b determines that the angle calculation is impossible for the MR sensor that has obtained the result that the angle calculation is possible (YES in step S507), the angle calculation unit 118b may adopt the angle αE obtained by the MR sensor that the determination unit 116b determines that the angle calculation is possible as the accurate value of the magnetic field angle α (step S508).

[0214] In this embodiment, when accurate angle calculation is possible for both MR sensors 10-1 and 10-2, the magnetic field angle αE is obtained for each of MR sensors 10-1 and 10-2. However, whether the angle αE=αE1 obtained by MR sensor 10-1 is finally adopted as the magnetic field angle α, the angle αE=αE2 obtained by MR sensor 10-2 is finally adopted as the magnetic field angle α, or the final angle α is calculated based on the angle αE obtained by both MR sensors 10-1 and 10-2 depends on the application.

[0215] For example, in order to improve the measurement accuracy, different ranges of the angle αE are set in advance for each of the MR sensors 10-1 and 10-2 so that when the magnetic field generating unit 12 is close to the MR sensor 10-1, the angle αE=αE1 obtained by the MR sensor 10-1 is adopted as the magnetic field angle α, and when the magnetic field generating unit 12 is close to the MR sensor 10-2, the angle αE=αE2 obtained by the MR sensor 10-2 is adopted as the magnetic field angle α. When the angle αE=αE1 obtained by the MR sensor 10-1 is within the angle range defined for the MR sensor 10-1, the angle calculation unit 118b finally adopts the angle αE=αE1 obtained by the MR sensor 10-1 as the magnetic field angle α, and when the angle αE=αE2 obtained by the MR sensor 10-2 is within the angle range defined for the MR sensor 10-2, the angle calculation unit 118b finally adopts the angle αE=αE2 obtained by the MR sensor 10-2 as the magnetic field angle α.

[0216] Furthermore, when the final angle α is calculated based on the angle αE obtained by both of the MR sensors 10-1 and 10-2, the value of the angle α may be calculated based on a predetermined rule.

[0217] [Fourth Example] Next, a fourth embodiment of the present invention will be described. Fig. 30 is a block diagram showing the configuration of a positioner according to this embodiment. The positioner 1c includes MR sensors 10-1 and 10-2, a data processing control unit 11c, an electro-pneumatic conversion unit 13, and a pneumatic pressure amplification unit 14.

[0218] 31 is a block diagram showing the configuration of the data processing control unit 11c of this embodiment. The data processing control unit 11c includes a power source 110, sensor output measurement units 111-1, 111-2, 112-1, and 112-2, a storage unit 113, an amplitude calculation unit 114c, an initial setting unit 115c, determination units 116b and 117b, an angle calculation unit 118b, an opening actual measurement value generation unit 120c, and a control signal generation unit 121.

[0219] When the magnetic field generating unit 12 is attached to the feedback lever 32 of the positioner 1c as shown in Fig. 32, the magnetic field generating unit 12 moves on a vertical plane (a plane perpendicular to the paper surface in Fig. 32) as the feedback lever 32 rotates. Therefore, the MR sensors 10-1 and 10-2 can be installed so that the sensor plane (a plane parallel to the paper surface in Fig. 32) is perpendicular to the trajectory of the magnetic field generating unit 12. As the magnetic field generating unit 12 moves in response to the up and down movement of the valve stem 31 of the valve 3, a magnetic field in a direction corresponding to the opening degree of the valve 3 is applied to the MR sensors 10-1 and 10-2.

[0220] The flow of processing during the initial setting of the positioner 1c of this embodiment is similar to that of the third embodiment, and will be described using the symbols in Fig. 28. At the time of shipment of the positioner 1c from the factory, the amplitude calculation unit 114c calculates the amplitudes V11 and V21 of the output voltages V11 and V21 of the bridge circuits 100 and 101 of the MR sensor 10-1 in the same manner as the amplitude calculation unit 114a of the second embodiment and the amplitude calculation unit 114b of the third embodiment. m1 =V m1 1,V m2 =V m2 1 is calculated, and the amplitude V of the output voltages V12 and V22 of the bridge circuits 100 and 101 of the MR sensor 10-2 is calculated. m1 =V m1 2,V m2 =V m2 2 is calculated (FIG. 28, step S400).

[0221] Next, after the positioner 1c is attached to the valve 3 at the site of a chemical plant or the like, when, for example, an operator at the site issues an instruction to execute setup, the amplitude calculation unit 114c calculates the amplitude V of the output voltages V11, V12, V21, and V22 of the MR sensors 10-1 and 10-2 in the same manner as the amplitude calculation units 114a and 114b. m1 1,V m1 2,V m2 1,V m2 2 is calculated again (FIG. 28, step S401).

[0222] Next, the initial setting unit 115c linearly moves the magnetic field generating unit 12 (magnet) at a constant speed in order to obtain the output voltages V1 and V2 of the bridge circuits 100 and 101 and the magnetic field angle α for at least four points on the trajectory of the magnetic field generating unit 12 for each of the MR sensors 10-1 and 10-2 (step S402 in FIG. 28). At this time, it is desirable to shorten the sampling interval as much as possible. Here, the initial setting unit 115c outputs a control signal to the electro-pneumatic converting unit 13 and changes the opening degree of the valve 3 to move the magnetic field generating unit 12 attached to the feedback lever 32. The processing in steps S403 to S408 in FIG. 28 is as explained in the third embodiment.

[0223] 33 is a flowchart for explaining the operation of the positioner 1c of this embodiment during valve control (when the plant is operating). The amplitude calculation unit 114c calculates the amplitudes V11, V12, V21, and V22 of the output voltages V11, V12, V21, and V22 of the MR sensors 10-1 and 10-2 during valve control. m1 1,V m1 2,V m2 1,V m2 2 is calculated again (step S600 in FIG. 33). The process of step S600 can be performed in the same manner as step S401. m1 1,V m1 2,V m2 1,V m2 The value of 2 is updated by the process in step S600.

[0224] The processing of steps S601 to S608 during valve control is the same as steps S501 to S508 in the third embodiment. Next, the opening actual measurement value generating unit 120c calculates the current opening actual value PV of the valve 3 based on the angle α calculated by the angle calculating unit 118b (FIG. 33, step S609). The opening actual value PV can be calculated based on a known relationship between the angle α and the opening actual value PV.

[0225] The control signal generating unit 121 calculates the deviation between the opening set value SP of the valve 3 given from the higher-level device 4 and the opening measured value PV, generates a control signal so as to make the deviation zero, and outputs the control signal to the electro-pneumatic converting unit 13 (FIG. 33, step S610). In this way, the opening of the valve 3 can be controlled. The above-mentioned processes of steps S601 to S610 are repeatedly performed, for example, until the operation of the plant is stopped (YES in step S611 in FIG. 33).

[0226] As explained in the third embodiment, when both MR sensors 10-1 and 10-2 are capable of accurate angle calculation, whether the angle αE = αE1 obtained by MR sensor 10-1 is finally adopted as the magnetic field angle α, the angle αE = αE2 obtained by MR sensor 10-2 is finally adopted as the magnetic field angle α, or the final angle α is calculated based on the angle αE obtained by both MR sensors 10-1 and 10-2 depends on the positioner to be applied.

[0227] Although the number of MR sensors is two in the third and fourth embodiments, the number of MR sensors may be three or more.

[0228] The storage unit 113, the amplitude calculation units 114, 114a to 114c, the initial setting units 115, 115a to 115c, the judgment units 116, 116b, 117, 117b, the angle calculation units 118, 118b, the control signal generation units 119, 121, and the opening actual measurement value generation units 120, 120c described in the first to fourth embodiments can be realized by a computer having a CPU (Central Processing Unit), a storage device, and an interface, and a program that controls these hardware resources. An example of the configuration of this computer is shown in FIG.

[0229] The computer includes a CPU 300, a storage device 301, and an interface device (I / F) 302. The sensor output measuring units 111, 111-1, 111-2, 112, 112-1, 112-2, the electro-pneumatic converting unit 13, and the like are connected to the I / F 302. A program for implementing the method of the present invention is stored in the storage device 301. The CPU 300 executes the processes described in the first to fourth embodiments in accordance with the program stored in the storage device 301. [Industrial Applicability]

[0230] The present invention can be applied to an angle detection device that uses an MR sensor. [Explanation of symbols]

[0231] 1, 1b... Angle detection device, 1a, 1c... Positioner, 2... Operating device, 3... Valve, 4... Upper device, 10, 10-1, 10-2... MR sensor, 11, 11a to 11c... Data processing control unit, 12... Magnetic field generation unit, 13... Electrical-pneumatic conversion unit, 14... Pneumatic pressure amplification unit, 100, 101... Bridge circuit, 110... Power supply, 111, 111-1, 111- 2, 112, 112-1, 112-2...sensor output measuring unit, 113...memory unit, 114, 114a to 114c...amplitude calculation unit, 115, 115a to 115c...initial setting unit, 116, 116b, 117, 117b...judgment unit, 118, 118b...angle calculation unit, 119, 121...control signal generation unit, 120, 120c...actual opening value generation unit.

Claims

1. an MR sensor including a first bridge circuit including first to fourth magnetoresistance effect elements, and a second bridge circuit including fifth to eighth magnetoresistance effect elements arranged so that the output voltage of the first bridge circuit is out of phase with that of the second bridge circuit; a sensor output measuring unit configured to measure output voltages of the first and second bridge circuits, respectively; a storage unit configured to store in advance the output voltage and the angle of the magnetic field when a magnetic field is applied to the MR sensor from an external magnetic field generating unit for at least four points on a trajectory of the magnetic field generating unit; an angle calculation unit configured to calculate an angle of the magnetic field based on the output voltage measured by the sensor output measurement unit during angle detection and information stored in the storage unit; a first determination unit configured to determine whether a value obtained by dividing the output voltage measured by the sensor output measurement unit during angle detection by a known amplitude satisfies a predetermined geometric relationship, thereby determining whether a timing is available for accurate angle calculation by the MR sensor; An angle detection device characterized in that the angle calculation unit determines whether to adopt the calculated value as an accurate value of the angle of the magnetic field based on the result obtained from the first judgment unit.

2. 2. The angle detection device according to claim 1, The angle calculation unit selects a point on the trajectory of the magnetic field generating unit from the information stored in the memory unit during angle detection, and calculates the angle of the magnetic field when the magnetic field generating unit is located at a midpoint between the position of the magnetic field generating unit at the time of angle detection and the selected point based on the output voltage at the selected point and the output voltage measured during angle detection, and calculates the angle of the magnetic field applied from the magnetic field generating unit to the MR sensor during angle detection based on the calculated angle and the angle of the magnetic field at the selected point.

3. 2. The angle detection device according to claim 1, a second determination unit configured to determine whether an average rate of change of the output voltage in response to an angular change of the magnetic field during angle detection satisfies a predetermined condition, thereby determining whether a timing is available for accurate angle calculation by the MR sensor; An angle detection device characterized in that the angle calculation unit determines whether to adopt the calculated value as an accurate value of the magnetic field angle based on the result obtained from the second judgment unit in addition to the result obtained from the first judgment unit.

4. 4. The angle detection device according to claim 3, An initial setting unit configured to set information to be stored in the storage unit at the time of initial setting, the angle calculation unit calculates, based on the output voltages measured at two adjacent points on a trajectory of the magnetic field generation unit at an initial setting, an angle of the magnetic field when the magnetic field generation unit is located at a midpoint between the two adjacent points; the second determination unit, at the time of initial setting, acquires from the angle calculation unit a value of the angle of the magnetic field at a midpoint between a first point and a second point and a value of the angle of the magnetic field at a midpoint between the second point and a third point when the magnetic field generation unit moves through three consecutive points on the trajectory, calculates an average voltage of the output voltages measured at the first and second points respectively as an output voltage when the magnetic field generation unit is located at the midpoint between the first point and the second point, and calculates an average voltage of the output voltages measured at the second and third points respectively as an output voltage when the magnetic field generation unit is located at the midpoint between the second point and the third point, and determines whether an average rate of change of the output voltage in an angle change of the magnetic field satisfies a predetermined condition based on the calculated output voltage and the angle of the magnetic field acquired from the angle calculation unit, thereby determining whether it is a timing when accurate angle calculation is possible by the MR sensor; An angle detection device characterized in that, when the second judgment unit obtains a judgment result that accurate angle calculation is possible using the MR sensor, the initial setting unit stores in the memory unit the output voltage when the magnetic field generating unit is located at the midpoint between the first point and the second point, and the angle of the magnetic field when the magnetic field generating unit is located at the midpoint between the first point and the second point, as information about the midpoint between the first point and the second point.

5. 2. The angle detection device according to claim 1, A plurality of the MR sensors are provided, the sensor output measuring unit measures output voltages of the first and second bridge circuits for each of the plurality of MR sensors; the storage unit stores information on the output voltage and the angle of the magnetic field for each of the plurality of MR sensors for at least four points on a trajectory of the magnetic field generating unit; the angle calculation unit calculates an angle of a magnetic field applied from the magnetic field generation unit to each of the plurality of MR sensors; the first determination unit determines for each MR sensor whether a value obtained by dividing the output voltage measured by the sensor output measurement unit during angle detection by a known amplitude satisfies a predetermined geometric relationship, thereby determining whether a timing at which an accurate angle can be calculated is reached, An angle detection device characterized in that the angle calculation unit determines whether or not to adopt the value calculated for each of the multiple MR sensors during angle detection as an accurate value of the magnetic field angle based on the result obtained from the first determination unit.

6. 4. The angle detection device according to claim 3, A plurality of the MR sensors are provided, the sensor output measuring unit measures output voltages of the first and second bridge circuits for each of the plurality of MR sensors; the storage unit stores information on the output voltage and the angle of the magnetic field for each of the plurality of MR sensors for at least four points on a trajectory of the magnetic field generating unit; the angle calculation unit calculates an angle of a magnetic field applied from the magnetic field generation unit to each of the plurality of MR sensors; the first determination unit determines for each MR sensor whether a value obtained by dividing the output voltage measured by the sensor output measurement unit during angle detection by a known amplitude satisfies a predetermined geometric relationship, thereby determining whether a timing at which an accurate angle can be calculated is reached, the second determination unit determines, for each MR sensor, whether an average rate of change of the output voltage in response to an angular change of the magnetic field during angle detection, thereby determining, for each MR sensor, whether it is a timing at which an accurate angle can be calculated; An angle detection device characterized in that the angle calculation unit determines whether or not to adopt the values ​​calculated for each of the multiple MR sensors during angle detection as accurate values ​​of the magnetic field angle based on the results obtained from the first and second determination units.

7. 2. The angle detection device according to claim 1, The first determination unit selects three sets of information from the information stored in the storage unit, and determines the output voltage of the first bridge circuit in the selected first set as V 1A , the output voltage of the second bridge circuit in the first set is V 2A , the output voltage of the first bridge circuit in the selected second set is V 1B , the output voltage of the second bridge circuit in the second set is V 2B , the output voltage of the first bridge circuit in the selected third set is V 1D , the output voltage of the second bridge circuit in the third set is V 2D The output voltage of the first bridge circuit measured during angle detection is V 1E The output voltage of the second bridge circuit measured during angle detection is V 2E and the known amplitude of the output voltage of the first bridge circuit is V m1 , the known amplitude of the output voltage of the second bridge circuit is V m2 Let the point (V 1A / V m1 , V 2A / V m2 ) and point (V 1B / V m1 , V 2B / V m2 ) is the length of the side connecting AB and point (V 1B / V m1 , V 2B / V m2 ) and point (V 1D / V m1 , V 2D / V m2 ) is the length of the side connecting the point (V 1D / V m1 , V 2D / V m2 ) and point (V 1A / V m1 , V 2A / V m2 ) is the length of the side connecting point (V 1A / V m1 , V 2A / V m2 ) and point (V 1E / V m1 , V 2E / V m2 ) is the length of the side connecting point (V 1E / V m1 , V 2E / V m2 ) and point (V 1D / V m1 , V 2D / V m2 When the length of the side connecting AB is ED, 2 +BD 2 -D.A. 2 ) / (2AB×BD)|≒|(AE 2 +ED 2 -D.A. 2 ) / (2AE×ED)| is satisfied, it is determined that this is the timing at which an accurate angle can be calculated by the MR sensor.

8. 5. The angle detection device according to claim 4, the first to eighth magnetoresistance effect elements are AMR elements, The second determination unit determines an output voltage of the first bridge circuit when the magnetic field generation unit is located at a midpoint between the first point and the second point as aveV. 1α1α2 The output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV. 2α1α2 , the output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the second point and the third point is aveV 1α2α3 The output voltage of the second bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV. 2α2α3 The angle of the magnetic field at the midpoint between the first point and the second point is (α2+α1) / 2, the angle of the magnetic field at the midpoint between the second point and the third point is (α3+α2) / 2, and the known amplitude of the output voltage of the first bridge circuit is V m1 , the known amplitude of the output voltage of the second bridge circuit is V m2 When the average rate of change of the output voltage of the first bridge circuit due to the change in the angle of the magnetic field (cos2α3-cos2α1) / (α3-α1) is expressed as (aveV 1α2α3 -aveV 1α1α2 ) / {(α2+α3) / 2-(α1+α2) / 2} / V m1 = (cos2α3-cos2α1) / (α3-α1), and the average rate of change of the output voltage of the second bridge circuit in response to the angular change of the magnetic field (sin2α3-sin2α1) / (α3-α1) is calculated as (aveV 2α2α3 -aveV 2α1α2 ) / {(α2+α3)-(α1+α2)} / V m2 = (sin2α3-sin2α1) / (α3-α1), (1 / 4) × {(cos2α3-cos2α1) / (α3-α1)} 2 +{(sin2α3-sin2α1) / (α3-α1)} 2 When the equation (i)≈1 holds, it is determined that this is the timing at which an accurate angle can be calculated by the MR sensor.

9. 5. The angle detection device according to claim 4, the first to eighth magnetoresistance effect elements are GMR elements or TMR elements, The second determination unit determines an output voltage of the first bridge circuit when the magnetic field generation unit is located at a midpoint between the first point and the second point as aveV. 1α1α2 The output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV. 2α1α2 , the output voltage of the first bridge circuit when the magnetic field generating unit is located at the midpoint between the second point and the third point is aveV 1α2α3 The output voltage of the second bridge circuit when the magnetic field generating unit is located at the midpoint between the first point and the second point is aveV. 2α2α3 The angle of the magnetic field at the midpoint between the first point and the second point is (α2+α1) / 2, the angle of the magnetic field at the midpoint between the second point and the third point is (α3+α2) / 2, and the known amplitude of the output voltage of the first bridge circuit is V m1 , the known amplitude of the output voltage of the second bridge circuit is V m2 Then, the average rate of change of the output voltage of the first bridge circuit in response to the change in the angle of the magnetic field (cosα3-cosα1) / (α3-α1) is expressed as (aveV 1α2α3 -aveV 1α1α2 ) / {(α2+α3) / 2-(α1+α2) / 2} / V m1 = (cos α3 - cos α1) / (α3 - α1), and the average rate of change of the output voltage of the second bridge circuit in response to the angular change of the magnetic field (sin α3 - sin α1) / (α3 - α1) is calculated as (aveV 2α2α3 -aveV 2α1α2 ) / {(α2+α3)-(α1+α2)} / V m2 = (sin α3 - sin α1) / (α3 - α1), {(cos α3 - cos α1) / (α3 - α1)} 2 +{(sin α3-sin α1) / (α3-α1)} 2 When the equation (i)≈1 holds, it is determined that this is the timing at which an accurate angle can be calculated by the MR sensor.

10. An angle detection device according to claim 1 or 3, an actual opening value generating unit configured to calculate an actual opening value of the valve based on the angle of the magnetic field adopted as an accurate value by the angle calculating unit during a valve control operation; a control signal generating unit configured to generate a control signal for controlling the opening of the valve based on an opening set value of the valve and the actual opening value during the valve control operation, The positioner is characterized in that the MR sensor is disposed so as to detect an angle of a magnetic field applied from the magnetic field generating unit which moves in response to opening and closing of the valve.

Citation Information

Patent Citations

  • Magnetic sensor arrangement

    EP2672285A1

  • Position detection device

    JP2021148447A

  • Method for determining the position of a magnet relative to a row of sensors

    US10571305B2

  • Magnetic position determination systems and methods

    US20200191546A1