Background of the Invention
This invention relates to an apparatus for subdividing analog periodic signals, such as analog scanning signals or measurement signals which are generated by an incremental measuring instrument which scans a structured division, such as a grid scale, to measure the relative position of a first object with respect to a second object.
The resolving capacity of such measuring instruments is determined by the grid constant of the division used. A number of different approaches have been employed in the prior art to achieve smaller digital steps than the grid constant of the division in use, particularly by electronic processing of measurement signals generated by incremental measuring instruments.
One approach to such interpolation or subdivision of measurement signals is shown in Swiss Pat. No. 407,569. In this approach, the analog measurement signals, which are phase shifted with respect to one another, are applied to a resistance chain that includes a series of adjustable potentiometers. By tapping the potentiometers, a plurality of secondary signals can be generated from the primary measurement signals. Each of these secondary signals lies between the primary signals, and thus can be used to form an interpolated position value by means of a respective trigger circuit. In this interpolation system a large number of trigger circuits are required.
Another approach of the prior art is disclosed in West German DE-OS No. 27 29 297, which proposes the calculation of interpolation values with the aid of a micro-computer from digitized analog signals corresponding to the analog measurement signals. In this approach, the computing time of the micro-computer determines the maximum speed of movement which can be used with the measuring instrument.
Summary of the Invention
The present invention is directed to an apparatus for subdividing periodic analog signals generated by means such as an incremental measuring instrument. The apparatus of this invention is relatively simply attached to the analog signal generating means, and it can be used to follow quickly changing analog signals accurately. Furthermore, accurate subdivision values are provided, even when high subdivision factors are used. In this way, the apparatus of this invention provides a high level of protection against erroneous interpolation values or counting errors.
According to this invention, an apparatus is provided in combination with means for generating a periodic analog signal having a period P. This apparatus includes a signal generator which comprises means for generating an analog reference signal having a period P, and a comparator which is responsive to the analog signal and the reference signal, and which includes means for generating an analog control signal indicative of the relative amplitudes of the analog and reference signals. An oscillator is provided which includes means for generating a series of pulses, the number of which varies as a function of the control signal. Furthermore, means are provided in the signal generator for modifying the reference signal as a function of the series of pulses such that a preselected number of the pulses causes the reference signal to cycle through a full period, and thereby determines a subdivision factor for the analog signal. Further features of the invention are set forth in the attached dependent claims.
The apparatus of this invention provides the important advantage that accurate interpolation is provided with a system that is relatively inexpensive to manufacture. The apparatus of this invention provides a high level of accuracy in the evaluating of analog signals of a selected frequency. Furthermore, the subdivision factor provided by the apparatus of this invention can readily be varied as needed.
The invention itself, together with further objects and attendant advantages, will best be understood by reference to the following detailed description taken in conjunction with the accompanying drawings.
Brief Description of the Drawings
FIG. 1 is a block diagram of a path measuring instrument which incorporates a presently preferred embodiment of this invention.
FIG. 2 is a detailed block circuit diagram of a portion of the embodiment of FIG. 1.
Detailed Description of the Presently Preferred Embodiments
Turning now to the drawings, FIG. 1 shows an incremental length measuring device L which generates two scanning signals S.sub.1 and S.sub.2 as a function of the movements of a scanning unit with respect to a grid scale. These two scanning signals S.sub.1 and S.sub.2 are applied as inputs to a comparator K. The comparator K is connected to a signal generator G which generates reference signals R.sub.S1 and R.sub.S2 which are also applied as inputs to the comparator K. The reference signals R.sub.S1 and R.sub.S2 of this embodiment are analog signals which are generated digitally, as will be explained below in conjunction with FIG. 2. The comparator K operates to compare each of the scanning signals S.sub.1, S.sub.2 with the respective one of the reference signals R.sub.S1 and R.sub.S2, and to generate an analog control signal S.sub.D in response to the outcome of this comparison. The control signal S.sub.D is applied over a control line D to an oscillator O. This oscillator O operates to generate a sequence of pulses, the number of which is controlled by the control signal S.sub.D. These control pulses are applied to the signal generator G to modify the reference signals R.sub.S1, R.sub.S2. The pulses are also fed to an incremental counter which includes a numerical display A.
Turning now to FIG. 2, the comparator K, signal generator G and oscillator O are there shown in greater detail. As is conventional for a wide range of incremental measuring instruments, the analog scanning signals S.sub.1 and S.sub.2 are phase shifted through a phase angle of 90 degrees in order to enable the direction of counting to be determined. These scanning signals S.sub.1, S.sub.2 are amplified in a scanning signal amplifier 1. The amplified analog scanning signals S.sub.1 and S.sub.2 are applied to the comparator K, in which they are compared with respective ones of the analog reference signals R.sub.S1, R.sub.S2 with respect to their momentary amplitudes.
The amplified scanning signals S.sub.1 and S.sub.2 are also applied as inputs into electronic components Q.sub.P and Q.sub.A. These electronic components Q.sub.P and Q.sub.A also receive as inputs two difference signals .DELTA.S.sub.1 and .DELTA.S.sub.2. These difference signals .DELTA.S.sub.1, .DELTA.S.sub.2 are generated by the comparator K as a result of the comparison between the scanning signals S.sub.1, S.sub.2 and the reference signals R.sub.S1 and R.sub.S2, respectively. The electronic components Q.sub.P and Q.sub.A process these four input signals in order to carry out a quadrant evaluation of the signals. The electronic components Q.sub.P and Q.sub.A determine in which quadrant the determined difference between the scanning signals S.sub.1 and S.sub.2 and the respective reference signals R.sub.S1 and R.sub.S2 arises, and with what algebraic sign (+ or -) a particular difference amount must be acted upon. In each case, the quadrant evaluated signals are applied to a respective regulating amplifier for phase R.sub.P and for amplitude R.sub.A, which generate control signals S.sub.D for phase and S.sub.D ' for amplitude, respectively. The following formulas define the manner in which S.sub.D and S.sub.D ' are determined:
The control signal S.sub.D is applied to the signal generator G as an input. The control signal S.sub.D is evaluated in the signal generator G by components 2 and 3 to determine information, such as the magnitude and polarity of the control signal S.sub.D. The component 2 applies a voltage indicative of the magnitude of the control signal S.sub.D to the oscillator O. The component 3 applies a signal indicative of the polarity of the control signal S.sub.D as an input to a direction discriminator 4. The oscillator O generates a series of digital pulses in response to the magnitude of the control signal S.sub.D, which pulses are also applied as inputs to the direction discriminator 4. The direction discriminator 4 operates to generate output pulses on one of two output terminals, in accordance with the direction of counting indicated by the component 3. These output pulses of the direction discriminator 4 are applied to the forward and backward counting inputs, respectively, of a counter 5. In addition, these outputs are applied to a standstill logic device 6, which also receives direction information from the component 3. The device 6 is operative to prevent changes of only a single pulse from reaching the display A after a reversal of the counting directing (as from forward counting to reverse counting for example), such that only changes greater than two counting pulses are passed after such a reversal. In this way, jitter introduced by the phase regulating circuit of .+-.1 counting pulse is isolated from the display A. Pulses passing through the standstill logic device 6 are counted in an incremental counter which includes a numerical display A which operates to display the measured position.
The measured position displayed by the display A is continuously modified in response to the scanning signals S.sub.1, S.sub.2, which evolve in time as the two relatively movable components of the length measuring instrument L are moved. In this embodiment, the scanning signals S.sub.1, S.sub.2 are constantly compared with respective ones of the reference signals R.sub.S1 and R.sub.S2 in order to provide both counting of cycles of the scannning signals S.sub.1, S.sub.2 as well as the determination of interpolation values.
The oscillator O generates a series of digital pulses, as explained above. These pulses are also counted in an up-down counter 5. In this preferred embodiment, the period of the analog scanning signal S.sub.1, S.sub.2 is to be subdivided by a factor of 100. For this reason, the subdivision factor is established by the counter 5 at N=100. That is, 100 pulses from the oscillator O are required to cycle the counter 5 through one complete cycle.
The signal generator G which generates the reference signals R.sub.S1 and R.sub.S2 applies the reference signals R.sub.S1, R.sub.S2 continuously to the respective inputs of the comparator K. The signal generator G is arranged such that each of the reference signals R.sub.S1 and R.sub.S2 cycles through a complete period when the counter 5 counts 100 pulses generated by the oscillator O. In order to ensure this result, the signal generator G includes a digital to analog converter DAW, which is constructed in such a way that it generates an output analog signal which is dependent on the binary input data supplied by the counter 5. In this preferred embodiment, the digital to analog converter DAW includes a sine converter 8 and a cosine converter 9, which serve to produce output signals proportional to the sine and cosine, respectively, of the numbers stored in the counter 5. The output signals generated by the sine and cosine converters 8,9 are applied to respective digital to analog converters 10,11, which generate the reference signals R.sub.S2, R.sub.S1, respectively.
As explained above, the number of pulses generated by the oscillator O is dependent upon the control signal S.sub.D that is generated as a result of the comparison between the scanning signals S.sub.1 and S.sub.2 and the respective reference signals R.sub.S1, R.sub.S2. The momentary values of the reference signals R.sub.S1, R.sub.S2 are therefore dependent on the result of the comparison between the scanning signals S.sub.1, S.sub.2 and the reference signals R.sub.S1, R.sub.S2.
The function and operation of the circuit shown in block diagram form in FIG. 2 can now be described as follows. For the purposes of this explanation, it will be assumed that a movable part of the measuring instrument L has been moved through a selected interval, and that the values of the analog signals S.sub.1, S.sub.2 applied as inputs to the comparator K do not agree with the momentary values of the reference signals R.sub.S1, R.sub.S2 on the other inputs of the comparator K. The comparison between S.sub.1 and R.sub.S1 and S.sub.2 and R.sub.S2, respectively, therefore generates difference signals .DELTA.S.sub.1 and .DELTA.S.sub.2 which are processed in the components Q.sub.P and Q.sub.A in such a way that in the regulating amplifier R.sub.P there is generated a phase control signal S.sub.D and in the regulating amplifier R.sub.A is generated an amplitude control signal S.sub.D '. The two control signals S.sub.D, S.sub.D ' correspond to and vary as a function of the difference between the momentary values of the signals S.sub.1, R.sub.S1 and S.sub.2, R.sub.S2.
The magnitude of the control signal S.sub.D which is applied as a voltage to the oscillator O causes the oscillator O to generate a number of pulses. In this embodiment, the number of pulses generated by the oscillator O corresponds to the distance (in units of one-one hundredth of the length of the period P) through which the movable part of the measuring arrangement L was moved, since for a complete signal period 100 pulses of the oscillator O are required.
These pulses generated by the oscillator O are, after direction determination, applied (1) to the numerical incremental counter of numerical display A which indicates the total number of pulses and (2) to the counter 5. The counter 5 maintains a count of the pulses generated by the oscillator O and applies this count in the form of binary information to the digital to analog converter DAW. In response, the digital to analog converter DAW generates revised values for the two reference signals R.sub.S1 and R.sub.S2 which are more nearly equal to the scanning signals S.sub.1, S.sub.2, respectively, applied to the other inputs of the comparator K. Because of the revision to the reference signals R.sub.S1, R.sub.S2, R.sub.S1 is equal to the scanning signal S.sub.1 and R.sub.S2 is equal to the scanning signal S.sub.2. That is, .DELTA.S.sub.1 and .DELTA.S.sub.2 are both equal to zero. Accordingly, the control signal S.sub.D goes to zero and the oscillator O is prevented from generating further pulses. The process described above goes on continuously so that the display result displayed in the display A constantly corresponds to the measured position of the two parts of the measuring instrument L. The resolution of this displayed result is in this preferred embodiment 100 times greater than the grid constant of the incremental grid included in the measuring instrument L.
The regulating amplifier R.sub.A for amplitude generates a comparison dependent control signal S.sub.D ' for the readjustment of the amplitudes of the reference signals R.sub.S1, R.sub.S2. This control signal S.sub.D ' is applied to the digital to analog converter DAW and acts to modify the reference voltages applied to the converters 10,11 in order to equate the momentary values of the amplitudes of the reference signals R.sub.S1, R.sub.S2 with the momentary values of the amplitudes of the scanning signals S.sub.1, S.sub.2. The control signal S.sub.D ' is generated as a result of a quadrant evaluation carried out in the component Q.sub.A, as explained above.
The reference position for a measurement is obtained in a known manner by a reference mark (not shown). A reference signal S.sub.0 derived from this reference mark in a known manner by the measuring instrument L is applied as an input to an electronic component 7 which links the signals S.sub.0 with the binary data stored in the counter 5. The electronic component 7 also acts to decode the reference signal S.sub.0 and to generate in response thereto a reference pulse J.sub.0 which is applied to the incremental counter included in the numerical display A. The counter responds to the reference pulse J.sub.0 in any one of a number of known manners, as for example by setting the counter to zero or to any arbitrarily selected value in response to the reference pulse J.sub.0. Effects of the transit times of the primary scanning signals S.sub.1 and S.sub.2 which in dynamic measurements can result in faulty measurements and can arise, for example, in the scanning signal amplifier 1, can be compensated for via transit time compensating components included in the digital to analog converter DAW, so that the scanning signals S.sub.1, S.sub.2 and the reference signals R.sub.S1, R.sub.S2 are applied to the comparator K with equal transit times.
Similarly, the comparator K can be placed upstream of the scanning signal amplifier 1 so that the comparison made in the comparator K between the signals S.sub.1, R.sub.S1 and S.sub.2, R.sub.S2 is not dependent on the transit time of the signals S.sub.1, S.sub.2 in the amplifier 1.
The following details are provided merely by way of example to explain the types of components that can be used to construct the embodiment of FIG. 2: components Q.sub.A, Q.sub.P can be analog multipliers such as Motorola MC1496; comparator K can be a comparator of resistances in which .DELTA.S.sub.1 and .DELTA.S.sub.2 are both zero in the balanced state; components R.sub.P, R.sub.A, and 1 can be operational amplifiers such as National Semiconductor LM 348; component 2 can be an operational amplifier such as National Semiconductor LM 348 circuited to provide an output which is the absolute value of the input; component 3 can be a voltage comparator such as National Semiconductor LM 339 circuited to provide an output indicative of the polarity of the input; oscillator 0 can be a voltage to frequency converter such as Raytheon 4151; counter 5 can be an up-down counter such as Texas Instruments SN 74192; converter 8 and 9 can be PROMS such as Texas Instruments TBP 28 L 22; components 10,11 can be digital to analog converters such as National Semiconductor DAC 0800.
Of course, it should be understood that a wide range of changes and modifications to the preferred embodiments described above will be apparent to those skilled in the art. It is therefore intended that the foregoing detailed description be regarded as illustrative rather than limiting, and that it be understood that it is the following claims, including all equivalents, which are intended to define the scope of this invention.