EP0039921B1 - Encoder device and method of use of it - Google Patents
Encoder device and method of use of it Download PDFInfo
- Publication number
- EP0039921B1 EP0039921B1 EP81103499A EP81103499A EP0039921B1 EP 0039921 B1 EP0039921 B1 EP 0039921B1 EP 81103499 A EP81103499 A EP 81103499A EP 81103499 A EP81103499 A EP 81103499A EP 0039921 B1 EP0039921 B1 EP 0039921B1
- Authority
- EP
- European Patent Office
- Prior art keywords
- code
- line sensor
- relative movement
- sensor
- digits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/12—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
- G01D5/244—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
- G01D5/249—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains using pulse code
- G01D5/2492—Pulse stream
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/22—Analogue/digital converters pattern-reading type
- H03M1/24—Analogue/digital converters pattern-reading type using relatively movable reader and disc or strip
- H03M1/28—Analogue/digital converters pattern-reading type using relatively movable reader and disc or strip with non-weighted coding
- H03M1/30—Analogue/digital converters pattern-reading type using relatively movable reader and disc or strip with non-weighted coding incremental
- H03M1/303—Circuits or methods for processing the quadrature signals
- H03M1/305—Circuits or methods for processing the quadrature signals for detecting the direction of movement
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/60—Analogue/digital converters with intermediate conversion to frequency of pulses
Definitions
- the present invention relates to an improvement in a method and a device for measuring a linear displacement or a rotation angle.
- a scale For measuring by remote control a distance of displacement or a rotation angle of a moving object from a reference point, a scale is mounted to the object while a sensor is utilized which outputs an output signal when the scale has passed in front of it, thereby counting the number of the output signals thus output from the reference point of the scale.
- the above-mentioned measuring method is the so-called incremental method which measures according to the relative displacement between the scale and the sensor, the relative relations of the scale and the sensor must be set in advance so that the count becomes zero when the reference point of the scale is in front of the sensor.
- the pattern codes representing the distances from the reference point must be marked on the scale.
- These pattern codes generally comprise a plurality of tracks, requiring a corresponding number of sensors. This results in a complex and expensive device.
- US-A-4,074,258 discloses an encoder which solves the problems of the conventional encoders.
- This encoder comprises a scale having coded references, such as an identification bit and interpolation mark, which are distributed at equal intervals along displacement direction of the scale, and a linear matrix of sensor elements for detecting the coded references.
- coded references such as an identification bit and interpolation mark
- the upper significant digit of the amount of relative displacement between the scale and the linear matrix is identified by detecting the identification bit.
- the lower significant digit is identified by measuring the distance between one end of the linear matrix of the sensor elements and the interpolation mark, using the length of the individual elements as a unit of length.
- any noise component e.g., dust or a defect in the line sensor
- the interpolation mark may not be accurately detected, resulting in an error in the readings of the lower significant digits.
- the present invention has been made in consideration of this and has as its object to provide an encoder device which adopts the absolute method and which is inexpensive and simple in construction.
- Another object of the invention is to provide an encoder device with high precision and reliability against the noise component.
- a scale which records codes consisting of "0" and “1” obtained by encoding a length or angle from a reference point, and a sensor for reading the codes of the scale comprises a line sensor in which a plurality of sensor elements are arranged at equal intervals.
- a line sensor As such a line sensor are known charge effect type sensors which perform self-scanning, among which is particularly well known a CCD line sensor. Therefore, the principle of the present invention in which a CCD line sensor is used as the above-mentioned sensor will first be described, and the present invention will then be described with reference to its preferred embodiments.
- a charge effect type sensor as may be typically represented by a charge coupled device (CCD), comprises a photoelement part, a gate part, and a shift register part.
- the photoelement part includes a number of elements arranged linearly. Each of these elements has a function to store a charge corresponding to the product of the time and the illuminance of the incident light thereon.
- the shift register has the same number of bits as the elements in the photoelement part. To each bit is transferred the charge on the corresponding element through the gate part parallel to each other. When a scanning pulse is supplied, the charges on the respective bits are time-serially output.
- the width of the respective elements constituting the photoelement part may be set to the order of less than about 15 microns, so that high precise measurements may be possible.
- a charge effect type sensor such as a CCD Y consisting of a photoelement part F, a gate part G, and a shift register part R is opposed to one surface of a scale C with linearly alternating light parts A (transparent) and dark parts B (opaque).
- the light transmitted through the light part A becomes incident on the photoelement F.
- the charge corresponding to the light incident on the element is stored on this element.
- an output CO as shown in Figure 2D is output from a differential amplifier H.
- a signal C01 from the photoelement part containing the noise of the shift register part or the like and a signal C02 containing only the noise are obtained as the output of the CCD Y of the construction described above.
- the noise component C02 must be removed from the singal CO by the differential amplifier H.
- the output CO of the differential amplifier will be referred to as the CCD output.
- Figure 2D shows a case wherein the width of the light part A is set to equal three elements constituting the photoelement part F, and the three elements are opposed to the light part A.
- the differential amplifier H time-serially outputs three signals in a group in correct correspondence with the above-mentioned opposing relationship. It thus becomes possible, with the combination of a charge effect type sensor and a scale coding the distance from a reference point with a light-dark pattern, to measure the distance from the reference point of the scale, that is, the length, with a precision of about 15 microns or less.
- the scale and the sensor are arranged in a manner as shown in Figure 3.
- the scale C is divided into a plurality of blocks of equal length arranged in the longitudinal direction.
- Npth block and Np- 1 th block are shown.
- a marker M in the form of a light part and having a width corresponding to four elements of the photoelement part F, the width for one element being the reference width.
- a block stop marker D comprising the dark part corresponding to four elements of the CCD Y.
- the width of one element of the marker M which is adjacent thereto is referred to as a marker bit Im.
- the address part P1 corresponds to a binary code 2°
- the address part P2 corresponds to a binary code 2 1
- the address part P3 corresponds to a binary code 2 2
- the address parts P1 and P3 are light parts and the other address parts are dark parts.
- the respective elements of the photoelement part F of the CCD Y are provided with bit numbers as shown in the figure. More precisely, serial bit numbers are given to the elements arranged behind the element which corresponds to the marker bit lm detected, in the same way as at label F 10 of the flow chart shown in Figure 5 which will be later described.
- a particular bit is designated as an index bit In.
- the scale C is irradiated with parallel light rays forming a beam of width X which is substantially equal to the width of two blocks, and the light-receiving conditions of the @ and 7bits, and bits, and bits, and bits and so on are first detected. In this example, the 6 and 7 bits are ON so that the 2° digit is ON.
- This value E is obtained in the case wherein the address of the block whose marker is located to the right of the index bit is measured, as shown in Figure 3. However, when measuring the address of the block which is to the left of the index bit In, the measurement E may be expressed as
- a distance that is, a length
- a distance may be measured with a simple and inexpensive structure without detecting the reference point. This also applies to the measurement of angles.
- reference numeral 1 denotes a linear scale mounted to a moving object (not shown). This scale 1 is divided into n blocks of the same length in the longitudinal direction as the blocks shown in Figure 3. As in the case of Figure 3, each block includes, in the form of a pattern, the marker M, the stop marker D, and the address parts P1, P2, ....
- a light source 2 comprising a light emitting diode, for example.
- the light emitted from the light source 2 is converted into parallel light rays by a lens system 3 and the scale 1 is irradiated with this light.
- a charge effect type sensor for example, for detecting the light transmitted through the scale 1 via another lens system 3'.
- the CCD 4 comprises, as has already been described, the photoelement part F consisting of a plurality of elements, the gate part G, and the shift register part R. When the gate pulse S is supplied the charge stored on the photoelement part F is transferred to the shift register part R.
- the resetting pulse Z as well as the scanning pulses ⁇ 1 and ⁇ obtained by 1/2 frequency-dividing and having a mutual phase difference of 180° are supplied to the shift register part R, its content is time-serially output.
- the driving status of the CCD 4 is controlled by a microcomputer 6 through a pulse control circuit 5.
- An output CO of the CCD 4 is processed by the microcomputer 6 through an A/D converting circuit 7 and is displayed at a display device 8.
- the light source 2, the lens systems 3 and 3', and the CCD 4 are assembled within a box body 10 and are fixed such that the scale 1 is interposed between the parts without contacting them.
- the pulse control circuit 5 described above is constructed in the manner described below.
- a pulse P2 supplied from the microcomputer 6 in a manner to be described below is supplied to the CCD 4 as the resetting pulse Z as well as to a clock terminal C of a flip-flop circuit 12 (a flip-flop which is rendered operative by the leading edge of the clock signal) through an inverter 11.
- This flip-flop circuit 12 is a T-flip-flop having an output Q supplied to an input terminal D of the flip-flop circuit 12.
- the output Q is supplied to the CCD 4 as the scanning pulse ⁇ 1 and an output Q is supplied as the scanning pulse ⁇ 2.
- the A/D converting circuit 7 is cleared when an A/D control terminal AC of the microcomputer 6 is at level “1" and performs AID conversion when it is at level "0".
- a terminal AE of the microcomputer 6 which has been maintained at "1" during the operative condition is changed to "0".
- the encoder device of the construction described above operates according to a program set in the microcomputer 6.
- the microcomputer 6 comprises a micro CPU (central processing unit), a line memory for storing an A/D converted output of the CCD 4, data memories for storing operation results of the micro CPU, and a program memory for storing a program.
- the micro CPU comprises a general CPU which comprises an arithmetic and logic unit, a set of general registers, a control part and so on.
- a scale which encodes the distance from a reference point with a light-dark pattern
- a charge effect type sensor represented by a CCD is adopted as a sensor for reading the pattern codes of the scale. Since the width of each element constituting the photoelement part of the charge effect type sensor may be set to less than about 15 microns as has been. already described, the pattern codes may be read to the order of less than 15 microns with relatively sparse pattern codes. Accordingly, a high precision may be accomplished with the absolute method while allowing a simple and inexpensive construction.
- the upper significant digit of each block is identified by detecting the recorded address of the block.
- the lower significant digit of each block is identified by measuring the distance between the marker bit position and a reference position, using the length of individual elements as a unit of length.
- the marker bit position is identical with the photoelement on which there is projected a pattern, e.g. a marker bit Im ( Figure 3), put on each block at a predetermined position.
- the reference position is identical with any one of the photoelements.
- the said embodiment will be described with reference to Figure 3.
- a code plate similar to that used in Figure 3 is used, although the functions of the marker M and the marker bit lm are significantly different from those of the first embodiment.
- the marker M and the marker bit lm are used only for identification of the positions of the respective patterns (P1, P2, P3, ...) of the address parts, and the data on the reference positions of the respective blocks for reading the lower significant digits is detected by the change of level of the output signal of the line sensor by the address part.
- the position of the elements of the photoelement part opposing the marker bit Im is detected and stored, thereby identifying the position of the element of the photoelement part on which each pattern constituting the address part is projected.
- the pattern P1 of the binary number 2° is projected on the 6 th 7and th elements
- the pattern P2 of the binary number 2' is projected on 10 th and 11 th elements.
- the addresses of the blocks are read in this embodiment as in the first embodiment. The above reading refers to the upper significant digit reading.
- the reading of the lower significant digits is performed in the manner described below.
- level changes are detected on the 4 th, th, th, th, and th elements.
- the position of the marker bit lm is detected in advance, so that level change points between "0" and "1" (corresponding to transparent and opaque) within the block are detected by the 4 th, th, 8th, and th elements are identified.
- the address of the element corresponding to the reference point of the block which is preset may be obtained for each element at which the level changes in the output of the line sensor. For example, since the 4 th element is located to the right of the element at which the marker bit lm is detected by a distance corresponding to four elements, it is judged that it has detected the point of level change of the output signal at the right end of the marker M. Accordingly, it is seen that the position of the element corresponding to the reference point of the block is located to the right of the 4 th element by a distance corresponding to two elements, that is, the 6 th element.
- the data on the reference point of the block may be obtained under the condition shown in Figure 3. It thus becomes possible to improve the reliability of measurement by, for example, by obtaining a mean value from these five values or by separation or elimination of a particular point due to dust or noise.
- this method when a greater number of elements of the line sensor correspond to each pattern of the address part (when the 2 elements corresponding to each of the patterns P1, P2, ...
- P4 in Figure 3 is increased to a greater number), more or less incorrect detection of the marker bit Im due to deposition of dust on the code plate, the irregular sensitivity of the respective elements of the line sensor, and so on may not affect the readings of the codes unless the error is large enough to make an incorrect indication of the position of the pattern.
- the marker bit Im is used only for indicating the rough positions of the patterns (P1, P2, ... P4) of the address part.
- the reading of the lower significant digits that is, the reading employing the reference unit of the pitch of the elements of the photoelement part, is obtained from the distance between the reference position determined by statistical processing of several data and the index bit In, so that reading may be performed with high precision and reliability.
- Figure 6 shows another embodiment of the present invention according to which each block does not include a particular marker pattern.
- reference numeral 23 denotes part of the code plate consisting only of a block address
- 24 denotes the photoelement part of the line sensor arranged in opposition thereto
- 24' denotes an output of the line sensor.
- Each block address on the code plate is encoded with a 5-bit binary number (2°, 2 1 , 2 2 , 2 3 , and 2 4 ) and is encoded with a width corresponding to 5 elements of the photoelement part of the line sensor.
- Each block is encoded with consecutive binary numbers.
- the binary codes encoded in each block are read as the upper significant digits, and as the lower significant digits the distances between the reference element (index bit In) set at any position of the photoelement part and the predetermined reference positions (a, a', and a", for example) of each block of the code plate are measured with the pitch of the photoelement part as the reference unit.
- the output signal of the line sensor is binary-coded at a suitable level (e.g., 50% level) so that the output signal is represented by a code of "1" or "0".
- a suitable level e.g. 50% level
- the first element with which the binary-value output changes from "0" (opaque part of the code plate) to "1" (transparent part of the code plate) or from "1" to "0" is detected (the @ th element in the figure). It is thus seen that the boundary between the binary bits representing the addresses is on the @ th element. However, it is not yet seen at this stage what digit of the binary number is projected at the boundary position of the bits. In order to identify it, the following process is performed.
- the output of the element of which the center of the respective bit of the binary number is projected it is preferable to make the above judgment using as the reference the element which is two elements to the right of the @ th element.
- the reading of the lower significant digits is performed for every point at which the level of the output signal of the line sensor changes.
- the addresses of the @ th, @ th, @ th, ... K th elements are detected. Since the projected position of the least significant bit and the address of the block are known by the above process, it is seen that the th element is the initial element of the digit of 2 3 of the block address N, and the th element is the initial element of the digit of 2 2 of the block address N.
- the position a is obtained from level change points to of the detected signals
- the position a' is obtained from level change points to
- the position a" is obtained from level change points to .
- a, a' and a" are known to be separated by a distance of one block, that is, a distance corresponding to 25 elements
- the reference position a' of the block including the index bit In may be obtained by arithmetic operations from all the level change points of the signals ( ,... ). Under the ideal conditions as shown in the figure, the detection result of the position a' by the point and the detection result by the point indicate the same value.
- the position a' is indentified as on the th element of the photoelement part.
- these values include some variations due to dust on the code plate or the line sensor protective glass or the like, irregular sensitivity of the elements of the photoelement part, and so on. Therefore, it becomes possible to accomplish reading with high precision and reliability by obtaining a number of values and then obtaining the mean value, or by rejecting the particular point.
- the encoding density of the code plate may be improved and the manufacture of the code plate may be simplified without incorporating within each block a particular pattern representing the reference positions of the block.
- the mean value of the detected values of the position a' from the operation results of the points @ to K is 25.8, the arbitrarily selected index bit In is the @ th element, and the pitch of the elements of the photoelement part of the line sensor is 10 1 1m.
- the address of the block incorporating the index bit In is "10" and each block corresponds to 25 elements, the relative displacement of the line sensor and the code plate may be detected as where the consecutive numbers of the block addresses begin at 1.
- the address information of the block may be encoded with binary codes or gray codes.
- redundancy e.g., a parity bit or the like
- quaternary encoding an so on with a number of threshold values may be performed utilizing intermediate levels, thereby improving the encoding density.
- the light source and the CCD were held stationary and the scale was movable.
- another construction may be adopted according to which the scale and the light source are held stationary, and the CCD is movable.
- the pattern of the scale may be projected on the CCD as the reflected light image instead of the transmitting light image.
- the present invention is also applicable to a magnetic encoder.
- the code plate is constructed according to the presence or absence of magnetic information, magnetic poles, or the presence or absence of magnetization or its associated poles.
- the line sensor may comprise a magnetic sensor array, for example a Hall element array of a pitch similar to that of the CCD Y of Figure 3.
- the principle of the present invention may be directly adopted if the code plate and the Hall element array are substantially in contact with each other.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Optical Transform (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
- Length Measuring Devices By Optical Means (AREA)
Description
- The present invention relates to an improvement in a method and a device for measuring a linear displacement or a rotation angle.
- For measuring by remote control a distance of displacement or a rotation angle of a moving object from a reference point, a scale is mounted to the object while a sensor is utilized which outputs an output signal when the scale has passed in front of it, thereby counting the number of the output signals thus output from the reference point of the scale.
- However, since the above-mentioned measuring method is the so-called incremental method which measures according to the relative displacement between the scale and the sensor, the relative relations of the scale and the sensor must be set in advance so that the count becomes zero when the reference point of the scale is in front of the sensor.
- In order to eliminate such an inconvenience, an absolute method has been proposed according to which the scale is encoded. According to this method, a code plate is used as the scale and is calibrated by encoding the distance from the reference point. Thus, the distance from the reference point is measured by reading it directly. According to this method, the initial setting can be simplified, since the distance from the reference point of the scale opposing the sensor may be readily measured.
- However, when the absolute method is adopted, the pattern codes representing the distances from the reference point must be marked on the scale. These pattern codes generally comprise a plurality of tracks, requiring a corresponding number of sensors. This results in a complex and expensive device.
- US-A-4,074,258 discloses an encoder which solves the problems of the conventional encoders. This encoder comprises a scale having coded references, such as an identification bit and interpolation mark, which are distributed at equal intervals along displacement direction of the scale, and a linear matrix of sensor elements for detecting the coded references. The upper significant digit of the amount of relative displacement between the scale and the linear matrix is identified by detecting the identification bit. The lower significant digit is identified by measuring the distance between one end of the linear matrix of the sensor elements and the interpolation mark, using the length of the individual elements as a unit of length. With such a method and device, when any noise component (e.g., dust or a defect in the line sensor) is present on the interpolation mark or on the line sensor on which is projected the interpolation mark, the interpolation mark may not be accurately detected, resulting in an error in the readings of the lower significant digits.
- The present invention has been made in consideration of this and has as its object to provide an encoder device which adopts the absolute method and which is inexpensive and simple in construction.
- Another object of the invention is to provide an encoder device with high precision and reliability against the noise component.
- The features of the invention are set out in the
method claims device claim 4. - This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which:
- Figure 1 shows an example combining a charge effect type sensor with a scale having a light-dark pattern;
- Figures 2A to 2D show waveforms obtained when the charge effect type sensor of the arrangement shown in Figure 1 is scanned;
- Figure 3 is a view for explaining the principle of the present invention which combines a charge effect type sensor and a scale having a light-dark pattern for measuring lengths;
- Figure 4 shows the construction of the encoder device;
- Figure 5 is a flow chart for explaining the mode of operation of the encoder device shown in Figure 4; and
- Figure 6 shows the construction of the scale used in an encoder device according to an embodiment of the present invention.
- A scale is used which records codes consisting of "0" and "1" obtained by encoding a length or angle from a reference point, and a sensor for reading the codes of the scale comprises a line sensor in which a plurality of sensor elements are arranged at equal intervals.
- As such a line sensor are known charge effect type sensors which perform self-scanning, among which is particularly well known a CCD line sensor. Therefore, the principle of the present invention in which a CCD line sensor is used as the above-mentioned sensor will first be described, and the present invention will then be described with reference to its preferred embodiments.
- A charge effect type sensor, as may be typically represented by a charge coupled device (CCD), comprises a photoelement part, a gate part, and a shift register part. The photoelement part includes a number of elements arranged linearly. Each of these elements has a function to store a charge corresponding to the product of the time and the illuminance of the incident light thereon. The shift register has the same number of bits as the elements in the photoelement part. To each bit is transferred the charge on the corresponding element through the gate part parallel to each other. When a scanning pulse is supplied, the charges on the respective bits are time-serially output. With such a charge effect type sensor, the width of the respective elements constituting the photoelement part may be set to the order of less than about 15 microns, so that high precise measurements may be possible. As shown in Figure 1, a charge effect type sensor such as a CCD Y consisting of a photoelement part F, a gate part G, and a shift register part R is opposed to one surface of a scale C with linearly alternating light parts A (transparent) and dark parts B (opaque). When parallel light rays P forming a beam of width X are irradiated on the opposite surface of the scale C, the light transmitted through the light part A becomes incident on the photoelement F. The charge corresponding to the light incident on the element is stored on this element. When a gate pulse S as well as a resetting pulse Z (Figure 2A) and scanning pulses φ1 (Figure 2B) and φ2 (Figure 2C), which are obtained by frequency-dividing this pulse Z by 1/2 and which have a mutual phase difference of 180°, are supplied to the CCD Y, an output CO as shown in Figure 2D is output from a differential amplifier H. A signal C01 from the photoelement part containing the noise of the shift register part or the like and a signal C02 containing only the noise are obtained as the output of the CCD Y of the construction described above. Thus, the noise component C02 must be removed from the singal CO by the differential amplifier H. For the sake of simplicity, only the output CO of the differential amplifier will be referred to as the CCD output.
- Figure 2D shows a case wherein the width of the light part A is set to equal three elements constituting the photoelement part F, and the three elements are opposed to the light part A. In this case, the differential amplifier H time-serially outputs three signals in a group in correct correspondence with the above-mentioned opposing relationship. It thus becomes possible, with the combination of a charge effect type sensor and a scale coding the distance from a reference point with a light-dark pattern, to measure the distance from the reference point of the scale, that is, the length, with a precision of about 15 microns or less. According to the present invention, the scale and the sensor are arranged in a manner as shown in Figure 3. Thus, the scale C is divided into a plurality of blocks of equal length arranged in the longitudinal direction. Referring to this figure, only the Npth block and Np-1th block are shown. Describing the structure of each block by taking the Npth block as an example, at the left end of the Npth block is a marker M in the form of a light part and having a width corresponding to four elements of the photoelement part F, the width for one element being the reference width. At the right end part of the adjacent block Np-1 is formed a block stop marker D comprising the dark part corresponding to four elements of the CCD Y. The width of one element of the marker M which is adjacent thereto is referred to as a marker bit Im. To the right of the marker M are formed dark parts K1, K2, K3, ..., each of a width corresponding to two elements at intervals corresponding to a width of two elements. Between these dark parts are formed address parts P1, P2, P3, ... each of a width corresponding to two elements. The address part P1 corresponds to a
binary code 2°, the address part P2 corresponds to abinary code 21, the address part P3 corresponds to abinary code 22, and so on. In the figure, the address parts P1 and P3 are light parts and the other address parts are dark parts. Although the construction of the block NP-1 is similar to that described above with reference to the case of the block Np, the values of the binary codes for the address parts are all subtracted by 1 from the corresponding values for the block Np. - For measuring with high precision a distance from the reference point of the scale C with such a combination of the scale C and the CCD Y, the following procedure is followed.
- The respective elements of the photoelement part F of the CCD Y are provided with bit numbers as shown in the figure. More precisely, serial bit numbers are given to the elements arranged behind the element which corresponds to the marker bit lm detected, in the same way as at label F10 of the flow chart shown in Figure 5 which will be later described. A particular bit is designated as an index bit In. The scale C is irradiated with parallel light rays forming a beam of width X which is substantially equal to the width of two blocks, and the light-receiving conditions of the @ and ⑦bits, and bits, and bits, and bits and so on are first detected. In this example, the ⑥ and ⑦ bits are ON so that the 2° digit is ON. The and bits are OFF, so the 21 digit is OFF. Similarly, the and bits are ON and the 22 digit is ON. The and bits are OFF, so the 23 digit is OFF. Thus, the absolute address of the block Np may be obtained as 22+20=5. It is seen from this that the block Np is the fifth block from the reference point of the scale. When one block is of 26 bit construction and the width of one bit is set to 15 µ, the width of one block is obtained as 15µ×26=0.39 mm. Therefore, it is seen that the block Np is spaced apart from the reference point by 0.39 mmx5=1.95 mm. For obtaining a more precise distance measurement, the number of bits from the index bit In to the bit opposing the marker bit Im is counted. In this case, since the number of bits is 5, the correct distance may be obtained as
-
- ACD=block address
- Ns=length of one block as represented by the number of elements of photoelement part F
- mp=width of one element
-
- With a combination of a scale having a light-dark pattern and a charge effect type sensor, a distance, that is, a length, may be measured with a simple and inexpensive structure without detecting the reference point. This also applies to the measurement of angles.
- Referring to Figure 4,
reference numeral 1 denotes a linear scale mounted to a moving object (not shown). Thisscale 1 is divided into n blocks of the same length in the longitudinal direction as the blocks shown in Figure 3. As in the case of Figure 3, each block includes, in the form of a pattern, the marker M, the stop marker D, and the address parts P1, P2, .... - At one side of the scale is arranged a
light source 2·comprising a light emitting diode, for example. The light emitted from thelight source 2 is converted into parallel light rays by alens system 3 and thescale 1 is irradiated with this light. At the other side of thescale 1 is disposed a charge effect type sensor, aCCD 4 for example, for detecting the light transmitted through thescale 1 via another lens system 3'. TheCCD 4 comprises, as has already been described, the photoelement part F consisting of a plurality of elements, the gate part G, and the shift register part R. When the gate pulse S is supplied the charge stored on the photoelement part F is transferred to the shift register part R. When the resetting pulse Z as well as the scanning pulses ϕ1 and φ obtained by 1/2 frequency-dividing and having a mutual phase difference of 180° are supplied to the shift register part R, its content is time-serially output. The driving status of theCCD 4 is controlled by amicrocomputer 6 through apulse control circuit 5. An output CO of theCCD 4 is processed by themicrocomputer 6 through an A/D converting circuit 7 and is displayed at adisplay device 8. Thelight source 2, thelens systems 3 and 3', and theCCD 4 are assembled within abox body 10 and are fixed such that thescale 1 is interposed between the parts without contacting them. - The
pulse control circuit 5 described above is constructed in the manner described below. A pulse P2 supplied from themicrocomputer 6 in a manner to be described below is supplied to theCCD 4 as the resetting pulse Z as well as to a clock terminal C of a flip-flop circuit 12 (a flip-flop which is rendered operative by the leading edge of the clock signal) through aninverter 11. This flip-flop circuit 12 is a T-flip-flop having an output Q supplied to an input terminal D of the flip-flop circuit 12. The output Q is supplied to theCCD 4 as the scanning pulse ϕ1 and an output Q is supplied as the scanning pulse ϕ2. - The A/
D converting circuit 7 is cleared when an A/D control terminal AC of themicrocomputer 6 is at level "1" and performs AID conversion when it is at level "0". When the A/D conversion is terminated, a terminal AE of themicrocomputer 6 which has been maintained at "1" during the operative condition is changed to "0". - Thus, the encoder device of the construction described above operates according to a program set in the
microcomputer 6. - The
microcomputer 6 comprises a micro CPU (central processing unit), a line memory for storing an A/D converted output of theCCD 4, data memories for storing operation results of the micro CPU, and a program memory for storing a program. The micro CPU comprises a general CPU which comprises an arithmetic and logic unit, a set of general registers, a control part and so on. - The operation of the micro CPU will be described with reference to the flow chart shown in Figure 5. When the program is started, the following operations are performed:
- f1:An initial address SDA of the line memory (MSDA to MSDA+x-1) for storing the A/D converted output of the
CCD 4 is set in one of the general registers of the micro CPU. This register is defined as the address pointer of the line memory (MSDA to MSDA+x-1), where X stands for the number of elements of the CCD which are to be stored in the line memory. For instance, when theCCD 4 has 1,728 elements and the information for all the elements is to be stored, X is 1,728. - f2:One pulse Ps is generated ("0"→"1"→"0"). Upon this operation, charge is transferred from the photoelement part F to the shift register part R.
- f3:The A/D control terminal AC is set at "0". Upon this operation, the A/
D converting circuit 7 starts A/D conversion. - f4:The program is sustained until A/D conversion termination terminal AE is at "0".
- f5:A/D output data D is written in the line memory represented by the address pointer.
- f6:The A/D control terminal AC is set at "1". The A/
D converting circuit 7 is cleared. - f7:One pulse P2 is generated ("0"→"1"→"0"). The shift register part R of the
CCD 4 is shifted by 1 bit. - f8:The content of the address pointer is incremented by "1".
- f9:lt is checked whether the content of the address pointer has become SDA+X, that is, whether the data of required number X has been obtained. When the content takes this particular value, a judgment of "YES" is made.
- f10:The contents of the line memory are sequentially scanned from the address corresponding to the index bit In (Figure 3) of the
CCD 4 to the remaining addresses. Each content is judged as to whether it is greater or smaller than a suitable threshold value, for example, 50% of the output level of the light part. Suppose five or more black elements (less than the threshold value) are followed by three or more white elements (greater than the threshold value). In this case, the first of the three or more white elements is judged to be the marker bit Im (Figure 3). The number of bits existing between Index bit and the marker bit Im is counted. In the case of Figure 3, the number of bits is 5. This value is written in a data memory DM1. - f11:With reference to the marker bit Im, it is checked whether the respective bits corresponding to the address encoded on the scale are white or not to obtain the block address of the
scale 1. This block address is written in a data memory DM2. - f12:The distance E from the reference point is calculated by the equation
CCD 4, and m is the element pitch. DM1 and DM2 here are the contents of the data memories DM1 and SM2. Thus, the distance E from the reference point is displayed at thedisplay device 8. - Thus, a scale is adopted which encodes the distance from a reference point with a light-dark pattern, and a charge effect type sensor represented by a CCD is adopted as a sensor for reading the pattern codes of the scale. Since the width of each element constituting the photoelement part of the charge effect type sensor may be set to less than about 15 microns as has been. already described, the pattern codes may be read to the order of less than 15 microns with relatively sparse pattern codes. Accordingly, a high precision may be accomplished with the absolute method while allowing a simple and inexpensive construction.
- The upper significant digit of each block is identified by detecting the recorded address of the block. The lower significant digit of each block is identified by measuring the distance between the marker bit position and a reference position, using the length of individual elements as a unit of length. Here, the marker bit position is identical with the photoelement on which there is projected a pattern, e.g. a marker bit Im (Figure 3), put on each block at a predetermined position. The reference position is identical with any one of the photoelements. With such a method, when any noise component is present on the marker bit Im or the line sensor on which is projected the marker bit Im, (dust or a defect in the line sensor, for example), the correct detection of the marker bit Im is impaired, resulting in an error in the readings of the lower significant digits. A second embodiment of a reading method of the present invention will now be described according to which the error factor as described above is taken into consideration and a more reliable reading is provided.
- The said embodiment will be described with reference to Figure 3. According to this embodiment, a code plate similar to that used in Figure 3 is used, although the functions of the marker M and the marker bit lm are significantly different from those of the first embodiment. According to the second embodiment, the marker M and the marker bit lm are used only for identification of the positions of the respective patterns (P1, P2, P3, ...) of the address parts, and the data on the reference positions of the respective blocks for reading the lower significant digits is detected by the change of level of the output signal of the line sensor by the address part. Referring to Figure 3, the position of the elements of the photoelement part opposing the marker bit Im is detected and stored, thereby identifying the position of the element of the photoelement part on which each pattern constituting the address part is projected. Referring to Figure 3, it is seen that the pattern P1 of the
binary number 2° is projected on the ⑥ th ⑦and th elements, and the pattern P2 of the binary number 2' is projected on ⑩ th and ⑪ th elements. The addresses of the blocks are read in this embodiment as in the first embodiment. The above reading refers to the upper significant digit reading. - The reading of the lower significant digits is performed in the manner described below. For example, when the left end of the pattern P1 of the digit of the
binary number 2° is defined as the reference point of the block and all the points corresponding to level changes in the output signal of the line sensor after the detection of the marker bit lm are detected, level changes are detected on the ④ th, th, th, th, and th elements. The position of the marker bit lm is detected in advance, so that level change points between "0" and "1" (corresponding to transparent and opaque) within the block are detected by the ④ th, - Figure 6 shows another embodiment of the present invention according to which each block does not include a particular marker pattern. Referring to this figure,
reference numeral 23 denotes part of the code plate consisting only of a block address, 24 denotes the photoelement part of the line sensor arranged in opposition thereto, and 24' denotes an output of the line sensor. Each block address on the code plate is encoded with a 5-bit binary number (2°, 21, 22, 23, and 24) and is encoded with a width corresponding to 5 elements of the photoelement part of the line sensor. Each block is encoded with consecutive binary numbers. Figure 6 shows a case wherein N=9. For detecting the relative displacement of the code plate and the line sensor in this embodiment, the binary codes encoded in each block are read as the upper significant digits, and as the lower significant digits the distances between the reference element (index bit In) set at any position of the photoelement part and the predetermined reference positions (a, a', and a", for example) of each block of the code plate are measured with the pitch of the photoelement part as the reference unit. - An example of the reading method will now be described in more detail. The output signal of the line sensor is binary-coded at a suitable level (e.g., 50% level) so that the output signal is represented by a code of "1" or "0". The first element with which the binary-value output changes from "0" (opaque part of the code plate) to "1" (transparent part of the code plate) or from "1" to "0" is detected (the @ th element in the figure). It is thus seen that the boundary between the binary bits representing the addresses is on the @ th element. However, it is not yet seen at this stage what digit of the binary number is projected at the boundary position of the bits. In order to identify it, the following process is performed. Due to the characteristics of binary numbers, consecutive numbers have the repeated patterns of "0", "1", and "0", or "1", "0", and "1" only in the case of the least significant bit (the bit of the digit of 2°). It is thus possible to indentify the position of the photoelement part on which the least significant bit is projected by checking the output signal of the line sensor for each block and identifying the position where it becomes (1, 0, 1 ) or (0, 1, 0). The address of the block may thus be read. Taking the th element as a reference, the output of the element one block to the right of this th element (to the right by 5x5=25 elements) and the output of the element two blocks to the right of the th element are detected to see if the output of either is (1, 0, 1) or (0, 1, 0). In order to check the output of the element of which the center of the respective bit of the binary number is projected, it is preferable to make the above judgment using as the reference the element which is two elements to the right of the @ th element. In order to eliminate the effects of dust on the code plate or the like, it is convenient not to judge the levels "0" and "1" with the output of the element corresponding to the above-mentioned position alone, but to examine the surrounding elements as well to make a judgment on the condition of each projected bit of the binary number. When a judgment of "YES" is made, it is seen that the least significant bit of the binary number is projected starting from the @ th element. When a judgment of "NO" is made, similar judgments are made using the element one bit to the right the binary number (5 elements to the right) as a reference until a judgment of "YES" is made. In the case of the example shown in the figure, the judgment of "YES" is made after four repetitions of the above-mentioned judgment so that @ th element is identified as the initial element of the digit of the
binary number 23, and the address of the block is read. The above description has been made with reference to the reading of the upper significant digits (block addresses). - The reading of the lower significant digits is performed for every point at which the level of the output signal of the line sensor changes. The addresses of the @ th, @ th, @ th, ... Ⓚ th elements are detected. Since the projected position of the least significant bit and the address of the block are known by the above process, it is seen that the th element is the initial element of the digit of 23 of the block address N, and the th element is the initial element of the digit of 22 of the block address N. Since the reference positions of the blocks are determined to be a, a', and a" as shown in the figure, the position a is obtained from level change points to of the detected signals, the position a' is obtained from level change points to , and the position a" is obtained from level change points
- The present invention is not limited to the particular embodiments described above. For example, the address information of the block may be encoded with binary codes or gray codes. Furthermore, redundancy (e.g., a parity bit or the like) may be added during the encoding so that detection and correction of errors during reading of the block address information may be performed. Furthermore, instead of the binary encoding with the light-dark pattern, ternary encoding, quaternary encoding an so on with a number of threshold values may be performed utilizing intermediate levels, thereby improving the encoding density.
- In the embodiments described above, the light source and the CCD were held stationary and the scale was movable. However, another construction may be adopted according to which the scale and the light source are held stationary, and the CCD is movable. The pattern of the scale may be projected on the CCD as the reflected light image instead of the transmitting light image.
- The present invention is also applicable to a magnetic encoder. In this case, the code plate is constructed according to the presence or absence of magnetic information, magnetic poles, or the presence or absence of magnetization or its associated poles. The line sensor may comprise a magnetic sensor array, for example a Hall element array of a pitch similar to that of the CCD Y of Figure 3. The principle of the present invention may be directly adopted if the code plate and the Hall element array are substantially in contact with each other.
Claims (5)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62411/80 | 1980-05-12 | ||
JP6241180A JPS56159798A (en) | 1980-05-12 | 1980-05-12 | Length or angle measuring device |
Publications (3)
Publication Number | Publication Date |
---|---|
EP0039921A2 EP0039921A2 (en) | 1981-11-18 |
EP0039921A3 EP0039921A3 (en) | 1982-06-30 |
EP0039921B1 true EP0039921B1 (en) | 1985-05-08 |
Family
ID=13199371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP81103499A Expired EP0039921B1 (en) | 1980-05-12 | 1981-05-07 | Encoder device and method of use of it |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP0039921B1 (en) |
JP (1) | JPS56159798A (en) |
DE (1) | DE3170373D1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3825097A1 (en) * | 1988-07-23 | 1990-02-08 | Stahl R Foerdertech Gmbh | DEVICE FOR POSITION MEASUREMENT ON CRANE AND ELECTRIC MOUNTED RAILWAYS |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06100479B2 (en) * | 1982-09-01 | 1994-12-12 | ローズマウント エンジニアリング コムパニー リミテッド | Position measuring device |
NL8400169A (en) * | 1984-01-18 | 1985-08-16 | Stichting Ct Voor Micro Elektr | RECORDER FOR ABSOLUTE POSITION. |
DE3427411A1 (en) * | 1984-07-25 | 1986-02-06 | Dr. Johannes Heidenhain Gmbh, 8225 Traunreut | MEASURING DEVICE |
GB8423086D0 (en) * | 1984-09-12 | 1984-10-17 | March A A C | Position sensor |
GB9000097D0 (en) * | 1990-01-03 | 1990-03-07 | March Adrian Res Ltd | Position sensor |
EP0473808A1 (en) * | 1990-09-03 | 1992-03-11 | Hottinger Baldwin Messtechnik Gmbh | Measuring device for the determination of a path or a position |
JP3168451B2 (en) * | 1995-09-24 | 2001-05-21 | 株式会社トプコン | Rotary encoder |
GB9807020D0 (en) | 1998-04-02 | 1998-06-03 | Bamford Excavators Ltd | A method of marking a mechanical element, an encoding scheme, a reading means for said marking and an apparatus for determining the position of said element |
DE102007043498A1 (en) | 2007-09-12 | 2009-03-19 | Pepperl + Fuchs Gmbh | Method for positioning a vehicle and positioning systems |
DE202007012798U1 (en) | 2007-09-12 | 2009-02-12 | Pepperl + Fuchs Gmbh | positioning Systems |
EP2037229A1 (en) | 2007-09-12 | 2009-03-18 | Pepperl + Fuchs Gmbh | Method and device for determining the position of a vehicle |
DE102008032786A1 (en) | 2008-07-11 | 2010-06-10 | Pepperl + Fuchs Gmbh | Device for determining position of vehicle, is mobile along course in direction of motion, and has optical position mark reader for line-wise scanning from position marks |
CN108151658B (en) * | 2018-01-24 | 2023-08-11 | 清华大学深圳研究生院 | Device and method for judging absolute position of reference point of grating ruler |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2310549A1 (en) * | 1975-05-07 | 1976-12-03 | Sagem | IMPROVEMENTS TO OPTICAL DEVICES FOR DETERMINING THE POSITION OF A MOBILE ORGAN |
DE2967525D1 (en) * | 1978-12-19 | 1985-11-07 | Toshiba Kk | Encoder for length or angle measuring devices with high accuracy |
-
1980
- 1980-05-12 JP JP6241180A patent/JPS56159798A/en active Pending
-
1981
- 1981-05-07 DE DE8181103499T patent/DE3170373D1/en not_active Expired
- 1981-05-07 EP EP81103499A patent/EP0039921B1/en not_active Expired
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3825097A1 (en) * | 1988-07-23 | 1990-02-08 | Stahl R Foerdertech Gmbh | DEVICE FOR POSITION MEASUREMENT ON CRANE AND ELECTRIC MOUNTED RAILWAYS |
Also Published As
Publication number | Publication date |
---|---|
EP0039921A2 (en) | 1981-11-18 |
DE3170373D1 (en) | 1985-06-13 |
JPS56159798A (en) | 1981-12-09 |
EP0039921A3 (en) | 1982-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0039921B1 (en) | Encoder device and method of use of it | |
EP0116636B1 (en) | Position measuring apparatus | |
US4384204A (en) | Absolute encoder | |
EP0100243B1 (en) | Position sensor | |
EP0042179B1 (en) | Encoder | |
EP0013799B1 (en) | Encoder for length or angle measuring devices with high accuracy | |
CN105627921A (en) | Absolute encoder subdivision acquisition system and measurement method thereof | |
EP0072549A2 (en) | Absolute encoder | |
US4421980A (en) | Position encoder with closed-ring diode array | |
JPS644129B2 (en) | ||
EP0290140B1 (en) | Equipment for measuring differences in elevation | |
GB2126444A (en) | Position measuring apparatus | |
GB1590922A (en) | Device for detecting relative position or displacement between two movable bodies | |
JP3442869B2 (en) | Optical absolute encoder | |
JP3093924B2 (en) | Absolute encoder | |
US3818224A (en) | Measurement system | |
JP2697159B2 (en) | Absolute position detector | |
JPH0157291B2 (en) | ||
CA1142345A (en) | Relatively moving photodiode sensed diffraction grating-type measuring device | |
JPH05196451A (en) | Length measuring or angle measuring device | |
JPH0141925B2 (en) | ||
Denić et al. | High-resolution pseudorandom encoder with parallel code reading | |
JP2678386B2 (en) | Position detection device | |
WO1991010288A2 (en) | Position sensor | |
KR100678619B1 (en) | Digital optical angle sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
17P | Request for examination filed |
Effective date: 19810605 |
|
AK | Designated contracting states |
Designated state(s): CH DE FR GB SE |
|
PUAL | Search report despatched |
Free format text: ORIGINAL CODE: 0009013 |
|
AK | Designated contracting states |
Designated state(s): CH DE FR GB SE |
|
GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
AK | Designated contracting states |
Designated state(s): CH DE FR GB LI SE |
|
REF | Corresponds to: |
Ref document number: 3170373 Country of ref document: DE Date of ref document: 19850613 |
|
ET | Fr: translation filed | ||
PLBE | No opposition filed within time limit |
Free format text: ORIGINAL CODE: 0009261 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT |
|
26N | No opposition filed | ||
REG | Reference to a national code |
Ref country code: CH Ref legal event code: PFA Free format text: KABUSHIKI KAISHA TOPCON |
|
REG | Reference to a national code |
Ref country code: FR Ref legal event code: CD |
|
EAL | Se: european patent in force in sweden |
Ref document number: 81103499.0 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: FR Payment date: 20000419 Year of fee payment: 20 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: GB Payment date: 20000503 Year of fee payment: 20 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: CH Payment date: 20000508 Year of fee payment: 20 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: SE Payment date: 20000516 Year of fee payment: 20 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: DE Payment date: 20000616 Year of fee payment: 20 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LI Free format text: LAPSE BECAUSE OF EXPIRATION OF PROTECTION Effective date: 20010506 Ref country code: GB Free format text: LAPSE BECAUSE OF EXPIRATION OF PROTECTION Effective date: 20010506 Ref country code: CH Free format text: LAPSE BECAUSE OF EXPIRATION OF PROTECTION Effective date: 20010506 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: SE Free format text: THE PATENT HAS BEEN ANNULLED BY A DECISION OF A NATIONAL AUTHORITY Effective date: 20010530 |
|
REG | Reference to a national code |
Ref country code: GB Ref legal event code: PE20 Effective date: 20010506 |
|
REG | Reference to a national code |
Ref country code: CH Ref legal event code: PL |
|
EUG | Se: european patent has lapsed |
Ref document number: 81103499.0 |