Method and device for detecting positional change amount due to movement of moving body
11378604 · 2022-07-05
Assignee
Inventors
Cpc classification
International classification
Abstract
The present invention provides a method for detecting a positional change amount due to a movement of a moving body by reading, with a sensor, a plurality of gradations disposed along the direction of the movement. The method includes: a step for taking, as one period, one gradation among the plurality of gradations and acquiring a pseudo sinusoidal signal in response to the positional change amount; a step for executing a Fourier transform on the pseudo sinusoidal signal within the range of at least one gradation, and calculating, from the spectral intensity of each frequency component obtained by the Fourier transform, the signal intensity of a fundamental wave component and the signal intensity of at least one harmonic component; a step for calculating a gain corresponding to each of the at least one harmonic component by dividing each signal intensity of the at least one harmonic component by the signal intensity of the fundamental wave component; and a step for detecting the positional change amount by subtracting, from the pseudo sinusoidal signal, each harmonic component multiplied by a corresponding gain.
Claims
1. A method of detecting a positional change amount due to a movement of a moving body by reading, with a sensor, a plurality of gradations disposed along the direction of the movement, the method comprising: a) a step of acquiring from the sensor a pseudo sine wave signal depending to the positional change amount, wherein the pseudo sine wave signal is set such that the amount of one graduation of the plurality of graduations is one cycle; b) a step of performing Fourier transform to the pseudo sine wave signal in the range of at least one graduation, and from a spectrum intensity of each frequency component obtained by the Fourier transform, calculating a signal intensity of a fundamental wave component and a signal intensity of at least one harmonic component; c) a step of calculating a gain corresponding to each of the at least one harmonic component by dividing the signal intensity of each of the at least one harmonic component by the signal intensity of the fundamental component; and d) a step of detecting the positional change amount by subtracting from the pseudo sine wave signal each harmonic component multiplied by the corresponding gain, wherein: the step b) is a step of performing the Fourier transform, respectively, to the pseudo sine wave signal in the range of each one graduation, and calculating the signal intensity of the fundamental wave component and the signal intensity of the at least one harmonic component in the range of each one graduation; the step c) is a step of calculating the gain corresponding to each of the at least one harmonic component in the range of each one graduation; and the step d) is a step of detecting the positional change amount in the range of each one graduation by subtracting from the pseudo sine wave signal each harmonic component multiplied by the corresponding gain in the range of each one graduation; or wherein: the step b) is a step of performing the Fourier transform to the pseudo sine wave signal in the range of at least one graduation predetermined, and calculating the signal intensity of the fundamental wave component and the signal intensity of the at least one harmonic component in the range of the at least one graduation predetermined; the step c) is a step of calculating the gain corresponding to each of the at least one harmonic component in the range of the at least one graduation predetermined, wherein each gain in the range of the at least one graduation predetermined is set as each gain in all of the range of the plurality of graduations; and the step d) is a step of detecting the positional change amount in all of the range of the plurality of graduations by subtracting from the pseudo sine wave signal each harmonic component multiplied by the corresponding gain in the range of the at least one graduation predetermined.
2. The method according to claim 1, wherein the step d) comprising: d1) a step of setting, for each harmonic component, a plurality of provisional phase differences with respect to the fundamental wave component, being an ideal sine wave signal, which is set such that one of the plurality of graduations is the origin and the amount of one graduation is one cycle; d2) a step of calculating a provisional positional change amount by subtracting from the pseudo sine wave signal each harmonic component, including one of the plurality of provisional phase differences, multiplied by the corresponding gain; d3) a step of calculating an ideal positional change amount of the ideal sine wave signal; d4) a step of calculating a positional error by subtracting from the provisional positional change amount the ideal positional change amount; d5) a step of calculating a positional error amplitude in each provisional phase difference by extracting a maximum positional error that is the maximum and a minimum positional error that is the minimum among the positional errors and subtracting from the maximum positional error the minimum positional error; d6) a step of determining as a true phase difference a provisional phase difference having the smallest positional error amplitude among the respective positional error amplitudes calculated for the plurality of provisional phase differences; and d7) a step of detecting the positional change amount by subtracting from the pseudo sine wave signal each harmonic component, including the true phase difference, multiplied by the corresponding gain.
3. The method according to claim 2, wherein the steps d2) to d7) are performed in the range of each one graduation of the plurality of graduations.
4. The method according to claim 2, wherein the steps d2) to d6) are performed in the range of at least one graduation of the plurality of graduations, and the step d7) are performed with the true phase difference determined based on the steps d2) to d6) set as a true phase difference in all of the range of the plurality of graduations.
5. The method according to claim 2, wherein the steps d2) to d7) are sequentially repeated from a harmonic component with a smaller order of the at least one harmonic component.
6. The method according to claim 2, wherein the steps d2) to d7) are sequentially repeated from a harmonic component with a higher gain of the at least one harmonic component.
7. The method according to claim 2, wherein the plurality of provisional phase differences are a group of phase differences that increase at arbitrary intervals in the range of the one cycle.
8. The method according to claim 1, wherein the pseudo sine wave signal includes two pseudo sine wave signals that are 90° out of phase with each other, and the step d) is a step of detecting the positional change amount by subtracting from each of the two pseudo sine wave signals each harmonic component multiplied by the corresponding gain and performing arctangent operation to one obtained by dividing one pseudo sine wave signal having a phase delayed by 90° of the two subtracted pseudo sine wave signals by the other pseudo sine wave signal.
9. The method according to claim 1, wherein the step d) is a step of detecting the positional change amount by extracting a gain of a preset magnitude or more from the calculated gain and subtracting from the pseudo sine wave signal the harmonic component multiplied by the corresponding gain of the preset magnitude or more.
10. A positional detecting device comprising a moving body, a graduation scale having a plurality of graduations disposed along the direction of a movement of the moving body, a sensor of outputting a pseudo sine wave signal depending to the positional change amount due to the movement of the moving body, wherein the pseudo sine wave signal is set such that the amount of one graduation of the plurality of graduations is one cycle, and a control unit connected to the sensor and comprising a signal processing unit and a storage unit; wherein the signal processing unit is configured to: perform Fourier transform, respectively, to the pseudo sine wave signal in the range of each one graduation, and from a spectrum intensity of each frequency component obtained by the Fourier transform, calculate a signal intensity of a fundamental wave component and a signal intensity of at least one harmonic component in the range of each one graduation; calculate a gain corresponding to each of the at least one harmonic component in the range of each one graduation by dividing the signal intensity of each of the at least one harmonic component by the signal intensity of the fundamental component; and detect the positional change amount in the range of each one graduation by subtracting from the pseudo sine wave signal each harmonic component multiplied by the corresponding gain in the range of each one graduation.
11. The positional detecting device according to claim 10, wherein the signal processing unit is further configured to: read, for each harmonic component, from the storage unit a plurality of provisional phase differences set with respect to the fundamental wave component, being an ideal sine wave signal, which is set such that one of the plurality of graduations is the origin and the amount of one graduation is one cycle; calculate a provisional positional change amount by subtracting from the pseudo sine wave signal each harmonic component, including one of the plurality of provisional phase differences, multiplied by the corresponding gain; read from the storage unit an ideal positional change amount of the ideal sine wave signal; calculate a positional error by subtracting from the provisional positional change amount the ideal positional change amount; calculate a positional error amplitude in each provisional phase difference by extracting a maximum positional error that is the maximum and a minimum positional error that is the minimum among the positional errors and subtracting from the maximum positional error the minimum positional error; determine as a true phase difference a provisional phase difference having the smallest positional error amplitude among the respective positional error amplitudes calculated for the plurality of provisional phase differences; and detect the positional change amount by subtracting from the pseudo sine wave signal each harmonic component, including the true phase difference, multiplied by the corresponding gain.
12. The positional detecting device according to claim 10, wherein the positional detecting device is an encoder, a resolver, or an inductosyn.
13. A positional detecting device comprising a moving body, a graduation scale having a plurality of graduations disposed along the direction of a movement of the moving body, a sensor of outputting a pseudo sine wave signal depending to the positional change amount due to the movement of the moving body, wherein the pseudo sine wave signal is set such that the amount of one graduation of the plurality of graduations is one cycle, and a control unit connected to the sensor and comprising a signal processing unit and a storage unit; wherein the signal processing unit is configured to: perform Fourier transform to the pseudo sine wave signal in the range of at least one graduation predetermined, and from a spectrum intensity of each frequency component obtained by the Fourier transform, calculate a signal intensity of a fundamental wave component and a signal intensity of at least one harmonic component in the range of the at least one graduation predetermined; calculate a gain corresponding to each of the at least one harmonic component in the range of the at least one graduation predetermined by dividing the signal intensity of each of the at least one harmonic component by the signal intensity of the fundamental component, wherein each gain in the range of the at least one graduation predetermined is set as each gain in all of the range of the plurality of graduations; and detect the positional change amount in all of the range of the plurality of graduations by subtracting from the pseudo sine wave signal each harmonic component multiplied by the corresponding gain in the range of the at least one graduation predetermined.
14. The positional detecting device according to claim 13, wherein the signal processing unit is further configured to: read, for each harmonic component, from the storage unit a plurality of provisional phase differences set with respect to the fundamental wave component, being an ideal sine wave signal, which is set such that one of the plurality of graduations is the origin and the amount of one graduation is one cycle; calculate a provisional positional change amount by subtracting from the pseudo sine wave signal each harmonic component, including one of the plurality of provisional phase differences, multiplied by the corresponding gain; read from the storage unit an ideal positional change amount of the ideal sine wave signal; calculate a positional error by subtracting from the provisional positional change amount the ideal positional change amount; calculate a positional error amplitude in each provisional phase difference by extracting a maximum positional error that is the maximum and a minimum positional error that is the minimum among the positional errors and subtracting from the maximum positional error the minimum positional error; determine as a true phase difference a provisional phase difference having the smallest positional error amplitude among the respective positional error amplitudes calculated for the plurality of provisional phase differences; and detect the positional change amount by subtracting from the pseudo sine wave signal each harmonic component, including the true phase difference, multiplied by the corresponding gain.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
DESCRIPTION OF EMBODIMENTS
(19) Embodiments according to the present invention will be described with reference to the drawings. However, the present invention is not limited to those embodiments.
(20)
(21) Generally, when a relative movement with respect to the graduation scale 102 occurs, the sensor 201 can output the pseudo sine wave signals 204 whose amplitudes change in accordance with the positional change set such that one graduation of the plurality of graduations 103 is one cycle, based on the graduation 103 and the interval 104 of one graduation which are read. Moreover, the control unit 202 can convert the pseudo sine wave signals 204 output from the sensor 201 and the graduation detecting number M counted up to a certain time into the positional change amount X.sub.p of the moving body 105. As shown in
(22)
(23) Herein, θ.sup.(0)=tan.sup.−1(B.sup.(0)/A.sup.(0)) is numerically processed so as to fall within the range of 0 to 2π. Moreover, the graduation detecting number M can be detected by processing such as increasing or decreasing the count value at the timing when θ.sup.(0)=tan.sup.−1(B.sup.(0)/A.sup.(0)) exceeds the boundary between 0 and 2π, and the method thereof is not limited. When the graduation scale 102 and the sensor 201 perform the rotational movements as shown in
(24) However, an error occurs between this calculated provisional positional change amount X.sub.p.sup.(0) and an ideal positional change amount X.sub.pideal of the moving body 105 that should be obtained by the positional detecting device 101 (ideally, X.sub.p=X.sub.pideal is better). When the moving body 105 of
(25)
(26) Herein, a.sub.k and b.sub.k are gains of the harmonic components of the order k when the amplitudes of the first-order fundamental wave components set such that one graduation is one cycle is 1, and φa.sub.k and φb.sub.k are the phase differences between the harmonic components of order k and the fundamental components. In addition, generally, a.sub.k, b.sub.k, φa.sub.k, and φb.sub.k do not change with different graduations 103, or have small differences even if they change.
(27) In order to remove the distortions of the harmonic components having the integer order k due to the sensor 201, the control unit 202 includes the signal processing unit 203 capable of executing a processing of a flowchart shown in
(28) When the processing shown in the flowchart of
(29) In STEP 104, the signal intensities of the fundamental wave components and the signal intensities of the harmonic wave components are calculated by the spectrum intensity according to the Fourier transform performed in STEP 103.
(30) In STEP 105, using this spectrum intensity, as shown in TABLE 1, by dividing the signal intensities Ea.sub.k and Eb.sub.k of the harmonic components of each order k included in the pseudo sine wave signals 204 by the signal intensities Ea.sub.1 and Eb.sub.1 of the fundamental wave components (of the order 1), respectively, the gains a.sub.k and b.sub.k corresponding to the harmonic components of each order k included in the pseudo sine wave signals 204 are calculated.
(31) TABLE-US-00001 TABLE 1 order k A-phase B-phase 2 a.sub.2 Ea.sub.2/Ea.sub.1 b.sub.2 Eb.sub.2/Eb.sub.1 3 a.sub.3 Ea.sub.3/Ea.sub.1 b.sub.3 Eb.sub.3/Eb.sub.1 4 a.sub.4 Ea.sub.4/Ea.sub.1 b.sub.4 Eb.sub.4/Eb.sub.1 . . . . . . . . .
(32) When the Fourier transform is performed to the pseudo sine wave signals 204 in the range of each one graduation of the plurality of graduations 103, the gains of each graduation 103 are calculated. When the Fourier transform is performed to the pseudo sine wave signals 204 in the range of the at least one graduation of the plurality of graduations 103, the gains calculated in this range are made gains in all of the range of the plurality of graduations 103 including the graduations not measured. In addition, when two pseudo sine wave signals 204 being out of phase with each other are output as shown in
(33) In STEP 106, the order k of the distortions of the harmonic components to be removed may be determined, and the number of removal times N, which is the number of the orders k, may be determined. For example, the distortions of the harmonic components having the gains a.sub.k and b.sub.k of a preset magnitude or more of the gains calculated in STEP 105 are determined as the order k of the distortions of the harmonic components to be removed. By determining the order k of the distortions of the harmonic components to be removed in this way, the distortions of the harmonic components can be removed from the pseudo sine wave signals 204 with high efficiency. For example, in the case of the spectrum intensity shown in
(34) Next, in STEPS 107 and 108, a plurality of provisional phase differences with respect to the fundamental wave components set such that the amount of one graduation of the plurality of graduations 103 is one cycle and one graduation of the plurality of graduations 103 is the origin are set for each harmonic component. The fundamental wave components correspond to ideal sine wave signals which do not include the harmonic components in the pseudo sine wave signals 204 output by the sensor 201. In the case of two pseudo sine wave signals 204 (A-phase signal (A.sup.(0)) and B-phase signal (B.sup.(0))) being 90° out of phase with each other as shown in
(35) TABLE-US-00002 TABLE 2 No φa.sub.i φb.sub.j 1 −π −π 2 −π/2 3 0 4 π/2 5 −π/2 −π 6 −π/2 7 0 8 π/2 9 0 −π 10 −π/2 11 0 12 π/2 13 π/2 −π 14 −π/2 15 0 16 π/2
(36) In addition, while the processing of the flowchart shown in
(37) In STEP 109, the provisional phase difference selected in STEPS 107 and 108 is used so as to calculate a positional change amount X.sub.p.sup.(L).sub.ij (or θ.sup.(L).sub.ij) of the moving body 105 by subtracting each harmonic component multiplied by the corresponding gain as follows.
(38)
(39) Herein, L=1 to N. A.sup.(L-1) and B.sup.(L-1) are two pseudo sine wave signals 204 from which the distortions of the harmonic components up to one order before the order k currently to be calculated are removed, and A.sup.(L) and B.sup.(L) are two pseudo sine wave signals 204, including the provisional phase differences φa.sub.i and φb.sub.j, from which the distortions of the harmonic components up to the order k currently to be calculated are removed. By using the two pseudo sine wave signals 204 from which the distortions of the harmonic components up to the order k are removed so as to perform the arctangent operation, the provisional positional change amount X.sub.p.sup.(L).sub.ij (or θ.sup.(L).sub.ij) of the moving body 105 is calculated. For example, in the case where the distortions of the third-order and fifth-order harmonic components as in the spectrum intensity of
(40)
(41) Herein, A.sup.(0), B.sup.(0), and θ.sup.(0) are those before distortion removal by the pseudo sine wave signals 204 measured by the sensor 201 as described above.
(42) In STEP 110, first, the ideal positional change amount X.sub.pideal of the ideal sine wave signals is calculated. It is desirable that the calculated positional change amount X.sub.p ideally matches the ideal positional change amount X.sub.pideal, or the error between them is minimized. In addition, the ideal positional change amount X.sub.pideal is calculated from X.Math.(M+θ.sub.ideal/2π), and θ.sub.ideal is a value when the A-phase signal and the B-phase signal are ideal sine wave signals. Next, the positional error ΔX.sub.p.sup.(L).sub.ij (or δ.sup.(L).sub.ij) is calculated by subtracting from the provisional positional change amount X.sub.p.sup.(L).sub.ij (or θ.sup.(L).sub.ij) calculated in STEP 109 the ideal positional change amount X.sub.pideal (or θ.sub.ideal).
(43)
(44) In addition, the ideal positional change amount X.sub.pideal (or θ.sub.ideal) may be calculated each time the positional error ΔX.sub.p.sup.(L).sub.ij (or δ.sup.(L).sub.ij) is calculated. Moreover, before the execution of the processing of the flowchart shown in
(45) In STEP 111, by extracting a maximum positional error ΔX.sub.p.sup.(L).sub.ijmax (or δ.sup.(L).sub.ijmax) that is the maximum and a minimum positional error ΔX.sub.p.sup.(L).sub.ijmin (or δ.sup.(L).sub.ijmin) that is the minimum among the positional errors ΔX.sub.p.sup.(L).sub.ijmax (or δ.sup.(L).sub.ijmax) in one cycle and subtracting from the maximum positional error ΔX.sub.p.sup.(L).sub.ijmax (or δ.sup.(L).sub.ijmax) the minimum positional error ΔX.sub.p.sup.(L).sub.ijmin (or δ.sup.(L).sub.ijmin) as follows, the positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) for the provisional phase differences φa.sub.i and φb.sub.j are calculated, respectively.
(46)
(47) For example, as shown in
(48) In STEP 112, it is determined whether or not the calculation of the positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) for all of the n provisional phase differences φb.sub.j of the B-phase signal is completed. If it is not completed, the provisional phase difference φb.sub.j is changed after returning to STEP 108 so as to repeat STEPS 109 to 112. If the calculation of the positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) for all of the n provisional phase differences φb.sub.j is completed, in STEP 113, it is determined whether or not the calculation of the positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) for all of the m provisional phase differences φa.sub.j of the A-phase signal is completed. If it is not completed, the provisional phase difference φa.sub.i is changed after returning to STEP 107 so as to repeat STEPS 108 to 113. For example, the positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) are calculated for each of the 16 combination conditions of the provisional phase differences φa.sub.i and φb.sub.j set as shown in TABLE 2.
(49) In STEP 114, the provisional phase differences φa.sub.i and φb.sub.j having the smallest positional error amplitude AΔX.sub.p.sup.(L).sub.min (or Aδ.sup.(L).sub.min) of the respective positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) calculated based on the plurality of provisional phase differences are determined as the true phase differences φa.sub.k and φb.sub.k due to the distortions of the corresponding harmonic components of the order k. For example, the positional error amplitudes AΔX.sub.p.sup.(L).sub.ij (or Aδ.sup.(L).sub.ij) corresponding to the 16 combination conditions of the provisional phase differences φa.sub.i and φb.sub.j of the A-phase signal and the B-phase signal in TABLE 2 are shown in
(50) In STEP 115, by using the gains a.sub.k and b.sub.k calculated in STEP 105 and the true phase differences φa.sub.k and φb.sub.k determined in STEP 114 so as to subtract the harmonic components of the order k, including the true phase differences φa.sub.k and φb.sub.k, multiplied by the corresponding gains a.sub.k and b.sub.k as follows, the positional change amount X.sub.p.sup.(L) (or θ.sup.(L)) in which the distortions of the harmonic components of the order k are removed is calculated.
(51)
(52) A.sup.(L) and B.sup.(L) are the two pseudo sine wave signals 204 from which the distortions of the harmonic components up to the order k currently to be calculated, including the true phase differences φa.sub.k and φb.sub.k, are removed. By performing the arctangent operation using the two pseudo sine wave signals 204 from which the distortions of the harmonic components up to the order k are removed, the positional change amount X.sub.p.sup.(L) (or θ.sup.(L)) of the moving body 105 is calculated. For example, in the case of removing the particularly remarkable distortions of the third-order and fifth-order harmonic components with the spectral intensity of
(53)
(54) In STEP 116, it is determined whether or not the subtraction from the pseudo sine wave signals 204 for all of the orders k of the distortions of the harmonic components to be removed is completed. If it is not completed, by changing the order k of the distortions of the harmonic components to be removed after returning to STEP 106 so as to repeat STEP 107 to STEP 116, the positional change amount X.sub.p.sup.(L) (or θ.sup.(L)) in which the distortions of the harmonic components up to the order k corresponding to the number of removal times L are removed is calculated.
(55)
(56) For example, in the case of removing the particularly remarkable distortions of the third-order and fifth-order harmonic components with the spectral intensity of
(57)
(58) If the subtraction for all of the orders k of the distortions of the harmonic components to be removed is completed (if it is completed up to the number of removal times N determined in STEP 106 (L=N)), the respective harmonic components, including the true phase differences φa.sub.k and φb.sub.k, multiplied by the corresponding gains a.sub.k and b.sub.k are subtracted from the pseudo-sinusoidal signals 204, whereby in STEP 117, the positional change amount X.sub.p.sup.(N) in which all of the distortions of the harmonic components to be removed are removed is detected. For example, in the case of removing the particularly remarkable distortions of the third-order and fifth-order harmonic components with the spectral intensity of
(59) STEPS 107 to 114 are arbitrary steps, and the phase differences of the respective harmonic components of the pseudo sine wave signals 204 may be preset and stored in the storage unit 209 before the execution of the processing of the flowchart shown in
(60) STEPS 106 to 115 may be performed with respect to the pseudo sine wave signals 204 in the range of each one graduation of the plurality of graduations 103. In the case, the true phase differences are determined in each graduation 103 so as to detect the positional change amount X.sub.p.sup.(N) in which all of the distortions of the harmonic components to be removed are removed. Moreover, STEPS 106 to 114 may be performed with respect to the pseudo sine wave signals 204 in the range of at least one graduation predetermined of the plurality of graduations 103. In the case, the true phase differences in the range of the at least one graduation predetermined determined in STEPS 106 to 114 are determined as the true phase differences in all of the range of the plurality of graduations 103 including the range of the graduations unmeasured in STEP 115, and the positional change amount X.sub.p.sup.(L) (or θ.sup.(L)) in which the distortions of the harmonic components are removed is calculated by subtracting the harmonic components, including the true phase differences, multiplied by the corresponding gains so as to detect the positional change amount X.sub.p.sup.(N).
(61) Moreover, for the orders k of the distortions of the harmonic components to be removed determined in STEP 106, STEPS 106 to 116 may be sequentially repeated from the harmonic components with the smaller order k of the harmonic components to be removed, and may be sequentially repeated from the harmonic components with the larger gain calculated in STEP 105 of the harmonic components to be removed.
(62) In addition, the gains a.sub.k and b.sub.k and the true phase differences φa.sub.k and φb.sub.k of the respective harmonic components once calculated by executing the flowchart of
(63)
(64) Next,
(65) It should be further understood by those skilled in the art that although the foregoing description has been made on embodiments of the present invention, the present invention is not limited thereto and various changes and modifications may be made without departing from the principle of the present invention and the scope of the appended claims.