The entire disclosure of Japanese Patent Application No. 2010-067532 filed Mar. 24, 2010 is expressly incorporated by reference herein.
1. FIELD OF THE INVENTION
The present invention relates to an optical encoder.
2. DESCRIPTION OF RELATED ART
A typically known optical encoder includes: a scale having latticed scale markings; a detecting head having a light-emitting element that emits light onto the scale and a light-receiving element that receives the light emitted by the light-emitting element to be reflected or transmitted by the scale; and a connector connected to the detecting head via a cable. The optical encoder measures the position of the detecting head relative to the scale based on the light received by the light-receiving element (see, for instance, Patent Literature 1: JP-A-2006-3307).
The optical encoder disclosed in the Patent Literature 1 includes a scale base (scale), a detector head (detecting head) and an output connector (connector) and measures the position of the detecting head relative to the scale.
When the optical encoder is used, a user attaches the scale and the detecting head respectively to two objects to be measured that are relatively displaceable. At this time, the scale and the detecting head have to be attached in an appropriate positional relationship so that the light emitted from the light-emitting element is reflected or transmitted by the scale and received by the light-receiving element and the intensity of the light received by the light-receiving element comes within a predetermined range.
Specifically, an optical encoder disclosed in Patent Literature 2 (JP-A-05-133732) includes an LED (Light Emitting Diode) provided on a read head, the LED changing emission color thereof based on an electric signal outputted by a light-receiving element in accordance with a distance (positional relationship) between a scale and the read head. A user can adjust the positional relationship between the scale and the read head by visually checking the emission color of the LED while moving the read head relative to the scale.
However, according to the optical encoder disclosed in the Patent Literature 2, since the user has to visually check the emission color of the LED while moving the read head relative to the scale, the positional relationship between the scale and the detecting head cannot be easily adjusted. Further, depending on the attachment position of the read head onto the object, it is difficult for the user to visually check the emission color of the LED, so that the positional relationship between the scale and the detecting head cannot be easily adjusted.
An object of the invention is to provide an optical encoder that allows easy adjustment of a positional relationship between a scale and a detecting head.
An optical encoder according to an aspect of the invention includes: a scale that has latticed scale markings; a detecting head that has a light-emitting element that emits light onto the scale and a light-receiving element that receives the light emitted by the light-emitting element to be reflected or transmitted by the scale; and a connector connected to the detecting head via a cable, the optical encoder measuring a position of the detecting head relative to the scale based on the light received by the light-receiving element, in which the connector comprises a display that displays a status of the light received by the light-receiving element and a controller that controls the display, and the controller comprises a display controller that controls the display based on an electric signal outputted in accordance with the intensity of the light received by the light-receiving element.
According to the above arrangement, the connector includes the display for displaying the status of the light received by the light-receiving element and is connected to the detecting head via the cable. Accordingly, the display can be easily viewed even while the detecting head is moved relative to the scale. Thus, a user can easily adjust the positional relationship between the scale and the detecting head.
In the above aspect of the invention, it is preferable that the optical encoder is arranged as an incremental optical encoder that employs a multiphase sine wave signal with a predetermined center voltage as the electric signal, the controller comprises an amplitude calculator that calculates an amplitude of the multiphase sine wave signal based on the predetermined center voltage of the multiphase sine wave signal and an instantaneous value of the multiphase sine wave signal, and the display controller controls the display based on the amplitude of the multiphase sine wave signal calculated by the amplitude calculator.
The multiphase sine wave signal herein refers to one of multiphase sine wave signal, triphasic sine wave signal and four-phase sine wave signal. The triphasic sine wave signal and four-phase sine wave signal can be converted into the multiphase sine wave signal. In the following description, it is assumed that the multiphase sine wave signal is the multiphase sine wave signal.
According to the above arrangement, since the phase difference of the multiphase sine wave signal is 90 degrees, the amplitude calculator can calculate the amplitude of the multiphase sine wave signal based on the predetermined center voltage of the multiphase sine wave signal and an instantaneous value of the multiphase sine wave signal. Further, since the display controller controls the display based on the amplitude of the multiphase sine wave signal, the status of the light received by the light-receiving element can be displayed on the display without moving the detecting head relative to the scale. Thus, a user can further easily adjust the positional relationship between the scale and the detecting head.
In the above aspect of the invention, it is preferable that the connector is a substantially rectangular parallelepiped that has a terminal face at which a terminal is provided and a cable face provided opposite to the terminal face and receiving the cable, a slant portion that is slanted and narrowed toward the cable face is provided on an orthogonal face that is orthogonal to the terminal face and the cable face, and the display is provided on the slant face.
According to the above arrangement, since the display is provided on the slant portion, when, for instance, a plurality of the linear encoders are used for measurement with a plurality of connectors thereof being arranged in a predetermined direction and connected with external equipments, the display can be viewed in the direction of the cable face. Thus, a user can easily adjust the positional relationship between the scale and the detecting head even when a plurality of optical encoders are used for measurement.
In the above aspect of the invention, it is preferable that the controller comprises an intensity adjuster that adjusts at least one of an intensity of the light emitted from the light-emitting element or an intensity of the electric signal in accordance with the intensity of the light received by the light-receiving element, and the connector comprises operation units, each of the operation units being provided respectively on the orthogonal face and the cable face, the operation units effecting an adjustment of the intensity adjuster.
According to the above arrangement, since the controller includes the intensity adjuster that performs the adjustment in response to an operation on the operation units provided by button switches and the like, a user can automatically adjust at least one of the intensity of the light emitted by the light-emitting element or the intensity of the electric signal by operating the operation units.
Further, since each of the operation units is respectively provided on the orthogonal face and the cable face, when, for instance, a plurality of the linear encoders are used for measurement with a plurality of connectors thereof being arranged in a predetermined direction to be connected with external equipments, the operation units can be operated from the cable face. Thus, a user can easily adjust at least one of the intensity of the light emitted by the light-emitting element and the intensity of the electric signal even when a plurality of optical encoders are used for measurement.
Further, by providing the controller with the amplitude calculator and the display controller that controls the display based on the amplitude of the multiphase sine wave signal calculated by the amplitude calculator, a user can adjust at least one of the intensity of the light emitted by the light-emitting element and the intensity of the electric signal without moving the detecting head relative to the scale after operating the operation unit.
In the above aspect of the invention, it is preferable that the controller comprises a signal adjuster that, after the adjustment by the intensity adjuster is done, adjusts the electric signal, and the connector comprises a notifier that notifies that the adjustment by the intensity adjuster is done.
According to the above arrangement, since the controller includes the signal adjuster that adjusts the signal after the adjustment of the intensity adjuster is done, a user can automatically adjust the electric signal by operating the operation unit.
Further, since the connector comprises a notifier that notifies that the adjustment by the intensity adjuster is done, a user can recognize the completion of the adjustment by the intensity adjuster.
Further, by providing the controller with the amplitude calculator and the display controller that controls the display based on the amplitude of the multiphase sine wave signal calculated by the amplitude calculator, a user can adjust at least one of the intensity of the light emitted by the light-emitting element and the intensity of the electric signal without moving the detecting head relative to the scale after operating the operation unit and can recognize the completion of the adjustment of the intensity adjuster with the assistance of the notifier. Then, upon recognizing the completion of the adjustment by the intensity adjuster with the assistance the notifier, the user moves the detecting head relative to the scale to adjust the electric signal. Thus, the user can easily adjust the intensity of the light emitted by the light-emitting element and the electric signal.
In the above aspect of the invention, it is preferable that the display is provided by three or more odd number of LEDs that are arranged in a predetermined direction, the display controller lighting: a center one of the LEDs when the intensity of the light received by the light-receiving element is within a predetermined range; a first-side one of the LEDs disposed at a first side relative to the center when the intensity of the light received by the light-receiving element surpasses the predetermined range; and a second-side one of the LEDs disposed at a second side relative to the center when the intensity is below the predetermined range.
According to the above arrangement, since the display is provided by arranging three or more odd number of LEDs in the predetermined direction and different ones of the LEDs is lit depending on the intensity of the light received by the light-receiving element, the status of the light received by the light-receiving element can be easily recognized only by viewing the display.
In the above aspect of the invention, it is preferable that the display is provided by two or more even number of LEDs that are arranged in a predetermined direction, the display controller lighting: two LEDs disposed at a center of the LEDs when the intensity of the light received by the light-receiving element is within a predetermined range; a first-side one of the LEDs disposed at a first side relative to the center when the intensity of the light received by the light-receiving element surpasses the predetermined range; and a second-side one of the LEDs disposed at a second side relative to the center when the intensity is below the predetermined range.
According to the above arrangement, since the display is provided by arranging two or more even number of LEDs in the predetermined direction and different one(s) of the LEDs is lit depending on the intensity of the light received by the light-receiving element, the status of the light received by the light-receiving element can be easily recognized only by viewing the display.
A first exemplary embodiment of the invention will be described below with reference to the attached drawings. General Arrangement of Optical Encoder
As shown in
As shown in
The head controller 23 is provided by, for instance, an ASIC (Application Specific Integrated Circuit). The head controller 23 controls an intensity of the light emitted from the light-emitting element 21 and outputs a multiphase sine wave signal with a predetermined center voltage in accordance with the intensity of the light received by the light-receiving element 22. The multiphase sine wave signal outputted by the head controller 23 is outputted to the connector 4 via the cable 3 (see an arrow A in
As shown in
As shown in
As shown in
As shown in
As shown in
The emission color of the center LED 53 is green; the emission color of LEDs 51 and 55 on both ends is red; and the emission color of the other LEDs 52 and 54 is orange.
As shown in
As shown in
The connector controller 6 includes: an amplitude calculator 61; a display controller 62; an intensity adjuster 63; and a signal adjuster 64.
The amplitude calculator 61 calculates an amplitude of the multiphase sine wave signal based on the predetermined center voltage of the multiphase sine wave signal outputted by the head controller 23 and an instantaneous value of the multiphase sine wave signal.
The display controller 62 controls the display 5 based on the amplitude of the multiphase sine wave signal calculated by the amplitude calculator 61. In other words, the display controller 62 controls the display 5 based on the intensity of the light received by the light-receiving element 22.
Specifically, when the amplitude of the multiphase sine wave signal calculated by the amplitude calculator 61, i.e. the intensity of the light received by the light-receiving element 22, is within a predetermined range, the display controller 62 lights the center LED 53. When the intensity surpasses the predetermined range, the display controller 62 lights the LED 54 or 55 disposed at one side (left side in
Incidentally, the display controller 62 lights the LEDs 51 to 55 in a stepwise manner in accordance with the intensity of the light received by the light-receiving element 22. The intensity of the light is the smallest when the LED 51 is lit and is the largest when the LED 55 is lit. In other words, the display 5 displays the status of the light received by the light-receiving element 22.
The intensity adjuster 63 adjusts the intensity of the light emitted from the light-emitting element 21 in accordance with the intensity of the light received by the light-receiving element 22. Specifically, the intensity adjuster 63 calculates a correction value for the adjustment in accordance with the amplitude of the multiphase sine wave signal calculated by the amplitude calculator 61, and outputs a control signal (represented by an arrow C in
After the adjustment is performed by the intensity adjuster 63, the signal adjuster 64 adjusts the multiphase sine wave signal outputted in accordance with the intensity of the light received by the light-receiving element 22. Specifically, the signal adjuster 64 calculates a correction value for the adjustment in accordance with the status of the multiphase sine wave signal inputted from the head controller 23 via the cable 3 when the detecting head 2 is moved relative to the scale Sc, and adjusts the amplitude and the center voltage of the multiphase sine wave signal based on the correction value.
Incidentally, the amplitude and the center voltage of the multiphase sine wave signal can be adjusted using, for instance, a digital potentiometer.
Further, the correction value can be calculated by detecting peaks of the multiphase sine wave signal in a plurality of cycles and averaging the peaks to calculate the intensity and the center voltage of the multiphase sine wave signal. The correction value is stored in a memory (not shown) of the connector controller 6. Power is supplied to the linear encoder 1 via the external equipment connected to the connector 4. When the linear encoder 1 is powered on, the connector controller 6 reads the correction value from the memory and adjusts the amplitude and center voltage of the multiphase sine wave signal based on the correction value.
Further, the connector controller 6 is connected to the USB connector 47 so as to be controlled by an external processor such as a PC (Personal Computer) that is connected to the connector 4 via a USB cable.
Specifically, under the control of the external processor, the connector controller 6 is adapted to, for instance, output to the external processor the multiphase sine wave signal outputted by the head controller 23. Then, the external processor analyzes the multiphase sine wave signal inputted by the connector controller 6 to diagnose, for instance, malfunctions caused on the linear encoder 1.
Further, under the control of the external processor, the connector controller 6 is adapted to be controlled to command to the intensity adjuster 63 and the signal adjuster 64 to adjust the multiphase sine wave signal outputted in accordance with the intensity of the light emitted by the light-emitting element 21 and the intensity of the light received by the light-receiving element 22. Thus, when, for instance, a plurality of the linear encoders 1 are used for measurement, each of the linear encoders 1 can be simultaneously adjusted. Attachment Process and Adjustment Process of the Optical Encoder
Next, an attachment process for attaching the scale Sc and the detecting head 2 of the linear encoder 1 to two objects to be measured that are relatively displaceable, and adjustment process of the linear encoder 1 will be described below.
A user of the linear encoder 1 attaches the scale Sc and the detecting head 2 to the respective objects to be measured while viewing emission statuses of the LEDs 51 to 55 of the display 5 so that the center LED 53 is lit. Then, after the scale Sc and the detecting head 2 are attached to the respective objects, the user pushes the CAL switch 421 or the CAL switch 432 in order to adjust the multiphase sine wave signal outputted in accordance with the intensity of the light emitted from the light-emitting element 21 and the intensity of the light received by the light-receiving element 22.
When the CAL switch 421 or the CAL switch 432 is pushed down, the connector controller 6 executes the following steps Si to S3 as shown in
Specifically, the intensity adjuster 63 adjusts the intensity of the light emitted from the light-emitting element 21 in accordance with the intensity of the light received by the light-receiving element 22 (51: intensity adjustment step). Incidentally, after the user pushes the CAL switch 421 or the CAL switch 432, the user can adjust the intensity of the light emitted from the light-emitting element 21 by the intensity adjuster 63 without moving the detecting head 2 relative to the scale Sc.
When the intensity of the light emitted from the light-emitting element 21 is adjusted by the intensity adjuster 63, the connector controller 6 lights the CAL indicator 433 to notify that the adjustment is performed by the intensity adjuster 63 (S2: notification step). Then, upon recognizing the completion of the adjustment by the intensity adjuster 63 in view of the CAL indicator 433, the user moves the detecting head 2 relative to the scale Sc.
When the detecting head 2 is moved relative to the scale Sc, the signal adjuster 64 adjusts the multiphase sine wave signal outputted based on the intensity of the light received by the light-receiving element 22 (S3: signal adjustment step).
The above steps S1 to S3 are performed so that the multiphase sine wave signal outputted in accordance with the intensity of the light emitted from the light-emitting element 21 and the intensity of the light received by the light-receiving element 22 is adjusted.
The above-described exemplary embodiment provides the following advantages:
A second exemplary embodiment of the invention will be described below with reference to the attached drawings. It should be noted that, in the following description, the components that have already been explained will be designated by the same reference numerals to avoid repetition.
In the first exemplary embodiment, the display 5 is provided by the five LEDs 51 to 55 that are arranged in parallel with the terminal face 41 and the cable face 42.
In contrast, a display 5A in the second exemplary embodiment is provided by four LEDs 55 to 59 that are arranged in parallel with the terminal face 41 and the cable face 42.
The emission color of the two center LEDs 57 and 58 is green; the emission color of the LEDs 56 and 59 on both ends is red.
Further, in the first exemplary embodiment, when the amplitude of the multiphase sine wave signal calculated by the amplitude calculator 61 is within a predetermined range, the display controller 62 lights the center LED 53; when the amplitude surpasses the predetermined range, the display controller 62 lights the LED 54 or 55 disposed at one side relative to the center; and when the amplitude is below the predetermined range, the display controller 62 lights the LED 51 or 52 disposed at the other side relative to the center.
In contrast, when the amplitude of the multiphase sine wave signal calculated by the amplitude calculator 61 is within a predetermined range, a display controller 62A of the second exemplary embodiment lights the two center LEDs 57 and 58; when the amplitude surpasses the predetermined range, the display controller 62A lights the LED 58 and/or 59 (left side in
Incidentally, the display controller 62A lights the LEDs 56 to 59 in a stepwise manner in accordance with the intensity of the light received by the light-receiving element 22. The intensity of the light is the smallest when the LED 56 is lit and is the largest when the LED 59 is lit.
The second exemplary embodiment provides advantages similar to those of the first exemplary embodiment.
Incidentally, it should be understood that the scope of the present invention is not limited to the above-described exemplary embodiment(s) but includes modifications and improvements as long as the modifications and improvements are compatible with the invention.
For instance, in the above exemplary embodiments, the connector controller 6 includes the amplitude calculator 61 that calculates the amplitude of the multiphase sine wave signal, i.e. the intensity of the light received by the light-receiving element 22, based on the predetermined center voltage of the multiphase sine wave signal outputted by the head controller 23 and the instantaneous value of the multiphase sine wave signal. However, the controller may be arranged to detect the intensity of the light received by the light-receiving element using a comparator circuit or the like in the same manner as the optical encoder disclosed in the Patent Literature 2. In other words, it is only required for the controller to have a display controller that controls the display based on an electric signal outputted in accordance with the intensity of the light received by the light-receiving element.
In the above exemplary embodiments, the slant portion 431 is provided on the upper face 43 of the connector 4 and the displays 5 and 5A are provided on the slant portion 431. However, the displays 5 and 5A may not be provided on the slant portion 431 and, further, may not be provided on the upper face 43. Specifically, the displays 5 and 5A may be provided on the cable face 42 or on the bottom face 46. In other words, the display may be provided anywhere on the connector.
Though the slant portion 431 is flat in the above exemplary embodiments, the slant portion 431 may be curved or the like. In other words, it is only required for the slant portion to be slanted and narrowed toward the cable face.
Further, though the slant portion 431 is slanted and narrowed toward the cable face 42 in the above exemplary embodiments, the slant portion 431 may be slanted and narrowed in the other direction.
Though the connector 4 is rectangular parallelepiped in the above exemplary embodiments, the connector 4 may be provided as a semi-ellipsoid or the like.
Though the rubber cover 441 is attached to the lateral face 44 in the above exemplary embodiments, a plastic cover may be attached to the lateral face 44 by a screw or the like.
Though multiphase sine wave signal is exemplarily used as the multiphase sine wave signal in the above exemplary embodiments, the multiphase sine wave signal may be a triphasic sine wave signal or a four-phase sine wave signal.
Though the intensity adjuster 63 adjusts the intensity of the light emitted from the light-emitting element 21 in accordance with the intensity of the light received by the light-receiving element 22 in the above exemplary embodiments, the intensity adjuster 63 may adjust the multiphase sine wave signal, i.e. the intensity of the electric signal, in accordance with the intensity of the light received by the light-receiving element 22. Incidentally, the intensity of the electric signal can be adjusted by, for instance, an amplifier.
In the above exemplary embodiments, the connector 4 includes the CAL switches 421 and 432, the CAL indicator 433 and the intensity adjuster 63 and the signal adjuster 64 in order to automatically adjust the multiphase sine wave signal outputted in accordance with the intensity of the light emitted by the light-emitting element 21 and the intensity of the light received by the light-receiving element 22. However, these functions may not be provided.
In the first exemplary embodiment, the display 5 is provided by the five LEDs 51 to 55 that are arranged in parallel with the terminal face 41 and the cable face 42. However, the display may be provided by three LEDs arranged in a predetermined direction or, alternatively, may be provided by seven or more odd number of LEDs arranged in a predetermined direction. In other words, it is only required for the display in the first exemplary embodiment to have three or more odd number of LEDs arranged in a predetermined direction.
In the second exemplary embodiment, the display 5A is provided by the four LEDs 56 to 59 that are arranged in parallel with the terminal face 41 and the cable face 42. However, the display may be provided by two LEDs arranged in a predetermined direction or, alternatively, may be provided by six or more even number of LEDs arranged in a predetermined direction. In other words, it is only required for the display in the second exemplary embodiment to have two or more even number of LEDs arranged in a predetermined direction.
Further, a single LED may be provided instead of the display 5 provided by the five LEDs 51 to 55 in the first exemplary embodiment and the display 5A provided by the four LEDs 56 to 59 in the second exemplary embodiment. In this arrangement, the status of the light received by the light-receiving element may be indicated by altering the emission color in a manner similar to the optical encoder disclosed in the Patent Literature 2 or, alternatively, the status of the light received by the light-receiving element may be indicated by altering the emission state (e.g. flashing) of the LED. Further, the display may be provided by a liquid crystal display and the like. In other words, it is only required for the display to be capable of indicating the status of the light received by the light-receiving element.
In the above exemplary embodiments, the linear encoder 1 is arranged to receive the light reflected by the scale Sc by the light-receiving element 22. However, the optical encoder may be arranged to receive the light passing through the scale by the light-receiving element.
In the above exemplary embodiment, though the linear encoder 1 is used as an example of the optical encoder, the present invention is applicable to, for instance, an optical rotary encoder.
Number | Date | Country | Kind |
---|---|---|---|
2010-067532 | Mar 2010 | JP | national |