Angle detector and positioner
The angle detection device with magnetoresistive elements and determination units addresses the challenge of inaccurate angle detection due to insufficient magnetic field strength and multiple sensor selection by ensuring timely and precise angle calculation through geometrical relationships and sensor selection.
Patent Information
- Application Number
- JP2023044644
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional angle sensors using magnetoresistive elements face challenges in accurately detecting the angle of a magnetic field when the magnetic field strength is insufficient, and when multiple sensors are present, determining which sensor to use for accurate angle calculation is difficult.
The angle detection device incorporates a configuration with first and second bridge circuits of magnetoresistive elements, a sensor output measurement unit, an angle calculation unit, and determination units to determine the timing for accurate angle calculation by evaluating the output voltages and their geometrical relationships, ensuring the use of the appropriate sensor when multiple sensors are present.
Enables accurate detection of the angle of a magnetic field by determining the appropriate timing and sensor selection, even when the magnetic field strength is insufficient, and expands the detection range by using multiple sensors.
Smart Images

Figure 2024134378000001_ABST
Abstract
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. 33 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 vector changes in 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. 34, 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 magneto resistance 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. 35, 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. 36, the strength of the magnetic field applied to the MR sensor 10 becomes insufficient, and it is impossible to detect the angle α. In FIG. 35 and FIG. 36, the inside of the solid line 131 indicates the angle detectable range of the MR sensor 10.
[0008] Fig. 37 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. 37 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. Also, when there are multiple MR sensors, there is the problem of not knowing 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. 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. [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; an angle calculation unit configured to calculate the angle of a magnetic field applied to the MR sensor from an external magnetic field generation unit based on the output voltages of the first and second bridge circuits measured by the sensor output measurement unit; and a first judgment unit configured to judge whether or not it is a timing when an accurate angle can be calculated by the MR sensor by judging whether or not a value obtained by subtracting a known offset from the output voltages of the first and second bridge circuits and dividing the result by a known amplitude satisfies a predetermined geometric relationship, and the angle calculation unit judges whether or not 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.
[0013] Moreover, one configuration example of the angle detection device of the present invention includes a plurality of the MR sensors, the sensor output measuring unit measures the output voltage of the first and second bridge circuits for each of the plurality of MR sensors, the angle calculation unit calculates the angle of the magnetic field applied from the magnetic field generating unit for each of the plurality of MR sensors, the first determination unit determines for each MR sensor whether a value obtained by subtracting a known offset from the output voltage of the first and second bridge circuits and dividing the result by a known amplitude 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 as an accurate value of the angle of the magnetic field based on the result obtained from the first determination unit.
[0014] In addition, one configuration example of the angle detection device of the present invention further includes a second judgment unit configured to judge 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 of the first and second bridge circuits during the angle change of the magnetic field satisfies a predetermined condition, and the angle calculation unit is characterized in that it judges 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 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 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 subtracting a known offset from the output voltage of the first and second bridge circuits and dividing the result by a known amplitude satisfies a predetermined geometric relationship, thereby determining whether it is a timing when accurate angle calculation is possible, the second determination unit determines for each MR sensor whether an average rate of change of the output voltage of the first and second bridge circuits in an angle change of the magnetic field satisfies a predetermined condition, thereby determining whether it is a timing when accurate angle calculation is possible, and the angle calculation unit determines whether to adopt the value calculated for each of the plurality of MR sensors as an accurate value of the angle of the magnetic field based on the results obtained from the first and second determination units.
[0016] In one configuration example of the angle detection device of the present invention, the first determination unit sets the output voltage of the first bridge circuit as V1, the output voltage of the second bridge circuit as V2, a known offset of the output voltage V1 as V1off, a known offset of the output voltage V2 as V2off, a known amplitude of the output voltage V1 as V m1 , the known amplitude of the output voltage V2 is V m2 Then, the point ((V1-V1off) / Vm1 ,(V2-V2off) / V m2 In a triangle with vertices (-1,0), (-1,0) and (1,0), the interior angle of the vertex (-1,0) is A, the interior angle of the vertex (1,0) is B, and the point ((V1-V1off) / V m1 ,(V2-V2off) / V m2 In a triangle having vertices at (0,1), (0,1), and (0,-1), when the interior angle of the vertex (0,1) is C and the interior angle of the vertex (0,-1) is D, the timing at which the MR sensor can accurately calculate an angle is determined when at least one of the conditions arcsinA+arcsinB=90° and arcsinC+arcsinD=90° is satisfied.
[0017] In one configuration example of the angle detection device of the present invention, the first determination unit sets the output voltage of the first bridge circuit as V1, the output voltage of the second bridge circuit as V2, a known offset of the output voltage V1 as V1off, a known offset of the output voltage V2 as V2off, a known amplitude of the output voltage V1 as V m1 , the known amplitude of the output voltage V2 is V m2 The point (1,0) is the starting point, and the point ((V1-V1off) / V m1 ,(V2-V2off) / V m2 ) as the end point of the vector A, the start point of the vector A is the point (-1,0) and the end point of the vector A is the point ((V1-V1off) / V m1 ,(V2-V2off) / V m2 ) as the end point, B as the vector with point (0,-1) as the start point and point ((V1-V1off) / V m1 ,(V2-V2off) / V m2 ) is the end point of the vector C, the start point is the point (0,1) and the end point is the point ((V1-V1off) / V m1 ,(V2-V2off) / V m2 ) is a vector D having an end point at vector A and vector B, when at least one of the conditions that the dot product of vector A and vector B is 0 and the dot product of vector C and vector D is 0 is satisfied, it is determined that this is the timing when accurate angle calculation is possible using the MR sensor.
[0018] 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 an output voltage of the first bridge circuit as V1, an output voltage of the second bridge circuit as V2, and a known amplitude of the output voltage V1 as V m1 , the known amplitude of the output voltage V2 is V m2 When the angle calculation unit calculates the magnetic field angle α based on the output voltages V1 and V2, B and the magnetic field angle α calculated by the angle calculation unit based on the output voltages V1 and V2 at the previous time. A Therefore, the changes ΔV1 and ΔV2 in the output voltages V1 and V2 are expressed as ΔV1=V m1 cos2α B -V m1 cos2α A , ΔV2=V m2 sin2α B -V m2 sin2α A The calculated ΔV1, ΔV2 and the amplitude V m1 ,V m2 and the angle α B and α A and the difference Δα, [{(1 / V m1 )×(ΔV1 / Δα)} 2 +{(1 / V m2 ) × (ΔV2 / Δα)} 2 When the relation ] / 4≈1 holds, it is determined that this is the timing at which accurate angle calculation is possible using the MR sensor.
[0019] 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 an output voltage of the first bridge circuit as V1, an output voltage of the second bridge circuit as V2, and a known amplitude of the output voltage V1 as V m1 , the known amplitude of the output voltage V2 is V m2 When the angle calculation unit calculates the magnetic field angle α based on the output voltages V1 and V2, B and the magnetic field angle α calculated by the angle calculation unit based on the output voltages V1 and V2 at the previous time.A Therefore, the changes ΔV1 and ΔV2 in the output voltages V1 and V2 are expressed as ΔV1=V m1 cosα B -V m1 cosα A , ΔV2=V m2 sin α B -V m2 sin α A The calculated ΔV1, ΔV2 and the amplitude V m1 ,V m2 and the angle α B and α A and the difference Δα, [{(1 / V m1 )×(ΔV1 / Δα)} 2 +{(1 / V m2 ) × (ΔV2 / Δα)} 2 When the relation: ]≈1 holds, it is determined that this is the timing at which accurate angle calculation is possible using the MR sensor.
[0020] Moreover, a positioner of the present invention includes the 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 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
[0021] According to the present invention, by providing the first determination unit, it is possible to detect the angle of the magnetic field by determining whether it is a timing when the angle can be calculated accurately. Also, in the present invention, when there are multiple MR sensors, it is possible to detect the angle of the magnetic field by determining which sensor should be selected to calculate the angle accurately.
[0022] 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]
[0023] [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 of the angle detection device according to the first embodiment of the present invention. [Figure 8] FIG. 8 is a diagram for explaining the geometric relationship of the output voltage of the bridge circuit of the MR sensor. [Figure 9] FIG. 9 is a diagram illustrating the average rate of change of the output voltage of the bridge circuit of the MR sensor. [Figure 10] FIG. 10 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 11] FIG. 11 is a diagram showing an example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 12] FIG. 12 is a diagram showing another example of the positional relationship between the MR sensor and the magnetic field generating unit. [Figure 13] FIG. 13 is a diagram showing another 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 block diagram showing the configuration of a positioner according to the second embodiment of the present invention. [Figure 19] FIG. 19 is a block diagram showing a configuration of a data processing control unit according to the second embodiment of the present invention. [Figure 20] FIG. 20 is a diagram showing an example of a valve. [Figure 21] FIG. 21 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 22] FIG. 22 is a flowchart illustrating the operation of the positioner according to the second embodiment of the present invention. [Diagram 23] FIG. 23 is a block diagram showing a configuration of an angle detection device according to the third embodiment of the present invention. [Figure 24] FIG. 24 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. [Diagram 25] FIG. 25 is a block diagram showing a configuration of a data processing control unit according to the third embodiment of the present invention. [Figure 26] FIG. 26 is a flowchart illustrating the operation of the angle detection device according to the third embodiment of the present invention. [Figure 27] FIG. 27 is a block diagram showing the configuration of a positioner according to the fourth embodiment of the present invention. [Figure 28]FIG. 28 is a block diagram showing a configuration of a data processing control unit according to the fourth embodiment of the present invention. In FIG. [Figure 29] FIG. 29 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 30] FIG. 30 is a flowchart illustrating the operation of the positioner according to the fourth embodiment of the present invention. [Diagram 31] FIG. 31 is a diagram for explaining the geometric relationship of the output voltage of the bridge circuit of the MR sensor. [Diagram 32] FIG. 32 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 33] FIG. 33 is a block diagram showing the configuration of a conventional MR sensor. [Diagram 34] FIG. 34 is a diagram for explaining the angle of the magnetic field applied to the MR sensor. [Diagram 35] FIG. 35 is a diagram showing a case where the MR sensor can detect the angle of the magnetic field. [Diagram 36] FIG. 36 is a diagram showing a case where the MR sensor cannot detect the angle of the magnetic field. [Figure 37] FIG. 37 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
[0024] [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.
[0025] 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 offset calculation unit 114, an offset storage unit 115, determination units 116 and 117, an angle calculation unit 118, and a control signal generation unit 119.
[0026] The configuration of the MR sensor 10 is as shown in Fig. 33. 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. 33 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.
[0027] 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°.
[0028] 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.
[0029] 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.
[0030] As shown in FIG. 34, when a magnetic field is applied to the bridge circuits 100, 101 of the MR sensor 10 at an angle α of 0° to 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.
[0031] 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.
[0032] 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.
[0033] 7 is a flowchart for explaining the operation of the angle detection device 1 of this embodiment. When the angle detection device 1 is shipped from the factory, the offset calculation unit 114 calculates the amplitude V m1 ,V m2 and offsets V1off, V2off are calculated (FIG. 7, step S100).
[0034] 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.
[0035] 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.
[0036] For example, when an instruction to execute the calculation process is given by a factory worker, the offset 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. m1Similarly, the offset calculation unit 114 detects the maximum and minimum values of the output voltage V2 of the bridge circuit 101, and divides the difference between the maximum and minimum values by 2 to calculate the amplitude V m2 The offset calculation unit 114 calculates the amplitude V m1 ,V m2 The offsets V1off and V2off are stored in the offset storage unit 115.
[0037] 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 offset 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.
[0038] Next, during plant operation after the execution of the setup, 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 S102 in FIG. 7).
[0039] The determination unit 116 of the data processing control unit 11 determines whether the timing is such that an accurate angle can be calculated by determining whether the value obtained by subtracting the offset from the output voltages V1, V2 measured in step S102 and dividing the result by the amplitude satisfies a predetermined geometric relationship (step S103 in FIG. 7).
[0040] Specifically, the determination unit 116 first subtracts the offset V1off of the output voltage V1 stored in the offset storage unit 115 from the output voltage V1 measured in step S102, and calculates the result of the subtraction as the amplitude V of the output voltage V1 stored in the offset storage unit 115. m1 Divide by the amplitude V m1 The value divided by V1'(=(V1-V1off) / V m1 Similarly, the determination unit 116 subtracts the offset V2off of the output voltage V2 stored in the offset storage unit 115 from the output voltage V2 measured in step S102, and calculates the result of the subtraction as the amplitude V of the output voltage V2 stored in the offset storage unit 115. m2 Divide by the amplitude V m2 The value divided by V2'(=(V2-V2off) / V m2 )
[0041] V1'=(V1-V1off) / V m1 On the x-axis (horizontal axis), V2'=(V2-V2off) / V m2 If voltages V1' and V2' are plotted on an xy plane with the y-axis (vertical axis) taken as the voltage V1', V2', at the timing when the MR sensor 10 can accurately calculate the angle, voltages V1', V2' will be points on a circle 200 whose center is (0,0) and whose diameter is 2, as shown in Figure 8.
[0042] In triangle T1 with vertices (V1',V2'), (-1,0), and (1,0), the interior angle of vertex (-1,0) is A, the interior angle of vertex (1,0) is B, the length of the opposite side opposite interior angle A of triangle T1 is a, and the length of the opposite side opposite interior angle B of triangle T1 is b. In addition, in triangle T2 with vertices (V1',V2'), (0,1), and (0,-1), the interior angle of vertex (0,1) is C, the interior angle of vertex (0,-1) is D, and the length of the opposite side opposite interior angle C of triangle T2 is c. In this case, the sine theorem gives the following equation. a / sinA=b / sinB=c / sinC=2 ···(3)
[0043] The determining unit 116 determines that the voltages V1', V2' satisfy a predetermined geometrical relationship when at least one of the following formulas (4) and (5) is satisfied, and that this is the timing at which an accurate angle can be calculated. arcsinA+arcsinB=90° ···(4) arcsinC+arcsinD=90° ···(5)
[0044] The establishment of formula (4) means that triangle T1 is a right triangle inscribed in circle 200, and point (V1', V2') is a point on circle 200. The establishment of formula (5) means that triangle T2 is a right triangle inscribed in circle 200, and point (V1', V2') is a point on circle 200. When neither formula (4) nor formula (5) holds, the determining unit 116 determines that the timing is such that accurate angle calculation is not possible.
[0045] Meanwhile, the determination unit 117 of the data processing control unit 11 determines whether the average rate of change of the output voltages V1, V2 measured in step S102 satisfies a predetermined condition, thereby determining whether it is the timing at which an accurate angle can be calculated.
[0046] As described above, the output voltages V1 and V2 of the bridge circuits 100 and 101 can be expressed as in the formulas (1) and (2). From the formulas (1) and (2), the formulas (6) and (7) can be obtained. V1-V1off=V m1 cos2α (6) V2-V2off=V m2 sin2α (7)
[0047] Furthermore, equation (8) is obtained from equations (6) and (7). (V2-V2off) / (V1-V1off)=(V m2 / V m1 ) tan2α (8)
[0048] From equation (8), the calculation formula for the magnetic field angle α is given by equation (9). α = (1 / 2)tan -1 [{V m1 (V2-V2off)} / {V m2 (V1-V1off)}] ···(9)
[0049] Note that equations (1), (2), and (6) to (8) are equations when an AMR element is used. When a GMR element or a TMR element is used, 2α in equations (1), (2), and (6) to (8) can be changed to α. Therefore, when GMR elements or TMR elements are used as the MR elements R1 to R8, formula (10) should be used instead of formula (9). α=tan -1 [{V m1 (V2-V2off)} / {V m2 (V1-V1off)}] ···(10)
[0050] When two full bridge circuits 100, 101 are used as in this embodiment, the angle α is calculated using tan as in equations (9) and (10). When an AMR element is used, the phase of the sine wave and the cosine wave is shifted by 45° by using tan. When a GMR element or a TMR element is used, the phase of the sine wave and the cosine wave is shifted by 90° by using tan.
[0051] As shown in FIG. 9, when the magnetic field generating unit 12 is moving, the latest time t B The angle of the magnetic field at B , the previous time t A The angle of the magnetic field at A At time t A From time t B The change ΔV1 in voltage V1 and the change ΔV2 in voltage V2 are expressed by equations (11) and (12). ΔV1=V m1 cos2α B -V m1 cos2α A (11) ΔV2=V m2 sin2α B -V m2 sin2αA (12)
[0052] Therefore, the average change rates of the output voltages V1 and V2 with respect to the change in angle are expressed by equations (13) and (14). ΔV1 / Δα=(V m1 cos2α B -V m1 cos2α A ) / (α B -α A ) (13) ΔV2 / Δα=(V m2 sin2α B -V m2 sin2α A ) / (α B -α A ) (14)
[0053] α B -α A As approaches 0, the average rate of change becomes equivalent to the derivative, as shown in equations (15) and (16).
[0054]
number
[0055] Equation (17) is obtained from equations (15) and (16). {(-2V m1 sin2α A / V m1 ) 2 +(2V m2 cos2α A / V m2 ) 2} / 4=1 ···(17)
[0056] Note that equations (1), (2), and (11) to (17) are equations when an AMR element is used. When a GMR element or a TMR element is used, 2α in equations (1), (2), and (11) to (17) should be changed to α.
[0057] Angle α B and αA When the difference Δα between B and A When the difference between them is small, equation (18) can be obtained from equation (17). [{(1 / V m1 )×(ΔV1 / Δα)} 2 +{(1 / V m2 ) × (ΔV2 / Δα)} 2 ] / 4≒1 ···(18)
[0058] Equation (18) is for the case where an AMR element is used. When a GMR element or a TMR element is used, the angle α B and α A When the difference Δα is small, equation (19) is obtained. [{(1 / V m1 )×(ΔV1 / Δα)} 2 +{(1 / V m2 ) × (ΔV2 / Δα)} 2 ]≒1 ···(19)
[0059] The angle calculation unit 118 calculates the angle at the previous time t A The output voltages V1 and V2 at the output terminals 111 and 112 are stored in the offset memory 115. The offsets V1off and V2off and the amplitude V m1 ,V m2 Based on the magnetic field angle α A Specifically, when AMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle α A Furthermore, when GMR elements or TMR elements are used as the MR elements R1 to R8, the angle calculation unit 118 calculates the angle α A Similarly, the angle calculation unit 118 calculates the latest time t B The output voltages V1 and V2, the offsets V1off and V2off, and the amplitude V m1 ,V m2 Based on this, the magnetic field angle α is calculated using equation (9) or equation (10). B is calculated (step S104).
[0060] Note that the previous time t AAngle α at A is the angle α from the previous angle calculation B Therefore, the previously calculated angle α B , angle α A It is also possible to use the following.
[0061] 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 during angle change satisfies the condition of equation (18) 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 during angle change satisfies the condition of equation (19) to determine whether it is a timing when accurate angle calculation is possible (step S105).
[0062] When AMR elements are used as the MR elements R1 to R8, the determination unit 117 determines the magnetic field angle α A ,α B and the amplitude V stored in the offset storage unit 115 m1 ,V m2 Based on the above, the determination unit 117 calculates the changes ΔV1 and ΔV2 in the voltages V1 and V2 using the formulas (11) and (12). m1 ,V m2 When equation (18) is satisfied for Δα and the known value, the average rate of change of the output voltages V1 and V2 in the angle change satisfies a predetermined condition, and it is determined that this is a timing at which accurate angle calculation is possible. When equation (18) is not satisfied, 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 (18) is satisfied when the left side of equation (18) is within the range of 1±β (β is a real number that defines a predetermined allowable range), and determines that equation (18) is not satisfied when it is outside the range of 1±β.
[0063] When GMR elements or TMR elements are used as the MR elements R1 to R8, the changes ΔV1 and ΔV2 in the voltages V1 and V2 may be calculated by using the formulas (11) and (12) with α substituted for 2α. The determination unit 117 compares the calculated ΔV1 and ΔV2 with the amplitude V m1 ,V m2 When equation (19) holds for Δα and the known value, the average rate of change of the output voltages V1 and V2 in the angle change satisfies a predetermined condition, and it is determined that this is a timing at which accurate angle calculation is possible. When equation (19) does not hold, the determination unit 117 determines that this is a timing at which accurate angle calculation is impossible. At this time, the determination unit 117 determines that equation (19) holds when the left side of equation (19) is within the range of 1±β, and determines that equation (19) does not hold when the left side is outside the range of 1±β.
[0064] 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 S106 in FIG. 7). 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.
[0065] 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.
[0066] 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.
[0067] Although both the methods of the determination units 116 and 117 are affected by noise, the determination by the determination unit 117 is more susceptible to noise. Also, since the accuracy of the determination by the determination unit 117 may vary depending on the sampling time, the determination by the determination unit 116 is generally more stable.
[0068] 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.
[0069] Fig. 10 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. 10, "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 "×" indicates the result of timing at which accurate angle calculation is impossible.
[0070] "a" in Fig. 10 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. 11, "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. 12. "c" in Fig. 10 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. 13, 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. 14. "e" in Figure 10 indicates a case where 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 15, "f" indicates a case where 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 16, and "g" indicates a case where the magnetic field generating unit 12 is stopped outside the angle detectable range of the MR sensor 10 as shown in Figure 17.
[0071] 10, the angle calculation unit 118 can determine whether it is a timing when 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 when accurate angle calculation is possible (YES in step S106), and sets the angle α calculated in step S104. B is adopted as the accurate value of the magnetic field angle α (FIG. 7, step S107).
[0072] 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 S108 in FIG. 7). 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 S102 to S108 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 S109 in FIG. 7).
[0073] In the above example, whether or not it is a timing at which accurate angle calculation is possible 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 at which 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 gives a determination result that angle calculation is possible and the determination unit 117 gives a determination result that angle calculation is impossible, the angle calculation unit 118 determines that it is a timing at which accurate angle calculation is possible (YES in step S106), and uses the angle α calculated in step S104. B can be adopted as the accurate value of the magnetic field angle α (step S107).
[0074] [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.
[0075] Fig. 18 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.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 19 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 measuring units 111 and 112, a memory unit 113, an offset calculation unit 114a, an offset memory unit 115, judgment units 116 and 117, an angle calculation unit 118, an opening actual measurement value generation unit 120, and a control signal generation unit 121.
[0080] The actuator 2 shown in FIG. 20 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. 20) 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. 21, the magnetic field generating unit 12 moves on a vertical plane (a plane perpendicular to the paper surface in FIG. 21) 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. 21) 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.
[0081] 22 is a flowchart for explaining the operation of the positioner 1a of this embodiment. At the time of shipping the positioner 1a from the factory, the offset calculation unit 114a calculates the amplitude V 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 offset calculation unit 114 of the first embodiment. m1 ,V m2 and offsets V1off, V2off are calculated (FIG. 22, step S200).
[0082] 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 offset calculation unit 114a reads out all pairs of output voltages (V1, V2) measured by the sensor output measuring units 111, 112 and stored in the memory unit 113, and calculates the amplitude V m1 ,V m2 The offset calculation unit 114a calculates the amplitude V m1 ,V m2 The offsets V1off and V2off are stored in the offset storage unit 115.
[0083] 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 offset calculation unit 114a calculates the amplitude V m1 ,V m2 is calculated again (FIG. 22, step S201).
[0084] Here, the offset 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 converting 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 converting unit 13, the pneumatic 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 measuring units 111, 112 and stored in the memory unit 113.
[0085] The offset 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 offset 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 must be within the angle detectable range of the MR sensor 10. m1 ,V m2 The value of is updated by the process in step S201.
[0086] Next, the processing of steps S202 to S207 during plant operation is the same as steps S102 to S107 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. 22, step S208). The opening actual value PV can be calculated based on a known relationship between the angle α and the opening actual value PV.
[0087] 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. 22, step S209). In this way, the opening of the valve 3 can be controlled. The above-mentioned processes in steps S202 to S209 are repeatedly performed, for example, until the operation of the plant is stopped (YES in step S210 in FIG. 22).
[0088] [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. 23 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.
[0089] 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. 24) of the multiple MR sensors 10-1 and 10-2 as shown in FIG. 24. In FIG. 24, 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.
[0090] 25 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 source 110, sensor output measurement units 111-1, 111-2, 112-1, and 112-2, a storage unit 113, an offset calculation unit 114b, an offset storage unit 115, determination units 116b and 117b, an angle calculation unit 118b, and a control signal generation unit 119.
[0091] 26 is a flowchart for explaining the operation of the angle detection device 1b of this embodiment. When the angle detection device 1b is shipped from the factory, the offset calculation unit 114b calculates the amplitude V m1 ,V m2 and offsets V1off, V2off are calculated, and the amplitudes V of the output voltages V1, V2 of the bridge circuits 100, 101 of the MR sensor 10-2 are calculated. m1 ,V m2 and offsets V1off, V2off are calculated (FIG. 26, step S300).
[0092] In the following description, the output voltages V1 and V2 of the bridge circuits 100 and 101 of the MR sensor 10-1 are designated as V11 and V21, and the amplitude V m1 ,V m2 V m1 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-1 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.
[0093] 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.
[0094] 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.
[0095] For example, when an instruction to execute a calculation process is given by a factory worker, the offset calculation unit 114b detects the maximum and minimum values of the output voltage V11, and calculates the difference between the maximum and minimum values divided by 2 as the amplitude V m1 1, and calculates the sum of the maximum and minimum values of the output voltage V11 divided by 2 to obtain the offset V1off1. Similarly, the offset 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 to obtain the amplitude V m2 1, and the sum of the maximum and minimum values of the output voltage V21 is divided by 2 to calculate the offset V2off1.
[0096] 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.
[0097] 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.
[0098] The offset calculation unit 114b calculates the amplitude V m1 2,V m2 2 and offsets V1off2, V2off2 are calculated. The amplitude V calculated by the offset calculation unit 114b m1 1,V m1 2,V m2 1,V m2 2 and the offsets V1off1, V1off2, V2off1, and V2off2 are stored in the offset storage unit 115.
[0099] 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 offset calculation unit 114b calculates the amplitude V m1 1,V m1 2,V m2 1,V m2 2 is calculated again (step S301 in FIG. 26). The process of this step S301 can be performed in the same manner as step S300. m1 1,V m1 2,V m2 1,V m2 The value of 2 is updated by the process in step S301.
[0100] Next, during plant operation after execution of setup, the sensor output measurement unit 111-1 measures the output voltage V11 of the bridge circuit 100 of the MR sensor 10-1, and the sensor output measurement unit 112-1 measures the output voltage V21 of the bridge circuit 101 of the MR sensor 10-1. The sensor output measurement unit 111-2 measures the output voltage V12 of the bridge circuit 100 of the MR sensor 10-2, and the sensor output measurement unit 112-2 measures the output voltage V22 of the bridge circuit 101 of the MR sensor 10-2 (Step S302 in FIG. 26).
[0101] The determination unit 116b of the data processing control unit 11b determines whether the timing allows accurate angle calculation by the MR sensor 10-1 by determining whether the values obtained by subtracting the offset from V11 and V21 measured in step S302 and dividing the result by the amplitude satisfy a predetermined geometric relationship. The determination unit 116b also determines whether the timing allows accurate angle calculation by the MR sensor 10-2 by determining whether the values obtained by subtracting the offset from V12 and V22 measured in step S302 and dividing the result by the amplitude satisfy a predetermined geometric relationship (FIG. 26, step S303).
[0102] Specifically, the determination unit 116b first subtracts the offset V1off1 stored in the offset storage unit 115 from the output voltage V11 measured in step S302, and calculates the result of the subtraction as the amplitude V m1 Similarly, the determination unit 116b subtracts the offset V2off1 stored in the offset storage unit 115 from the output voltage V21 measured in step S302, and calculates the result of the subtraction as the amplitude V m2 Divide by 1.
[0103] The amplitude V is calculated by subtracting the offset V1off1 from the output voltage V11. m1 The value divided by 1 is V1'(=(V11-V1off1) / V m1 1) The amplitude V is calculated by subtracting the offset V2off1 from the output voltage V21. m2 The value divided by 1 is V2'(=(V21-V2off1) / V m2 If 1) is selected, then at the timing when the MR sensor 10-1 can accurately calculate the angle, the voltages V1' and V2' will be at points on the same circle 200 as in FIG.
[0104] The determination unit 116b determines that the voltages V1', V2' satisfy a predetermined geometric relationship when at least one of the formulas (4) and (5) is satisfied, and that this is a timing when the MR sensor 10-1 can accurately calculate the angle. When neither the formula (4) nor the formula (5) is satisfied, the determination unit 116 determines that this is a timing when the MR sensor 10-1 can accurately calculate the angle. When neither the formula (4) nor the formula (5) is satisfied, the determination unit 116 determines that this is a timing when the MR sensor 10-1 can accurately calculate the angle.
[0105] Similarly, the determination unit 116b subtracts the offset V1off2 stored in the offset storage unit 115 from the output voltage V12 measured in step S302, and calculates the result of the subtraction as the amplitude V m1 In addition, the determination unit 116b subtracts the offset V2off2 stored in the offset storage unit 115 from the output voltage V22 measured in step S302, and calculates the result of the subtraction as the amplitude V m2 Divide by 2.
[0106] The amplitude V is calculated by subtracting the offset V1off2 from the output voltage V12. m1 The value divided by 2 is V1'(=(V12-V1off2) / V m1 2) The amplitude V is calculated by subtracting the offset V2off2 from the output voltage V22. m2 The value divided by 2 is V2'(=(V22-V2off2) / V m2 If 2), then at the timing when the MR sensor 10-2 can accurately calculate the angle, the voltages V1' and V2' will be at points on the same circle 200 as in FIG.
[0107] The determination unit 116b determines that the voltages V1', V2' satisfy a predetermined geometric relationship when at least one of the formulas (4) and (5) is satisfied, and that this is a timing when the MR sensor 10-2 can accurately calculate the angle. When neither the formula (4) nor the formula (5) is satisfied, the determination unit 116 determines that this is a timing when the MR sensor 10-2 can accurately calculate the angle. When neither the formula (4) nor the formula (5) is satisfied, the determination unit 116 determines that this is a timing when the MR sensor 10-2 can accurately calculate the angle.
[0108] The angle calculation unit 118b calculates the angle at the previous time t AThe output voltage V1=V11, V2=V21, the offset V1off=V1off1, V2off=V2off1, and the amplitude V m1 =V m1 1,V m2 =V m2 Based on the above, the magnetic field angle α A (Step S304 in FIG. 26). The angle calculation unit 118b also calculates the latest time t B The output voltage V1=V11, V2=V21, the offset V1off=V1off1, V2off=V2off1, and the amplitude V m1 =V m1 1,V m2 =V m2 Based on the above, the magnetic field angle α B is calculated (step S304).
[0109] Similarly, the angle calculation unit 118b calculates the angle at the previous time t A The output voltage V1=V12, V2=V22, the offset V1off=V1off2, V2off=V2off2, and the amplitude V m1 =V m1 2,V m2 =V m2 2, the magnetic field angle α for the MR sensor 10-2 is A (Step S304). Furthermore, the angle calculation unit 118b calculates the latest time t B The output voltage V1=V12, V2=V22, the offset V1off=V1off2, V2off=V2off2, and the amplitude V m1 =V m1 2,V m2 =V m2 2, the magnetic field angle α for the MR sensor 10-2 is B (Step S304). As in the first and second embodiments, when AMR elements are used as the MR elements R1 to R8, formula (9) can be used, and when GMR elements or TMR elements are used as the MR elements R1 to R8, formula (10) can be used.
[0110] 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 V1 and V2 in the angle change satisfies the condition of formula (18) for each of the MR sensors 10-1 and 10-2, thereby determining whether the timing is such that accurate angle calculation is possible for each of the MR sensors 10-1 and 10-2 (step S305 in FIG. 26). 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 the angle change satisfies the condition of formula (19), thereby determining whether the timing is such that accurate angle calculation is possible for each of the MR sensors 10-1 and 10-2 (step S305).
[0111] When AMR elements are used as the MR elements R1 to R8 of the MR sensor 10-1, the determination unit 117b determines the magnetic field angle α A ,α B and the amplitude V stored in the offset storage unit 115 m1 =V m1 1,V m2 =V m2 Based on the above, the determination unit 117b calculates the changes ΔV1 and ΔV2 in the voltages V1 and V2 by using the formulas (11) and (12). m1 =V m1 1,V m2 =V m2 When the formula (18) is satisfied for Δα and the known value Δα, the average rate of change of the output voltages V11 and V21 in the angle change satisfies a predetermined condition, and the MR sensor 10-1 determines that the MR sensor 10-1 cannot accurately calculate the angle. When the formula (18) is not satisfied, the determining unit 117b determines that the MR sensor 10-1 cannot accurately calculate the angle.
[0112] When GMR elements or TMR elements are used as the MR elements R1 to R8 of the MR sensor 10-1, the magnetic field angle α A ,α Band the amplitude V stored in the offset storage unit 115 m1 =V m1 1,V m2 =V m2 Based on the above, the changes ΔV1 and ΔV2 in the voltages V1 and V2 can be calculated by using the formulas (11) and (12) where 2α is replaced by α. The determination unit 117b compares the calculated ΔV1 and ΔV2 with the amplitude V m1 =V m1 1,V m2 =V m2 When equation (19) is satisfied for Δα and the known value Δα, the average rate of change of the output voltages V11 and V21 in the change in angle satisfies a predetermined condition, and the MR sensor 10-1 determines that the MR sensor 10-1 cannot accurately calculate the angle. When equation (19) is not satisfied, the determining unit 117b determines that the MR sensor 10-1 cannot accurately calculate the angle.
[0113] Similarly, when AMR elements are used as the MR elements R1 to R8 of the MR sensor 10-2, the determination unit 117b determines the magnetic field angle α A ,α B and the amplitude V stored in the offset storage unit 115 m1 =V m1 2,V m2 =V m2 2, the determination unit 117b calculates the changes ΔV1 and ΔV2 in the voltages V1 and V2 by the formulas (11) and (12). m1 =V m1 2,V m2 =V m2 When the formula (18) is satisfied for Δα and the known value Δα, the average rate of change of the output voltages V12 and V22 in the angle change satisfies a predetermined condition, and the determination unit 117b determines that the timing is one in which the MR sensor 10-2 can accurately calculate the angle. When the formula (18) is not satisfied, the determination unit 117b determines that the timing is one in which the MR sensor 10-2 cannot accurately calculate the angle.
[0114] When GMR elements or TMR elements are used as the MR elements R1 to R8 of the MR sensor 10-2, the angle α A ,α B and the amplitude V stored in the offset storage unit 115 m1 =V m1 2,V m2 =V m2 Based on the above, the changes ΔV1 and ΔV2 in the voltages V1 and V2 can be calculated by using the formulas (11) and (12) where 2α is replaced by α. The determination unit 117b compares the calculated ΔV1 and ΔV2 with the amplitude V m1 =V m1 2,V m2 =V m2 When equation (19) is satisfied for Δα and the known value Δα, the average rate of change of the output voltages V12 and V22 in the change in angle satisfies a predetermined condition, and the MR sensor 10-2 determines that the MR sensor 10-2 cannot accurately calculate the angle. When equation (19) is not satisfied, the determining unit 117b determines that the MR sensor 10-2 cannot accurately calculate the angle.
[0115] 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 S306 in FIG. 26). 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.
[0116] When the determination unit 116b determines that accurate angle calculation is possible for both the MR sensors 10-1 and 10-2 (YES in step S306), the angle calculation unit 118b calculates the angle α B is adopted as the accurate value of the magnetic field angle α (FIG. 26, step S307).
[0117] In addition, when the determination unit 116b determines that accurate angle calculation is possible for only one of the MR sensors 10-1 and 10-2 (YES in step S308 in FIG. 26), the angle calculation unit 118b calculates the angle α B The angle α obtained by the MR sensor that is judged to be capable of accurate angle calculation is B is adopted as the accurate value of the magnetic field angle α (FIG. 26, step S309). 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.
[0118] 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. 26, step S310). 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.
[0119] The above-mentioned processes of steps S302 to S310 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 S311 in FIG. 26).
[0120] 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.
[0121] 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.
[0122] In this case, when the determination unit 116b determines that the angle can be calculated for both the MR sensors 10-1 and 10-2 and the determination unit 117b determines that the angle cannot be calculated for both the MR sensors 10-1 and 10-2 (YES in step S306), the angle calculation unit 118b calculates the angle α B As the accurate value of the magnetic field angle α (step S307), when the determination unit 116b determines that the angle can be calculated for only one of the MR sensors 10-1 and 10-2 and the determination unit 117b determines that the angle cannot be calculated for the MR sensor for which the determination unit 116b determines that the angle can be calculated (YES in step S308), the angle calculation unit 118b uses the angle α obtained by the MR sensor determined by the determination unit 116b to be capable of angle calculation. B can be adopted as the accurate value of the magnetic field angle α (step S309).
[0123] In this embodiment, when accurate angle calculation is possible for both the MR sensors 10-1 and 10-2, the magnetic field angle α B is obtained, whereas the angle α B is finally adopted as the magnetic field angle α, or the angle α obtained by the MR sensor 10-2 is B is finally adopted as the magnetic field angle α, or the angle α obtained by both the MR sensors 10-1 and 10-2 is B The calculation of the final angle α on the basis of the above depends on the application.
[0124] For example, in order to improve the measurement accuracy, when the magnetic field generating unit 12 is close to the MR sensor 10-1, the angle α obtained by the MR sensor 10-1 is B is used as the angle α of the magnetic field, and when the magnetic field generating unit 12 is close to the MR sensor 10-2, the angle α obtained by the MR sensor 10-2 is B is used as the angle α of the magnetic field, the angle α B The angle calculation unit 118b calculates the angle α B is in the angle range specified for the MR sensor 10-1, the angle α obtained by the MR sensor 10-1 is B is finally adopted as the angle α of the magnetic field, and the angle α obtained by the MR sensor 10-2 is B is in the angle range specified for the MR sensor 10-2, the angle α obtained by the MR sensor 10-2 is B is finally adopted as the magnetic field angle α.
[0125] In addition, the angle α obtained by both the MR sensors 10-1 and 10-2 B When the final angle α is calculated based on the above, the value of the angle α may be calculated based on a predetermined rule.
[0126] [Fourth Example] Next, a fourth embodiment of the present invention will be described. Fig. 27 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.
[0127] 28 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 memory unit 113, an offset calculation unit 114c, an offset memory unit 115, judgment units 116b and 117b, an angle calculation unit 118b, an opening actual measurement value generation unit 120c, and a control signal generation unit 121.
[0128] When the magnetic field generating unit 12 is attached to the feedback lever 32 of the positioner 1c as shown in Fig. 29, the magnetic field generating unit 12 moves on a vertical plane (a plane perpendicular to the paper surface in Fig. 29) 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. 29) 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.
[0129] 30 is a flowchart for explaining the operation of the positioner 1c of this embodiment. At the time of shipment of the positioner 1c from the factory, the offset calculation unit 114c calculates the amplitude V 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 offset calculation unit 114a of the second embodiment and the offset calculation unit 114b of the third embodiment. m1 =V m1 1,V m2 =V m2 1 and offsets V1off=V1off1, V2off=V2off1 are calculated, and the amplitudes V12, V22 of the output voltages V12, V22 of the bridge circuits 100, 101 of the MR sensor 10-2 are calculated. m1 =V m1 2,V m2 =V m2 2 and the offsets V1off=V1off2, V2off=V2off2 are calculated (FIG. 30, step S400).
[0130] 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 offset 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 offset calculation units 114a and 114b. m1 1,V m1 2,V m2 1,V m2 2 is calculated again (Step S401 in FIG. 30).
[0131] Next, the processing of steps S402 to S409 during plant operation is the same as steps S302 to S309 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. 30, step S208). The opening actual value PV can be calculated based on a known relationship between the angle α and the opening actual value PV.
[0132] 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. 30, step S411). In this way, the opening of the valve 3 can be controlled. The above-mentioned processes of steps S402 to S411 are repeatedly performed, for example, until the operation of the plant is stopped (YES in step S412 in FIG. 30).
[0133] As described in the third embodiment, when both the MR sensors 10-1 and 10-2 are capable of accurate angle calculation, the angle α obtained by the MR sensor 10-1 is B is finally adopted as the magnetic field angle α, or the angle α obtained by the MR sensor 10-2 is B is finally adopted as the magnetic field angle α, or the angle α obtained by both the MR sensors 10-1 and 10-2 is B The calculation of the final angle α based on the above depends on the positioner to be applied.
[0134] Although the number of MR sensors is two in the third and fourth embodiments, the number of MR sensors may be three or more.
[0135] [Fifth Example] In the first to fourth embodiments, whether or not the voltages V1', V2' satisfy the predetermined geometrical relationship is determined by the formulas (4) and (5), but it may be determined by another method.
[0136] As described above, in the first and second embodiments, V1'=(V1-V1off) / V m1 On the x-axis (horizontal axis), V2'=(V2-V2off) / V m2 If voltages V1' and V2' are plotted on an xy plane with the y-axis (vertical axis) taken as the voltage V1', V2', at the timing when the MR sensor 10 can accurately calculate the angle, voltages V1', V2' will be points on a circle 200 whose center is (0,0) and whose diameter is 2, as shown in Figure 31.
[0137] Let A be a vector that starts at point (1,0) and ends at point (V1',V2'), B be a vector that starts at point (-1,0) and ends at point (V1',V2'), C be a vector that starts at point (0,-1) and ends at point (V1',V2'), and D be a vector that starts at point (0,1) and ends at point (V1',V2'). Then, vectors A, B, C, and D are defined as shown in equations (20) to (23).
[0138]
number
[0139] The determination unit 116 in the first and second embodiments determines that the voltages V1', V2' satisfy a predetermined geometric relationship and that it is a timing at which an accurate angle can be calculated when at least one of the conditions that the dot product of vector A and vector B is 0 and the dot product of vector C and vector D is 0 is satisfied. The condition that the dot product of vector A and vector B is 0 can be expressed by equation (24). The condition that the dot product of vector C and vector D is 0 can be expressed by equation (25).
[0140]
number
[0141] When neither the condition that the dot product of vector A and vector B is 0 nor the condition that the dot product of vector C and vector D is 0 is satisfied, the determination unit 116 determines that this is the timing at which accurate angle calculation is not possible.
[0142] The relationship in FIG. 31 can be applied to the third and fourth embodiments. The amplitude V m1 The value divided by 1 is V1'(=(V11-V1off1) / V m1 1) The amplitude V is calculated by subtracting the offset V2off1 from the output voltage V21. m2 The value divided by 1 is V2'(=(V21-V2off1) / V m2 If 1), then at the timing when the MR sensor 10-1 can perform accurate angle calculation, the voltages V1' and V2' will be at points on the same circle 200 as in FIG.
[0143] The condition that the inner product of vector A and vector B is 0 is expressed as V1 = V11, V1off = V1off1, and V m1 =V m1 1, V2=V21, V2off=V2off1, V m2 =V m2 The condition that the inner product of vector C and vector D is 0 is V1 = V11, V1off = V1off1, V m1 =V m1 1, V2=V21, V2off=V2off1, V m2 =V m2 The formula is 1.
[0144] The determination unit 116b in the third and fourth embodiments determines that the voltages V1', V2' satisfy a predetermined geometric relationship and that the timing is a time when the MR sensor 10-1 can accurately calculate an angle when at least one of the conditions that the inner product of vector A and vector B calculated from the output voltages V11, V21 is 0 and that the inner product of vector C and vector D calculated from the output voltages V11, V21 is 0 is satisfied. In addition, the determination unit 116 determines that the timing is a time when the MR sensor 10-1 cannot accurately calculate an angle when neither the condition that the inner product of vector A and vector B calculated from the output voltages V11, V21 is 0 nor the condition that the inner product of vector C and vector D calculated from the output voltages V11, V21 is 0 is satisfied.
[0145] Similarly, the amplitude V is obtained by subtracting the offset V1off2 from the output voltage V12. m1 The value divided by 2 is V1'(=(V12-V1off2) / V m1 2) The amplitude V is calculated by subtracting the offset V2off2 from the output voltage V22. m2 The value divided by 2 is V2'(=(V22-V2off2) / V m2 If 2), then at the timing when the MR sensor 10-2 can accurately calculate the angle, the voltages V1' and V2' will be at points on the same circle 200 as in FIG.
[0146] The condition that the dot product of vector A and vector B is 0 is expressed as V1 = V12, V1off = V1off2, and V m1 =V m1 2, V2=V22, V2off=V2off2, V m2 =V m2 The condition that the inner product of vector C and vector D is 0 is V1 = V12, V1off = V1off2, V m1 =V m1 2, V2=V22, V2off=V2off2, V m2 =V m2 The formula is 2.
[0147] The determination unit 116b determines that the voltages V1', V2' satisfy a predetermined geometric relationship and that the timing is a time when the MR sensor 10-2 can accurately calculate an angle when at least one of the conditions that the inner product of vector A and vector B calculated from the output voltages V12, V22 is 0 and that the inner product of vector C and vector D calculated from the output voltages V12, V22 is 0 is satisfied. In addition, the determination unit 116 determines that the timing is a time when the MR sensor 10-2 cannot accurately calculate an angle when neither the condition that the inner product of vector A and vector B calculated from the output voltages V12, V22 is 0 nor the condition that the inner product of vector C and vector D calculated from the output voltages V12, V22 is 0 is satisfied is satisfied. In this manner, this embodiment can be applied to the first to fourth embodiments.
[0148] The storage unit 113, the offset calculation units 114, 114a to 114c, the offset storage unit 115, 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 fifth 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.
[0149] 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 fifth embodiments in accordance with the program stored in the storage device 301. [Industrial Applicability]
[0150] The present invention can be applied to an angle detection device that uses an MR sensor. [Explanation of symbols]
[0151] 1, 1b...angle detection device, 1a, 1c...positioner, 2...operator, 3...valve, 4...host device, 10, 10-1, 10-2...MR sensor, 11, 11a to 11c...data processing control unit, 12...magnetic field generating unit, 13...electrical-pneumatic converting unit, 14...pneumatic amplifier, 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, 114b...offset calculation unit, 115...offset memory unit, 116, 116b, 117, 117b...judgment unit, 118, 118b...angle calculation unit, 119, 121...control signal generating unit, 120, 120c...actual opening value generating 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; an angle calculation unit configured to calculate an angle of a magnetic field applied to the MR sensor from an external magnetic field generation unit based on the output voltages of the first and second bridge circuits measured by the sensor output measurement unit; a first determination unit configured to determine whether a value obtained by subtracting a known offset from an output voltage of the first and second bridge circuits and dividing the result 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, 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 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 subtracting a known offset from an output voltage of the first and second bridge circuits and dividing the result 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 to adopt the value calculated for each of the multiple MR sensors as an accurate value of the magnetic field angle based on the result obtained from the first judgment unit.
3. 2. The angle detection device according to claim 1, a second determination unit configured to determine whether an average rate of change in output voltage of the first and second bridge circuits in response to an angular change in the magnetic field 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, 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 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 subtracting a known offset from an output voltage of the first and second bridge circuits and dividing the result 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 output voltages of the first and second bridge circuits in response to an angular change of the magnetic field satisfies a predetermined condition, 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 to adopt the value calculated for each of the multiple MR sensors as an accurate value of the magnetic field angle based on the results obtained from the first and second judgment units.
5. 5. The angle detection device according to claim 1, The first determination unit determines the output voltage of the first bridge circuit as V 1 , the output voltage of the second bridge circuit is V 2 , the output voltage V 1 Let the known offset of V 1 off, the output voltage V 2 Let the known offset of V 2 off, the output voltage V 1 Let the known amplitude of V m1 , the output voltage V 2 Let the known amplitude of V m2 Let the point ((V 1 -V 1 off) / V m1 , (V 2 -V 2 off) / V m2 In a triangle with vertices (-1,0), (-1,0), and (1,0), the interior angle of the vertex (-1,0) is A, the interior angle of the vertex (1,0) is B, and the point ((V 1 -V 1 off) / V m1 , (V 2 -V 2 off) / V m2 In a triangle having vertices at points (0,1), (0,2), and (0,-1), when the interior angle of the vertex (0,1) is C and the interior angle of the vertex (0,-1) is D, the angle detection device determines that the timing is such that the MR sensor can perform accurate angle calculation when at least one of the conditions arcsinA+arcsinB=90° and arcsinC+arcsinD=90° is satisfied.
6. 5. The angle detection device according to claim 1, The first determination unit determines the output voltage of the first bridge circuit as V 1 , the output voltage of the second bridge circuit is V 2 , the output voltage V 1 Let the known offset of V 1 off, the output voltage V 2 Let the known offset of V 2 off, the output voltage V 1 Let the known amplitude of V m1 , the output voltage V 2 Let the known amplitude of V m2 Let the point (1,0) be the starting point and the point ((V 1 -V 1 off) / V m1 , (V 2 -V 2 off) / V m2 A is a vector whose end point is point (-1,0) and whose start point is point ((V 1 -V 1 off) / V m1 , (V 2 -V 2 off) / V m2 ) as its end point, and B as its start point and point ((V 1 -V 1 off) / V m1 , (V 2 -V 2 off) / V m2 Let C be the vector whose end point is point (0,1) and whose start point is point ((V 1 -V 1 off) / V m1 , (V 2 -V 2 off) / V m2 ) is a vector D, and when at least one of the conditions that the dot product of vector A and vector B is 0 and the dot product of vector C and vector D is 0 is satisfied, it is determined that this is the timing when an accurate angle can be calculated by the MR sensor.
7. 5. The angle detection device according to claim 3, the first to eighth magnetoresistance effect elements are AMR elements, The second determination unit determines the output voltage of the first bridge circuit as V 1 , the output voltage of the second bridge circuit is V 2 , the output voltage V 1 Let the known amplitude of V m1 , the output voltage V 2 Let the known amplitude of V m2 When the angle calculation unit outputs the output voltage V 1 , V 2 The magnetic field angle α calculated based on B and the angle calculation unit calculates the output voltage V 1 , V 2 The magnetic field angle α calculated based on A Therefore, the output voltage V 1 , V 2 Change in ΔV 1 , ΔV 2 ΔV 1 = V m1 cos2α B -V m1 cos2α A , ΔV 2 = V m2 sin2α B -V m2 sin2α A Calculate the calculated ΔV 1 , ΔV 2 and the amplitude V m1 , V m2 and the angle α B and α A and the difference Δα between [{(1 / V m1 ) × (ΔV 1 / Δα) 2 + {(1 / V m2 ) × (ΔV 2 / Δα) 2 ] / 4≈1 is satisfied, it is determined that this is the timing at which accurate angle calculation is possible by the MR sensor.
8. 5. The angle detection device according to claim 3, the first to eighth magnetoresistance effect elements are GMR elements or TMR elements, The second determination unit determines the output voltage of the first bridge circuit as V 1 , the output voltage of the second bridge circuit is V 2 , the output voltage V 1 Let the known amplitude of V m1 , the output voltage V 2 Let the known amplitude of V m2 When the angle calculation unit outputs the output voltage V 1 , V 2 The magnetic field angle α calculated based on B and the angle calculation unit calculates the output voltage V 1 , V 2 The magnetic field angle α calculated based on A Therefore, the output voltage V 1 , V 2 Change in ΔV 1 , ΔV 2 ΔV 1 = V m1 cosα B -V m1 cosα A , ΔV 2 = V m2 sin α B -V m2 sin α A Calculate the calculated ΔV 1 , ΔV 2 and the amplitude V m1 , V m2 and the angle α B and α A and the difference Δα between [{(1 / V m1 ) × (ΔV 1 / Δα) 2 + {(1 / V m2 ) × (ΔV 2 / Δα) 2 ]≈1 is satisfied, it is determined that this is the timing at which accurate angle calculation is possible by the MR sensor.
9. An angle detection device according to any one of claims 1 to 4, 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
