Not Applicable
Not Applicable.
The present invention relates to encoders, and more particularly to methods and assemblies for determining a home position on an incremental encoder.
In many industrial control applications it is beneficial for the machine control system to know the position of some components of a work machine, such as the height of the lift mechanism (linear position) or the position of a rotating component of a steering application (rotary position). Ideally an absolute measurement device would be used so that the position of the machine was known as soon as power was applied to the control system. Unfortunately these devices are complex and difficult to apply.
An alternative is to use an incremental encoder 1, such as shown in
One known target flag 3 for a rotary application as shown in
This standard type of target flag is often referred to as a “half-moon” type flag system since one half still has the metal present and the other half has had it removed. In operation the work machine will read the state of the proximity switch at power up, and then move the work machine component until the home position is found. From there the incremental encoder is used to track movements of the work machine. The target flag can also be reduced in size to little more than 90 degrees of a full circle in order to facilitate installation and service of the component. The extra size beyond 90 degrees is useful in accommodating any over-travel of the mechanism and/or component tolerances.
Many work machines are designed to initiate this homing procedure automatically after reaching an operational status. In this case the initial state of the home switch provides the information needed to determine which way to move the work machine in order to reach the home position. If the home switch is not functional, the work machine may move in the wrong direction and/or move well past the intended home position. A manual homing procedure can also be effectively used in many other applications such as steering, especially when the need for the absolute position is not a critical factor in the operation of the work machine.
With the half-moon type of target flag of
Incremental quadrature encoders can require excessive movement of the work machine component to get to the a “home” position. This extensive movement can be very undesirable in terms of lost productivity, in terms of machine wear, and in terms of operator inconvenience. Therefore, a need exists for a method and assembly for quickly determining a home position on an incremental encoder.
The present invention provides a home position indicator that enhances the functionality of an incremental encoder with characteristics of an absolute encoder without the complexity of an absolute encoder. In one embodiment of the invention, a home position indicator includes a target flag having a plurality of marks. Pairs of adjacent marks of the plurality of marks define sections between each adjacent pair of marks of the plurality of marks. Each section has a width, wherein one of the sections has a width greater than a width of another of the sections. A sensor sequentially senses two adjacent marks of said plurality of marks to determine a width of the section defined between the two adjacent marks.
In another aspect, the present invention provides a method of detecting a home position. The method includes detecting a first mark defining a first edge of a section on a target flag having a plurality of marks defining a plurality of sections, detecting a second mark defining a second edge of the section, calculating a width of the section based upon a position of the first edge relative to the second edge; and comparing the width to a list of widths. Each of the widths in the list of widths corresponding to at least one section of the plurality of sections, wherein at least one of the widths of the list of widths being greater than another of the widths of the list of widths.
In yet another aspect, the present invention provides an encoder position measurement system including a home position indicator and an incremental encoder. The home position indicator has a plurality of home positions defined by a plurality of marks. The incremental encoder measures a relative position of the marks to determine an absolute position of one of the home positions.
These and still other aspects of the present invention will be apparent from the description that follows. In the detailed description, a preferred example embodiment of the invention will be described with reference to the accompanying drawings. This embodiment does not represent the full scope of the invention; rather the invention may be employed in other embodiments. Reference should therefore be made to the claims herein for interpreting the breadth of the invention.
The preferred example embodiment will be described in relation to a rotating incremental shaft encoder. However, the present invention is equally applicable to non-rotating, such as linear, incremental encoders.
As shown in
The home position indicator 14 includes a target flag 18 fixed to the rotating component 16 of the work machine, such that the target flag 18 rotates with the rotating component 16. As shown in
The sections 26 include the two end sections 26a, 26i with intermediate sections 26b-h between the two end sections 26a, 26i. Preferably, each one of the sections 26 is unique in terms of its width in degrees with the exception of the two end sections 26a and 26i in this example. No other two flags 28 are the same width, no other two notches 32 are the same width, and no other flags 28 have the same width as any of the notches 32. Preferably, the total width of all sections 26 equals the total movement range of the rotating component 16 of the work machine.
Although providing all unique sections 26 is preferred, in certain applications, the end sections 26a, 26i of the target flag 18 can have the same width. Having the end sections 26a, 26i be unique widths is not required when one side of each end segment 26a, 26i is bounded by a physical stop making full measurement of the end section 26a, 26i width difficult. However, in applications where this is not the case the two end sections 26a, 26l can be different widths.
A sensor 42 shown in
In normal operation the work machine control system monitors both the signals from the incremental encoder 12 along with the state of the home position indicator 14. Each time a mark 24 is sensed by the sensor 42, the control system notes the position of the rotating component 16 indicated by the incremental encoder 12. Preferably the home position indicator 14 is monitored using an interrupt to a microprocessor forming part of the work machine control system in order to capture the incremental encoder 12 counts quickly, but a high polling sample rate relative to the rotating component 16 movement rate may be sufficient. If the latest position information, i.e. the position of the rotating component 16 indicated by the incremental encoder 12 when the last mark 24 was detected by the sensor 42, is compared to the position noted at the previously detected mark 24, the width of the previous section 26 can be determined in terms of encoder counts and then in terms of degrees of rotation. From there the control system can calculate the absolute position of the rotating component based on the width of the section 26, i.e. the relative position of the two detected marks, just measured using a look-up table of section 26 widths along with information on which direction the rotating component 16 was moving. As an alternative to using a hard coded look-up table of segment widths, it is possible to have the control system perform a service mode based learn procedure where it actually measures the section 16 widths and stores those into non-volatile memory for use during normal operation.
To further illustrate how an absolute position is determined using the encoder position measurement system 10 described above, is an example shown in
Advantageously, the same type of calculations can be done for any segment 26 and at any mark 24 providing multiple “Home” positions instead of just one as in the prior art. As such the encoder position measurement system 10 acts as an absolute encoder where the resolution is a function of the size of the sections 26. The number of sections 26 can be increased greatly from the example provided above, but ultimately the resolution is limited by the target flag and the resolution of the incremental encoder. Alternatively, if the latest position information turns out to be the same as the previous position information, then the transitions are at the same rotational position and the information should be ignored.
Unlike in the prior art design of
Preferably, the width of all sections 26 are set so as to maximize the difference in angle between all flags 28 and to maximize the difference in angle between all notches 32. Preferably, all flags 28 are greater than a predetermined width and all notches 32 are less than the predetermined width to further differentiate flags 28 from notches 32. In the embodiment disclosed herein, all flags 28 widths are greater than 20 degrees and all notch 32 widths are less than 20 degrees. This is done in order to minimize the possibility of confusing flag 28 versus notches 32 due to any hysteresis in the home position indicator 14. Preferably, the control system would keep track of whether the section 26 prior to the latest mark 24 was a flag 28 or a notch 32, and then that information would direct the control system to use a list of either the flag 28 widths or the notch 32 widths to compare against the previously measured section 26 width. Flags 28 measured to have a width less than 20 degrees and/or notches 32 measured to have a width greater than 20 degrees would indicate possible problems with the encoder position measurement system 10.
Preferably, the sections 26 are distributed in a manner to place the widest sections 26 next to the narrowest sections 26 in order to minimize the worst-case required movement of the rotating component 16 before the absolute position can be determined. This is done because the worst-case movement needed to determine the absolute position is slightly less than the width of any two adjacent sections 26. Two possible examples of this are shown in
Another advantage of the of the encoder position measurement system 10 is the ability to cross-check the operation of the incremental encoder with respect to the sensor 42. In the prior art, one sensor transition takes place at the position defined as “Home.” Each time the home position is detected during normal operation, the position as measured by the incremental encoder can be checked to correspond to the home position. Advantageously, in the disclosed device there are multiple home positions, so the cross-checking can take place much more frequently and at many more positions of the work machine.
Advantageously, in applications where homing accuracy is highly important, it is also possible to assign one section 26 as being the most important and allowing it to override any previous position calculations. The machine can then function at reduced speeds when calibrated by all other sections 26 followed by full speed as the accuracy is maximized by crossing the most important section 26.
While there has been shown and described what is at present considered the preferred embodiment of the invention, it will be obvious to those skilled in the art that various changes and modifications can be made therein without departing from the scope of the invention defined by the following claims.