METHOD AND APPARATUS FOR MEASURING PISTON POSITION IN A FREE PISTON COMPRESSOR

Abstract: A method of measuring a distance (X) at closest approach between a piston (1) of a free piston compressor and a cylinder head. The method derives measurements of both alternating and average components of piston position from direct measurements of voltage (V) and current (I) applied to a linear permanent magnet motor (4, 5) that drives the piston, thus eliminating any requirement for an additional position sensor within the compressor.

Description: TITLE: METHOD AND APPARATUS FOR MEASURING PISTON POSITION IN A FREE PISTON COMPRESSOR Technical Field This invention relates generally to electronic metering and sensing, and more particularly relates to sensing the position of a reciprocating piston in a compressor used in refrigeration. Background Art Compressors, in particular refrigerator compressors, are usually driven by conventional rotary electric motors and a crank mechanism. Resulting high side forces on the compressor piston require oil lubrication of the piston-cylinder interface. Thus, the refrigerant must be compatible with oil and there is appreciable power loss from friction in the mechanism. In the search for refrigerants to replace ozone depleting CFCs, oil compatibility is a substantial restriction. Friction losses in the conventional crank mechanism waste energy. It is therefore advantageous to drive the compressor piston with a linear motion motor, which eliminates crank mechanisms and reduces side forces on the piston to a very low value, thereby eliminating the need for oil and making possible the use of gas bearings for the piston cylinder interface. Gas bearings have very low frictional power loss and practically no wear. The advent of high efficiency permanent magnet linear motors, such as the design disclosed in U.S. Patent 4,602,174, makes the replacement of rotary motors by linear motors in a compressor economically feasible. However, such replacement poses a problem because if it is done, the rigid restraint on piston motion imposed by a crank mechanism no longer exists. The linearly reciprocating device has no inherent limits except collision of the reciprocating part with a stationary part. A compressor piston driven by a linear motor will take up an average position that depends on the gas forces acting on the piston, and will reciprocate around the average position. As gas forces change, both the average component of position and the alternating component of position may change. Without some means of detecting the piston position and using the detected position in a feedback loop that controls the voltage applied to the motor, it is possible for the piston to hit the cylinder head, thus generating objectionable noise and possibly damaging the compressor. Another compelling reason for measuring piston position is that such measurement can be used to control the flow rate of mass pumped through the compressor in response to changing demands. In a refrigerator compressor, control of flow rate in response to changing ambient temperature can significantly improve the thermodynamic efficiency of the refrigeration cycle. For purposes of preventing piston-cylinder head collisions and controlling mass flow rate through the compressor, one particular piston location is especially significant, namely the piston's location at its closest approach to the cylinder head. This special location can be determined by many types of position sensors, for example, optical detectors or proximity sensors based on eddy current generation. Use of such sensors would add to cost, could degrade reliability, and would create significant installation problems, particularly the need to bring several wires out through the wall of a pressure vessel in the case of refrigerator compressors . The present invention is a method of measuring piston position at closest approach to the cylinder head without such an added sensor. It uses measurements of motor voltage and current made outside the compressor, as inputs to a digital or analog computation device to determine the piston position on closest approach based on known linear motor properties and known dynamics of piston motion. Brief Disclosure Of Invention By analog or digital computation, piston velocity is computed from measurements of voltage applied to the motor and electrical current through the motor, the computation being based on known properties of the linear motor. The alternating component of piston displacement from a fixed reference position is derived from piston velocity.by analog or digital integration. The average piston displacement is not recovered by this computation. Average component of piston displacement is computed from simultaneously sampled values of motor current, alternating component of piston position, and piston acceleration. This computation is based on the known dynamics of piston motion. Piston acceleration is derived from piston velocity by analog or digital differentiation. To determine the piston displacement at closest approach of the piston to the head, average piston displacement is added to the value of the alternating component of piston displacement at closest approach, this value being obtained by sampling the alternating component of piston position when the piston is at top dead center, that is, when piston velocity is zero and is changing in direction from towards the head to away from the head. Brief Description Of Drawings Fig. 1 is a cross-sectional view of a free piston compressor driven by a permanent magnet linear motion electric motor. Fig. 2 is the equivalent electrical circuit of a permanent magnet linear motion electric motor. Fig. 3 is a block diagram of the invention. Fig. 4 is a schematic diagram of a particular embodiment of the invention using analog computation. Fig. 5 is a block diagram illustrating how the invention can be used for automatic control of the top dead center position of a compressor piston. In describing the preferred embodiment of the invention which is illustrated in the drawings, specific terminology will be resorted to for the sake of clarity. However, it is not intended that the invention be limited to the specific terms so selected and it is to be understood that each specific term includes all technical equivalents which operate in a similar manner to accomplish a similar purpose. For example, the word connected or terms similar thereto are often used. They are not limited to direct connection but include connection through other circuit elements where such connection is recognized as being equivalent by those skilled in the art. Detailed Description In Fig. 2, piston 1 reciprocates in cylinder 2 in response to forces on magnets 4 to which the piston is connected by yoke 3. The forces on the magnets are caused by magnetic fields set up by current I in winding 5. Piston motion is transmitted by the yoke linking the piston 1 to spring 6, which has a spring constant K, expressed in newtons per meter. During downward piston motion, gas or vapor at "suction pressure", which is the pressure in the surrounding space 9 and also in the lower part of the compressor interior space 10, is drawn into the cylinder through check valve 7. During upward motion of the piston, gas or vapor is initially compressed until the pressure in the cylinder exceeds the "discharge pressure", that is, the pressure in discharge pipe 11, at which point check valve 8 opens and gas or vapor is pushed into the discharge pipe by continuing upward motion of the piston. The upper face of the piston is subjected to a time varying pressure force which generally does not average out to zero over a reciprocation cycle, since the pressure is high during compression and discharge and low during suction and intake. Average pressure force on the piston is counteracted by an equal, opposite spring force caused by an average compression of spring 6. Therefore, when an alternating voltage V is applied to the terminals of winding 5, the piston reciprocates around an average position determined by gas forces and K. The main purpose of the invention is to measure the piston location relative to a fixed point on the cylinder when the piston is at top dead center, that is, at its smallest separation from the cylinder head. To accomplish this, the average component of piston displacement must be measured and added to the alternating component at top dead center. A further purpose of the invention is to accomplish its main purpose using only measurements of linear motor voltage V and current I . The first step in the measurement process according to the invention is to determine piston velocity, which will be denoted by v, from signals proportional to V and I and a computation based on the equivalent circuit of the linear motor as shown in Fig. 2. Associated with the linear motor is an electro-mechanical transfer constant, which will be denoted by , that expresses either the voltage induced in winding 5 per unit of piston velocity v or the force exerted on magnets 4 per unit of I . The units of are volt seconds/meter or newtons/ampere, which can be shown to be identical from the defining units of voltage, which are (newton meters) / (ampere second) . In Fig. 2, L is the inductance of winding 5 and R is its resistance. The equivalent circuit follows from the definition of a and Kirchoff's rules for electrical circuits. According to the equivalent circuit, (1) v=(l/α) ( V-L ( dI/dt) -IR) . Since a , L, and R are known quantities for a particular motor, v can be determined from equation (1) and signals proportional to V and I by conventional analog or digital computation. From v, the alternating component of piston displacement, which will be denoted by x, can be found by conventional analog or digital integration according to the following equation, Integration according to equation (2) cannot recover the average component of piston displacement because all practical analog or digital integrators differ from a perfect integrator in their response to a constant, or DC, input. A perfect integrator ramps up to infinite output with any DC input, no matter how small, while a practical integrator must have limited DC response in order to prevent saturation of its output by unavoidable small DC offset voltages. The response of a practical integrator to an input signal proportional to v is the sum of its response to the alternating component of v, which response is x, and its response to a transient component of v which occurs only while the piston is moving towards its eventual average position. It can be shown from signal processing theory that the latter response approaches zero and becomes negligible within a typical time interval of about 3-έ second. After this time interval, the response of a practical integrator to a signal proportional to v will be a signal proportional to x, i.e., to the reciprocating component of displacement only. Therefore, an essential and novel part of the invention is a method of recovering the average component of piston displacement from measurements of V and I . According to the invention, the average component of piston displacement, which will be denoted by X av , can be found from a computation based on the equation of motion of the piston during the suction phase of the compressor cycle, i.e., while suction pressure exists on both sides of the piston and the only forces acting on the piston are spring force and force exerted on the magnets, which forces will be denoted by F s and F m respectively. These forces obey the following equations; (3) F s =-K(x + X av ) (4) F m =al . Newton's law of motion states that, during the suction phase, F s plus F m is equal to the total reciprocating mass multiplied by the acceleration of the piston. From that relation it then follows that, if x 0 , I 0 , and A 0 are values of x, I, and acceleration respectively, measured simultaneously at any time during the suction phase, and if M denotes total reciprocating mass, then; (5) X av =-x 0 + ( a/K) I 0 - (M/K) A 0 . Acceleration required in equation (5) is found in the invention by conventional analog or digital differentiation of v, according to the following equation in which A denotes acceleration; Piston displacement at top dead center, which will be denoted by X c , is now found according to the invention by adding X av to the value of x at top dead center, which value will be denoted by -K ± . The point in time when the piston reaches top dead center is that point when v equals zero and is changing direction from towards the cylinder head to away from the cylinder head. The equation for X c according to the invention is therefore as follows : (7) X c =x i -x 0 + ( /K) I 0 - (M/K) A 0 X c in equation (7) is the displacement of any point on the piston from the location of the same point when the spring is neither compressed nor extended, measured when the piston is at top dead center. Fig. 3 is a block diagram of the invention, in which signal flow direction is indicated by arrows and the subcircuits required by a preferred embodiment of the invention are indicated by titled blocks. Inputs proportional to V and I are labelled V signal and I signal respectively. The block labelled "v COMPUTATION" computes v according to equation (1) . The blocks labelled "DIFFERENTIATOR" and "INTEGRATOR" compute A and x respectively from equations (6) and (2) . The block labelled "TOP DEAD CENTER SAMPLE PULSE GENERATOR" has v as input and generates a pulse, using conventional techniques, when v is equal to zero and is changing direction from towards the cylinder head to away. The block labelled "SUCTION PHASE SAMPLE PULSE GENERATOR" has x and /or v as input and generates a pulse at some point in time during the suction phase, the exact point being determined by a combination of x and v. For example, v alone could be used as input and a pulse generated at bottom dead center when v is equal to zero and changing in direction from away from the cylinder head to towards it. Or x alone could be used as input and a pulse generated when x equals zero and v is away from the cylinder head, i.e., at the midpoint of the suction stroke. The four blocks labelled "SAMPLE HOLD" transfer the value of their input, which enters the block from the left, to the output at the right of the block, when a pulse is received at their "G" terminal. The output then maintains its value until another pulse arrives at G. Three of the sample hold circuits receive the same suction phase pulse. These three have inputs A, x, and I respectively and outputs A 0 , x 0 , I 0 . The fourth sample hold receives the top dead center sampling pulse and its input is x, hence its output is x 4 . The block titled "WEIGHTED SUM COMPUTATION" takes the inputs x i A 0 , x 0 , I 0 ; inverts the sign of X 0 , inverts A 0 and multiples it by (M/K) , multiplies I 0 by (α/K) , and then computes X c by summing according to equation (7) . Fig. 4 shows a basic analog embodiment of the invention. Al through A5 are operational amplifiers. Al, Rl, R2, R3, and CI perform conventional analog computation of v according to equation (1) . A2, R5, and C2 form an analog integrator which computes x from v. The purpose of R5 is to limit the DC response of the analog integrator. A4, R6, and R7 invert x to generate -x. A3, C3, and R8 form a conventional analog differentiator which generates A from v. In this embodiment, the suction phase pulse is at bottom dead center. It is generated by first applying v to a comparator labelled CMP, which produces a square wave with zero crossings simultaneous with those of v. Differentiating network C4, Rll differentiates the comparator output, generating positive and negative pulses, at the zero crossings of CMP's output, and diode Dl eliminates the negative pulse. The top dead center pulse is similarly generated by first inverting CMP's output with A5, R9 and RIO, and then forming a positive pulse with C5, R12, and D3. SHI through SH4 are sample hold circuits with respective inputs -x, A, -I, and x, and respective outputs -x i7 A 0 , I 0 , and x 0 . A4 and R13 through R17 perform the weighted summation of equation (7) , weighting factors being determined by the values of R13 through R17. The voltage at the output of A4 is proportional to X c . Many variations are possible within the spirit of the invention. For example, a more precise equivalent circuit for the linear motor, which accounts for winding capacitance and change in loss resistance with frequency, may be used in the computation of v from V and I . The actual values of data, voltages and currents in the circuits of the present invention will, in the conventional manner, not be identical to the values they represent in the equations and mathematical expressions used. Instead, they will be proportional to the actual values or otherwise related as is known to those skilled in the art . Fig. 5 shows in block diagram form how the invention can be applied to automatic control of the top dead center position of the piston of a free piston compressor. A command signal labelled X c CONTROL is summed with an inverted X c signal obtained by computation according to the invention. The summed output is an error signal labelled X c ERROR, which is proportional to the difference between a required value of X c and the actual value of X c . The error signal is used to change the voltage applied to the linear motor that drives the compressor, the direction of change being such as to reduce the error signal to a low value, thereby causing the actual value of X c to closely approximate the required value of X c as expressed by the command signal. While certain preferred embodiments of the present invention have been disclosed in detail, it is to be understood that various modifications may be adopted without departing from the spirit of the invention or scope of the following claims.

Claims: CLAIMS 1. A method for measuring the displacement of a reciprocating body at an end of its excursion, the body being linked to a spring and driven in reciprocation by an electromagnetic, linear motor, the linear motor including a moving magnet and a winding having an associated resistance and inductance, the linear motor also having a characteristic electro/mechanical transfer constant equal to both the ratio of the voltage induced in the winding by the moving magnet to body velocity and the ratio of the force exerted on the magnet by a magnetic field from a winding current to the winding current, the motor being driven by an alternating power source applying a voltage to and forcing a current through the winding, the method comprising: (a) detecting the voltage applied to the winding as a function of time; (b) detecting the current through the winding as a function of time; (c) computing the velocity of the reciprocating mass as a function of time from the detected voltage and current in accordance with the equation: v=(l/α) ( V-L ( dl/dt) -IR) ; wherein α. is said transfer constant V is said voltage I is said current R is said winding resistance L is said winding inductance t is time; (d) integrating the computed velocity as a function of time to compute the alternating component of displacement of said body as a function of time; (e) differentiating the computed velocity as a function of time to compute the acceleration of the body as a function of time; (f) detecting the alternating component of displacement resulting from step (d) when the computed velocity is zero; (g) simultaneously detecting the alternating component of displacement resulting from step (d) , the acceleration resulting from step (e) and the current resulting from step (b) ; and (h) computing the displacement of the reciprocating body at the end of its excursion in accordance with the equation: wherein: X c is the displacement at an end of the body's excursion x A is the value of alternating displacement when the velocity is zero x 0 is the simultaneous value of alternating displacement A 0 is the simultaneous value of acceleration I 0 is the simultaneous value of current M is the mass of the reciprocating body K is the spring constant of the spring. 2. The method in accordance with claim 1 wherein said reciprocating body is a compressor piston reciprocating in a cylinder and defining a volume at one end of the piston, a gas or vapor being drawn into the volume during a suction portion of the reciprocation cycle under a substantially constant pressure which is substantially equal to the pressure at the opposite end of the piston, and wherein said simultaneous values are detected during said suction portion of the cycle. 3. The method in accordance with claim 2 wherein the detecting of steps (b) through (g) each comprise sampling the recited values at the recited times. 4. An apparatus for measuring the displacement of a reciprocating body at an end of its excursion, the body being linked to a spring and driven in reciprocation by an electromagnetic, linear motor, the linear motor including a magnet and a winding having an associated resistance and inductance and having a characteristic electro/mechanical transfer constant, the motor being driven by an alternating power source applying a voltage to and forcing a current through the coil, the apparatus comprising: (a) a voltage detector circuit for detecting the voltage applied to the winding as a function of time; (b) a current detector circuit for detecting the current through the winding as a function of time; (c) a computing circuit for generating a signal representing the displacement of the reciprocating body at the end of its excursion by: (i) computing the velocity of the reciprocating mass as a function of time from the detected voltage and current in accordance with the equation: v=(l/α) ( V-L ( dI/dt) -IR) ; wherein is said transfer constant V is said voltage I is said current R is said winding resistance L is said winding inductance t is time; (ii) integrating the computed velocity as a function of time to compute the alternating component of displacement of said body as a function of time; (iii) differentiating the computed velocity as a function of time to compute the acceleration of the body as a function of time; (iv) detecting the alternating component of displacement resulting from step (ii) when the computed velocity is zero; (v) simultaneously detecting the alternating component of displacement resulting from step (ii) , the acceleration resulting from step (iii) and the current resulting from step (b) ; and (vi) computing the displacement of the reciprocation body at the end of its excursion in accordance with the equation: X c =x r x 0 + ( /K) I 0 - (M/K) A 0 ; wherein: X c is the displacement at the end of excursion displacement Xi is the alternating displacement when the velocity is zero x 0 is the simultaneously detected alternating displacement A o is the simultaneously detected acceleration I 0 is the simultaneously detected current M is the mass of the reciprocating body K is the spring constant of the spring. 5. The apparatus in accordance with claim 4 wherein said reciprocating body is . the piston of a compressor reciprocating in a cylinder and defining a volume at one end of the piston, a gas or vapor being drawn into the volume during a suction portion of the reciprocation cycle under a substantially constant pressure which is substantially equal to the pressure at the opposite end of the piston, and wherein said simultaneous values are detected during said suction portion of the cycle. 6. The apparatus in accordance with claim 5 wherein the apparatus further includes a plurality of sample and hold circuits for sampling said current, said alternating component of displacement when the computed velocity is zero, and said simultaneously detected alternating component of displacement, acceleration and current. 7. An apparatus in accordance with claim 5 and further comprising a closed loop, negative feedback control system having a first summing junction input connected to an output of the displacement measuring apparatus to receive a signal representing the detected displacement, the control system also having a second summing junction input to receive a signal representing a desired, selected displacement of the body at the end of its excursion, the control system further having a summing junction for detecting an error signal representing the difference between the summing junction input signals, and the control system having a motor voltage control circuit for changing the voltage applied to the linear motor in a direction minimizing the error signal.

Inventors: REDLICH ROBERT W, REDLICH, ROBERT, W.
Applicants: SUNPOWER INC, SUNPOWER, INC.
Application year: 1994
Main classification: F04B49
IPC codes: F04B31, F04B35, F04B49, G01D5, G05D3