ENCODER DEVICE AND METHOD OF USE OF IT

Abstract: An encoder device is characterized by comprising a code plate (1) which is divided into a plurality of blocks (N₁ ..., N p , ..., N n-1 , N n ) along the longitudinal direction, in each of which is encoded address information consisting of code sequences arranged in a row along the longitudinal direction and repres­ enting the absolute address of the respective blocks; a line sensor (4) having a plurality of sensor elements arranged in a row for reading the information stored in the code plate; and means (6) for processing an electric output signal from the line sensor (4) to read the block address.

Description: Encoder device The present invention relates to an improvement in an encoder device for measuring a distance of 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. 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. In accordance with the present invention, there is provided an encoder device which is characterized by comprising a code plate which is divided into a plurality of blocks along the longitudinal direction, in each of which is encoded block address information consisting of code sequences arranged in a row along the longitudinal direction and representing the absolute address of the respective blocks; a line sensor having a plurality of sensor elements arranged in a row for reading the information stored in said code plate; and means for processing an electric output signal from said line sensor to read said block address. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Fig. 1 shows an example combining a charge effect type sensor with a scale having a light-dark pattern; Figs. 2A to 2D show waveforms obtained when the charge effect type sensor of the arrangement shown in Fig. 1 is scanned; Fig. 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; Fig. 4 shows the construction of an embodiment of the encoder device of the present invention; Fig. 5 is a flow chart for explaining the mode of operation of the encoder device shown in Fig. 4; and Fig. 6 shows the construction of the scale used in an encoder device according to another embodiment of the present invention. The present invention will now be described in detail with reference to the accompanying drawings. The most characteristic feature of the present invention is that 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 Fig. 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 (Fig. 2A) and scanning pulses 1 (Fig. 2B) and 2 (Fig. 2C), which are obtained by frequency-dividing this pulse Z by 1/2 and which have a mutual phase difference of 1800, are supplied to the CCD Y, an output CO as shown in Fig. 2D is output from a differential amplifier H. A signal Col 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. Fig. 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 Fig. 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 N p th block and Np 1th block are shown. Describing the structure of each block by taking the N p th block as an example, at the left end of the N th block is a p 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 Nip 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 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. 0 The address part P1 corresponds to a binary code 2 the address part P2 corresponds to a binary code 2 2 the address part P3 corresponds to a binary code 2 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 Nip 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 Im detected, in the same way as at label f10 of the flow chart shown in Fig. 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 6 and 7 bits, Go and Ql bits, 8 and Qs bits, 8 and 8 bits and so on are first detected. In this example, the 6 and 7 bits are ON so that the 20 digit is ON. The 10 and 11 bits are OFF, so the 21 digit is OFF. Similarly, the 8 and 8 bits are ON and the 22 digit is ON. The Qs and G9 bits are OFF, so the 23 digit is OFF. Thus, the absolute address of the block N p may be obtained as 22 + 2 = 5. It is seen from this that the block N p 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 p x 26 = 0.39 mm. Therefore, it is seen that the block N p is spaced apart from the refrerence point by 0.39 mm x 5 = 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 1.95 mm - 15 p x 5 = 1.875 mm Therefore, the measurement E may be expressed as E = m(NsACD - Nc) (unit: p) where Nc = number of bits from the index bit In to the marker bit Im ACD = block address Ns = length of one block as represented by the number of elements of photoelement part F = = width of one element 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 Fig. 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 E = m (Ns . ACD + Nc) 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. The encoder device of the present invention is constructed according to the principle described above. The present invention will now be described with reference to the preferred embodiments referring to Fig. 4. Referring to Fig. 4, 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 Fig. 3. As in the case of Fig. 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 the light source 2 is converted into parallel light rays by a lens system 3 and the scale 1 is irradiated with this light. At the other side of the scale i is disposed a charge effect type sensor, a CCD 4 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. 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 1800 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 A/D conversion when it is at level "0". When the A/D conversion is terminated, a terminal AE of the microcomputer 6 which has been maintained at "1" during the operative conditon is changed to "O". Thus, the encoder device of the present invention of the construction described above operates according to a program set in the microcomputer 6. The microcomputer 6 comprises a microCPU (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 microCPU, and a program memory for storing a program. The microCPU 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 microCPU will be described with reference to the flow chart shown in Fig. 5. When the program is started, the following operations are performed: fl: 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 microCPU. This register is defined as the ad dress pointer of the line memory (MSDA to MSDA+xl) where X stands for the number of elements of the CCD which are to be stored in the line memory. For instance, when the CCD 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" "O"). 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 "O". 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 "O". 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" + "O"). 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: It 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. flO: The contents of the line memory are sequentially scanned from the address corresponding to the index bit In (Fig. 3) of the CCD 4 to the remaining ad dresses. 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 (Fig. 3). The number of bits existing between Index bit and the marker bit Im is counted. In the case of Fig. 3, the number of bits is 5. This value is written in a data memory DM1. fll: 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 E = m(Ns-DM2 - DM1) where Ns is the number of bits of one block as repre sented by the number of elements of the photoelement part of the 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 the display 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 (Fig. 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 projeced 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 second embodiment will be described with reference to Fig. 3. According to this embodiment, a code plate similar to that used in Fig. 3 is used, although the functions of the marker M and the marker bit Im are significantly different from those of the first embodiment. According to the second embodiment, the marker M and the marker bit Im are used only for indentification 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 Fig. 3, the position of the element 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 Fig. 3, it is seen that the pattern P1 of the binary number 2 is projected on the 06 th and 7 th elements, and the 1. pattern P2 of the binary number 2 is projected on Go th and Gi 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 20 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 Im are detected, level changes are detected on the 4 th, 6 th, 8 th, 14 th, and 16 th elements. The position of the marker bit Im 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, 6 th, 8 th, 14 th and 16 th elements are identified. Thus, 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 Im 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 th element by a distance corresponding to two elements, that is, the th th element. By performing similar operations for the &commat; th, th, G14 th, and 016 th elements, the data on the reference point of the block may be obtained under the condition shown in Fig. 3. It thus becomes possible to improve the reliability of measurement by, for example, obtaining a mean value from these five values or by separation or elimination of a particular point due to dust or noise. According to 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 Fig. 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. This is because 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. Fig. 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, 21 22 231 and 2 ) 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. Fig. 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 "O". The first element with which the binary-value output changes from "O" (opaque part of the code plate) to "1" (transparent part of the code plate) or from "1" to "O" 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 &commat; 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 "O", "1", and "0", or "1", "O", 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 GA th element as a reference, the output of the element one block to the right of this GA the element (to the right by 5 x 5 = 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 &commat; 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 &commat; 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 A th, B th, C 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 th element is the initial element of the digit of 23 of the block address N, and the GB2 th element is the initial element of the digit of 2 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 A to C of the detected signals, the position a' is obtained from level change points GD to H , and the position a" is obtained from level change points to K . Since 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 sig nals ( ) Under the ideal conditions as shown in the figure, the detection result of the position a' by the point GA and the detection result by the point indicate the same value. Thus, under the condition shown in the figure, the position a' is indentified as on the G6 th element of the photoelement part. However, in practice, 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. Furthermore, according to this embodiment, 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. It is assumed that, in the case of the example shown in the figure, the mean value of the detected values of the position a' from the operation results of the points to is 25.8, the arbitrarily selected index bit In is the G8 th element, and the pitch of the elements of the photoelemenet part of the line sensor is 10 pm. In this case, since 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 ((io - 1) x 25 + (38 - 25.8)) x 10 ijm = 2,372 pm where the consecutive numbers of the block addresses begin at 1. 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 transmitted light image. It is thus to be understood that various modifications and changes may be made without departing from the spirit and scope of the present invention. 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 Fig. 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: Claims: 1. An encoder device characterized by comprising a code plate (1) which is divided into a plurality of blocks (N1, .., Np, ..., Nn-1, Nn) along the longitudinal direction, in each of which is encoded address information consisting of code sequences arranged in a row along the longitudinal direction and representing the absolute address of the respective blocks; a line sensor (4) having a plurality of sensor elements arranged in a row for reading the information stored in said code plate (1); and means for processing an electric output signal from said line sensor (4) to read said block address. 2. An encoder device according to claim 1, characterized in that an absolute position to a precision of at least one pitch of said line sensor (4) is obtained by detecting a reference position of each of said blocks (N1, ..., Np, Nn-1, Nn) from said block address information which is encoded. 3. An encoder device according to claim 1, characterized in that an absolute angle to a precision of at least one pitch of said line sensor (4) is obtained by detecting a reference position of each of said blocks (N1, ..., Np, ..., Nn-1, Nn) from said block address information which is encoded. 4. An encoder device accroding to claim 1, characterized in that said block address information and characteristic marker information representing a reference position of each block are encoded in each block (N1, Np, ..., Nn-1 Nn) of said code plate (1), and an absolute position to a precision of at least one pitch of said line sensor (4) is obtained by reading said block address information and said characteristic marker information from an output of said line sensor (4). 5. An encoder device according to claim 1, characterized in that said block address information and characteristic marker information representing a reference position of each block (Nlr ..., Np, ..., Nun 1 Nn) are encoded in each block of said code plate (1), and an absolute angle to a precision of at least one pitch of said line sensor (4) may be obtained by reading said block address information and said characteristic marker information from an output of said line sensor (4). 6. An encoder according to claims 2 or 4, characterized in that an absolute position to a precision of at least one pitch of said line sensor (4) is obtained by obtaining distances from said detected reference positions of said blocks to a reference bit on said line sensor which is arbitrarily determined in advance. 7. An encoder according to claim 3 or 5, characterized in that means for obtaining an absolute angle to a precision of at least one pitch of said line sensor (4) obtains angles from said detected reference positions of said blocks to a reference bit on said line sensor (4) which is arbitrarily determined in advance.

Inventors: KIMURA, KAZUAKI, MINAMI, MASANA, OHTOMO, FUMIO
Applicants: TOKYO KOGAKU KIKAI KABUSHIKI KAISHA
Application year: 1981
Main classification: G01D5
IPC codes: G01D5, H03M1, G01B11