ADAPTIVE REFERENCE MARK DETECTION PROCESS
20190301900 ยท 2019-10-03
Assignee
Inventors
Cpc classification
International classification
Abstract
An encoder apparatus comprising a readhead moveable relative to a scale, configured to produce a position signal, as well as to produce a reference mark signal when the readhead passes over a reference mark on the scale, configured such that the process for producing the reference mark signal adapts automatically in response to a change in circumstance so as to at least pursue maintenance of a given relationship between the position and reference mark signals.
Claims
1. An encoder apparatus comprising a readhead moveable relative to a scale, configured to produce a position signal, as well as to produce a reference mark signal when the readhead passes over a reference mark on the scale, configured such that the process for producing the reference mark signal adapts automatically in response to a change in circumstance so as to at least pursue maintenance of a given relationship between the position and reference mark signals.
2. An encoder apparatus as claimed in claim 1, in which the given relationship between the position and reference mark signals is one that is determined during calibration of the encoder apparatus.
3. An encoder apparatus as claimed in claim 1, in which the relationship between the position and reference mark signals comprises a positional relationship between the position and reference mark signals.
4. An encoder apparatus as claimed in claim 1, configured such that the process for producing the reference mark signal analyses a signal obtained from the output of at least one reference mark sensor arranged in the readhead to sense the reference mark as the readhead passes over the reference mark.
5. An encoder apparatus as claimed in claim 4, configured such that the process for producing the reference mark signal uses at least one variable in the processing of the signal obtained from the output of the at least one reference mark sensor, the variable being adapted in response to said change in circumstance.
6. An encoder apparatus as claimed in claim 5, in which said at least one variable comprises a threshold against which the signal obtained from the output of the at least one reference mark sensor is compared to determine the passage of a reference mark, and/or an offset applied to the signal obtained from the output of the at least one sensor.
7. An encoder apparatus as claimed in claim 6, comprising a plurality of thresholds against which the signal obtained from the output of the at least one reference mark sensor is compared to determine the passage of a reference mark, in which the encoder apparatus is configured to adapt each threshold individually in response to a change in circumstance.
8. An encoder apparatus as claimed in claim 4, in which adapting the process comprises adapting one or more factors except for the signal obtained from the output of the at least one reference mark sensor based on said change in circumstance.
9. An encoder apparatus, as claimed in claim 1, configured to generate a series of predetermined reference mark pulses each occurring at a predetermined phase with respect to the position signals, and to generate a gating reference pulse as the readhead passes over the reference mark which is used to gate the reference mark pulses, and configured such that the process for producing the gating reference pulse is configured to adapt automatically in response to a change in circumstance so as to continue to gate the same predetermined reference mark pulse.
10. An encoder apparatus as claimed in claim 9, in which adapting the process for generating the gating reference pulse in response to a change in circumstance comprises nudging the boundaries of the gating reference pulse toward predetermined positions with respect to the position signals.
11. An encoder apparatus as claimed in claim 1, configured to adapt the process for generating the reference mark based on past performance.
12. An encoder apparatus as claimed in claim 1, configured to adapt automatically the process for producing the reference mark signal based on current operating conditions.
13. An encoder apparatus as claimed in claim 1, in which the scale comprises an incremental scale track comprising a periodic series of features and the position signal comprises an incremental signal.
14. An encoder apparatus as claimed in claim 13, in which the incremental signal comprises at least one sinusoidally varying signal.
15. A readhead configured to provide a position signal, as well as to provide a reference mark signal when the readhead passes over a reference mark on a scale, configured such that the process for providing the reference mark signal adapts automatically in response to a change in circumstance so as to at least pursue maintenance of a given relationship between the position and reference mark signals.
Description
[0044] Embodiments of the invention will now be described, by way of example only, with reference to the following drawings, in which:
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061] With reference to
[0062] The scale 6 comprises a plurality of scale markings defining an incremental track 10, and a reference track 12.
[0063] The incremental track 10 comprises a series of periodic scale marks 14 which control the light reflected back toward the readhead, and effectively form a diffraction grating. The incremental track 10 could be what is commonly referred to as an amplitude scale or a phase scale. As will be understood, if it is an amplitude scale then the features are configured to control the amplitude of light reflected back toward the readhead's incremental detector (e.g. by selectively absorbing, scattering and/or reflecting the light). As will be understood, if it is a phase scale then the features are configured to control the phase of light reflected back toward the readhead's incremental detector (e.g. by retarding the phase of the light). In the present embodiment, the incremental track 10 is an amplitude scale, but in either case, as explained in more detail below, the light interacts with the periodic scale marks 14 to generate diffracted orders.
[0064] The reference track 12 comprises a reference position defined by a reference mark 16. As previously explained, reference positions can be useful to enable the readhead 4 to be able to determine exactly where it is relative to the scale 6.
[0065] Accordingly, the incremental position can be counted from the reference position. Furthermore, such reference positions can be what are also referred to as limit positions in that they can be used to define the limits or ends of the scale 6 between which the readhead 4 is permitted to travel. In the embodiment shown, the reference mark 16 comprises an area which is more light-reflective than the rest of the reference track 12. In other words, the reference mark is what is commonly referred to as a bright reference mark. However, as will be understood, the reference mark could be a dark reference mark, in which it is less reflective than the rest of the reference track 12. Furthermore, in the embodiment shown, the reference mark 16 is in its own track adjacent to the incremental track 10. However, as will be understood, other arrangements are possible. For example, the reference mark 16 could be embedded within the incremental scale track 10, such as described in WO2005/124282.
[0066]
[0067] As illustrated, the light source is divergent and the light source's illumination footprint falls on both the incremental track 10 and the reference track 12. In the embodiment described, the light source emits EMR in the infra-red range, however as will be understood, this need not necessarily be the case and could emit EMR in other ranges, for example anywhere in the infra-red to the ultraviolet. As will be understood, the choice of a suitable wavelength for the source can depend on many factors, including the availability of suitable gratings and detectors that work at the EMR wavelength. As also illustrated, the readhead 4, comprises a diffraction grating 20 (also commonly referred to as an index grating), an incremental photodetector 22 and a reference photodetector 24.
[0068] Infra-red light from the from the source 18 is emitted from the readhead 4 toward the scale 6, where part of the light source's footprint interacts with the reference track 12 and part of the light source's footprint interacts with the incremental track 10. In the currently described embodiment, the reference position is defined by a feature 16 in the reference mark track 12 which increases the intensity of light from the source which can reach the reference photodetector 24. This could be achieved for example, by the feature 16 reflecting more infra-red light back toward the reference photodetector than the rest of the reference track 12 as the readhead passes over the reference position. In the position illustrated in
[0069] With respect to the incremental track 10, infra-red light from the source 18 falls on the periodic scale marks 14, which define a diffraction pattern. The infra-red light therefore diffracts into multiple orders, which then fall onto the diffraction grating 20 in the readhead. In the present embodiment, the diffraction grating 20 is a phase grating. The light is then further diffracted by the diffraction grating 20 into orders which then interfere at the incremental photodetector 22 to form a resultant field, in this case an interference fringe.
[0070] The incremental detector 22 detects the resultant field (e.g. the interference fringes) to produce a signal which is output by the readhead 4 to an external device such as controller 8. In particular, relative movement of the readhead 4 and scale 6 causes a change in the resultant field (e.g. movement of the interference fringes relative to the detector 22 or a change in intensity of the modulated spot(s)) at the incremental detector 22), the output of which can be processed to provide an incremental up/down count which enables an incremental measurement of displacement.
[0071] The incremental detector 22 can comprise a plurality of photodiodes, for example. In particular, as will be understood and as is well known, in embodiments in which an interference fringe is produced at the incremental detector 22, the incremental detector 22 can be in the form of an electrograting, which in other words is a photo-sensor array which can for example comprise two or more sets of interdigitated/interlaced photo-sensitive sensors, each set detecting a different phase of the interference fringe at the incremental detector 22. As is well known in the field, the incremental detector can be configured to provide a pair of signals, e.g. quadrature (e.g. SINE and COSINE) signals.
[0072]
DIFF=(L+M)(J+K)
SUM=(K+L)(J+M)
[0073] The SUM signal is used as an indication of when the encoder is in close proximity to the reference position. The DIFF signal produces a signal which can be processed to set the boundaries of the reference mark. In particular, as illustrated in
[0074] Referring to
[0075] Analysis of the quadrature signals 50 and 52 allows a reference mark signal to be generated whenever the sine signal 50 has a desired phase or falls within a predetermined phase range.
[0076] As mentioned above, the incremental channel of the apparatus is accompanied by a reference mark channel. As shown in
[0077] Although, as in the case of the shown embodiment, the analogue/gating reference pulse 58 is 360 wide, it may be narrower or wider. The only requirement is that the analogue/gating reference pulse 58 straddles one, and only one, of the reference mark pulses 56 thereby allowing such a pulse to be uniquely identified.
[0078]
[0079] Referring now to
[0080] In this example it is desired to have an analogue/gating reference pulse 58 which is 360 long and centred on 45 of the SINE signal 50 of the incremental channel. A 360 pulse centred on 45 starts at 135 and extends to 225.
[0081] In the calibration method, the readhead 4 is passed over a section of scale 6 containing the reference mark 16 and the outputs from the incremental 22 and reference 24 detectors are monitored.
[0082] In a first step, the incremental sine/cosine signals are monitored. When the incremental sine/cosine signals are at 225 (this occurs when sine=cosine and both values are negative), the corresponding output from the difference signal is stored into memory. This is repeated every time the incremental signal is at 225. Each time the difference signal (corresponding to 225 in the incremental channel) is stored, the previous stored signal is overwritten. When the zero crossing in the difference signal is detected, the previous voltage signal corresponding to 225 is not overwritten and the subsequent signal corresponding to 225 is stored. These two values are stored in memory and are subsequently used as the V.sub.upper and V.sub.lower thresholds. This produces a 360 wide pulse which is centred at 45 and straddles the zero crossing point of the difference signal. Thus in
[0083] In practice, changes (e.g. at least one of geometry, stray light, temperature, speed, contamination) may cause the boundary of the analogue/gating reference pulse 58 to move. For example, changes may cause the gradient of the zero-crossing portion of the DIFF signal to alter (which would affect the length of the analogue/gating reference pulse 58) and/or changes may cause the offset (e.g. the DC value) of the DIFF signal relative to the thresholds to change (which would affect the position of the analogue/gating reference pulse 58).
[0084] In systems which only use the analogue/gating reference pulse 58 as the actual reference mark which is output to and used by an external control system, then any changes in the position and/or size can be undesirable since such changes affect its relationship (e.g. position/phase relationship) with respect to the incremental signals. Although those systems which use the analogue/gating reference pulse 58 as a gating signal to identify a predetermined reference mark pulse 56 to provide a resultant (digital) reference mark signal 57 can be less sensitive to such changes, such changes are still undesirable and can have an adverse impact on the performance of the encoder apparatus. In particular, a change in the size and/or position of the analogue/gating signal 58 can cause the predetermined reference mark pulses 56 to be missed completely (e.g. by the analogue/gating reference pulse 58 falling between the predetermined reference mark pulses 56) or the wrong reference mark pulse 56 can be selected. For example, with reference to
[0085] Such problems are particularly relevant to (but not restricted to) systems that are left unattended and/or uncalibrated for long periods of time; systems that have more than one reference mark (e.g. distance coded-reference marks) and/or where variations in gain or offset of either the incremental or reference mark signals caused by electrical or mechanical variations over the length/circumference of the scale/ring could cause position errors.
[0086] According to one embodiment of the invention, this problem can be solved by monitoring the angle/position at which the zero-crossing events occur and if necessary, adjusting the offset of the DIFF signal in order to move (phase) the point at which the zero-crossing event occurs towards a defined position, e.g. a defined sector or position with respect to a Lissajous of the sine and cosine signals. Such a defined position can be defined during a previous setup/calibration stage. For instance, it could be a point (position/phase) stored in memory which represents the point at which the zero-crossing event of the DIFF signal occurred during calibration. As will be understood, this could therefore be at any point around the Lissajous. For example, referring to
[0087] For example, with regard to
[0088] Likewise, if the point at which the zero-crossing event occurs at a phase angle within the arc a,c (e.g. as in zero-crossing event 68) the DIFF signal can be offset in the direction necessary to move the point at which the zero-crossing event occurs anti-clockwise toward (if adjustments are incremental) or within (for one-hit adjustment) the segment b,c. Depending on set up and on how tightly the point at which the zero-crossing event occurs is to be maintained at a particular relationship with respect to the incremental signals, the arc b,c can be any width less than 360, including a single point (e.g. 10 for the example of
[0089] As will be understood, the positions of the arcs a,b, b,c and a,c around the Lissajous will be dependent on the defined position at which the zero-crossing event is expected to occur.
[0090]
[0091] Optionally, a gain shift could be applied to the DIFF signal in order to manipulate the width as well as the position of the analogue/gating reference mark pulse.
[0092] In the above described embodiment, the DIFF signal is offset so as to drive the zero-crossing to an initial value which was determined as being the value at which the zero-crossing occurred during a calibration stage. As will be understood, this need not necessarily be the case. For example, the DIFF signal could be offset so as to drive it towards a value chosen by the manufacturer, installer or end user (and optionally could be an arbitrary value). For example, it could be chosen to offset the DIFF signal as required so as to drive the zero-crossing to 0.
[0093] Optionally, the V.sub.upper and V.sub.lower thresholds could additionally be updated based on the DIFF signal values at the 135 and 225 positions for the latest reference mark event. They could be updated based solely on the latest reference mark event, or updated based on a number of previous reference mark events (e.g. by taking an average of the DIFF signal values at the 135 and 225 positions for a number of previous reference mark events).
[0094] Optionally, rather than offsetting the DIFF signal to keep the zero-crossing at its initial position, the DIFF signal could be offset so as to keep the analogue/gating reference pulse 58 centred on the predetermined reference pulse 56.
[0095] In the above described embodiments, the process for producing the reference mark is adapted by way of manipulating (e.g. offsetting) the DIFF signal in order to maintain the pre-set relationship between the incremental and reference mark signals (in this case to ensure that the same reference mark pulse 56 is gated). However, there are other ways of adapting the process for producing the reference mark which involve adapting the factors except for/apart from the DIFF signal; in other words, there are other ways of adapting the process for producing the reference mark which do not involve manipulating (e.g. offsetting) the DIFF signal, as explained below.
[0096] An alternative embodiment of the invention will be described with reference to
[0097] For example, the Lissajous could conceptually be divided into a number of sections, e.g. quadrants or octants, and a process could be used to determine which of the segments contain the rising and falling edges of the analogue/gating reference pulse. By knowing where the edges fall new values for the thresholds V.sub.upper and V.sub.lower can be calculated. For instance, with reference to
[0098] As will be understood, whether the V.sub.upper or V.sub.lower threshold is adjusted, and whether the threshold is raised or lowered will depend on whether it is the rising or falling edge that is outside the desired quadrant (quadrant 3 in this example), and the direction of relative movement of the scale and readhead at the time the reference mark was passed. One particular example process for determining how to adjust the thresholds is set out in
[0099] In the example process of
[0100] The process of
[0101] As will be understood, such a process does not require the Lissajous to be divided into equally sized sections. Also, for example, a similar process could be used which does not require sections. For example, the process could be used to look at the absolute position of the edge (e.g. its angular position about the Lissajous) and then correct the appropriate threshold so that it is pushed toward a desired angle (e.g. 225).
[0102] In accordance with another embodiment of the invention, the inventors have found that in encoder systems which comprise a common light source for the incremental and reference mark tracks (or in which the light from a source used to illuminate an incremental track also leaks onto the reference mark track), then adjustments made to the output of the light source (e.g. for maintaining the amplitude of the incremental signals) can adversely affect the reference mark detection process. For example, the amplitude of the incremental signals can be sensitive to speed, geometry, contamination and/or environmental conditions. In order to maintain signal amplitude, an Automatic Gain Control (AGC) servo system can be used to reduce the error in amplitude by adjusting the brightness of the light source. The light source brightness can be controlled via a control signal which can be used to control how much the light source is boosted or reduced.
[0103] For example,
[0104] In accordance with one embodiment of the present invention, the encoder apparatus is configured to have adaptive thresholds which change with the control signal to the light source. In this example, the V.sub.upper and V.sub.lower thresholds are modified by a scaling factor equal to the change in demand for the light source brightness. For example, with reference to the example of
V.sub.upper+0.09Vdc
V.sub.lower0.03 Vdc
[0105] If the brightness was raised by 66% to 166% then the rising edge of the processed analogue/gating reference pulse would de-phase by approximately 6 m (microns) and the falling edge by approximately 2 m (microns). In accordance with this embodiment of the invention, the thresholds are adjusted as follows:
Adjusted V.sub.upper=+0.09166% Vdc=+0.149 Vdc
Adjusted V.sub.lower=0.03166% Vdc=0.050 Vdc
[0106] As illustrated in
[0107] Accordingly, the following generic formulas can be used to compensate for changes in light source brightness demands:
V.sub.upper=V.sub.upperCALcurrent light source demand/calibrated light source demand
V.sub.lower=V.sub.lowerCALcurrent light source demand/calibrated light source demand
V.sub.upperCAL=The V.sub.upper threshold as calibrated via a prior calibration process.
V.sub.lowerCAL=The V.sub.lower threshold as calibrated via a prior calibration process.
[0108] In addition to or alternatively to adjusting the way in which the DIFF signal is processed, the way in which the SUM signal is processed could be automatically adjusted. For example, logic can easily detect the boundaries between scale periods. Counting the number of scale boundaries crossed while the analogue/gate reference pulse is high gives the width of the analogue/gate reference pulse in units of scale period. Adjustments to the threshold level V.sub.gate can then be made in order to at least try to maintain the desired analogue/gate reference pulse width. Adjustments can be made incrementally (e.g. by a defined amount per reference mark event) or in one go by calculating the required correction offset necessary to compensate for the total error.
[0109] As will be understood, other techniques may be used for detecting the presence of a reference mark. For example, the reference mark detector might comprise just one sensor, the output of which is thresholded in order to determine when it has passed over the reference mark. In such a case there might not be a DIFF signal. Accordingly, the threshold and/or the output of the sensor can be adjusted in response to a change in circumstance in line with the present invention (e.g. like that described above in connection with the SUM signal). Also, as will be understood, the invention can be used with other types of reference marks, such as correlator/shutter effect type reference marks (e.g. as described in U.S. Pat. Nos. 7,141,780 and 7,289,042). Also, the invention is equally applicable to non-optical reference marks, e.g. magnetic, inductive or capacitive reference marks. As will be understood, such non-optical reference marks could be used in combination with an optical or non-optical incremental features.