Encoder signal conditioning method

The encoder signal adjustment method addresses accuracy issues in two-phase conversion by using a regression sinusoidal curve and diagonal amplitude correction, enhancing precision and reducing computational load for high-resolution position detection.

JP7560355B2Active Publication Date: 2024-10-02MITUTOYO CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2020219717
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-10-02
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

Existing encoder technologies face accuracy issues due to processing errors and signal intensity fluctuations in n-phase detection signals, leading to errors in two-phase conversion and reduced precision in position detection.

Method used

An encoder signal adjustment method that converts n-phase detection signals into two-phase signals with a 90° phase difference using a regression sinusoidal curve and amplitude correction, reducing computational load by employing a diagonal amplitude correction matrix and avoiding real-time recalibration of phase differences.

Benefits of technology

Improves accuracy and reduces calculation burden by ensuring precise two-phase conversion, enabling high-resolution position detection with reduced computational effort and enhanced harmonic separation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560355000008
    Figure 0007560355000008
  • Figure 0007560355000009
    Figure 0007560355000009
  • Figure 0007560355000010
    Figure 0007560355000010
Patent Text Reader

Abstract

To provide an encoder signal adjustment method capable of improving accuracy while saving labor and increasing speed for calculation.SOLUTION: It is assumed that values of n-phase detection signals output from a detection head part are expressed as I1, I2 ... In. In an encoder signal adjustment method, when a regression sine curve is a sine curve that best fits to a set of n-phase detection signals whose values at the time when phases are φ1, ... φn, are I1, I2 ... In, respectively, a sine component of the regression sine curve represents A-phase, and a cosine component of the regression sine curve represent B-phase. The regression sine curve may be obtained as a least squares solution to an n-phase detection signal.SELECTED DRAWING: Figure 9
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an encoder that detects position, displacement, angle, angular velocity, etc. Specifically, the present invention relates to an encoder signal adjustment method for converting an n-phase detection signal output from a detection head unit of an encoder into a two-phase signal with a phase difference of 90°. [Background technology]

[0002] The encoder has a scale and a detection head portion that is provided so as to move relatively to the scale. The scale has a periodic pattern with a constant pitch in the positioning direction. The detection head is provided with a detection pattern so as to read n-phase detection signals, each having a different phase within one period of the periodic pattern. A Lissajous figure is drawn from the n-phase detection signals, and the deviation angle is used to perform interpolation with a resolution of one pitch or less of the periodic pattern, thereby enabling high-resolution position (displacement) detection. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent 4713123 [Patent Document 2] Patent Publication No. 2003-279382 [Patent Document 3] Patent Publication No. 2006-3307 [Patent Document 4] Patent 6517540 [Patent Document 5] Patent 5964162 [Patent Document 6] Patent 4768248 Summary of the Invention [Problem to be solved by the invention]

[0004] In order to draw a Lissajous figure from the n-phase detection signal output from the detection head, it is necessary to perform n-phase to 2-phase conversion on the n-phase detection signal to obtain 2-phase signals (phase A and phase B) with a phase difference of 90° from the n-phase detection signal. For example, if the detection signal is a 3-phase signal (S1, S2, S3) with a phase difference of 120°, the 3-phase to 2-phase conversion can be expressed as follows: The intensity of the detection signal S1 is I1. The intensity of the detection signal S2 is I2. The intensity of the detection signal S3 is I3.

[0005]

number

[0006] This three-phase to two-phase conversion is based on the premise that the phase difference between the three phase detection signals is 120°. However, in reality, the detection pattern of the detection head has processing errors, so that three-phase detection signals with a phase difference of 120° are not obtained as designed. Also, the strength (amplitude) of the detection signals can vary within the axis for each signal, reflecting waviness of the scale, etc. If the above-mentioned n-phase to 2-phase conversion is performed on such an n-phase (e.g., 3-phase) detection signal that deviates from the design value, an error due to the deviation from the design value will occur in the 2-phase signal, which will cause a deterioration in accuracy.

[0007] As a countermeasure to this, a method may be adopted in which n-phase to 2-phase conversion is performed after correction is made so that the n-phase (eg, 3-phase) detection signals have a relationship according to the design values.

[0008] However, a correction matrix that corrects both signal strength (amplitude) and phase (phase difference) has many elements, and calculating such a correction matrix in real time imposes a significant computational load. Furthermore, when correcting both signal strength (amplitude) and phase (phase difference) to achieve the relationship according to the design values, it is, in principle, extremely difficult to correct both with high precision. [Means for solving the problem]

[0009] The encoder signal adjustment method of the present invention includes the steps of: An encoder signal adjustment method for converting an n-phase (n is an integer equal to or greater than 2) detection signal output from a detection head unit of an encoder into a two-phase signal consisting of phase A and phase B having a phase difference of 90° from each other, comprising: The encoder is A scale having a periodic pattern with a constant pitch in the positioning direction; a detection head portion that moves relative to the scale and has a detection pattern disposed thereon so as to read detection signals of n phases having different phases within one period of the periodic pattern, The phase relationship between the n-phase detection signals is expressed as φ1, . . . φn (0≦φ1, . . . φn<360°) using the phases within one period, When the values ​​of the n-phase detection signals output from the detection head unit are represented as I1, I2...In, The encoder signal adjustment method includes: If the sine curve that best fits a set of n-phase detection signals, whose values ​​are I1, I2...In when the phases are φ1,...φn, is defined as the regression sine curve, then The sine component of the regression sine curve is defined as phase A, The cosine component of the regression sine curve is set as phase B. It is characterized by:

[0010] In one embodiment of the present invention, The regression sine curve is obtained as a least squares solution to the n-phase detection signals. It is preferable.

[0011] In one embodiment of the present invention, The calculation for converting the n-phase detection signal into the two-phase signal includes a conversion matrix T for converting n phases into two phases, which is expressed by the following formula: It is preferable.

[0012]

number

[0013] In one embodiment of the present invention, the calculation of converting the n-phase detection signals into the two-phase signals includes an amplitude correction matrix D that corrects amplitudes of the n-phase detection signals, The amplitude correction matrix D is a diagonal matrix. It is preferable.

[0014] In one embodiment of the present invention, The detection signal has three or more phases, The phases of any three of the detection signals having adjacent phases are φi-1,φi,φi+1 (i is an integer from 2 to n-1) Expressed as moreover, The phase difference between φi-1 and φi is Δφ(i-1,i), The phase difference between φi and φi+1 is Δφ(i,i+1) When we express it as Δφ(i-1,i) and Δφ(i,i+1) differ by more than 1° It is preferable.

[0015] For example, the difference between Δφ(i-1,i) and Δφ(i,i+1) is 1° or more and less than 20°. For example, the difference between Δφ(i-1,i) and Δφ(i,i+1) is set to 3° or more and less than 15°. More preferably, An example would be to set the difference between Δφ(i-1,i) and Δφ(i,i+1) to 10°.

[0016] Even if there is a manufacturing tolerance in the encoder's light receiving element array, a manufacturing error equivalent to 1° will not occur, and if there is a deviation of 1°, it can be assumed that the design is intentionally slightly shifted. Furthermore, it is not necessary that the phase differences between detection signals having adjacent phases are all different for all i, and it is sufficient that the above condition is satisfied for at least one i.

[0017] In one embodiment of the present invention, The detection signal has two or more phases, The phases of any two of the detection signals having adjacent phases are φi,φi+1 (i is an integer from 1 to n-1) Expressed as The phase difference between φi and φi+1 is Δφ(i,i+1) When we express it as For Δφ(i,i+1), 89°<Δφ(i,i+1)<91° is not satisfied It is preferable. [Brief description of the drawings]

[0018] [Figure 1] 1 is a diagram showing the external appearance of an encoder 100. FIG. [Diagram 2] 2 is a diagram illustrating an example of the internal configuration of a detection head unit 300. FIG. [Diagram 3] 13 is a diagram illustrating an example of an arrangement of light receiving elements 340. FIG. [Figure 4] 13 is a diagram illustrating an example of the phase relationship of a group of light receiving elements 340 that are not equally spaced. [Diagram 5] FIG. 1 is a diagram illustrating a Lissajous figure. [Figure 6] FIG. 4 is a functional block diagram of a calculation processing unit 400. [Figure 7] FIG. 1 is a diagram illustrating a schematic representation of how a detection signal is corrected in the prior art. [Figure 8] 5A and 5B are diagrams illustrating a schematic representation of how a detection signal is corrected in the present embodiment. [Figure 9] FIG. 1 is a diagram showing a schematic representation of how a sine regression curve is obtained. [Figure 10] 1 is a diagram illustrating a fundamental wave, a third harmonic, and a fifth harmonic. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be illustrated and described with reference to the reference numerals given to the various elements in the drawings. Before describing specific embodiments of the encoder signal adjustment method of the present invention, a general configuration of an encoder (displacement measuring device) will first be described. FIG. 1 is a diagram showing the external appearance of an encoder 100. As shown in FIG. The encoder 100 has a scale 200 and a detection head unit 300 that is provided so as to be movable relative to the scale 200 . The encoder 100 is used to control the movement of a mechanical device having elements that move relatively to each other. For example, if the mechanical device is a moving stage, the scale 200 is attached to a base (one element) and the detection head unit 300 is attached to the stage (the other element).

[0020] The scale 200 has a periodic pattern 210 with a constant pitch in the length measurement direction (position measurement direction). In the case of the photoelectric encoder 100, the periodic pattern 210 is a light reflecting portion or a light transmitting portion formed with a predetermined pitch, and is a so-called diffraction grating.

[0021] The detection head unit 300 has a detection pattern 310 that pairs with the periodic pattern 210 of the scale 200 , and reads a detection signal from the periodic pattern 210 of the scale 200 . A light source 320 and a light receiving section 330 as shown in FIG. 2 are disposed within the detection head section 300 . The light receiving section 330 includes light receiving elements 340 arranged parallel to the periodic pattern 210 of the scale 200 . The light receiving elements 340 are arranged so as to emit light receiving signals corresponding to different phases of the interference fringes 220 caused by the periodic pattern 210 of the scale 200, as shown in FIG.

[0022] For example, where the pitch P of the interference fringes 220 caused by the periodic pattern 210 of the scale 200 is equal to, the light receiving elements 340 are arranged at a pitch of (1 / n)P. Here, as a first example, it is assumed that the light receiving elements 340 are arranged at a pitch of (1 / 3)P. In this case, for one wavelength of the interference fringes 220 from the periodic pattern 210 of the scale 200, the light receiving element 340 emits phase signals shifted by 120°. For the purpose of explanation, the light receiving elements 340 are classified into three groups, and the group of light receiving elements 340 corresponding to a certain phase is designated as a first phase (α). The group of light receiving elements 340 having a phase difference of 120° with respect to the first phase (α) is defined as a second phase (β), and the group of light receiving elements 340 having a phase difference of 120° with respect to the second phase (β) is defined as a third phase (γ).

[0023] In this embodiment, the light receiving elements 340 may be arranged at equal intervals with a pitch of (1 / n)P, as in the conventional technology. However, in order to effectively utilize the advantages of the present invention, unlike the prior art, the arrangement of the light receiving elements 340 may be intentionally designed to be slightly shifted from the equal intervals. For example, suppose that the light receiving elements 340 are arranged in three phases, and a light receiving element 340 (group) of a first phase (α) is arranged to correspond to a certain phase of the interference fringes 220. Then, a group of light receiving elements 340 is arranged to have a phase difference of 110° with respect to the first phase (α), and these are defined as a second phase (β). Furthermore, a group of light receiving elements 340 is arranged to have a phase difference of 130° with respect to the second phase (β), and these are defined as a third phase (γ).

[0024] If the phase of the first phase (α) is 0°, the phase relationship between the detection signals is such that the phase of the second phase (β) is 110°, and the phase of the third phase (γ) is 240° (−120°). in this case, The phase difference between the first phase (α) and the second phase (β) is 110°. The phase difference between the second phase (β) and the third phase (γ) is 130°. The phase difference between the third phase (γ) and the first phase (α) is 120°. FIG. 4 is an example of the phase relationship of a group of non-equidistant light receiving elements 340.

[0025] In both the conventional technology and this embodiment, even if the layout design of the light receiving elements 340 is ideal, there may be deviations from the design values ​​in the actual product, and there may also be variations between products. Therefore, a reference signal is input to the light receiving section 330 in which the light receiving elements 340 are actually patterned, and the phases (phase differences) of the 1st phase to the nth phase are obtained. For example, the phase of the first phase (α) is 0°, the phase of the second phase (β) is 109°, the phase of the third phase (γ) is 241° (−119°), and so on. In the conventional technology, the phase (phase shift) of the detection signal obtained in advance is used to correct the detection signal before two-phase conversion, but in this embodiment, it is used during two-phase conversion. Details will be provided later.

[0026] Detection signals of the first phase (α), second phase (β), third phase (γ), etc. are output from the detection head portion 300, and the relative displacement amount L between the scale 200 and the detection head portion 300 is obtained by performing arithmetic processing on these. The details of this calculation process will be described later as the operation of calculation processing unit 400 in FIG. 6, but an outline will be given here. First, as shown in FIG. 5, two-phase signals (phase A and phase B) having a phase difference of 90° from each other are obtained from the detection signals of the first phase (α), second phase (β), third phase (γ), etc., and the total rotation angle θT of the Lissajous figure drawn by these two-phase signals is calculated. The total rotation angle θT is the sum of the number of rotations and the argument θ within one rotation shown in Figure 5. Once the total rotation angle θT is obtained, the relative displacement L between the scale 200 and the detection head unit 300 is given by the following equation in relation to the grating pitch PS:

[0027] L = (θT / 360°) × PS

[0028] By accurately determining the argument θ within one rotation of the Lissajous figure, it is possible to interpolate with a resolution of less than one pitch (PS).

[0029] Next, the arithmetic processing (encoder 100 signal conditioning method) by the arithmetic processing unit (encoder signal conditioning device) 400 will be described. FIG. 6 is a functional block diagram of the arithmetic processing unit 400. In the arithmetic processing, the n-phase detection signal is converted into a two-phase signal, and further, the amount of relative displacement between the scale 200 and the detection head portion 300 is calculated based on the two-phase signal.

[0030] Although a functional block diagram is shown in FIG. 6 for convenience of explanation, the program for executing this arithmetic processing may be stored in a computer (CPU, ROM, RAM) 120 and realized by executing this program with a central processing unit (CPU). In FIG. 1, the calculation processing unit 400 is provided in a computer (PC) 120 connected to the detection head unit 300 via a wired cable 110 or wireless communication, but the detection head unit 300 itself may have a built-in microcomputer, and the calculation processing may be performed by this microcomputer.

[0031] The calculation processing section 400 includes a receiving interface 410 , an adjustment calculation section 420 , a Lissajous transform section 450 , and a displacement amount calculation section 460 .

[0032] The receiving interface 410 receives the n-phase detection signals output from the light receiving unit 330, and sends them to the adjustment calculation unit 420 at the next stage. The adjustment calculation section 420 converts the n-phase detection signals into a two-phase signal. The adjustment calculation section 420 includes an amplitude correction section 430 and a two-phase conversion section 440.

[0033] First, the amplitude correction unit 430 adjusts the amplitudes of the n-phase detection signals so that they are all the same. Assuming that n-phase detection signals are S1, ..., Sn, the amplitude correction unit 430 multiplies each of the detection signals S1, S2..., Sn by a coefficient so that the amplitude of S2...Sn becomes the same as that of S1, for example, based on the amplitude of S1. The amplitude correction coefficient matrix D is a diagonal matrix and is expressed, for example, as follows:

[0034]

number

[0035] The amplitude correction unit 430 may, for example, compare the magnitudes of the detection signals S1...Sn input from the receiving interface 410 in real time and calculate in real time the coefficient D to be multiplied by each detection signal. Alternatively, the detection head unit 300 may be moved on the scale 200 of an actual product to determine in advance the difference in magnitude of the detection signals S1...Sn for each location (section) on the scale 200, and a coefficient for correcting this difference may be prepared in a correction coefficient table.

[0036] Here, one of the key points of the first embodiment is that the amplitude correction unit 430 corrects only the amplitude (magnitude) of the detection signals S1...Sn, and does not adjust, for example, the phase (shift) of the detection signals S1...Sn. For example, in a conventional technology designed to acquire detection signals with a phase difference of 120°, it was necessary to correct both the amplitude and the phase (phase difference).

[0037] For example, if the detection signal is three-phase, the relationship between the three detection signals is adjusted to signals with a phase difference of 120° and equal magnitude, as shown in Figure 7. Therefore, the correction matrix C is expressed, for example, as follows:

[0038]

number

[0039] This is because in conventional technology, calculations were performed under the assumption that the phase difference between the detection signals in the next stage of 3-phase to 2-phase conversion (or n-phase to 2-phase conversion) was 120° (or 360° / n). Correction matrix C, which corrects both amplitude and phase (phase difference), has many elements, and if such a correction matrix is ​​to be calculated in real time, it is a heavy load to recalculate all the elements of matrix C. Even if only the amplitude of the detection signal fluctuates due to a change in the relative position between scale 200 and detection head unit 300, all the elements of matrix C must be recalculated. And multiplying detection signals S1...Sn by the above correction matrix also requires a large amount of calculation. Conventionally, because this amount of calculation is large, it took some time to display the displacement of detection head unit 300. If the responsiveness of the displacement display is considered important, it would be possible to omit complete correction of the detection signals S1...Sn, but this would distort the Lissajous figure, making it necessary to either include an error in the measurement value or add a separate correction calculation.

[0040] In this embodiment, the amplitude correction coefficient matrix D has only diagonal elements, so the amount of calculation is significantly reduced. Furthermore, as a characteristic of the encoder 100, the amplitude of the detection signal is sensitive to undulations of the scale 200 and has relatively large intra-axial fluctuations. On the other hand, the phase of the detection signal is determined by a mechanical structure such as the arrangement of the light receiving elements 340 and has relatively small intra-axial fluctuations. Therefore, by using an amplitude correction coefficient matrix D consisting only of diagonal elements as in this embodiment, it is possible to reduce the labor and power required for calculations, as well as to increase the speed, while also improving accuracy.

[0041] Next, the two-phase conversion section 440 will be described. The two-phase conversion unit 440 finds a sine curve that best fits the set of corrected n-phase detection signals, and finds two-phase signals (A phase, B phase) with a phase difference of 90°, with the sine component of the sine curve as phase A and the cosine component as phase B. Here, the sine curve that best fits the set of n-phase detection signals is referred to as a regression sine curve.

[0042] In this embodiment, the case where the least squares method is used to fit the sine curve (curve fitting) will be described, but other methods for finding the optimum sine curve are also possible. Any method can be used that minimizes the cumulative difference Σf(Δ) between the regression sine curve to be found and the set of n-phase detection signals. The shape of f(Δ) is not limited to a square.

[0043] When the detection signal has n phases, the transformation matrix T of the n-phase to 2-phase transformation in this embodiment is expressed by the following equation.

number

[0044] If the above formula is expressed visually, it would look something like Figure 9. If the detection signal has three phases S1, S2, and S3, It is assumed that, relative to the phase φ1 of the detection signal S1, the phase φ2 of the detection signal S2 is 109° and the phase φ3 of the detection signal S3 is 241°. and, The intensity of the detection signal S1 is I1. The intensity of the detection signal S2 is I2. The intensity of the detection signal S3 is I3. In this case, the sine curve that best fits these three points is the regression sine curve, and the sine component of this regression sine curve is the A-phase component, and the cosine component is the B-phase component.

[0045] When expressed using a sine function, it can be interpreted, for example, as follows. Now, let the signal intensities I1, I2, and I3 of the detection signals S1, S2, and S3 be expressed as follows: (The amplitudes have already been adjusted, so they are omitted here.) I1 = sin(θ + φ1) I2 = sin(θ + φ2) I3 = sin(θ + φ3)

[0046] And, suppose the regression sine curve y thus obtained is expressed as y=sin(φ+θ). And then, y=cosθ·sinφ+sinθ·cosφ Therefore, the sine component of the regression sine curve y is the A-phase component, and the cosine component is the B-phase component.

[0047] It should be noted that the above transformation matrix T includes an expression of an inverse matrix. Here, the rotation angle of the Lissajous figure can be calculated correctly if the ratio of the two-phase signals is maintained, so only the cofactor matrix needs to be used in the calculation, and the coefficient (the inverse of the determinant) can be ignored. (Alternatively, it can be interpreted as multiplying the determinant as a coefficient to make the coefficient 1.)

[0048] Therefore, the transformation matrix T may be expressed as:

[0049]

number

[0050] The calculations performed by the adjustment calculation unit 420 can be expressed as a set as follows. The intensity I of the n-phase detection signal (S1··Sn) is defined as [I] = (I1,··,In). A pair of two-phase signals, A phase and B phase, is expressed as [R] = (A, B).

[0051] [R] = [T] · [D] · [I]

[0052] The n-phase to 2-phase conversion in this embodiment does not assume that the phases of the detection signals are equally spaced (360° / n), nor does it assume that the phases of the detection signals are as designed (phase difference). The n-phase to 2-phase conversion in this embodiment involves calculating the sine component (phase A) and cosine component (phase B) of a regression sine curve based on the actual phase (φ1, ...φn) of the detection signal. This makes it possible to reduce the labor required for calculations, increase the speed, and improve accuracy at the same time.

[0053] (Harmonic separation as an additional effect) It has been explained that it is a good idea to intentionally shift the phase difference between the detection signals from equal intervals by intentionally designing the arrangement of the light receiving elements 340 to be slightly shifted from equal intervals. This makes it easier to distinguish harmonics mixed in with the main fundamental wave.

[0054] The detection signal output from the encoder 100 is a periodic signal, such as a sine wave, but harmonic distortion inevitably gets mixed in with the periodic signal, which becomes a cause of error in the position (displacement) detection accuracy of the encoder 100. However, theoretically, if it is possible to determine which harmonics are mixed in and to what extent, correction is possible.

[0055] When acquiring n-phase detection signals using conventional methods, it can be difficult to distinguish and determine to what extent each harmonic is mixed into the fundamental wave. For example, Fig. 10 shows an example of a fundamental wave, a third harmonic, and a fifth harmonic, but the harmonics (third, fifth, seventh, ... harmonics) are waves with cycles that are integer multiples of the fundamental wave. When n-phase detection signals are acquired, for example, when the third harmonic is mixed into the fundamental wave and when the fifth harmonic is mixed into it, the fluctuation period of the detected wave may be the same, and in such a case, it is impossible to distinguish whether the cause of the distortion is the third harmonic or the fifth harmonic.

[0056] For example, in the case where a four-phase detection signal is obtained with a phase difference of 90°, the Lissajous distortion is λ / 4 whether the third harmonic or the fifth harmonic is mixed in.

[0057] In this regard, if the phase difference between the detection signals can be intentionally shifted from an equal interval, Since it becomes possible to achieve a one-to-one correspondence between the order of the mixed harmonics and the resulting Lissajous distortion, it becomes possible to detect the extent to which harmonics are mixed in from the Lissajous distortion information.

[0058] For example, consider an encoder that obtains a six-phase detection signal. If the phases of the six-phase detection signals are equally spaced, Δφ=60°. Now, if we make the spacing unequal for the purpose of harmonic separation, Δφ(1,2)=50° Δφ(2,3)=70° Δφ(3,4)=60° Δφ(4,5)=60° Δφ(5,6)=60° Δφ(6,1)=60° It may be combined as follows. Note that Δφ(3,4) = Δφ(4,5) = Δφ(5,6) = Δφ(6,1), but the harmonics can be distinguished without any problems. In other words, it is sufficient that the above requirement is satisfied for at least one i.

[0059] Also, although it is not the same as "shifting from equal intervals," if we expand on the above idea, we can think of it as follows. For example, if the detection signal is two-phase and one detection signal has a phase difference of 90° with respect to the other detection signal, then, as with the above, if a third harmonic or a fifth harmonic is mixed in, the Lissajous distortion will be λ / 4 and they will be indistinguishable. On the other hand, if the phase of one detection signal is other than 90° with respect to the phase of the other detection signal, it becomes possible to distinguish harmonics. Therefore, it is sufficient if the phase of one detection signal is other than 90° with respect to the phase of the other detection signal. In other words, Δφ(i,i+1) does not satisfy 89°<Δφ(i,i+1)<91°. (Alternatively, Δφ(i,i+1) satisfies 1°≦Δφ(i,i+1)≦89° or 91°≦Δφ(i,i+1)≦179°.) For example, it is sufficient that the phase of one detection signal is 89° or 91° with respect to the phase of the other detection signal, and if a more significant shift is required, it may be set to, for example, 100°. (Note that two or more phases are sufficient, and the above requirement must be met for at least one of the i.)

[0060] As described above, even if the phase difference between the detection signals is not equal, or even if the phase difference is an odd number such as 89°, 91°, or 100° that cannot be handled (or is difficult to handle) by conventional methods, in this embodiment, a two-phase signal (phase A, phase B) with a phase difference of 90° can be obtained from n-phase detection signals. Therefore, by obtaining a two-phase signal (phase A, phase B) from which harmonics that cause distortion are separated, the accuracy of the encoder 100 can be further improved.

[0061] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit and scope of the present invention. The encoder may be a capacitive encoder or a magnetic encoder. In the case of a capacitive encoder, the periodic pattern is a conductive electrode arranged at a predetermined pitch, and in the case of a magnetic encoder, the periodic pattern is a coil arranged at a predetermined pitch. The detection head unit is provided with electrodes and coils (transmitting / receiving electrodes, transmitting / receiving coils) that are coupled with the electrodes and coils of the scale.

[0062] In the above explanation, sine waves (or sine curves) are used, but it should be understood that the present invention includes mathematically equivalent transformations such as cosine waves (or cosine curves), changing or fine-tuning mathematically self-evident equations, rotating or moving the coordinate axes, and advancing or delaying the overall phase.

[0063] A CPU and a memory may be arranged to function as a computer, an encoder signal adjustment program may be installed in the memory, and the installed program may operate the CPU, etc., to realize the functions of the functional units described in the above embodiment. The encoder signal adjustment program may be distributed by recording it on a non-volatile recording medium (CD-ROM, memory card, etc.), or by downloading it via an Internet line, etc. [Explanation of symbols]

[0064] 100 Encoder 200 Scale 210 Periodic Pattern 220 Interference fringes 300 Detection head 310 Detection Pattern 320 light source 330 Light receiving section 340 Photodetector 400 Processing unit 410 Incoming Interface 420 Adjustment calculation section 430 Amplitude Correction Unit 440 2-phase converter 450 Lissajous conversion unit 460 Displacement calculation unit

Claims

1. An encoder signal adjustment method for converting an n-phase (n is an integer of 2 or more) detection signal output from a detection head unit of an encoder into a sine curve, comprising the steps of: The encoder is A scale having a periodic pattern with a constant pitch in the positioning direction; a detection head portion that moves relative to the scale and has a detection pattern disposed thereon so as to read detection signals of n phases having different phases within one period of the periodic pattern, The phase relationship between the n-phase detection signals is expressed as φ1, ..., φn (0 ≤ φ1, ..., φn < 360°) using the phase within one period, When the values ​​of the n-phase detection signals output from the detection head unit are represented as I1, I2, . . . , In, The encoder signal adjustment method includes: The regression sine curve that best fits the set of n-phase detection signals whose values ​​are I1, I2, . . . In when the phases are φ1, . . . φn is defined as the sine curve.

13. An encoder signal conditioning method comprising:

2. 2. The method for adjusting an encoder signal according to claim 1, The regression sine curve is obtained as a least squares solution to the n-phase detection signals.

13. An encoder signal conditioning method comprising:

3. The encoder signal adjustment method according to claim 1, The sine component of the regression sine curve is defined as phase A, and the cosine component of the regression sine curve is defined as phase B, The detection signal output from the detection head of the encoder is a two-phase signal having phases A and B with a phase difference of 90°.

13. An encoder signal conditioning method comprising:

4. 4. The encoder signal conditioning method according to claim 3, The calculation for converting the n-phase detection signal into the two-phase signal includes a conversion matrix T for converting n phases into two phases, which is expressed by the following formula:

13. An encoder signal conditioning method comprising: [0010]

5. The encoder signal adjustment method according to claim 3 or 4, The calculation for converting the n-phase detection signals into the two-phase signals includes an amplitude correction matrix D for correcting amplitudes of the n-phase detection signals, The amplitude correction matrix D is a diagonal matrix.

13. An encoder signal conditioning method comprising:

6. 6. The encoder signal adjustment method according to claim 1, The detection signal has three or more phases, The phases of any three of the detection signals having adjacent phases are φi-1, φi, φi+1 (i is an integer from 2 to n-1) Expressed as moreover, The phase difference between φi-1 and φi is Δφ(i-1, i). The phase difference between φi and φi+1 is Δφ(i, i+1) When we express it as Δφ(i-1,i) and Δφ(i,i+1) differ by 1° or more 13. An encoder signal conditioning method comprising:

7. 6. The encoder signal adjustment method according to claim 1, The detection signal has two or more phases, The phases of any two of the detection signals having adjacent phases are φi, φi+1 (i is an integer from 1 to n-1) Expressed as The phase difference between φi and φi+1 is Δφ(i, i+1) When we express it as For Δφ(i, i+1), 89°<Δφ(i, i+1)<91° is not satisfied 13. An encoder signal conditioning method comprising:

8. An encoder signal adjustment program that causes a computer to execute the encoder signal adjustment method according to any one of claims 1 to 7.

9. 9. An encoder comprising: a scale; a detection head portion provided so as to be movable relatively to the scale; and a computer having stored therein the encoder signal adjustment program according to claim 8.

Citation Information

Patent Citations

  • Method and device for soldering

    JP1984064162A

  • Photoelectric encoder

    JP2003279382A

  • Encoder, and signal regulation method therefor

    JP2006003307A

  • Photoelectric encoder

    JP2010048607A

  • Rotation angle detector

    JP2012127910A