Displacement detecting encoder

Information

  • Patent Application
  • 20080015805
  • Publication Number
    20080015805
  • Date Filed
    June 25, 2007
    17 years ago
  • Date Published
    January 17, 2008
    17 years ago
Abstract
A displacement detecting encoder including a scale having a positional code that contains positional information, a detection portion which is disposed so as to make a relative movement with respect to the scale and detect at least a part of the positional code equipped on the scale and a processing portion which processes a part of the positional code detected by the detection portion, thereby outputting the positional information, wherein the detected positional code is evaluated by positional code generating means for generating the positional code to detect the presence or absence of erroneous information. Thereby, an error in detecting a pseudo random code is detected by using a minimum code without addition of a redundant code and also correction can be made, thereby improving the reliability of generating ABS position signals.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The preferred embodiments will be described with reference to the drawings, wherein like elements have been denoted throughout the figures with like reference numerals.



FIG. 1 is a view showing an example of an Maximum Length pseudo random code.



FIG. 2 is a view showing a method for generating the Maximum Length pseudo random code.



FIG. 3 is a view showing an embodiment of the apparatus for executing the present invention.



FIG. 4 is a view showing one method for recalculating the pseudo random code with reference to the present invention.



FIG. 5 is a view showing another method.



FIG. 6 is a view showing a method for correcting a detection error.



FIG. 7 is a view showing an exemplified variation of the apparatus.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

A detailed description will be made for embodiments of the present invention with reference to the drawings shown below.


First, a description will be made for a method for generating the Maximum Length pseudo random code with reference to FIG. 2.


Where an initial value is given as a 16-digit number of 1110001000010100, a tap position is placed on the first digit, fifth digit, seventh digit, and fourteenth digit, pseudo random number P0 is defined by the following formula.





P0=D0 xor D1 xor D2 xor D3  (1)


In this formula, D0 is data of tap position 1, D1 is data of tap position 5, D2 is data of tap position 7 and D3 is data of tap position 14.


According to Data D0 to D3 respectively covering each of the tap positions 1, 5, 7, 14 and the formula (I), the 17th digit pseudo random number P0 is obtained.


Further, this calculation is repeated (in the case of FIG. 2, proceeding to the right), by which an Maximum Length pseudo random code illustrated in FIG. 2 is obtained. The thus obtained Maximum Length pseudo random code is arranged as a pattern on a scale 10 (exemplified by a transmissive type) as shown in FIG. 3.


Then, a light emitting element 20 shown in FIG. 3 is used to illuminate the scale 10, and transmitted light is detected by a light receiving element array 24 capable of receiving light for 58 digits, for example, and the result is calculated by a signal processor 30 to obtain an absolute position.


The signal processor 30 is constituted with a noise filter amplifying circuit 32 in which, for example, signals obtained by sweeping output signals of a light receiving element array 24 along a direction of measurement axis are cut for high frequency noise by using a low pass filter and also amplified by a predetermined gain, an A/D conversion circuit 34 for converting analog signals output from the noise filter amplifying circuit 32 to digital signals for signal processing, a binary circuit 36 for binarizing an output of the A/D conversion circuit 34 by a predetermined threshold value, a detection/correction circuit 38 for detecting and correcting an error by using the formula (1) for generating a pseudo random code according to the present invention, an ABS position detection circuit 40 for detecting an ABS position by a correlation calculation of scale pattern design values and detected signals, an incremental position detection circuit 42 for detecting an incremental position by generating a 2-phase sine wave of 90-degree phase difference from a 4-phase sine wave of 90-degree phase difference (not illustrated) and making an arc tangent calculation for the purpose of interpolating the ABS position to increase the resolution, and a position synthesizing circuit 44 for outputting a high-resolution absolute position by interpolating an ABS position signal input from the ABS position detection circuit 40 by an incremental position signal input from the incremental position detection circuit 42.


A correlation function used in making a correlation calculation of the ABS position detection circuit 40 is subjected to either a difference calculus method or a multiplication method.


There is a case where an error detection may occur due to attachment of dust and the like on detecting a pattern on the scale 10 as shown in FIG. 2.


Therefore, in the present invention, a method for generating a pseudo random code is used to recalculate with respect to the detected pseudo random code. In other words, as shown in FIG. 4, where bits of a frame are recalculated, for example, upon detection of a 58-digit Maximum Length pseudo random code, data D0, D1, D2 and D3 respectively covering the tap positions 1, 5, 7, 14 are used to compare data calculated on the basis of the formula (1) with actual data P0 on the 17th digit.


Then, as shown in the upper part of FIG. 4, where these two pieces of data are in agreement, a judgment is made that there is no error.


On the other hand, as shown in the lower part of FIG. 4, where the recalculated results are not in agreement, there is an error in any one of the bits to be recalculated, that is, D0, D1, D2, D3 or P0. Therefore, an error is corrected, or the result is not used in generating an ABS position signal.


Alternatively, it is possible to make recalculation by the following method. In this method, an error detecting bit E is defined with reference to the formula (1) as follows.





E=DO xor D1 xor D2 xor D3 xor P0  (2)


Then, as shown in the upper part of FIG. 5, where the error detecting bit E is 0, P0 is in agreement with the calculation result of the formula (I) to be 1 or 0. Therefore, a judgment is made that there is no error.


On the other hand, as shown in the lower part of FIG. 5, where the error detecting bit E is 1, an error exists in any of the bits to be recalculated. Therefore, the error is corrected, or the result is not used in generating an ABS position signal.


Further, although the presence of an error detecting bit can be found, the method shown in FIG. 4 or FIG. 5 is unable to specify an error making bit or make correction. Therefore, the following method is used to specify error making bits.


More specifically, in order to correct a detection error, it is necessary to detect at which bit an error occurs. Therefore, the error detecting bits of E0 to E4 are defined with respect to the bits to be recalculated in FIG. 6.


Then, where the error detecting bits of E0 to E4 are all to be given as 1, a bit to be recalculated Px is found to be erroneous. Therefore, the bit to be recalculated Px is corrected for the value. In this case, the bit to be recalculated Px in the drawing is corrected from 0 to 1.


In the embodiments described above, an error is detected and corrected on the basis of calculation results obtained by using the above calculation formula. Alternatively, a combination of detection bits at each position is calculated in advance by using the above formula, and the combination of detection bits and positional information are given as a set, which may be stored in a corresponding table. Then, the thus detected detection position bits are used to detect an error with reference to the corresponding table, by which the necessity for making a calculation processing can be eliminated to speed up error detection and correction.


Further, in the embodiments described above, the present invention is applied to a transmissive type scale. The present invention is not restricted thereto, and is similarly applicable to a reflective type scale as shown in FIG. 7. Types of pseudo random codes are not restricted to Maximum Length. Similarly, the number of rows of initial values, tap positions and number of digits of detection codes are not restricted to those described in the embodiments.


Where a high resolution is not required, it is also possible to omit the detection of an incremental position and carry out only the detection of the ABS position.


It should be apparent to those skilled in the art that the above-described embodiments are merely illustrative which represent the application of the principles of the present invention. Numerous and varied other arrangements can be readily devised by those skilled in the art without departing from the spirit and the scope of the invention.

Claims
  • 1. A displacement detecting encoder including: a scale having a positional code that contains positional information;a detection portion which is disposed so as to make a relative movement with respect to the scale and detect at least a part of the positional code provided on the scale; anda processing portion which processes a part of the positional code detected by the detection portion, thereby outputting the positional information, whereinthe detected positional code is evaluated by positional code generating means for generating the positional code to detect the presence or absence of erroneous information.
  • 2. The displacement detecting encoder according to claim 1, wherein a judgment is made that there is no error where the detected positional code is in agreement with a positional code generated by the positional code generating means, and a judgment is made that there is an error where the codes are not in agreement.
  • 3. The displacement detecting encoder according to claim 2, wherein the presence or absence of erroneous information is detected with reference to values of an error detecting bit defined on the basis of the positional code.
  • 4. The displacement detecting encoder according to claim 3, wherein a plurality of the error detecting bits are defined and an error making bit is specified with reference to values of the bits.
  • 5. The displacement detecting encoder according to claim 1, wherein the positional code contains a pseudo random code.
  • 6. The displacement detecting encoder set forth in claim 5, wherein the positional code generating means contains a formula for generating the pseudo random code.
  • 7. The displacement detecting encoder according to claim 1, wherein the positional code generating means is provided with a corresponding table of positional information and positional codes.
  • 8. The displacement detecting encoder according to claim 1, wherein on the basis of the result which detects the presence or absence of the erroneous information, the detected erroneous information is removed.
  • 9. The displacement detecting encoder according to claim 1, wherein on the basis of the result which detects the presence or absence of the erroneous information, the detected erroneous information is corrected.
  • 10. The displacement detecting encoder according to claim 1 which is additionally provided with incremental position detection means for interpolating positional information detected by the positional code to increase resolution.
Priority Claims (1)
Number Date Country Kind
2006-183560 Jul 2006 JP national