INTERPOLATION APPARATUS

Abstract: In one preferred embodiment, apparatus for determining values of a periodic function by interpolation receives signals A, B, C, D from the periodic function which are nominally in phase quadrature with each other. These are combined to produce sine and cosine functions (SN, CS) from which interpolation is performed by a computer (25). In known such apparatus, accuracy substantially depends on the actual phase separation of the signals being very close to the nominal quadrature separation. In the present embodiment, this dependence is reduced by deriving each function SN, CS from at least three of the signals A, B, C, D, e.g. in the forms 2B-A-D and 2C-A-B. Other such formulae for deriving the functions SN, CS are disclosed. In one further embodiment there are three input signals A1, B1, C1 which have a nominal phase separation of 120 DEG , rather than quadrature separation; and in another embodiment there are five input signals.

Description: INTERPOLATION APPARATUS This invention relates to apparatus for determining values of a periodic function by interpolation. Known such apparatus comprises reading means for reading at least four values of the periodic function and converting Means for converting said at least four values into a pair of derived sine and cosine functions. Interpolation values are determined by establishing the relationship between values of the sine and cosine functions at given intervals. The reading means is only capable of reading values of the periodic function coaforming to a given nominal < phase separation, since it will have transducers, at aι given spacing from each other. Also, the interpolation is only accurate to the extent that the phase ' ι, difference between the sine and cosine functions is ' 90°. Disconformity between any actual phase separation and said given phase separation results in departure of said sine and cosine functions from said 90° phase difference and in consequent inaccuracy of the interpolation. For example, such disconformity may arise if the periodicity of the periodic function does not accurately agree with the spacings of the transducers. In known said apparatus the converting means is adapted for producing said sine and cosine functions each as a function of two said values of the periodic function. For example, if the four values are represented by signals A,B,C and D nominally in quadrature, the sine and cosine functions may be respectively derived by combining these signals as (A-C) and (B-D) . This results in substantial dependence of said accuracy on said phase separation. In the present invention, the converting means includes means for producing at least one of said derived functions by combining at least three of said values. At least in a preferred embodiment, this reduces the dependence of said accuracy on said phase separation. Embodiments of apparatus according to this invention will now be described with reference to the accompanying drawings wherein:- Fig. 1 is an elevation of the mechanical arrangement of a scale-reading apparatus. Fig. 2 is a plan view of Fig. 1. Fig. 3 is a diagram of a periodic light signal and an associated arrangement of light-sensing diodes. Fig. 4 shows an electrical circuit network in which the outputs of said diodes are combined. Fig. 5 is a diagram of sine and cosine functions being outputs of said circuit network. Fig. 6 is a diagram showing the effect of changes in the phase separation of said light signal. Fig. 7 is a vector diagram illustrating the operation of the circuit network of Fig. 4, Fig. 8 is a diagram corresponding to Figs. 3 and 4 but illustrating a modified embodiment. Fig. 9 is a vector diagram illustrating the operation of the embodiment of Fig. 8. Fig. 10 is another diagram corresponding to Figs. 3 and 4, illustrating a further modified embodiment. A scale 10 (Figs. 1,2) having length in a direction X has linear marks 11 extending in a direction Y perpendicular to the direction X. The marks have a spacing P10. A readhead 13 is supported for linear displaceaent in the direction X. The readhead 13 has an index grating 12 set at an angle *L to the scale marks 11 to produce a periodic function having the form of a moire fringe signal 142 (Fig. 3). The signal 142 is defined by a substantially sinusoidally varying light intensity plotted against displacement values Yl of the moire fringes over the grating 12. The signal 142 has a period P22, and a corresponding phase separation or quadrature Q22. The period P22 and quadrature Q22 are a function of the angle β . The readhead 13 includes a reading means in the form of four transducers or photodiodes 16 or 16A, 16B, 16C, 16D positioned at equal spacings P30 relative to the grating 12 so as to produce four quadrature voltage signals A,B,C,D corresponding to quadrature light intensity values QA,QB,QC,QD of the signal 142. As described so far the apparatus is well-known. The signals A,B,C,D are connected to a converting means being a circuit network 20 (Fig. 4) wherein the signals A,B,C,D are combined to produce a pair of sine and cosine functions defined by two signals SN,CS being sine and cosine derivatives of the signal 142. The network 20 is so arranged that SN=2B-A-D and CS=2C-A-B. More specifically, in the network 20, the signals A,B,C,D are at first taken through scaling amplifiers 21, whereafter three of the signals, viz . A,B,D, are taken through an addei—subtractor differential amplifier 22 whose outputs are controlled by resistances, in this embodiment six identical resistances R, such that the amplifier 22 produces the signal SN as a voltage having the value 2B-A-D. The use of such amplifiers for determining a desired value is well-known per se. Another adder-subtractor differential amplifier 23 is organised in the same aanner as the amplifier 22 but is connected to the signals A,B,C to produce the signal CS as a voltage having the value 2C-A-B. The displacement, denoted XI, of the readhead 13 may be derived from the instantaneous value of the relationship or ratio SN/CS (Fig. 5) and is established by a computer 25 (Fig. 4) to which the signals SN,CS are connected. Alternatively, a dedicated circuit may perform the same function, as is well known. The period, P40, of the derived sine and cosine functions corresponds to the spacing P10 of the scale marks and intermediate values such as SI and Cl are interpolations therebetween. The relationship between the displacement XI and the values SN,CS is given essentially by the expression: XI = (P40/360°) [arctan(SN/CS)] (1) By virtue of the operation of the network 20, this becomes: XI = (P40/360°) {arctan[(2B-A-D)/(2C-A-B) ]} (2) A corresponding expression in conventional apparatus is: XI = (P40/360°) (arctan[(A-C)/(B-D)]} (3) A feature common to expressions (2) and (3) is that the vector sum of the nominal phases of the signals which are combined to make up the function SN is at ninety degrees to the corresponding vector sum of the nominal phases of the signals which are combined to make up the function CS. This will be explained with reference to the vector diagram, Fig.7. Nominally, the signals A,B,C,D are in quadrature, i.e. their nominal phases have vectors at 90° to each other as shown in Fig. 7. Also shown in Fig. 7 are the vector sums (A-C) and (B-D) , which are the combinations making up the functions SN and CS in the conventional apparatus (expresssion (3)). These vector sums are simply parallel to the vectors of the component signals A,B,-C,-D and are therefore also at 90° to each other. As can also be seen in Fig. 7, the vector sum (2B-A-D) making up the signal SN in expression 2 is also at 90° to the vector sum (2C-A-B) making up the signal CS. However, the vector sums are no longer parallel to the component vectors. This is a result of producing each of the derived functions by combining three of the signals A,B,C,D, instead of two. The advantage of producing each of the derived functions SN.CS from at least three of the signals, rather than two, will become apparent from the following description of what happens if the actual phases of the signals A,B,C,D should vary from their nominal phases. Ideally, the signals SN.CS should have a phase difference P41 (Fig 5) of exactly 90°, but this requires exact conformity between the spacing P30 of the diodes 16 and the phase separation Q22 of the signal 140. As mentioned, the latter separation is a function of the angle **-. Inasmuch as there are difficulties in setting the angle ύ with the necessary precision, there are difficulties in establishing said conformity, and this is one reason why the actual phases of the signals A,B,C,D may vary from the nominal phases. For the purpose of explanation (Fig. 3) it is assumed that angles OC , different from the exact value, produce signals 141,143 to either side of the nominal signal 142. The three signals 141,142,143 (collectively denoted 140) have corresponding quadratures Q21,Q22,Q2 (collectively denoted Q20) and phase angles Θ1,Θ2,Θ3 (collectively denoted θ) . The signal 142 is regarded as a datum signal, inasauch as the spacing P30 is equivalent to the phase angle Θ2, the latter being taken as 90° . It will be clear that the signal 141 is read by the diodes 16A,16B at two points defining, for the signal 141, a phase angle θl smaller than the angle Θ2 and given by the expression θl = 90° x Q22/Q21. At a valu for Q21 of 1.125 x Q22, θl becomes 80°. Correspondingly the signal 143 is read by the diodes 16A,16B at two points defining, for the signal 143, a phase angle Θ3 greater than the angle Θ2 and given by the expression Θ3 = 90° x 22/Q23. At a value for Q23 of 0.69 x Q22, Θ3 becomes 130°. The apparatus gives good compensation for variations in moire fringe pitch between 1.125 and 0.69 times the pitch of the datum signal 142, as will be become apparent with reference to Fig. 6. Fig. 6 shows a plot M of the phase difference P41 against the angle Θ when the displacement XI is established on the basis of expression (2) above. It will be seen that if Θ lies between 80 and 130 degrees the value of P41 varies by between +3 and -2 degrees from the nominal 90° . In otherwords a variation of θ over a range of 50° produces a variation in P41 of 5 degrees. Fig. 6 also shows a plot N of P41 against θ on the basis of expression (3) above, i.e. using a conventional formulation. It will be seen that N is a straight line at 45° to the abscissa so that a variation of θ over 50° would produce a variation of P41 also of 50° . The effect of a change in the angle *is exemplified as follows. A scale 10 having a spacing P10 of 20 micrometers, and an index grating 12 set at an angle ≠ - 0.35° relative to the scale aarks 11 produces a moire fringe period P22 of 3.2 mm. In such a case a change in OL of +_ 0.1° produces a calculated change in the fringe period P22 of +1.3 to -0.7 mm and a consequent change in phase angle 0 of about +_ 25° as shown in Fig. 6. With the conventional network (expression (3)), this produces an interpolation error of about +_ 2 micrometres. With the use of the network 20, a like change of β C produces an interpolation error of about 0.2 micrometres, i.e. about one tenth of that occurring conventionally. Conversely, if an interpolation error of 2 micrometres is acceptable, the tolerance for the angle 6C aay be raised to +_ 1° . Using a vector diagram similar to Fig. 7, it will be seen that there are many ways in which three or more of the signals A,B,C,D can be combined to give the signals SN,CS having vector sums at 90°. Thus, for example alternative expressions for the distance XI are: XI = (P40/360°){arctan l (3B-A-C-D)/(3C-A-B-C)]} (4) or XI = (P40/360°){arctan[(4B-2D-A-C)/(4C-2A-B-D)]} (5) It is a characteristic of the expressions (2), (4) and (5) and similar expressions that the sine and cosine terms SN,CS generated by them substantially retain their 90° phase relationship over a useful range substantially larger than that given by conventional interpolation techniques, even if the quadratures Q20 of the optical signal 140 do not conform exactly to the -3- spacing P30 of the diodes 16 used to read the signal 140. It has also been found that the quadrature Q20 may vary relative to the spacing P30 over a range of between 0.2 and 0.36 of the period P22, while still giving results at least as good as with the conventional technique. However, the quadratures 20 of a given signal 140 have to be equal, as have the spacings P30. Also, the ratios of the amplitudes of the sine and cosine terms SN,CS remain substantially constant over a similar range, which is a factor affecting the accuracy of the interpolation performed by the computer or dedicated circuit 25. It will be noted that in the expressions (2), (4) and (5), the respective coefficients by which the signals A,B,C,D are multiplied when they are combined to produce the function SN add up to zero. The same is true of the coefficients producing the function CS. For example, referring to expression (2), these coefficients are 2,-1 and -1, both for SN and for CS, while in expression (5) the coefficients are 4, -2,-1 and -1. The sum of the coefficients in each case is zero. This relationship is preferred for the following reason. In any practical embodiment, it is likely that the signals A,B,C,D will each consist of a sinusoidal variation superimposed on an unwanted d.c. offset (e.g. related to the ambient level of illumination of the scale 10 ' and read head 13, and the reflectivity of the scale, amongst other factors). It will normally be impractical to filter out these d.c. offsets, since that would render it impossible to obtain an output when the scale was stationary relative to the read head. If the coefficients add up to zero in the above manner, however, any d.c. offsets which are common to all the signals will cancel out when the signals are combined. Nevertheless, the invention is not limited to relationships in which the sum of the coefficients is zero, should such d.c. offsets be insignificant in any given case, or if they are removed in some other manner. Thus, an example in which the sums of the coefficients are not zero would be SN = (B-A-D) , CS = (C-A-B). The above examples have all assumed that there are a total of four signals A,B,C,D, all nominally in quadrature with each other. To produce each function SN,CS, a combination has been made of at least three, and possibly of all four of these signals. However, it is not essential that there should be four signals nominally in quadrature. Neither is it essential that both functions SN,CS be derived from at least three of the signals, since the advantage of the invention can still be observed if only one of them is so derived. An embodiment of the invention will now be described with reference to Figs. 8 and 9 in order to aake this clearer. In Fig. 8, transducers 16A1,16B1 and 16C1 are arranged nominally at 120° spacings relative to the aoire fringe signal 142. This arrangement is described in more detail in our contemporaneously filed international patent application no. PCT/GB87 , applicants reference 55WO, and in our UK patent application no. 8615196 from which both that international application and the present international application claim priority. The transducers 16A1, 16B1, 16C1 produce respective signals A1,B1,C1 which are connected to a circuit 50 having differential amplifiers 51,52 for producing signal values Bl-Al and Bl-Cl, and further differential amplifiers 53,54 connected to produce signal values Al-Cl and 2B1-(A1+C1) which define respectively the derived sine and cosine functions SN,CS. The amplifiers 51 to 54 are generally similar to the amplifiers 22,23 of the Fig. 4 embodiment. It will be noted that, as previously, the coefficients by which the signals are multiplied add up to zero, both in the function SN and in the function CS. This means that the functions SN.CS are independent of any d.c. offsets which are common to all the signals, e.g. caused by ambient light levels or scale reflectivity. Referring to Fig. 9, the three outputs A1,B1,C1 are shown as vectors. The vectors Al and Cl respectively lead and trail the vector Bl. The vector sum -(Al+Cl) has the same nominal phase angle as the vector Bl and occurs between the vectors A1,C1, and the vector sum 2B1-(A1+C1) is shown nominally superimposed on the vector Bl. The vector sum Al-Cl occurs between the vectors A1,B1 at an angle of 90° with the vector Bl, thus signifying the sine and cosine relationship between the terms 2B1-(A1+C1) and Al-Cl. Said 90° relationship is preserved so long as the vectors AΪ,C1 respectively lead and trail the vector Bl by like amounts, and this relationship is not disturbed (within reasonable limits) by deviations of the absolute values of the phase angles between the vectors A1,C1 and C1,B1 from the nominal 120° separations. In other words, the same advantage accrues as in the previous embodiments, by virtue of the signal CS being derived from a combination of all three signals A1,B1,C1. This means in practice that the tolerance to angular misalignment between the scale and the read head about the axis can be greater than would otherwise be the case. -li¬ lt will be appreciated that the invention is not limited to the use of four signals A,B,C,D nominally in quadrature, or three noainally at 120°. There aay be three signals in quadrature, or five or lore signals. Fig. 10 illustrates an eabodiaent in which five transducers 16A2, 16B2, 16C2, 16D2, 16E2 are arranged at nominal phase separations of 72° from each other relative to the aoire fringe signal 142. The signals A2,B2,C2,D2,E2 which are produced by the transducers are taken to a converting circuit 70 which coabines them to produce the sine and cosine functions SN,CS, in the same manner as the circuit 20 in Fig. 4. These are then interpolated by the computer 25 or its equivalent means, as in Fig. 4. However, in the circuit 70, the coefficients by which the signals are multiplied when combining thea have been optimised to keep the phase relationship between the functions SN and CS very close to 90° over a very wide range of actual phase separations of the input signals A2,B2,C2,D2,E2. The actual phase separation of the input signals may vary from 5° to 175° while still keeping a substantially 90°- phase difference between SN and CS. Also, the coefficients have been optimised to minimise interpolation errors caused by variations in the ratio of the amplitudes of the functions SN and CS over that wide range of phase separations. As previously the sums of the coefficients are zero for each derived function SN,CS. This optimisation is achieved by multiplying the input signals by the following coefficients to produce the functions SN and CS: The interpolated value XI is now given by XI = (P40/360 0 ) | rctan(SN/CS)] (1) where SN = 5.00xB2 - 5.00xD2 + 1.00xE2 1.00xA2 CS = 6.72xC2 - 2.24xA2 - 1.12xB2 1.12xD2 - 2.24xE2 Although Fig. 10 shows the nominal phase separation of the input signals to be 72°, it will be realised that since this embodiment derives the functions SN and CS accurately over such a wide range of actual phase separations, the transducers can if desired have other nominal phase separations (relative to the moire fringe signal 142). For example, the five transducers (and hence the input signals) may be nominally separated from each other by 60°, or 90° (quadrature), or 120°. However, the amplitudes of the derived functions SN, CS decrease as the phase separation of the input signals approaches the limits of the permissible range. Although the embodiments described have used optical scales and opto-electronic read heads, the invention may be used with other types, e.g. magnetic scales and read heads. Neither need the scale be linear, since the invention can also be used to interpolate measurements of angular or rotary motion.

Claims: CLAIMS 1. Apparatus for determining values of a periodic function (140) by interpolation, comprising reading means (16) for reading at least three values of the periodic function (140) and producing therefroa at least three respective signals each having a predetermined nominal phase separation relative to the other said signals, and converting means (20; 50; 70) for converting said at least three signals into a pair of derived functions (SN,CS) by combining said signals together, the nominal phases of the signals which make up one of the derived functions having a vector sum which is at substantially ninety degrees to the vectør sum of the nominal phases of the signals which make up the other of the derived functions, whereby the derived functions have a phase difference between thea of substantially ninety degrees, characterised in that the converting means (20;50;70) includes means (22; 23; 51,52/,54) for producing at least one of said derived functions by combining at least three of said signals. 2 . Apparatus according to claia 1 wherein the converting means produces each of said derived functions by multiplying a plurality of said signals by respective coefficients and combining thea, the sua of said coefficients for each function being zero. 3. Apparatus according to claia 1 or claia 2 wherein the converting aeans (20) includes aeans (22,23) for producing each of said derived functions (SN,CS) by coabining at least three of said signals. 4. Apparatus according to claia 1, claim 2 or claia 3 wherein there are four said signals (A,B,C,D). 5. Apparatus according to any one of claims 1,2,3 and 4 wherein said predetermined nominal phase separation is ninety degrees. 6. Apparatus according to claim 5 wherein said derived functions (SN.CS) are defined respectively by the expressions 2B-A-D and 2C-A-B, wherein A,B,C and D are successive said signals. 7. Apparatus according to claim 6 wherein the actual phase separation of said signals lies substantially within the range from 1.125 to 0.69 times said nominal phase separation. 8. Apparatus according to claim 5 wherein said derived functions (SN.CS) are defined respectively by the expression 3B-A-C-D and 3C-A-B-C, wherein A,B,C and D are successive said signals. 9. Apparatus according to claim 5 wherein said derived functions (SN,CS) are defined respectively by the expressions 4B-2D-A-C and 4C-2A-B-D, wherein A,B,C and D are successive said signals. 10. Apparatus according to claim 1 or claim 2 wherein said predetermined nominal phase separation is 120 degrees. 11. Apparatus according to claim 10 wherein said derived functions (SN,CS) are defined respectively by the expressions Al-Cl and 2B1-(A1+Cl), wherein A1,B1 and Cl are successive said signals. 12. Apparatus according to claim 2, wherein the reading means produces five said signals, and said coefficients are substantially as given in the following table, in which A2,B2,C2,D2,E2 are said five signals, and SN and CS are said pair of derived functions :

Inventors: PLEYDELL MARK EDWARD, STEPHENS WILLIAM FRANK NOEL, PLEYDELL, MARK, EDWARD, STEPHENS, WILLIAM, FRANK, NOEL
Applicants: RENISHAW PLC
Application year: 1987
Main classification: G01D5
IPC codes: G01D5, G06G7