Angular Correction Method For Rotary Encoder

KIKAWA; Hayami ;   et al.

Patent Application Summary

U.S. patent application number 12/663514 was filed with the patent office on 2012-10-04 for angular correction method for rotary encoder. This patent application is currently assigned to SOKKIA TOPCON CO., LTD.. Invention is credited to Hayami KIKAWA, Satoshi YANOBE.

Application Number20120248300 12/663514
Document ID /
Family ID40129367
Filed Date2012-10-04

United States Patent Application 20120248300
Kind Code A2
KIKAWA; Hayami ;   et al. October 4, 2012

ANGULAR CORRECTION METHOD FOR ROTARY ENCODER

Abstract

[Object] To provide an angular correction method with which angular skip does not occur in determining an angle between angular graduations of a dial of a rotary encoder by interpolation calculation. [Solution Means] Angular correction data are obtained by a residual curve determining step (S2) of determining a residual r.sub.i between a position computed from a model and an actually read position P.sub.i, and of fitting the residual r.sub.i to a polynomial f(x) which is a function of an angular graduation image number x to determine a residual curve, r=f(x), a slope computing step (S4) of computing a tangential slope f'(x.sub.i) of the residual curve; an angular skip computing step (S5) of computing an angular graduation image position correction quantity C.sub.i from a residual r.sub.i and the slope f'(x.sub.i), of determining a measured angle value .theta..sub.0 by using the correction quantity C.sub.i, of switching the combination of angular graduation images to a forward side and a backward side to determine measured angle values .theta..sub.-1 and .theta..sub.+1, and of computing the angular skip quantity; an order determining step (S7) of determining the order of the polynomial f(x) such that the angular skip quantity is minimized; and an angular correction data recording step (S8) of recording the residual and the tangential slope.


Inventors: KIKAWA; Hayami; (Ashigarakami-gun, Kanagawa, JP) ; YANOBE; Satoshi; (Ashigarakami-gun, Kanagawa, JP)
Assignee: SOKKIA TOPCON CO., LTD.
Kanagawa
JP
243-0036

Prior Publication:
  Document Identifier Publication Date
US 20100181469 A1 July 22, 2010
Family ID: 40129367
Appl. No.: 12/663514
Filed: October 17, 2007
PCT Filed: October 17, 2007
PCT NO: PCT/JP2007/070235
371 Date: December 7, 2009

Current U.S. Class: 250/231.13
Current CPC Class: G01D 5/3473 20130101; G01D 5/24452 20130101; G01D 5/2449 20130101; G01D 5/36 20130101
Class at Publication: 250/231.13
International Class: G01D 5/34 20060101 G01D005/34

Foreign Application Data

Date Code Application Number
Jun 15, 2007 JP 2007-158607

Claims



1. An angular correction method for a rotary encoder that includes: a dial, having angular graduations formed therein; a detector, reading angular graduation image positions of light transmitted through the angular graduations; and a computing unit, obtaining a measured angle value by interpolation calculation from the angular graduation image positions; the angular correction method comprising: a residual curve determining step of determining and recording a residual r between a position computed from a model, and an actually read position P, for each angular graduation image position and of fitting the residuals r to a polynomial f(x) which is a function of angular graduation image number x, whose order is set in advance, to determine a residual curve, r=f(x); a slope computing step of computing a tangential slope f'(x.sub.i) of the residual curve at a point x=x.sub.i, with x.sub.i being the i-th angular graduation image number; and an angular correction data recording step of recording the i-th residual r.sub.i and the slope f'(x.sub.i).

2. An angular correction method for a rotary encoder that includes: a dial, having angular graduations formed therein; a detector, reading angular graduation image positions of light transmitted through the angular graduations; and a computing unit, obtaining a measured angle value by interpolation calculation from the angular graduation image positions; the angular correction method comprising: a residual curve determining step of determining and recording a residual r between a position computed from a model and an actually read position P, for each angular graduation image position, and of fitting the residuals r to polynomials f(x) which are functions of angular graduation image number x and whose respective orders are no less than the 0-th, to determine residual curves, r=f(x); a slope computing step of computing, for the polynomial of each order, a tangential slope f'(x.sub.i) of the residual curve at a point x=x.sub.i, with x.sub.i being the i-th angular graduation image number among a plurality of successive angular graduation images; an angular skip computing step of computing an angular graduation image position correction quantity C.sub.i from a residual r.sub.i of the i-th angular graduation image number and the slope f'(x.sub.i) for the polynomial of each order, of determining a measured angle value .theta..sub.0 by using the correction quantity C.sub.i, of switching the combination of successive angular graduation images used in the interpolation calculation respectively in a direction in which the angular graduation decreases and of in a direction in which the angular graduation increases to determine measured angle values .theta..sub.-1 and .theta..sub.+1 using the correction quantity C.sub.i, and computing angular skip quantities from differences in angle value, .theta..sub.-1-.theta..sub.0 and .theta..sub.+1-.theta..sub.0, between the measured angle value .theta..sub.0 and the measured angle values .theta..sub.-1 and .theta..sub.+1; an order determining step of comparing the angular skip quantities that have been computed according to the polynomials of the respective orders to determine the order of the polynomial f(x); and an angular correction data recording step of recording the residual r.sub.i and the tangential slope f'(x.sub.i) obtained from the polynomial f(x) of the determined order.

3. The angular correction method for a rotary encoder according to claim 2, wherein the order of the polynomial is in a range of 0th to 7th orders.

4. The angular correction method for a rotary encoder according to claim 3, wherein the order of the polynomial is determined so as to minimize an Akaike information criterion (AIC).

5. The angular correction method for a rotary encoder according to claim 4, wherein the order of the polynomial is determined so that the polynomial is of the lowest order.

6. A rotary encoder comprising: a dial, having angular graduations formed therein; a detector, reading angular graduation image positions of light transmitted through the angular graduations; and a computing unit, obtaining a measured angle value by interpolation calculation from the angular graduation image positions, wherein the computing unit corrects the measured angle value by using the residual r.sub.i and the tangential slope f'(x.sub.i) prepared and recorded by the angular correction method according to the first, second, third, fourth, or fifth aspect.
Description



TECHNICAL FIELD

[0001] The present invention relates to an angular correction method for a rotary encoder that is used in a surveying instrument.

BACKGROUND ART

[0002] A surveying instrument has a rotary encoder for measuring a horizontal angle and a vertical angle (see Patent Document 1 below). As shown in FIG. 1, the rotary encoder includes a dial 1 that rotates along with a telescope. Light from a light source 2 is illuminated onto angular graduations formed as slits 11 along a circumferential direction of the dial 1. Light that has passed through the slits 11 is received by a CCD linear sensor 3. An output of the CCD linear sensor 3 is sent to a CPU (arithmetic control unit) 6 via an A/D converter 5. The CPU 6 determines an angle based on positions (pixel coordinates) of slit images (angular graduation images) on the CCD linear sensor 3 and displays the angle on a display unit 7.

[0003] With a conventional rotary encoder used in a surveying instrument, an angle between slits 11 is determined by an interpolation calculation to achieve microscopic angular resolution. To perform the interpolation calculation, calculation is performed by fitting a plurality of successive slit images on the CCD linear sensor 3 to a model that has been determined in advance.

[0004] The model used in the interpolation calculation shall now be described. As shown in FIG. 2, in a plane view of the dial 1, R is a distance between a center O of the dial 1 and the CCD linear sensor 3, P.sub.0 is a position (pixel number) of a foot of a perpendicular drawn from the center O of the dial 1 to the CCD linear sensor 3, and A.sub.0 is an angle at this position P.sub.0. Further, P.sub.i is a position (pixel number) of the i-th slit image among the successive slit images and A.sub.i is the angle of the i-th slit image, which is given as a dial graduation. The following formula holds for a triangle P.sub.iOP.sub.0, and this is used as the model of regression analysis for the interpolation calculation. P.sub.i=R tan(A.sub.i-A.sub.0)+P.sub.0 (1) [0005] Patent Document 1: Japanese Published Unexamined Patent Application No. 2002-13949

DISCLOSURE OF THE INVENTION

Problems to be Solved by the Invention

[0006] When R', A.sub.0', and P.sub.0' are the most probable values of R, A.sub.0, and P.sub.0 determined by regression analysis using Formula (1), a positional residual r.sub.i of the i-th slit image among the successive slit images is expressed by the following formula: r.sub.i=R' tan(A.sub.i-A.sub.0')+P.sub.0'-P.sub.i (2)

[0007] Measurement data of the residual are shown in FIG. 3. An abscissa indicates a slit image number x and an ordinate indicates the residual r.sub.i. With the rotary encoder, the interpolation calculation is performed using the plurality of successive slit images. In FIG. 3, besides a random variation, a systematic distortion is also occurring. When a distortion occurs in the residual r.sub.i, a discontinuous angular error may occur when the slit images used in the interpolation calculation are switched. As the dial 1 is rotated, the slit images projected on the CCD linear sensor 3 move along the CCD linear sensor 3, and in the switching of the slit images, the slit images at both ends of the combination of successive slit images used for the interpolation calculation change according to the rotation of the dial 1. That is, of the combination made up of slit images, a slit image at an end at one side falls out and does not become used in the interpolation calculation, and a single slit image enters at the other end and becomes used in the interpolation calculation. Such falling out of the single slit image at one end and entering of the single slit image at the other end from and into the combination of the slit images used in the interpolation calculation is referred to as the switching of the slit image. Conventionally, when this occurs, because a region of the CCD linear sensor 3 occupied by the slit images used in the interpolation calculation changes discontinuously by an amount corresponding to a single slit image section, a discontinuity of the measured angle value of approximately 0.2 to 0.3 seconds, referred to as "angular skip," occurs.

[0008] The present invention has been made in view of the above problem, and an object thereof is to provide an angular correction method with which angular skip does not occur even when a dial of a rotary encoder rotates and switching of slit images occurs in the combination of a plurality of slit images used in an interpolation calculation.

Means for Solving the Problems

[0009] To achieve the above object, a first aspect of the present invention provides an angular correction method for a rotary encoder that includes: a dial, having angular graduations formed therein; a detector, reading angular graduation image positions of light transmitted through the angular graduations; and a computing unit, obtaining a measured angle value by interpolation calculation from the angular graduation image positions; the angular correction method including: a residual curve determining step of determining and recording a residual r between a position computed from a model and an actually read position P, for each angular graduation image position, and of fitting the residuals r to a polynomial f(x), which is a function of angular graduation image number x, whose order is set in advance, to determine a residual curve, r=f(x); a slope computing step of computing a tangential slope f'(x.sub.i) of the residual curve at a point x=x.sub.i, with x.sub.i being an i-th angular graduation image number; and an angular correction data recording step of recording the i-th residual r.sub.i and the slope f'(x.sub.i).

[0010] A second aspect of the present invention provides an angular correction method for a rotary encoder that includes: a dial, having angular graduations formed therein; a detector, reading angular graduation image positions of light transmitted through the angular graduations; and a computing unit, obtaining a measured angle value by interpolation calculation from the angular graduation image positions; the angular correction method including: a residual curve determining step of determining and recording a residual r between a position computed from a model and an actually read position P, for each angular graduation image position, and of fitting the residuals r to polynomials f(x), which are functions of angular graduation image number x, whose respective orders are no less than the 0-th to determine residual curves, r=f(x); a slope computing step of computing, for the polynomial of each order, a tangential slope f'(x.sub.i) of the residual curve at a point x=x.sub.i, with x.sub.i being the i-th angular graduation image number among a plurality of successive angular graduation images; an angular skip computing step of computing an angular graduation image position correction quantity C.sub.i for the polynomial of each order, from a residual r.sub.i of the i-th angular graduation image number and the slope f'(x.sub.i), of determining a measured angle value .theta..sub.0 using the correction quantity C.sub.i, of switching the combination of successive angular graduation images used in the interpolation calculation respectively in a direction in which the angular graduation decreases and in a direction in which the angular graduation increases to determine measured angle values .theta..sub.-1 and .theta..sub.+1 by using the correction quantity C.sub.i, and of computing angular skip quantities from differences in angle value, .theta..sub.-1-.theta..sub.0 and .theta..sub.+1-.theta..sub.0, between the measured angle value .theta..sub.0 and the measured angle values .theta..sub.-1 and .theta..sub.+1; an order determining step of comparing the angular skip quantities that have been computed according to the polynomials of the respective orders to determine the order of the polynomial f(x); and an angular correction data recording step of recording the residual r.sub.i and the tangential slope f'(x.sub.i) obtained from the polynomial f(x) of the determined order.

[0011] A third aspect of the present invention provides the angular correction method according to the second aspect of the present invention where the order of the polynomial is in a range of 0th to 7th orders.

[0012] A fourth aspect of the present invention provides the angular correction method according to the third aspect of the present invention where the order of the polynomial is determined so as to minimize an Akaike information criterion (AIC).

[0013] A fifth aspect of the present invention provides the angular correction method according to the fourth aspect of the present invention where the order of the polynomial is determined so that the polynomial is of the lowest order.

[0014] A sixth aspect of the present invention provides a rotary encoder including: a dial, having angular graduations formed therein; a detector, reading angular graduation image positions of light transmitted through the angular graduations; and a computing unit, obtaining a measured angle value by interpolation calculation from the angular graduation image positions; and where the computing unit corrects the measured angle value by using the residual r.sub.i and the tangential slope f'(x.sub.i) prepared and recorded by the angular correction method according to the first, second, third, fourth, or fifth aspect.

Effect(s) of the Invention

[0015] With the first aspect of the present invention, because the residual curve of the predetermined order with which angular skip is least likely to occur is determined and the residual r and the tangential slope f' (x) of the residual curve are memorized as the angular correction data, a measured angle value correction quantity for which the angular skip is extremely small can be computed and a highly precise measured angle value can be obtained with a surveying instrument in which the angular correction data are memorized.

[0016] With the second aspect of the present invention, because the residual curve of the order with which angular skip is least likely to occur is determined from among the residual curves, r=f(x), that are polynomials of respective orders of no less than the 0-th order and the residual r and the tangential slope f' (x) of the residual curve are memorized as the angular correction data, a measured angle value correction quantity for which the angular skip is extremely small can be computed and a more highly precise measured angle value than that which can be obtained by the first aspect of the present invention can be obtained with a surveying instrument in which the angular correction data are memorized.

[0017] With the third aspect of the present invention, because the angular correction data are prepared by determining the residual curve of the most appropriate order upon restricting the orders of the polynomials of the residual curves, r=f(x), in the range of the 0th to 7th orders, the angular correction data can be prepared more rapidly.

[0018] With the fourth aspect of the present invention, because the order of the polynomial of the residual curve, r=f(x), is determined to minimize the AIC, the most appropriate polynomial order is selected and an even more precise measured angle value can be obtained.

[0019] With the fifth aspect of the present invention, because the order of the polynomial of the residual curve, r=f(x), is determined to be the lowest order, more stable angular correction data can be prepared.

[0020] With the sixth aspect of the present invention, because the residual r.sub.i and the tangential slope f'(x.sub.i) of the residual curve, r=f(x), are recorded by the angular correction method according to the first, second, third, fourth, or fifth aspect as the angular correction data in the surveying instrument, a highly precise rotary encoder with which the angular skip is made extremely small by the use of the angular correction data is provided.

BEST MODES FOR CARRYING OUT THE INVENTION

[0021] An embodiment of the present invention shall now be described in detail based on the drawings. FIG. 1 is a block diagram of a rotary encoder according to the present invention. FIG. 2 is a diagram for describing a model of regression analysis used for interpolation calculation in angle measurement by the rotary encoder. FIG. 3 is a diagram of a measurement example of residuals, which are given as differences between actually read positions and the positions computed from the model shown in FIG. 2 though regression analysis by using a plurality of successive slit images, of respective slit images. FIG. 4 is a diagram for describing a residual curve, r=f(x) FIG. 5 is a formula for computing respective coefficients and a constant of the f(x). FIG. 6 is a diagram for describing a method for computing a correction quantity in the interpolation calculation. FIG. 7 is also a diagram for describing a method for computing a correction quantity in the interpolation calculation. FIG. 8 is a flowchart for describing a procedure for preparing angular correction data used in the interpolation calculation.

[0022] The configuration of the rotary encoder according to the present embodiment is the same as the conventional rotary encoder shown in FIG. 1. The rotary encoder according to present embodiment includes a dial 1, slits 11, which are angular graduations formed along a peripheral edge of the dial 1, a light source 2, illuminating the slits 11, a CCD linear sensor 3, reading the projected images of the slits 11, an A/D converter 5, converting an output signal from the CCD linear sensor 3 to a digital signal, a CPU (computing unit) 6, computing an angle from an output signal of the A/D converter, and a display unit 7, displaying the computed angle.

[0023] However, with the rotary encoder according to the present embodiment, angular skip can be made less likely to occur in the interpolation calculation in the angle measurement by the CPU 6. A method for computing the correction quantity by which the angular skip can be made less likely to occur in the present rotary encoder shall now be described in detail.

[0024] First, by Formula (2), described above, a residual r.sub.i of the i-th slit image among the plurality of successive slit images is determined. FIG. 3 shows the residuals r of the slit images used in the interpolation calculation. The abscissa of the figure indicates a slit image number x and the ordinate indicates the residual r. With the slit image numbers x, an integer value is allocated successively from an end at one side to the successive slit images used in the interpolation calculation. That is, successive numbers are assigned in a manner such that the slit image number of the slit image at the end at one side is 1, the slit image number of an adjacent slit image is 2, and the slit image number of a next adjacent slit image is 3. A characteristic of the residuals r in FIG. 3 is that the residuals depend more on optical distortions of the light sending system and the light receiving system than on randomness in position among individual slits. That is, regardless of which positions of the dial 1 are projected on the CCD linear sensor 3, the magnitudes of the residuals r are substantially the same in magnitude at the respective positions of the CCD linear sensor 3 and as to which slits of the dial 1 are being detected is not so relevant. In other words, the shape of the residuals r of FIG. 3 does not vary and is maintained even if the dial 1 rotates.

[0025] A relationship between the slit image numbers x and the residuals r is shown in FIG. 4. The residual curve, r=f(x), is determined. As f(x), an n-th order polynomial, such as the following, is considered. f(x)=a.sub.nx.sup.n+a.sub.n-1x.sup.n-1+ . . . +a.sub.1x+a.sub.0 (3)

[0026] The residuals r at the slit image numbers x are fitted to the form of the polynomial, f(x). If the number of slit images used in the interpolation calculation is N, the slit image numbers x are such that the slit image number of the slit image at the end at one side that is the side of lower angular graduation is x.sub.1, that of the adjacent slit image is x.sub.2, that of the next adjacent slit image is X.sub.3, and so that as a whole, there are the slit image numbers x.sub.1 to X.sub.N. With respect to the N slit images from x.sub.1 to X.sub.N, slit images at both ends of the range of the slit images used in the interpolation calculation are added with the slit image number thereof being x.sub.0 and X.sub.N+1 and 0 and N+1 being allotted as specific numerical values. The slit image numbers x are thus as follows: x i = .times. ( x 0 , x 1 , x 2 , .times. , x i , .times. , x N , x N + 1 ) = .times. ( 0 , 1 , 2 , .times. , i , .times. , N , N + 1 ) ( 4 ) ##EQU1##

[0027] The residuals r.sub.0 and r.sub.N+1 of the slit images indicated by the slit image numbers x.sub.0 and X.sub.N+1 are determined by Formula (2). The respective coefficients can be calculated from Formula (5), shown in FIG. 5. However, it should be noted that the calculation using Formula (5) is performed using just the N slit images used in the interpolation calculation and the slit images at both sides of the range are not used.

[0028] Although it may be possible to correct the angular skip using f(x) thus determined, the present form is not yet in a preferable form from a standpoint of performing correction of high reliability. The residual curve, r=f(x), generally does not pass through the measured residual points (x.sub.i, r.sub.i) and is thus not adequate in precision, and to correct the angular skip with higher precision, the following is performed.

[0029] As shown in FIG. 6, atangent to the residual curve, r=f(x), at the point, x=x.sub.i, is determined as in the following formula: r-f(x.sub.i)=f'(x.sub.i)(x-x.sub.i) (6)

[0030] In the above, f' (x)=df(x)/dx, and a tangential slope f' (x) is expressed by the following formula: f'(x)=na.sub.nx.sup.n-1+(n-1)a.sub.n-1X.sup.n-2+ . . . +a.sub.1 (7)

[0031] In general, the tangent expressed by Formula (6) does not pass through the point, (x.sub.i, r.sub.i). A difference .DELTA.r.sub.i between f(x.sub.i) and r.sub.i is expressed by the following formula: .DELTA.r.sub.i=r.sub.i-f(x.sub.i) (8)

[0032] When a large distortion occurs in detected slit images due to attachment of debris on the CCD linear sensor 3 or on slits 11 of the dial 1, etc., these slit images are not used in the interpolation calculation and the interpolation calculation is performed using the other slit images that are not distorted. When a slit image, with which an absolute value of .DELTA.r.sub.i, given by Formula (8), takes on a large numerical value, is distorted greatly by debris, etc., and is eliminated from use in the interpolation calculation, an angle error due to the difference, .DELTA.r.sub.i, is generated.

[0033] Thus, a correction quantity C.sub.i for a slit image position P.sub.i of the i-th slit image number x.sub.i is determined by the following formula: C.sub.i=f'(x.sub.i)(x-x.sub.i)+r.sub.i (9)

[0034] A correction range B for the i-th slit image number x.sub.i is the range given by the following formula: x.sub.i-0.5<x.ltoreq.x.sub.i+0.5 (10)

[0035] The following formula is obtained from the Formula (10) -0.5<x-x.sub.i.ltoreq.0.5 (12)

[0036] By substituting the following Formula (13) into the Formula (12), Formula (14), shown below, is obtained: x=x.sub.i+X (13) -0.5<x.ltoreq.0.5 (14)

[0037] When X is used, the Formula (9) becomes as follows: C.sub.i=f'(x.sub.i)X+r.sub.i (15)

[0038] A method for determining X shall now be described. The combination of slit images made up of the plurality of successive slit images used in the interpolation calculation is determined by two slit image positions, P.sub.k and P.sub.k+1 (positions using the pixel number as a coordinate, that is, CCD pixel number coordinates) that sandwich a foot, P.sub.0, of a perpendicular drawn from the center O of the dial 1 to the CCD linear sensor 3. A relationship among P.sub.0, P.sub.k, and P.sub.k+1 is shown in FIG. 7. Here, it shall be deemed that the CCD pixel number coordinate indicated by the slit image of the slit image position P.sub.k takes on a smaller coordinate value than the CCD pixel number coordinate indicated by the slit image of the slit image position P.sub.k+1. In this case, N/2 slit images, at the side of smaller CCD pixel number coordinate from the slit image corresponding to P.sub.k and including this slit image, are used in the interpolation calculation and N-N/2 slit images, at the side of larger CCD pixel number coordinate from the slit image corresponding to P.sub.k+1 and including this slit image, are used in the interpolation calculation. Based on the above, X is determined by the following formula: X=(P.sub.k+1-P.sub.0)/(P.sub.k+1-P.sub.k)-0.5 (16)

[0039] When X increases, the slit images move in a relative manner toward larger CCD pixel number coordinates of the CCD linear sensor 3 with respect to P.sub.0. By substituting Formula (16) into Formula (15), the following formula is obtained: C.sub.i=f'(x.sub.i){(P.sub.k+1-P.sub.0)/(P.sub.k+1-P.sub.k)-0.5}+r.sub.i (17)

[0040] To perform angular skip correction, when the most probable values of P.sub.0, A.sub.0, and R of Formula (1) are determined by regression analysis, the correction quantity c.sub.i, shown in Formula (17), is computed by using f'(x.sub.i) and r.sub.i which are determined and recorded in advance as angular correction data, and by using a value calculating (P.sub.k+1-P.sub.0)/(P.sub.k+1-P.sub.k) during the measurement. The correction quantity C.sub.i is added to the i-th slit image position P.sub.i of the slit image used in the interpolation calculation as calculating P.sub.i+C.sub.i. Then this value P.sub.i+C.sub.i is used as the new slit image position to perform regression analysis determining the most probable values of P.sub.0, A.sub.0, and R of Formula (1) and computing the angle.

[0041] The order of the polynomial f(x) of the residual curve, r=f(x), determined from Formula (4) and Formula (5) is not determined in advance, and each encoder unit is made to select an optimal order. However, the range up to the maximum order is restricted from the 0th to 7th orders. This is because it was found from several experiments that orders up to the maximum of the 7th order suffice.

[0042] A procedure for preparing the angular correction data shall now be described using the flowchart of FIG. 8. First, in step S1, the residual r.sub.i is measured and memorized for each slit image among the N successive slit images used in the interpolation calculation. Next, step S2 is entered and data of the residuals r.sub.i are fitted to the residual curve, r=f(x), that is the n-th order polynomial f(x) and the respective coefficients a.sub.n to a.sub.1 and the constant a.sub.0 of f(x) are computed. However, at the start, the order of f(x) is the 0th order.

[0043] Step S3 is then entered and the AIC (Akaike information criterion), which is generally used as a guideline for model selection, is computed. In a case where variance is unknown, the AIC is calculated by the following formula: AIC=N.revreaction.lnS+2M (23)

[0044] In the above, S is a sum of squared residuals of the residuals .epsilon. between the n-th order polynomial, determined by the fitting calculation, and the residuals r used in the calculation of the polynomial. N is the number of data. M is the number of parameter and with the n-th order polynomial of Formula (3), M=n+1. The AIC expresses a degree of poorness of the model obtained, and the greater the numerical value thereof, the poorer the model.

[0045] Step S4 is then entered, and the tangential slope f' (x.sub.i) of the residual curve, r=f(x), at the point, x=x.sub.i (the i-th slit image number among the slit images used in the interpolation calculation plus the slit images at both ends of the range), is computed and memorized.

[0046] Step S5 is then entered, and using the memorized residual r and the tangential slope f'(x), the correction quantity C.sub.i of the i-th slit image position P.sub.i is computed. Using the correction quantity C.sub.i, the slit image position P.sub.i is corrected as P.sub.i+C.sub.i to perform regression analysis of the form of Formula (1) and the angle .theta..sub.0 is determined. The combination of N-successive slit images used in the interpolation calculation is switched by one image to a forward side (to the side toward which the angular graduation decreases or the side toward which the pixel number decreases) and then by one image to a backward side (to the side toward which the angular graduation increases or the side toward which the pixel number increases) and using the correction quantity C.sub.i to correct the slit image position P.sub.i as P.sub.i+C.sub.i in each case, the angles .theta..sub.-1 and .theta..sub.+1 are determined. From absolute values, |.theta..sub.-1-.theta..sub.0| and |.theta..sub.+1-.theta..sub.0|, of magnitudes of the changes from the angle .theta..sub.0 before switching the slit image combination to the angles .theta..sub.-1 and .theta..sub.+1 after switching the slit image combination, the respective angular skip quantities are computed and memorized.

[0047] Step S6 is then entered and it is checked whether or not the respective angular skip quantities have been computed for all polynomials f(x) from the 0th order polynomial to the 7th order polynomial. If there is an order n for which computation has not been performed, step S1 is returned to and steps S1 to S5 are repeated. If the angular skip quantities have been computed for all polynomials f(x) from the 0th order polynomial to the 7th order polynomial, step S7 is entered.

[0048] When step S7 is entered, the angular skip quantities before and after switching of the slit image combination of the respective polynomials f(x) that were memorized in step S5 are compared to determine the order of the polynomial f(x) for which angular skip is least likely to occur, that is, the order of the polynomial f(x) for which the frequency at which the angular skip quantity is the minimum is maximized is determined to determine the order of f(x). However, when a plurality of such orders exist, the order is determined as that for which the AIC, indicated by Formula (23), is minimized. If polynomial orders are also equivalent in terms of AIC, the lowest order among such orders is determined as the order of f(x).

[0049] Step S8 is then entered and the tangential slope f'(x) of f(x) of the order determined in step S7 is recorded along with the residual r as the angular correction data.

[0050] The residual r and the tangential slope f'(x), which are the angular correction data recorded in step S8, can then be used in subsequent measurements to perform interpolation calculation of small angular skip. Although in the present embodiment, the residual r used in the angular correction data preparation was determined from a slit image detected in a single reading by the CCD linear sensor 3, more precise angular correction data may be prepared by detecting slit images at a plurality of locations of the dial 1 by rotating the dial 1 by a fixed angle at a time. The residual r is determined for each location and an average residual e is also determined by averaging the residuals r at the respective slit image positions. Then the average residual e is applied to the present embodiment to prepare the angular correction data.

[0051] As is clear from the above description, the following effects are provided by the rotary encoder according to the present embodiment. Because the residual curve, r=f(x), of the order, among the 0th to 7th orders, for which angular skip is least likely to occur, is determined and the residual r.sub.i and the tangential slope f' (x.sub.i) of the residual curve, r=f(x), are memorized as angular correction data, a measured angle value of small angular skip can be obtained rapidly at high precision by computing the correction quantity C.sub.i using the angular correction data. Further, because the order of the polynomial f(x) of the residual curve, r=f(x), is determined so that the AIC is minimized and so that the order is the minimum order, correction data that is even more precise and stable can be prepared.

[0052] Further, because the correction quantity C.sub.i passes through the measured residual value point (x.sub.i, r.sub.i), even if a slit image is distorted due to debris, etc., and not used in the interpolation calculation, hardly any angular error occurs. Also, because the correction quantity C.sub.i is a first order equation, integer computation in a program is enabled, thereby enabling a processing load to be kept low and a high processing speed to be realized.

BRIEF DESCRIPTION OF THE DRAWINGS

[0053] FIG. 1 is a block diagram of a rotary encoder according to the present invention.

[0054] FIG. 2 is a diagram for describing a model used for interpolation calculation in angle measurement by the rotary encoder.

[0055] FIG. 3 is a diagram of a measurement example of residuals of measurement values obtained by the model.

[0056] FIG. 4 is a diagram for describing a residual curve, r=f(x).

[0057] FIG. 5 is a formula for computing respective coefficients and a constant of the f(x).

[0058] FIG. 6 is a diagram for describing a method for computing a correction quantity in the interpolation calculation.

[0059] FIG. 7 is a diagram for describing a method for computing a correction quantity in the interpolation calculation.

[0060] FIG. 8 is a flow diagram for describing a procedure for acquiring angular correction data used in the interpolation calculation.

DESCRIPTION OF THE REFERENCE NUMERALS

[0061] 1 dial [0062] 2 light source [0063] 3 CCD linear sensor (detector) [0064] 6 arithmetic control unit (CPU) [0065] 11 slit (angular graduation) [0066] C.sub.i correction quantity [0067] f(x) polynomial [0068] f'(x), f' (x.sub.i) tangential slope of polynomial (angular correction data) [0069] P, P.sub.i slit image position (angular graduation image position) [0070] r, r.sub.i residual (angular correction data) [0071] x, x.sub.i slit image number

* * * * *


uspto.report is an independent third-party trademark research tool that is not affiliated, endorsed, or sponsored by the United States Patent and Trademark Office (USPTO) or any other governmental organization. The information provided by uspto.report is based on publicly available data at the time of writing and is intended for informational purposes only.

While we strive to provide accurate and up-to-date information, we do not guarantee the accuracy, completeness, reliability, or suitability of the information displayed on this site. The use of this site is at your own risk. Any reliance you place on such information is therefore strictly at your own risk.

All official trademark data, including owner information, should be verified by visiting the official USPTO website at www.uspto.gov. This site is not intended to replace professional legal advice and should not be used as a substitute for consulting with a legal professional who is knowledgeable about trademark law.

© 2024 USPTO.report | Privacy Policy | Resources | RSS Feed of Trademarks | Trademark Filings Twitter Feed