This invention relates to an encoder apparatus, in particular to an encoder apparatus comprising one or more reference marks.
A known form of encoder apparatus for measuring the relative displacement of two members comprises a scale on one member and a readhead on the other member. The scale comprises a series of scale marks, for example light and dark lines, that define a pattern. The readhead has a sensor responsive to the resultant patterns from which a position signal is generated, and from which a measure of relative displacement of the scale and readhead can be determined. A scale having its marks in a periodic pattern is known as an incremental scale and the sensor of the readhead is typically arranged to produce a pair of quadrature phase signals. Such encoder apparatus can be optical, magnetic, capacitance or inductive. Examples of such optical apparatus are described in EP514081 and EP543513. It is also known to provide a scale having marks which define a series of uniquely identifiable positions, which is commonly known as an absolute scale.
It is also known for a scale to be provided with one or more reference marks which, when detected by the readhead, provide a reference mark signal that enables a predetermined reference position of the readhead to be determined. In order for a reference mark signal to be useful, its position with respect to the other scale features must be known and must be repeatable. In other words, the reference mark signal that is produced by the reference mark channel must be properly aligned with the corresponding position (e.g. incremental and/or absolute) signal and its relationship (e.g. its position) with the position signal must not change over time during an operation in which the reference mark is relied on. Various calibration techniques exist to ensure alignment of the reference mark and position signals is initially obtained (e.g. such as described in WO2007/052052). However, such alignment can degrade over time or with use. Such degradation may occur, for example, due to drift of electronic components, changes in readhead alignment, environmental changes (e.g. temperature, ambient lighting), etc.
It is known in encoders to provide Automatic Gain Control (AGC) in order to maintain a particular signal amplitude. For example, in an optical incremental encoder, it is known to control the brightness of the readhead's light source in order to maintain a particular amplitude of incremental signal. For instance, if the AGC process identifies that the amplitude of the incremental signal decreases, then it is known to increase the brightness of the light source to compensate for this. If there is a common light source for the incremental and reference mark tracks, then the AGC process may have an effect on the incremental and reference mark signals. AGC is also used in other encoder types, for example magnetic encoders. For instance, DE29614974 discloses a form of AGC for a magnetic encoder, for temperature compensation. DE29614974 also discloses using a limiter circuit which is temperature compensated for signal shaping the reference signal.
WO2007/057645 describes a way of monitoring for degradation of phase alignment of a reference mark gating pulse and reference mark pulses and generating a warning signal if significant degradation is detected. If such a warning signal is received, then appropriate action can be taken by the operators, such as shutting the machine down and/or re-calibrating the reference mark.
The present invention relates to an improved encoder apparatus. In particular, the present invention relates to an encoder apparatus which is configured to actively maintain a given/particular (e.g. desired) relationship between the incremental and reference mark signals.
According to a first aspect of the invention there is provided 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/particular (e.g. pre-set) relationship between the position and reference mark signals.
An encoder apparatus according to the present invention can automatically take action in order to try to preserve a given/particular relationship between the position and reference mark signals. This can provide for a more resilient encoder apparatus. For example, it can help to improve and/or ensure the repeatability of the reference mark signal, despite changes in circumstance that would otherwise affect the relationship between the position and reference mark signals. This can be particularly useful when it is not possible or desirable to recalibrate the encoder apparatus.
Optionally, the position signal can indicate/be used to determine the actual/absolute position of the scale and readhead. Optionally, the position signal can indicate/be used to determine a change in the relative position of the scale and readhead. Accordingly, the position signal can be indicative of relative movement of the scale and readhead.
As will be understood, various changes in circumstance could (without the invention) potentially affect the relationship between the position and reference mark signals.
The change in circumstance can be a detected and/or known change in something that affects (e.g. is known to affect) the relationship between the position and reference mark signals. Accordingly, the change in circumstance could be something that causes the change in relationship between the position and reference mark signals. For example, in those embodiments in which the encoder apparatus comprises a light source for illuminating the scale, the change in circumstance could be a change in the brightness of the light source. Other examples, include a change in ambient lighting, changes in temperature (inside or outside the encoder apparatus).
Accordingly, such change in circumstance could be external to the encoder apparatus, and optionally external to the encoder apparatus' readhead. For example, the change could be a change in ambient lighting and/or ambient temperature. The ambient change could be determined by a sensor provided by the encoder apparatus, for instance by (e.g. in/on) the readhead. Optionally, the change in circumstances could be internal to the encoder apparatus, and optionally internal to the encoder apparatus' readhead. For example, in those embodiments in which the encoder apparatus comprises a light source for illuminating the scale, the change could be a change in the brightness of a light source used to illuminate the scale. A sensor (e.g. photodiode) could be provided to detect such a change. Optionally, such a change could be determined by monitoring a factor (e.g. a signal, variable, etc.) used to control the operation of the encoder apparatus, e.g. used to control the light source.
Optionally, the change in circumstance can be a detected change in the relationship between the position and reference mark signals, and/or signals used to generate them. Accordingly, the change in circumstance could be the effect/result of a change in something else. For example, in those embodiments in which a gating pulse is used to gate predetermined reference mark pulses (explained in more detail below) the change in circumstance could be a change in the gating pulse (e.g. a change in the position of its boundaries, such as its rising and/or falling edges).
The given/particular relationship between the position and reference mark signals could be one that is pre-set/pre-determined, for example, via a calibration/set-up process. For example, the encoder apparatus can comprise a mode during which variables (e.g. thresholds, such as those explained in more detail below) are set based on the encoder's sensor's output(s), e.g. value of a signal (such as the DIFF signal described below) at predetermined positions with respect to a position signal. For example, the pre-set/pre-determined relationship between the position and reference mark signals could be one that is established via a process/mode in which the relationship between the position and reference marks signals is selected. For example, one of a plurality of predetermined/possible relationships can be selected, e.g. by analysing the encoder's detector's outputs.
Accordingly, the encoder apparatus could be configured to pursue maintenance of a relationship between the position and reference mark signals determined during calibration/set-up of the encoder apparatus.
The relationship between the position and reference mark signals could comprise the amplitude of the position and/or reference mark signals. The relationship between the position and reference mark signals could comprise a positional relationship between position and reference mark signals. In other words, the relationship between the position and reference mark signals could comprise the position at which the reference mark signal is produced (e.g. relative to the position signal). In other words, the process for producing the reference mark signal could adapt automatically in response to a change in circumstance so as to at least pursue maintenance of a given position at which the reference mark is produced (e.g. a given relative position between the position and reference mark signals). The position of the reference mark could comprise the position of the centre of the reference mark signal. The position of the reference mark could comprise the position of one or both of the edges/ends of the reference mark signal. The relationship between the position and reference mark signals could comprise the phase between the position and reference mark signals.
The given/particular relationship need not be a single position/phase value. Rather, for example, the given/particular relationship could comprise a desired range/band of position/phase values within which it is desired to maintain the reference mark signal with respect to the position signal.
The process for producing the reference mark signal could use at least one variable in the processing of signals from the scale to determine the passage of a reference mark. The at least one variable could be adapted automatically in response to said changing circumstances.
The readhead can comprise at least one reference mark sensor arranged/configured to sense the reference mark as the readhead passes over the reference mark. This can be the same sensor, or a different sensor to that which is arranged to sense the other scale/position features, e.g. the incremental/absolute scale features.
The reference mark signal could be the direct output of the at least one reference mark sensor. Optionally, adapting the process could comprise applying/adapting an offset and/or gain to the direct output.
The encoder apparatus could be configured such that the process for producing the reference mark signal analyses/processes a signal derived/obtained from (directly or indirectly) the output of the at least one reference mark sensor (e.g. so as to produce the reference mark signal). The process for producing the reference mark signal could use at least one variable in the processing of the signal derived/obtained from the output of the at least one reference mark sensor. Optionally, the variable is adapted in response to said change in circumstance.
The at least one variable could comprise a threshold against which the signal derived/obtained from the output of the at least one reference mark sensor is compared to determine the passage of a reference mark.
Alternatively/additionally, the at least one variable could comprise an offset and/or gain applied to the signal derived/obtained from the output of the at least one reference mark sensor.
Optionally, there are a plurality of thresholds variables used in the processing of the signal derived/obtained from the output of the at least one reference mark sensor. Optionally, a plurality of variables are adapted in response to a change in circumstances. Optionally, the plurality of variables are adapted independently/individually as required.
Optionally, there are a plurality of thresholds (e.g. a first and a second threshold, for example, an upper and a lower threshold) against which the signal derived/obtained from the output of the at least one reference mark sensor is compared to determine the passage of a reference mark. The encoder apparatus could be configured to adapt each threshold independently/individually in response to a change in circumstance.
Adapting the process could comprise adapting factors other than the signal derived/obtained from the output based on said change in circumstance. In other words, adapting the process could comprise adapting factors except for/apart from the signal derived/obtained from the output based on said change in circumstance. Accordingly, optionally adapting the process does not comprise applying an offset to the signal obtained/derived from the output of the at least one reference mark sensor. Optionally, the adapting the process comprises adapting only the threshold(s) against which the signal obtained/derived from the output of the at least one reference mark sensor is compared.
The signal derived/obtained from the output of the at least one reference mark sensor, could comprise a signal derived from the combination of a plurality of outputs of the at least one reference mark sensor. For example, the signal derived/obtained from the output of the at least one reference mark sensor, could comprise a signal derived from the difference between at least two outputs derived/obtained from the output of the at least one reference mark sensor. The at least two outputs could themselves be direct outputs from the at least one reference mark sensor. The at least two outputs could themselves be indirect outputs from the at least one reference mark sensor. For example, the at least two outputs could each be derived by adding a further two direct outputs from the at least one reference mark sensor.
Accordingly, the at least one reference mark sensor could be configured to provide at least one output, optionally at least two outputs, optionally at least three outputs, for example at least four outputs. Optionally, there is provided a plurality of reference mark sensors, for example an array of reference mark sensors, each configured to provide at least one output. As explained above, when there are a plurality of outputs, they can be combined to provide a signal which is used/analysed/processed to determine when the readhead passes over a reference mark.
The encoder apparatus can be configured to generate a series of predetermined/potential reference mark pulses each occurring at a predetermined position/phase with respect to the position signal. The encoder apparatus can be configured to generate a gating reference pulse as the readhead passes over the reference mark. This could be used to gate the predetermined/potential reference mark pulses. In other words, the gating reference pulse could be used to identify which of said series of predetermined/potential reference mark pulses should be used as a basis for the reference mark signal. The encoder apparatus could be configured such that the process for producing the gating reference pulse adapts automatically in response to a change in circumstance, so as to continue to gate the same predetermined/potential reference mark pulse. The encoder apparatus could be configured such that the process for producing the gating reference pulse adapts automatically in response to a change in circumstance, so as to continue to gate the same predetermined/potential reference mark pulse as that identified/selected during a calibration/set up process, e.g. a pre-set/pre-selected predetermined/potential reference mark pulse.
The encoder apparatus can be configured to adapt the process for generating the gating reference pulse in response to a change in circumstance so as to push (e.g. nudge) the boundaries (e.g. the leading and trailing edges) of the gating reference pulse toward predetermined positions with respect to the position signals. In other words, the process for generating the gating reference pulse is adjusted such that boundaries of the gating reference pulse are tweaked for a future reference mark detection based on a prior reference mark detection.
The encoder apparatus can be configured to adapt the process for generating the reference mark based on past performance, e.g. based on the detection/passage of at least one previous reference mark (in other words, based on at least one previous reference mark event). For instance, the encoder apparatus can be configured to adapt the process for generating the reference mark based on the circumstance experienced on detection/passage of at least one previous reference mark (e.g. of at least one previous reference mark event). For example, the encoder apparatus can be configured to adapt the process for generating the reference mark based on the position of the boundaries (e.g. the leading and trailing edges) of at least one previous the reference mark gating pulse relative to the phase of position (e.g. incremental) signal.
Optionally, the encoder apparatus can be configured to adapt the process for generating the reference mark based on at least two previous reference mark events, e.g. based on the circumstance experienced on at least two previous reference mark events. This can help to average-out/filter the adjustment, which can help to avoid the effect of noise, interference, spurious results, etc.
The encoder apparatus can be configured to adapt automatically the process for producing the reference mark signal based on current operating conditions/circumstances. Such adaptation can take place in real-time, e.g. immediately in response to a current operation condition/circumstance. For example as explained in more detail below, the process for producing the reference mark could be configured to adapt (e.g. adapt thresholds used in processing the output of the at least one reference mark sensor) based on the current signal used to control another aspect of the encoder apparatus. For example, in those embodiments in which the readhead comprises a light source for illuminating the scale, the process for producing the reference mark could be configured to adapt based on one or more factors (e.g. a signal) used in the control of the a light source in the readhead (e.g. used in the control of its brightness).
The position signal can comprise an absolute position signal. The position signal could be a value representative of a particular position of the scale and readhead. The value could be an absolute or relative value. The position signal can comprise an incremental signal. The incremental signal can comprise at least one signal that varies sinusoidally with relative movement of the scale and readhead.
The encoder apparatus could be configured to produce a pair of position, e.g. incremental, signals. The encoder apparatus could be configured to produce quadrature signals.
The encoder apparatus could comprise at least one position sensor (which could be different to or the same as the at least one reference mark sensor) configured to detect the scale and from which the position signals are generated. The readhead could comprise at least one diffraction grating. The at least one position sensor could be configured to detect a resultant field generated by diffracted light. The resultant field could comprise an interference fringe. The resultant field could comprise one or more modulated spots. The at least one position sensor could comprise an electro-grating. In other words, the at least one position sensor could comprise a photo-sensor array which can, for example, comprise two or more sets of interdigitated/interlaced photo-sensitive sensors. Each set can detect a different phase of an interference fringe at the detector.
The scale can comprise at least a first track comprising a series of position features. The reference mark could be embedded wholly or partially within said at least first track. The reference mark could be located adjacent to the at least first track. The first track could comprise absolute scale track, comprising a series of features defining uniquely identifiable positions. Optionally the first track comprises incremental scale track comprising a periodic series of features.
The reference mark could comprise just one feature, or a plurality of features. In the case in which the reference mark comprises a plurality of features, they could be spread across and/or along the length of the scale. Optionally, one reference mark could be defined by features on either side of a first track comprising a series of position features.
The encoder apparatus could comprise an optical, magnetic, inductive or capacitive encoder. As will be understood, the encoder apparatus could be a hybrid encoder in that it relies on a combination of optical, magnetic, inductive and/or capacitive properties for the production of the position and/or reference mark signals. For example, the position signals could be based on optical properties (e.g. the first track, for example the incremental track, could comprise optical position features) whereas the reference mark could be based on magnetic properties (e.g. the reference mark could be a magnetic reference mark). In those embodiments in which the encoder apparatus comprises an optical encoder apparatus, the encoder apparatus, e.g. the readhead, can comprise a light source for illuminating the scale. As will be understood, suitable light sources can include those that emit light anywhere in the infra-red to the ultraviolet range of the electromagnetic spectrum.
In those embodiments in which the reference mark is an optical reference mark, it could be configured to provide an increase in intensity of the light reaching the at least one reference mark sensor (e.g. it could be a “bright” reference mark).
Optionally, the reference mark could be configured to reduce the intensity of the light reaching the at least one reference mark sensor (e.g. it could be a “dark” reference mark).
As will be understood, the process for producing the reference mark could run on processor means/one or more processors provided by encoder apparatus, for example at least in part provided by the readhead. The process could be performed by, for example, hardwired electronics, a field-programmable gate array (FPGA), software running on a generic processor, or a combination thereof. Optionally, the readhead produces the reference mark. Optionally, the process for producing the reference mark is performed entirely in the readhead. Accordingly, optionally, the process for producing the reference mark is performed by processor means/one or more processors provided in the readhead.
The readhead can comprise a housing containing the above mentioned components (e.g. at least one sensor, and optionally one or more light sources, and optionally other optical components such as lenses and/or diffraction gratings, and optionally one or more processors or other electronics). The housing can comprise one or more mounting features (e.g. holes) for enabling the readhead to be mounted to a part of a machine.
Embodiments of the invention will now be described, by way of example only, with reference to the following drawings, in which:
With reference to
The scale 6 comprises a plurality of scale markings defining an incremental track 10, and a reference track 12.
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.
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.
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.
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.
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
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.
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.
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.
DIFF=(L+M)−(J+K)
SUM=(K+L)−(J+M)
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
Referring to
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.
As mentioned above, the incremental channel of the apparatus is accompanied by a reference mark channel. As shown in
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.
Referring now to
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°.
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.
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 Vupper and Vlower thresholds. This produces a 360° wide pulse which is centred at 45° and straddles the zero crossing point of the difference signal. Thus in
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).
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
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.
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
For example, with regard to
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
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.
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.
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°.
Optionally, the Vupper and Vlower 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).
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′.
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.
An alternative embodiment of the invention will be described with reference to
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 Vupper and Vlower can be calculated. For instance, with reference to
As will be understood, whether the Vupper or Vlower 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
In the example process of
The process of
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°).
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.
For example,
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 Vupper and Vlower 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
upper+0.09Vdc
V
lower−0.03 Vdc
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 Vupper=+0.09×166% Vdc=+0.149 Vdc
Adjusted Vlower=−0.03×166% Vdc=−0.050 Vdc
As illustrated in
Accordingly, the following generic formulas can be used to compensate for changes in light source brightness demands:
V
upper
=V
upperCAL×current light source demand/calibrated light source demand
V
lower
=V
lowerCAL×current light source demand/calibrated light source demand
V
upperCAL=The Vupper threshold as calibrated via a prior calibration process.
V
lowerCAL=The Vlower threshold as calibrated via a prior calibration process.
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 Vgate 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.
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.
Number | Date | Country | Kind |
---|---|---|---|
16275078.0 | May 2016 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/GB2017/051370 | 5/17/2017 | WO | 00 |