Displacement detector

Abstract: A displacement detector in accordance with the present invention is for detecting the amount of displace­ ment of an object to be measured, and comprises sensing means (44) arranged side by side with predetermined spacing whose states change in response to the changes in electromagnetic energy such as light energy, magnetic energy, and electrical energy, an electromagnetic energy generating means (42) for generating electromagnetic energy, an electromagnetic energy transmitting means (46) that is linked to the motion of the object to be measured, for transmitting the electromagnetic energy from the electromagnetic energy generating means to the sensing means that is situated at the position that corresponds to the displacement of the object to be measured, a conversion unit for outputting the detection signal obtained from the sensing means at the position where the electromagnetic energy is changed by the electromagnetic energy generating means, as a displacement detection signal, by converting the detection signal to a coded signal that is chracteristic corresponding to the position of the sensing means for the position where there was a change in the electromagnetic energy, a trouble shooting unit for diagnosing malfunctions by examining whether or not the change in the displacement detection signal is within the range of specified values, a rotation number measuring unit for counting the number of rotations of the object to be measured based on the detection signal from the sensing means, and a maximum value selecting unit for select­ ing the maximum value from among the sensor outputs when the electromagnetic energy is incident upon a plurality of sensing means.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a displacement detector for detecting the amount of displacement in rotation of an object to be measured, in particular, to a displacement detector which is capable of accurately detecting the amount of displacement in absolute value even under adverse circumstances. Description of the Prior Art Heretofore, in the rotary encoder which is a kind of displacement detector, the absolute value of the rotation angle of rotation shaft is obtained as a digital signal in the following manner. Namely, as shown in Fig. 1, a disk-shaped coded plate 10 having digital patterns that consist of slits or opertures, as indicated by hatches in the figure, at different radial positions corresponding to every predetermined central angles, is mounted coaxially on a rotation shaft 16 that is held with a bearing 14 by a case 12 indicated by the single-chained line in the figure. Then, the absolute value of the coded angle of rotation of the rotation shaft 16 is obtained as a digital signal in a detection unit 18, by irradiating the digital patterns with a light source from one side of the coded plates 10 and by detecting the transmitted light with an optical sensor. In order to improve the resolving power of the rotation angle that is detected by such a rotary encoder, it is necessary to increase the number of digits of the digital patterns so that it leads to a problem that the diameter of the coded plate 10 has to be increased and the size of the device has to be made large, resulting in a higher cost for the product. Further, when the number of digits is increased by arranging the digital patterns closely in the radial direction, there is required a higher finishing precision for the light source or the optical sensor in the detection unit 18. Moreover, the digital patterns in the existing rotary encoder as in the above are composed of Gray code. However, no special measures are being taken regarding possible failure of the device. Now, in an encoder in which a plurality of sensors are arranged in a line with predetermined spacings, for outputting a detection signal that corresponds to the position of the object to be measured that moves along the line, and for converting the detection signal that is output from the sensor to a corresponding individual code, use is made of numerous circuit elements, so that there exists a problem that the probability of failure of the device is accordingly high. This necessitates then the provision of a failure diagnosing means for checking whether or not the device is operating normally. US-A 4 086 488 discloses a pressure gauge according to the preamble of claim 1, including a rotary encoder in which a plurality of light receiving elements detect light from a light source transmitted via fibre optic elements on a rotary disc. A signal processing circuit translates the signals received from the light-receiving elements into a form which can control a numeric display. US-A-3 573 773 discloses a displacement detector having a single light source serving a plurality of light-emitting elements arranged in a part-circle via optical fibre elements. A further array of optical fibre elements lead to a plurality of photocells. The light is reflected from a rotary element between a given pair of light-emitting and receiving elements to indicate position. US-A-4427970 and US-A-3750156 disclose displacement detectors having a circular array of photosensitive elements with a rotary element selectively illuminating the detector elements to indicate rotary position. The device disclosed in FR-A-2 176 222 has a circular array of photodetectors and a rotary element selectively blocking off light from the detectors at a location corresponding to the rotation of the element being monitored. It has also a signal processing circuit comprising groups of diodes, resistors and inverters for generating signals characteristic to the photodetectors. In BE-A-658649 an integrating device is disclosed in which an AND gate is used to combine outputs from optical rotation detectors. A first integration variable varies the speed of rotation and a second variable controls the number of counts per revolution. Adding means are provided to add the counts from successive revolutions. SUMMARY OF THE INVENTION An object of the present invention is to provide a small-sized displacement detector which is capable of rapidly detecting the absolute position of displacement with high precision. Another object of the present invention is to provide a small-sized displacement detector which is capable of detecting the absolute value of the displaced position with high precision even under adverse circumstances. Another object of the present invention is to provide a displacement detector which is capable of checking whether or not the device is operating normally, and outputting a malfunction signal in case there is detected an abnormality. According to the present invention, there is provided a displacement detector for detecting the amount of displacement of an object to be measured, comprising; means for generating electromagnetic energy; sensing means that are disposed with predetermined spacing, whose state changes in response to the changes in received electromagnetic energy; electromagnetic energy varying means which is arranged movably, linked to the motion of the object to be measured, along the row of said sensing means in order to vary the amount of electromagnetic energy in said sensing means in response to the displacement amount of the object to be measured; and a signal processing circuit for converting the detection signal that is obtained from said sensing means situated at the position where the electromagnetic energy is changed by said electromagnetic energy varying means, to a coded signal which is characteristic to the position of the sensing means at the position where there was a change in the electromagnetic energy and for outputting the coded signal as a displacement detection signal; characterized in that the signal processing circuit comprises diode groups for generating signals that are characteristic to each of the sensing means, based on the output obtained from the specified sensing means, a power source that is connected in series to the diode groups via load resistors, and NOT circuits that invert the digital output signals from the respective load resistors that are pulled to ground via the diode groups to output them as the displacement signal, based on the output from the specified sensing means; and in that said signal processing circuit further includes a rotation number measuring unit that counts the number of rotations of the object to be measured, which comprises a) a flip flop whose set and reset terminals are connected to receive the detection signals of two sensing means, first and second AND circuits for obtaining logical products of the signals from the Q and Q terminals of the flip flop and the signals from the sensing means other than the above two, and an up-down counter whose UP and DOWN input terminals are respectively connected to the output terminal of an AND circuit for counting the output signal from the AND circuits. These and other objects, features and advantages of the present invention will be more apparent from the following description of the preferred embodiments, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a perspective view of a prior art rotary encoder; Fig. 2 is a perspective view of a rotary encoder; Fig. 3 is a cross-sectional view of the rotary encoder shown in Fig. 2; Fig. 4 is a circuit diagram for the signal processing circuit in the rotary encoder shown in Fig. 2; Fig. 5 is a circuit diagram for a modification in which a trouble shooting unit is added to the signal processing circuit shown in Fig. 4; Fig. 6 is a circuit diagram for a modification to the trouble shooting unit of the signal processing circuit shown in Fig. 5; Fig. 7 is a circuit diagram showing an embodiment of the present invention, comprising a modification to the signal processing circuit shown in Fig. 4 that includes a rotation number counting function; Fig. 8 is a circuit diagram for a modification to the signal processing circuit shown in Fig. 4 that includes a maximum value screening function; Fig. 9 is a circuit diagram for another modification to the signal processing circuit shown in Fig. 4; Fig. 10 is a cross-sectional view for a modification in which a prism is used in the light transfer route between the light-emitting element and the light-receiving element in the displacement detection unit of the rotary encoder shown in Fig. 3; Figs. 11 and 12 are cross-sectional views of the modifications to the displacement detection units shown in Figs. 3 and 10, respectively; Figs. 13 and 14 are perspective views of other modifications to displacement detection unit shown in Fig. 2; Fig. 15 is a dispositional diagram for illustrating the disposition of the circuit patterns that are formed on the semiconductor chip in the encoder shown in Fig. 2; Fig. 16 is a circuit diagram for illustrating the circuit patterns of the signal processing circuit shown in Fig. 4 that is disposed in the dispositional diagram for the semiconductor chip shown in Fig. 15; Fig. 17 is a perspective view which shows the construction applied to the linear encoder; Fig. 18 is a perspective view of a rotary encoder; Fig. 19 is a cross-sectional view of the rotary encoder shown in Fig. 18; Fig. 20 is a circuit diagram of the signal processing circuit in the rotary encoder shown in Fig. 18; Fig. 21 is a circuit diagram for a modification to the signal processing circuit shown in Fig. 20; Fig. 22 is a cross-sectional view for illustrating a modification to the displacement detection unit in Fig. 19; Fig. 23 is a circuit diagram for the signal processing circuit in the modification shown in Fig. 22; Fig. 24 is a cross-sectional view for showing the modification to the displacement detection unit in the encoder shown in Fig. 19; Fig. 25 is a perspective view for illustrating the construction of the case of the linear encoder; and Fig. 26 is a cross-sectional view of the modification which employs an optical fiber to the light transfer route in the displacement detection unit shown in Fig. 19. Fig. 7 shows the characterizing features of the invention, other Figures show subsidiary features, or are included for explanatory purposes only. DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to Figs. 2 and 3, a first example of the rotary encoder is shown with reference numeral 30. As shown in Fig. 2, on the plane on one end of a case 32 consisting of a cylindrical shell that is shown by a singlechained line in the figure, a rotation shaft 34 perpendicular to the above plane that rotates coaxially with the rotation shaft of the object to be measured is inserted to the case 32 so as to be held by the case 32 by means of a bearing 36. On the tip of the rotation shaft 34 in the case 32 there is fixed a rotating member 38 whose one end is supported by the rotation shaft 34 and whose the other end rotates around the axis center of the rotation shaft 34. On the other end plane of the case 32 there is laid a semiconductor chip 40 that serves as a base. At the portion where the rotation shaft 34 intersects with the semiconductor chip 40 there is arranged a light-emitting diode 42 that works as a light source. On the semiconductor chip 40 a plurality of photodiode 44-1, ..., and 44-n that serve as light-emitting elements are arranged so as to be positioned below the other end of the rotating member 38, on the circumference of a circle with the 1-emittiing diode 42 as the center. That is, there is arranged an optical fiber 46 with the disposition as indicated in Fig. 3, on the bottom on the semiconductor 40 side of the rotating member 38. Light emitted from the light-emitting diode 42 impinges through the optical fiber 46 upon one of the photodiode, 44-1. The detection signal from the photodiode 44-1 which received light as in the above, is converted to a characteristic digital signal by means of a signal processing circuit (not shown in Fig. 2) formed on the semiconductor chip 40 as a conversion means. Accordingly, it becomes possible to obtain the absolute value of the rotation angle of the rotation shaft 34 from the characteristic digital signal. Next, referring to Fig. 4, the signal processing circuit 52 will be described. On the semiconductor chip 40 the light-emitting diode 42 is lighted by being connected to a power source 54 via a resistance 56. Light emitted from the light-emitting diode 42 is led by the optical fiber 46, and is detected by the photodiode 44. The photodiode 44-1 which received light becomes conducting, and short-circuits a resistor 62 connected in series to a DC power source 60 to the ground 64. The output current generated in turning on or turning-off of each of the photodiodes 44 is amplified by amplifiers 66-1, 66-2, ..., and 66-n. The DC power source 60 is then short-circuited to the ground 64 by the diode groups 68-1, 68-2, ..., and 68-n that are surrounded in the figure by single-chained lines that generate signals that are characteristic to each of the photodiodes 44, via the load resistances 70-1, 70-2, ..., and 70-n that are connected in series to the DC power source 60 and the photo-Darlington 58 that is turned on. The load resistors 70-1, 70-2 ..., and 70-n are connected to the NOT circuits 72-1, 72-2, ..., and 72-n, respectively, and the negative logic output obtained from the short-circuited load resistors 70 is inverted to a positive logic output signal by means of the NOT circuits 72. Next, by citing a concrete example, the circumstance will be described in which a digital signal characteristic to each photodiode 44 is output from the circuit mentioned above. As the rotation shaft 34 is rotated accompanying the rotating member 38, interlocked with the rotation of the object to be measured, the rotating member 38 is rotated within the case 32 with the rotation shaft 34 as the center, at the position facing the semiconductor chip 40. The light which is output from the light-emitting diode 42 irradiates in turn the individual photodiodes 44 that are arranged on the circumference, by means of the reflecting surfaces 48 and 50 of the prism fixed to the rotating member 38. For example, if the rotation of the rotating member 38 is stopped and the photodiode 44-1 detects light, then the photodiode 44-1 becomes conducting and short-circuits the resistor 62 to the ground 64. Then, the output current obtained due to the conduction of the photodiode 44-1, is further amplified by the amplifier 66-1, and short-circuits the load resistors 70-1, 70-2, ..., and 70-n to the ground 64 via the diode group 68-1. In this case, signals "010 ... 0" are sent to the NOT circuits 72-1, 72-2, ..., and 72-n as respective negative logic inputs. The NOT circuits 72 output the positive logic signals "101 ... 1" by inverting these negative logic signals. In the present case, the digits of the digital signals for the NOT circuits 72-1, 72-2, 72-3, ..., and 72-n are set to be those of 2⁰, 2¹, 2², ..., and 2 n , so that the positive logic signals in the above are output as respectively "1 ... 101". Next, referring to Fig. 5, a modification to the signal processing circuit shown in Fig. 2 will be described. The circuit 74 for this modification includes the function for obtaining the absolute value of the rotation angle of the rotation shaft 34 by converting the detection signal at a photodiode 45-1 to a digital signal that is characteristic to it. In addition, the circuit 74 has a function for diagnosing failure by examining whether or not the change in the output is within the range of a predetermined values. For this purpose there is added a trouble shooting unit 76 to the circuit for the encoder shown in Fig. 4. The trouble shooting unit 76 comprises a register 78 for memorizing the digital signals from the NOT circuits 72-1, 72-2, ..., and 72-n, an EXCLUSIVE-OR circuit 80 for comparing the values for the previous state from the register 78 and the values for the present digital signals from the NOT circuits 72, and for taking logical difference between them, load register 82-1, 82-2, 82-3, ..., 82-n with the same weight for D/A converting the output from the EXCLUSIVE-OR circuit 80, and a comparator 84 for comparing the DC voltage from the load resistor 82-1, 82-2, 82-3, ..., 82-n and the voltage from a voltage generating source 86 in one digit. Namely, the comparator 84 outputs a malfunction signal 88 if the DC voltage e d is the threshold value that is set in the DC voltage generating source 86 and the DC voltage corresponding to the output signal for one of the EXCLUSIVE-OR circuit 80 is larger than e d . Next, the operation of the trouble shooting unit 76 will be described. In order to examine whether or not the digital signal that is output from the NOT circuit 72 is normal, one needs only to compare the value that is now being output and the value of the digital signal that was output prior to the present value, and to examine whether there is a change in just one digit in all of the digits of the digital signal. Namely, the previous digital signal is kept stored in the register 78, and logical difference is taken with the digital signal that is output later in the EXCLUSIVE-OR circuit 80. The EXCLUSIVE-OR circuit 80 generates an output signal if there is a dirrerence between the two values. This signal is input to the clock terminal 78-1 of the register 78 to clear the value for the previous value and memorize the present value. Now, if the digital signals that are output from the NOT circuits 72-n are outputs of Gray code, then the digital signals that are output continuously are output with a change in one of the total digits without fail. Namely, the numbers 31 and 32 in the decimal code are represented by "010000" and "110000", respectively. Because of this, when normal digital signals are output continuously, there always exists an output signal from one of the EXCLUSIVE-OR circuits 80. Accordingly, the DC voltage e d becomes lower than the threshold value for the voltage generating source 86 so that there will be no output of a malfunction signal 88 from the comparator 84. However, if an abnormal digital is output due to malfunction, the DC voltage e d becomes greater than the threshold value of the voltage generating source 86, and a malfunction signal 88 is output from the comparator 84. In this way, whether or not the output digital signal is normal can be judged by the presence or absence of such a malfunction signal 88. In addition, it should be noted here that the output signal 90 of the OR circuit 89 may be used as a relative angle signal. By changing the connecting conditions of the diodes in the diode groups 68-1, 68-2, ..., and 68-n, it becomes possible to change the digital signals that are output from the NOT circuits 72-n into outputs in binary code. To do this, as shown in Fig. 6, the n-bit binary data that is output from the NOT circuits 72 is recorded first in a register 94 in order to judge whether or not the output binary digital signal data is correct. Then, the data in the register 94 and the binary data that immediately follows the memorized data are subtracted in a subtraction circuit 96. The absolute value of the difference is compared with the numerical value "0 ... 001" of set point 100 in a comparator 98. If the result of the comparison is greater than "1", it is output as a malfunction signal 102. If the difference in the subtraction circuit 96 is less than "1", a signal 103 is output to be input to CP 94-1 of the register 94. The n-bit binary data recorded in the register 94 is rewritten by the binary data that follows it immediately, and the result is memorized. Then, the correctness of the digital signal that is output next is judged in similar manner. As in the above, by comparing the data before and after change of the output signal, it becomes possible to determine whether or not the displacement detector is operating normally. Next, by referring to Fig. 7, a first embodiment of the invention, constituted by a modification to the processing circuit shown in Fig. 4 will be described. The circuit 106 for the modification is obtained by adding a rotation number measuring unit 110 for counting the number of rotations of the rotation shaft 34, to a conversion circuit 108 that has a function which is similar to the signal processing circuit shown in Fig. 4. The conversion circuit 108 comprises amplifiers 112-1, 112-2, ..., and 112-n for amplifying the output circuits obtained by turning on specified photodiodes 45 that are similar to the above embodiment, diode groups 114-1, 114-2, ..., and 114-n for generating signals characteristic to each of the photodiodes 45, based on the outputs from the amplifiers 112, a DC power source (not shown) that is connected in series to the diode groups 114 via the load resistors (not shown), and the NOT circuits 125-1, 125-2, ..., and 125-n for inverting the output from each of the load resistors that are short-circuited via the diode groups 114. The operation of the conversion unit 108 is similar to the above embodiment so that further description will be omitted. In the rotation number unit 110, noninverting amplifiers 112-1, 112-2, ..., and 112-n are selected out of noninverting amplifiers 112-1, 112-2, ..., and 112-n. The output terminal of the noninverting amplifier 112-n is connected to the set terminal S of a flip-flop circuit 122 and the output terminal of the noninverting amplifier 112-2 is connected to the rest terminal R of the flip-flop circuit 122. The output Q of the flip-flop circuit 122 and the output signal of the noninverting amplifier 112-1 that is obtained via an inverter 123 are ANDed in an AND circuit 124a. In addition, the output of the flip-flop circuit 122 and the output signal of the noninverting amplifier 112-1 obtained via the inverter 123 are ANDed in an AND circuit 124b. The output terminals of each of the AND circuits 124a and 124b are connected respectively to an UP/DOWN counter 126 which is supplied power and driver via a diode 130 from the DC power source V. The DOWN terminal D and the UP terminal U are connected to the AND circuits 124a and 124b, respectively. The UP/DOWN counter 126 is charged by the DC power source V during normal operation, and is equipped with a battery unit 127 which is a back-up battery that supplies a current to the UP/DOWN counter 126 at the time of disconnection of the DC power source V. Namely, a diode 130 prevents the reverse flow of the current that is discharged by the battery 127 to the side of the DC power V. The power source of the UP/DOWN counter 126 is always backed up by the battery 127 so that the counted value is held even during the time of disconnection of the DC power V. In Fig. 7, the variable m represents an arbitrary natural number. The output signals of NOT circuits 125-1, 125-2, ..., and 125-n and the UP/DOWN counter 126 are output as parallel signals respectively from the output terminals 129-1, 129-2, 129-3, ..., 129-(n-1), and 129-n and from the output terminals 131-1, 131-2, ..., and 131-n. At the same time, the outputs of the NOT circuits 125-1, 125-2, ..., and 125-n and the UP/DOWN counter 126 are input to a parallel/series shift register 132, and are output from a terminal 133 as series signals. Next, the counting operation of the rotation number measuring unit 110 will be described. If a photodiode 45-0 which is connected to the noninverting amplifier 112-n in Fig. 7, among photodiodes 45 that detect light from the optical fiber 46, due to the rotation in positive direction of the object to be detected, receives light, the noninverting amplifier 112-n outputs a "0" signal which is input to the flip-flop circuit 122. The flip-flop circuit 122 is set by this input, and its output Q becomes "1" level and the output Q becomes "0" level. Further, if the photodiode 45-1 detects light, the inverter 123 outputs a "1" signal which is input to the AND circuit 124b. The AND circuit 124b takes the AND operation of the "1" level signal which is the Q output of the flip-flop circuit 122 and the signal "1" of the inverter 123 to supply a signal "1" to the UP terminal of the UP/DOWN counter 126, increasing the counted value by one. Next, if the photodiode 45-2 detects light, the noninverting amplifier 122-2 outputs a signal "0" which resets the flip-flop circuit 122, leading to "0" level for the output Q and "1" level for the output Q . After this, if the object to be measured further continues rotation in the positive direction and the irradiation of light continues from photodiode 45-0 to the photodiode 45-2 through the optical fiber 46, the counted value by the UP/DOWN counter 126 is similarly increased by one. When the object to be measured is rotated in the reverse direction, the photodiode 45-2 detects light first and outputs a signal "0". This resets the flip-flop circuit 122, and the output Q becomes "0" level while the output Q becomes "1" level. Further, if the photodiode 45-1 detects light and the noninverting amplifier 112 outputs a "0" signal, the AND circuit 124a takes the AND operation of the "1" level which is the output Q of the flip-flop circuit 126 and the "1" signal of the inverter 123, supplies a "1" signal to the DOWN terminal of the UP/DOWN counter 126, and decreases the counted value by one. Moreover, if the photodiode 45-n detects light, the noninverting amplifier 112-n outputs signal "0" to set the flip-flop circuit 122, giving rise to "1" level for the output Q and "0" level for the output Q . After this, if the object to be measured further continues to be rotated in the reverse direction and light continues to irradiate the photodiode 45-0 from the photodiode 45-n through the optical fiber, the counted value by the UP/DOWN counter 122 is decreased similarly by one. The counted value of the UP/DOWN counter 126 can be obtained from the output terminals 131-1, 131-2, ..., and 131-n. For instance, if the counted value is "12" in decimal code and if it is output as a Gray code with 16 bits, the rotation number signal obtained will be "0000000000001010." The rotation number signal and the angle signal are obtainable as parallel signals from the output terminals 131-1, 131-2, ..., and 131-n and the output terminals 129-1, 129-2, ..., and 129-n, respectively. Further, as need arises, these signals may also be obtained from an output terminal 133 after converted to series signals in a shift register 132. In the rotary encoder shown in the present embodiment, when the power source V is disconnected and then turned on again, there will arise no problem in the angle signal because it is measuring the absolute value for all times. However, when the power source V is disconnected, the UP/DOWN counter 126 loses its counted value and the measured value of the rotation number with no be reproduced. In order prevent this rawback, a battery (for example, a lithium battery) 127 is incorporated on the terminal of power source V for the UP/DOWN counter 126, and when the power source V is disconnected, the UP/DOWN counter 126 alone is arranged to be operated by preventing the reverse flow of the current in the battery 127. As described in the foregoing, by incorporating a rotation number measuring circuit in a rotary encoder which can detect the angle signal in absolute value, and in addition, by backing up the counter in the measuring circuit, it becomes possible to prevent the disappearance of the rotation number due to disconnection of the power source. In the present embodiment, the measurement of the rotation number was carried out by processing the detected signal of photodiodes. However it may also be done by processing the output of the encoder, namely, the angle signal. In this case, if signals for detecting three consecutive photodiodes are formed in the decoder from the angle signal, subsequent processing will become realizable by applying the composition of the embodiment described in the foregoing. By referring to Fig. 8, another modification to the signal processing circuit shown in Fig. 4 will be described. The circuit 134 for this modification is obtained by adding a maximum value selection unit 136 that selects the maximum value of the sensor outputs in the case when light is incident upon a plurality of photodiodes, to a conversion circuit which is similar to the conversion circuit shown in Fig. 7. The maximum value selection unit 136 comprises comparators 138-1, 138-2, ..., and 138-n that compare the outputs of the respective pairs of adjacent photodiodes, inverters 140-1, 140-2, ..., and 140-n for inverting the outputs of two adjacent comparators in the preceding stage, and NAND circuits 142-1, 142-2, ..., and 142-n for taking the NAND operation between the output from the comparator 138 and the output from the inverter 140. Referring to Fig. 8, the operation of the maximum value selection unit 136 will be described. As shown in Fig. 8, light emitted from the light-emitting diode is transmitted by an optical fiber 46 fixed to the rotating member and is detected by the photodiode that is situated at the position that faces the tip of the rotating member. The light-receiving array 139 of the irradiated photodiode 45 becomes on condition, and a current flows from the DC power source Vc to a linear amplifier 141 via the light-receiving array 139 and is amplified. The linear amplifier 141 is provided for each of the photodiodes 45 and power is supplied by the DC power source Vc. The output signal of each of the linear amplifiers 141 is input along with the output signal of another linear amplifier 141 that correspond to the adjacently situated photodiode 45, to the two input terminals A and B of the comparators 138. A comparator 138 compares the intensities of the output signals from each of the linear amplifiers that are input to the input terminals A and B. If the signal that is input to the terminal A is stronger than that input to the input terminal B, the comparator 138 outputs a positive voltage, and if the signal that is input to the input terminal B is stronger than that input to the input terminal A, it outputs a negative voltage. The output signal from each of the comparators 138 is inverted by an inversion amplifier 140 that is provided for each of the comparator 138. The output signal of each of the inverting amplifier 140 is taken the NAND operation in a NAND circuit 142, with the output signal of a comparator 138 whose input terminal A is connected to the output terminal of a linear amplifier 141 that is connected to the input terminal B of a comparator 138 that is connected to the inverting amplifier 140 in question. The output signal of the NAND circuit 142 is input to the control terminal of the amplifier 112 that is provided for each of the NAND circuits 142. If signal "0" is input to this control terminal from a NAND circuit 142, the amplifier opens the gate and outputs the signal that is input from the linear amplifier 141 by inverting it. The output terminal of each of the amplifiers 112 is connected, via diodes 144 whose anode side is connected to each of the load resistors, to predetermined load resistors 143 out of the n load resistors 143 that are connected to the DC power source Vc, in a connection condition which is different for each amplifier 112. When the output voltage of an amplifier 112 becomes less than 0, the load resistor 143 that is connected to the amplifier 112 via diodes 144 is short-circuited to the ground that is built-in but not shown in the amplifier 112. One end of the load resistor 143 whose the other end is connected to the DC power source Vc is connected to the input terminal of each of the NOT circuits 120. After the negative logic signals that are obtained in short-circuiting of the load resistors 143 are input to the NOT circuits 120, and the negative logic signals are inverted to positive logic signals and are output from each of the terminals 145-1, 145-2, ..., and 145-n. Further, diodes 144 are connected between each of the load resistors 143 and each of the amplifiers 112, in such a way as to have the positive logic signals that are output from each of the terminals 145-1, 145-2, ..., and 145-n are obtained in accordance with Gray code that is assigned to each of the photodiodes 45. Here, if the rotation of the rotating member is stopped and photodiodes, for example, 45-1, 45-2, and 45-3 detect light, then each of the photodiodes 45-1, 45-2, and 45-3 is brought to the on-state, so that currents are input from the DC power source Vc to each of the linear amplifiers 141-1, 141-2, and 114-3 via each of the light-receiving arrays 139. The output signals of each of the linear amplifiers 141-1, 141-2, and 141-3 are input to the input terminal. A of the respective comparators 138-2, 138-3, and 138-4, as well as to the input terminal B of the respective comparators 138-1, 138-2, and 138-3. To the input terminal A of the comparator 138-1 there is input the output signal of the linear amplifier 141-0 to which is connected the photodiode 45-1 which is not detecting light. Since the light-receiving area of the light-receiving array 139 of the photodiode 45-2 is greater than that of the photodiode 45-1, the value of the current output from the linear amplifier 45-2 exceeds that of the linear amplifier 45-1. Then, the current value that is input to the input terminal A of the comparator 138-1 is smaller than the current value input to the input terminal B of the same comparator, so that there is output a negative voltage from the comparator 138-1. Similarly, the light-receiving area of the light-receiving array 139 of the photodiode 45-3 is greater than that of the photodiode 45-2, so that the comparator 138-2 outputs a negative voltage. Further, the light-receiving area of the light-receiving array 139 of the photodiode 45-3 is greater than that of the photodiode 45-4, and the light-receiving area of the light-receiving array 139 of the photodiode 45-4 is greater than that of the photodiode 45-5, so that both of the comparators 138-3 and 138-4 output positive voltage. For comparators 138 other than the comparators 138-1, 138-2, 138-3, and 138-4, the current values that are input to both of the input terminals A and B are in balance, so that there will be output neither positive nor negative voltage from these comparators. The inverting amplifier 140-2 which receives a negative voltage from the comparator 138-2 outputs a positive voltage which is input to the NAND circuit 142-2. The NAND circuit 142-2 takes the NAND operation of the positive voltage that is output from the comparator 138-2 and the positive voltage output from the inverting amplifier 140-2, and outputs "0" signal. The amplifier 112-2 receives "0" signal that is output by the NAND circuit 142-2, in its control terminal. Therefore, it opens its gate, inverts the output signal that consists of a positive voltage from the linear amplifier 141-2, and gives rise to a negative voltage on its output terminal side. In the load resistors 143-2 and 143-n, out of 143-1, 143-2, ..., and 143-n, that are connected to the amplifier 112-2 via the diodes 144, there flow currents from the DC power source Vc. However, in the rest of the load resistors 143 there will flow no current from the DC power source Vc since they are not connected to the amplifier 112-2 via the diodes 144. Therefore, to the NOT circuits 120 there are input negative logic signals of "1, 0, 1, ..., 0" corresponding to the respective NOT circuits of 120-1, 120-2, 120-3, ..., and 120-n. Each of the NOT circuits 120 inverts the negative logic signal "1, 0, 1, ..., 0" to a positive logic signal "0, 1, 0, ..., 1", and outputs the corresponding result from each of the terminals 145-1, 145-2, 145-3, ..., and 145-n. Moreover, the amplifiers 112 except for the amplifier 112-2 all have an output signal "1" for the NAND circuits 142 that are connected to their control terminals so that their gates are not opened and hence the output signals of these amplifiers have all positive voltages. Accordingly, none of the amplifiers other than the amplifier 112-2 will short-circuit the load resistors. As in the above, in the rotary encoder of the present embodiment, it is possible to select a photodiode which receives light most, even when the output light that is irradiated by the optical fiber 46 is not concentrated to a single photodiode 45 and extends over more than two photodiodes, and to output a coded signal which is characteristic to the selected photodiode 45. Therefore, it becomes possible to reduce the separation between the photodiodes that are arranged in a row to be less than the width of the light that is irradiated by the optical fiber. This leads to a higher density and more compressed arrangement of the photodiodes 45, and to a detection of the amount of rotation with higher accuracy. It is apparent that the structure described in the above will include various modifications. Thus, for instance, the digital signals that are output from the NAND circuits 72-1, 72-2, 72-3, ..., and 72-n in the encoder shown in Fig. 4 are output as parallel signals that permit rapid processing. However, they may also be output as series signals by converting them. Namely, as shown in Fig. 9, each output signal from the NAND circuits 72-1, 72-2, 72-3, ..., and 72-n may be cheeked as to its parity in the parity checking circuit 150. The parity check signal 152 and the angle detection signals 154-1, 154-2, 154-3, ..., and 154-n, supplemented by a start signal 156 and a stop signal 158, may be output as a series signals 162 by means of a shift register or a multiplexer 160. Moreover, the optical sensors may be constructed using elements made of a photo-electric body or elements with photo-voltaic property such as CdS or PdS, in addition to be constructed by using phototransistors or photodiodes as in the above embodiment. When the output current due to photo Darlington is sufficiently strong, amplification of the current by amplifier can be done without. Further, the digital signals output so as to show the rotation angle may be output as negative logic signals without being inverted to positive logic signals by means of the NAND circuits 72-1, 72-2, 72-3, ..., and 72-n. Next, referring to Fig. 10, a modification in which a prism is used in the optical transfer route between the light-emitting and light-receiving elements in the displacement detector in the rotary encoder shown in Fig. 3. Namely, light emitted by the light-emitting diode 42 is led to the photodiode 44 by the use of the prism 166 that is formed and held in the rotating member 38. In other words, light emitted from the light-emitting diode 42 is reflected by a first reflecting surface 166-1 of the prism that is formed inclined on one end of the rotating member 38 that faces the light-emitting diode 42 above of it. The reflected light is reflected again by a second reflecting surface 166-2 formed inclined on the other end of the member that faces the phototransistor 44 above of it, and then impinges upon a certain photodiode 44-1. In addition, mirrors may be used in place of the reflecting surfaces of the prism. Further, the reflecting surfaces or mirrors may be formed curved to give foci to these surfaces. Moreover, the disposition of the light-emitting diodes and phtotransistors that are arranged on the semiconductor chip 40 needs not be limited to the ones shown in the embodiments shown in Figs. 3 and 10, and may be such as shown in Fig. 11 or 12. Namely, on a semiconductor 168, with the intersection of the axis center of the rotation shaft 34 as the center, there are arranged a plurality of light-emitting diodes 170 on the outer circumference of one of the two concentric circles, and on the circumference of the inner concentric circle there are arranged photodiode 172 so as to correspond to each of the light-emitting diode 170 on the same radial direction. With this set-up, light emitted from a light-emitting diode 170 is transferred to a corresponding phototransistor 172 by means of a prism 176 or an optical fiber 178 formed in a rotating member 174. (The arrangement of the light-emitting diodes and the phototransistors may be reversed.) By such an arrangement of the light-emitting diodes 170 and the photodiode 172, a relatively spacious area can be secured at the center of the semiconductor chip, so that it facilitates the design and arrangement of such a circuit as for generating digital signals. Still another arrangement is shown in Fig. 13. Namely, a plurality of photodiode 182 are arranged on a circumference with an equal separation, two strips of band-shaped electrode rings 188 are wound in parallel on the side surface of a rotation shaft 186 that is supported by a bearing 184, and two electrode plates 192 are connected to each of the electrode rings 188. The electrode rings 188 and the light-emitting diode 198, which is positioned at the tip of the rotating member 194 so as to move along the circumference on which are arranged phototransistors 182, are connected by lead wires 200 and 202 that are not shown in the figure. Electricity that is supplied to the electrode rings 188 from an external power source 190 via the lead wires 200 and 202, is sent to the light-emitting diode 198 to light up the diode 198. Interlocked with the rotation shaft 186, the light-emitting diode 198 encircles over the phototransistors 182 that are arranged on the circumference. Therefore, there is no need for providing a light-emitting diode and a power source for lighting on the semiconductor chip 180, making the circuit construction on the semiconductor chip simple. Moreover, there is a method of supplying current to the light-emitting diode 198 that moves around over the photodiode 182, as shown in Fig. 14. Namely, a high frequency wave from a high frequency power source 206 is supplied to a coil 204 that is fixed to the bearing 184, and an induced electromotive force is gnerated in a rotating coil 208 that is fixed to the rotation shaft 186. The exciting current that is generated in the rotating coil 208 that is fixed to the rotation shaft 186 is rectified by a rectifier 210 that is provided on the rotation shaft, and lights up the light-emitting diode 198. With such a construction it becomes possible to supply current to the rotating light-emitting diode by a simpler method and in a surer way than by the previous construction in which the light-emitting diode is lighted by means of the dectrode rings and the contact plates. Furthermore, the first embodiment in accordance with the present invention may also be applied to the linear encoder, as shown in Fig. 17. To cite an example, a plurality of photodiode 214 may be disposed in a row on a rectangular semiconductor chip 212 in its longitudinal direction with a predetermined separation, and two parallel linear guides 218, that serve also as the electrodes to which is supplied a current from a power source 216, are placed in the longitudinal direction above the semiconductor chip 212. Further, a linear traveler is provided, and is engaged slidably to the linear guides 218, that moves linearly facing each of the phototransistors 214, holding a light-emitting diode 220 that lights up by receiving current from the linear guides 218. When each of the photodiode 214 detects light from the light-emitting diode 220, it outputs a characteristic digital signal from a signal processing system that is not shown. In this way, it becomes possible to detect the position of the linear traveler 217 that holds the light-emitting diode 220, from the knowledge on the digital signal that is output. Next, by referring to Figs. 15 and 16, description will be given about the disposition on the semiconductor chip 40 of the signal processing circuit shown in Fig. 3 for outputting a digital signal which is characteristic to each of the photodiode 44 that received light. Further, as shown in Fig. 15, the surface of the semiconductor chip 40 is subdivided into four annular regions A, B, C, and D that are partitioned by five concentric circles and one region E that consits of a circle at the center. At the four corners (in the figure, two of the four corners) on the surface of the semiconductor chip 40, there are formed as bonding pads, a terminal P₁, for the ground, a terminal P₂ for a power source Vc, and digital signal output terminals P₃, P₄, P₅, ..., and P n . As shown in Fig. 16, in each of the regions A, B, C, D, and E there are arranged a circuit which is equivalent to the circuit for outputting digital signals for the embodiment shown in Fig. 4. Namely, in the outermost annular region A there are arranged along the circumference with equal spacing a plurality of sets, each set consisting of a photodiode 222, a linear amplifier 224 for amplifying the current that is detected by the diode, a Schmitt circuit 226 for binary coding the amplified detected current, and an open-collector transistor 228 that is operated by the binary coded signal that is obtained. In the region B which is next to the region A on the inside, there are arranged diode groups 230-1, 230-2, 230-3, ..., and 230-n, each group being surrounded by the single-chained line in the figure, that are connected respectively to the transistors 228 in the region A. In the region C on the inside of the region B, there are arranged load resistors 232-1, 232-2, 232-3, ..., and 232-n that serve as the pull-up resistors and NAND circuits 234-1, 234-2, 234-3, ..., and 234-n. In the region D on the inside of the region C, there are arranged a terminal 223 for the ground, a terminal 236 for the power source Vc, and output terminals 238-1, 238-2, 238-3, ..., and 238-n of the NAND circuits 234-1, 234-2, 234-3, ..., and 234-n. In the region E is arranged a light-emitting diode 42 that is lighted up by the supply of current from the ground terminal 223 and a power source terminal 236, together with a resistor 240. The connection between each of the terminals in the region D and each of the terminals at the corners on the semiconductor chip 40 may be done by such a method as given below. Namely, a method of connecting the terminals that are taken out to the reverse side of the semiconductor chip 40 by drilling holes on the semiconductor chip 40, or a method in which the semiconductor chip 40 is given a two-layer structure and the connection of the terminals is achieved between the layers by taking out the terminals to the interlayer region. In addition, in place of the photodiode 222, the linear amplifier 224, and the Schmidt circuit 226, a photo Darlington may be constructed by the phototransistor and the transistor. As in the above, the photodiode 222 are arranged on a circumference on the semiconductor chip 40 and the diode groups 230-1, 230-2, 230-3, ..., and 230-n are connected to the load resistors 232-1, 232-2, 232-3, ..., and 232-n so as to output characteristic digital signals, so that the rotation angle of the rotation shaft 34 can be detected in absolute value from the digital signal. Moreover, the light-emitting diodes, the light-receiving diodes, and further, the circuits for generating digital signals that are characteristic to the respective phototransistors are provided in a united body as an integrated circuit on the same semiconductor chip. An extremely high accuracy disposition of the light-emitting and the light-receiving diodes can be attained with high density as a characteristic feature of the integrated circuit, so that it becomes possible to improve the detection precision sharply, and to realize a rotary encoder which is super miniaturized and super light in weight. Next, referring to Figs. 18 to 26, a displacement detector will be described. As shown in Figs. 18 and 19, a rotary encoder is shown with reference numeral 250. The rotary encoder 250 has a case 252 that consists of a cylindrical shell shown by the single-chained line in Fig. 18, and has a rotation shaft 256 that is inserted to the interior of the case 252 perpendicular to the center of the top surface of the case 252, being supported by a bearing 254. The rotation shaft 256 rotates coaxially with the rotation shaft, that is not shown, of the object to be measured, and at the tip of the rotation shaft 256 in the case 252 there is fixed a rotating member 258 with its one end supported by the rotation shaft 256 and its the other end arranged to rotate around the axis center of the rotation shaft 256 together with the rotation shaft 256. On the inside bottom surface of the case 252 there is placed a square semiconductor chip 260. At the section on the semiconductor chip 260 where the axis center of the rotation shaft 256 intersects the chip there is arranged a phototransistor 262 that serves as the light-receiving element. Further, on the semiconductor chip 260 there are arranged a plurality of light-emitting diodes that serve as light-emitting elements on the circumference of a circle that has the phototransistor 262 as the center, in such a manner as to be positioned below the other end of the rotating member 258. Namely, on the surface of the rotating member 258 that faces the semiconductor chip 260 there is provided a prism 266 as shown in Fig. 19. Light emitting by one of the plurality of the light-emitting diodes 264 is reflected by a first reflecting surface 268 of a prism 266 that is arranged inclined on one end of the rotating member 258 facing the light-emitting diodes 264. The reflected light is reflected again by a second reflecting surface 270 that is arranged inclined on the other end of the rotating member that faces the phototransistor 262, and impinges upon the phototransistor 262. Here, the light-emitting diodes are flashed in turn by means of a signal processing circuit that will be described below that is formed on the semiconductor chip 260, so as to have a rotation of the lighted position of the light-emitting diodes 264 that are arranged on the circumference of a circle. Thus, when the illuminating light from one of the light-emitting diode 264-1 impinges upon the phototransistor 262 via the rotating member 258, the signal processing circuit outputs a digital signal which is characteristic to the light-emitting diode 264-1 that emitted the illuminating light. In the following, the process of outputting a digital signal which is assigned individually to each of the light-emitting diodes 264 by means of the signal processing circuit will be described by making reference to Fig. 20. On the semiconductor chip 260, a current is supplied to the light-emitting diodes 264 so as to keep the lighted position of the light-emitting diodes 264 flash successively in one direction, by means of a flashing circuit that is provided in the above circuit. Namely, the clock number from an oscillator 272 is counted by a counter 274 with scale of n which is equal to the number of light-emitting diodes 264, and a digital output signal that corresponds to the counted value is output to a decoder 276. In the decoder 276, the light-emitting diode 264 that corresponds to the counted value of the counter 274 is flashed in turn. Light from an arbitrary light-emitting diode 264 that is flashed in this manner, is detected by the phototransistor 262 that receives light via the reflecting surfaces 268 and 270 of the prism 266 that is arranged in the rotating member 258. Then, a collector current will flow in the phototransistor 262 that detected the light, the current is amplified by the photo-Darlington 278, and a resistor 280 that is connected to the DC power source Vcc in series is short-circuited. The negative pulse which is a negative logic output that is obtained as a result of short-circuiting of the resistor 280 is input to a register 282. When a negative pulse is input, the register 282 holds the counted value of the counter 274 and outputs a digital output signal that corresponds to the counted value. Since the values counted by the counter correspond to the respective light-emitting diodes 264, so that the signal output by the register 282 represents an angle signal that shows the rotation angle of the rotation shaft 256 in absolute value. In this manner, as a result of rotation that accompanies the rotating member 258 of the rotation shaft 256 that is interlocked to the rotation of the object to be measured, light from a certain light-emitting diode 264 is detected by a phototransistor 262 via the reflecting surfaces 268 and 270 of the prism 266 provided in the rotating member 258. Then, there is obtained a digital signal which is characteristic to the light-emitting diode 264 that emitted light that is detected, so that it becomes possible to detect the rotation angle of the rotation shaft 256 as an absolute angle. Furthermore, the light-emitting diodes, the phototransistors, and moreover, the circuits for generating digital signals that are characteristic to the respective light-emitting diodes are provided in a united body on the same semiconductor chip as an integrated circuit. Therefore, as a special feature of the integrated circuit it becomes possible to mount all the elements with high density, and hence, to realize a rotary encoder which is super miniaturized and super light in weight that sharply improves the detection precision. Moreover, it is apparent that various modifications may be added to the construction. Thus, for instance, the digital signals that represent the detected signals output from the register 282 as parallel signals in the second embodiment may also be output as series signals by conversion. Namely, as shown in Fig. 21, each of the outputs from the register 282 may be checked as to the parity in a parity checking circuit 284, and may be output as series signals from a shift register or a multiplexer 294, by supplementing the parity checking signal 286 and the angle detection signals 288-1, 288-2, 288-3, ..., and 288-n by a start signal 290 and a stop signal 292. Moreover, the photo sensors may also be constructed using photodiodes or elements made of photoelectric material or with photo-voltaic property such as CdS or PdS, in addition to the phototransistors. In addition, the disposition of the light-emitting diodes and the phototransistors on the semiconductor chip need not be limited to that of the embodiment described in the foregoing. Thus, for example, it may be as shown in Fig. 22. Namely, on a semiconductor chip 296 there are two concentric circles with the intersection of the rotation shaft 256 with the chip 296 as the center. On the outer concentric circle there are arranged a plurality of phototransistors 298. On the inner concentric circle there are arranged light-emitting diodes 300 on the radial directions corresponding to each of the phototransistors 298. Between a pair of phototransistor 298 and light-emitting diode 300, light emitted by the light-emitting diode 300 that is flashed is transmitted to the phototransistor 298 by means of a prism 304 that is formed in the rotating member 302. In this modification, as shown also in Fig. 23, a negative pulse which is generated by the detection of the incident light by the phototransistor 262, is input to a NOR circuit 306, and the positive pulse outPut from the NOR circuit 306 is sent out to the register 282. The register 282 that receives a positive pulse, outputs to the outside the counted value of the counter. With such a disposition of the phototransistors 298 and the light-emitting diodes 300, relatively spacious region can be secured at the center of the semiconductor chip so that it becomes possible to facilitate the design and arrangement of circuits such as the one for generating digital angle signals. Still another modification is shown in Fig. 24. Namely, on a semiconductor chip 308, a plurality of light-emitting diodes 310 are arranged on a circumference with equal separations. On the side surface of a rotation shaft 314 that is supported by a bearing 312, there are wound in parallel two band-like electrode rings 316. These electrode rings 316 serve as electrodes for a phototransistor 320 that is arranged at the tip of the rotating member 318, facing to each of the light-emitting elements, and are connected by lead wires 322 and 324 that are shown by dotted lines in the figure. The phototransistor 320 constitutes a photo Darlington via a transistor 326 and the electrode rings 316, and the transistor 326 is connected to the phototransistor 320 via the plates 328 that make contact with the electrode rings 316. When the phototransistor 320 detects light, a collector current flows to the transistor 326 which short-circuits a resistor 330 to the ground so that there is obtained a negative pulse P. Then, the negative pulse P is sent to the register 282. With such a construction, the phototransistor 320 that is interlocked with the rotation shaft 314 moves round cver the light-emitting diodes 310 that are arranged on a circumference. Therefore, there is no need for arranging phototransistors on the semiconductor chip 308, making the circuit construction on the semiconductor chip 308 simple. An example of a linear encoder is shown in Fig. 25, where a plurality of light-emitting diodes 334 are disposed in a row with a predetermined separation along the longitudinal direction of a rectangular semiconductor chip, and two linear guides consisting of rectangular pillars made of a conducting material are laid over the semiconductor chip 332 in the longitudinal direction. Then, a linear traveler 340, that holds a phototransistor 338 consisting of a photo Darlington that uses the linear guides 336 so as to let it move linearly in a state of facing each of the light-emitting diodes 334, is engaged slidably to the linear guides 336. Now, the light-emitting diodes 334 are lighted up in turn so that when the phototransistor 338 detects light from a light-emitting diode at an arbitrary position, a resistor 342 that is connected to the power source Vcc is short-circuited to the ground, and a negative pulse P is sent out to the register 282. As a result, the register 282 outputs a digital signal which is characteristic to the light-emitting diode 334 that detected the light. In this way, it becomes possible to detects the position of the linear traveler that holds the phototransistor 338. Now, in Fig. 18, transfer of light from a light-emitting diode 264 to the phototransistor 262 is carried out by means of the prism that is fixed to the rotating member 258. However, analogous to the first embodiment, light emitted from a light-emitting element may also be led directly to the light-receiving element by using optical fibers 348 that are held by the rotating member 258, as shown in Fig. 26. By the use of the optical fibers 348, it becomes possible to realize a securer transfer of light from a light-emitting diode 264 to the phototransistor 262. In addition, light transfer may be achieved by providing mirrors on the prism. Further, by forming the reflecting surface or the mirror so as to have a focus, its operation can be made more precise. In summary, it is possible to output a signal which is characteristic to a light-emitting element that outputs the light, in response to the detection by the light-receiving element of the light that is output by the light-emitting element. Therefore, it becomes possible to carry out rapid detection with high precision of the absolute displaced position, by the use of a small-sized displacement detector.

Claims: A displacement detector for detecting the amount of displacement of an object to be measured, comprising: means (42,170,198,264,300,310) for generating electromagnetic energy; sensing means (44,45,172,182,222,298,320,262) that are disposed with predetermined spacing, whose state changes in response to the changes in received electromagnetic energy; electromagnetic energy varying means (38,258,302,186) which is arranged movably, linked to the motion of the object to be measured, along the row of said generating or sensing means in order to vary the amount of electromagnetic energy received in said sensing means in response to the displacement amount of the object to be measured; and a signal processing circuit (52,106,134) for converting the detection signal that is obtained from said sensing means situated at the position where the electromagnetic energy is changed by said electromagnetic energy varying means, to a coded signal which is characteristic to the position of the sensing means at the position where there was a change in the electromagnetic energy and for outputting the coded signal as a displacement detection signal; characterised in that the signal processing circuit (52,106,134) comprises diode groups (68, 114, 230) for generating signals that are characteristic to each of the sensing means, based on the output obtained from the specified sensing means, a power source (60) that is connected in series to the diode groups via load resistors (70,132), and NOT circuits (72,125,120) that invert the digital output signals from the respective load resistors that are pulled to ground via the diode groups to output them as the displacement signal, based on the output from the specified sensing means; and in that said signal processing circuit (52,106,134) further includes a rotation number measuring unit (110) that counts the number of rotations of the object to be measured, which comprises: (a) a flip-flop (122) whose set and reset terminals (S,R) are connected to receive the detection signals of two sensing means, (b) first and second AND circuits (124A,124B) for obtaining logical products of the signals from the Q and Q terminals of the flip-flop (122) and the detection signals from one sensing means other than the above two, and (c) an up-down counter (126) whose UP and DOWN input terminals are connected to the output terminal of the first and second AND circuits, respectively, for counting the output signal from the AND circuits (124A,124B). A displacement detector as claimed in claim 1, in which the generating means comprises a light-emitting element (264 or 42) arranged with the signal processing circuit (52) on a disk-like semiconductor chip (40). A displacement detector as claimed in any preceding claim, further comprising light-transmitting means comprising a prism (166,304,266) provided on the object to be measured, for transmitting light from said electromagnetic energy generating means constituted by a light-emitting element or elements (42 or 264) by reflection to the sensing means (44,45,172,298,320 or 262). A displacement detector as claimed in claim 1 or 2 comprising light-transmitting means comprising an optical fibre (46,178) provided on the object to be measured for transmitting light from the electromagnetic energy generating means, constituted by light-emitting elements or element (264 or 42) to the sensing means (262 or 44,45,172,222,298,320). A displacement detector as claimed in any preceding claim, in which the sensing means (44,45,172,222,298,320,262) comprises a phototransistor or photodiode and the electromagnetic energy generating means (42,264) comprises a light-emitting diode or a laser diode. A displacement detector as claimed in claim 5, in which said sensing means comprises a plurality of light-receiving elements that are arranged in circular form with predetermined spacing, and said electromagnetic energy generating means comprises a light-emitting element provided on the object to be measured for radiating light, linked to the circular motion of the object to be measured.

Inventors: ARIMURA YOSHIAKI, ARIMURA, YOSHIAKI
Applicants: TOSHIBA KK, KABUSHIKI KAISHA TOSHIBA
Application year: 1986
Main classification: H03M1
IPC codes: H03M1