An apparatus and method for controlling the charging of refrigerant into a refrigerant system is disclosed. The apparatus determines the mass amount of refrigerant charged by determining the volume of refrigerant charged, the density of the refrigerant based on its pressure as it is charged, and determines the mass amount charged from the determined density and pressure. The apparatus has a pressure compensated flow valve and determines the volume of refrigerant charged based on the amount of time refrigerant has flowed through the constant flow valve. The type of refrigerant being charged can be selected from a plurality of refrigerant types and the apparatus has a memory in which data related to density and flow characteristics of each refrigerant type is stored. The apparatus uses the data for the selected refrigerant to determine the mass amount of refrigerant charged. The apparatus further determines that the refrigerant supply tank is empty when its pressure decay exceeds a predetermined amount. The apparatus has a manifold in which the constant flow valve is mounted and the apparatus can be made as a portable, hand carried unit. The apparatus can also be used as a mass flowmeter.

This application is a divisional application
of co-pending U.S. Ser. No. 07/810,697 for a Refrigerant
Charging System and Control System Therefor filed Dec. 19,
1991, now U.S. Pat. No. 5,231,841.

Claims:

What is claimed is:

1. An apparatus for charging refrigerant into a refrigerant system, comprising:

(a) an inlet to which a pressurized refrigerant tank is coupled and an outlet to which an inlet of the refrigerant system is coupled;

(b) means for sensing the pressure of refrigerant at the inlet; and

(c) means coupled to the inlet pressure sensing means for determining that the refrigerant tank is empty when the rate of pressure drop at the inlet reaches a predetermined amount.

2. The apparatus of claim 1 and further including means for indicating that the refrigerant tank is empty and means for coupling the indicating means to the determining means.

3. The apparatus of claim 1 and further including a solenoid valve coupled between the inlet and outlet, means for coupling the solenoid valve to the determining means, the determining means including means for energizing the solenoid valve to open it to allow refrigerant to flow through the apparatus and deenergizing it to close the solenoid valve to block refrigerant from flowing through the apparatus, the determining means deenergizing the solenoid valve in response to determining that the refrigerant tank is empty.

4. In an apparatus for charging refrigerant into a cooling system from a pressurized refrigerant tank, a method of determining whether the refrigerant tank is empty as refrigerant is being charged into the cooling system, comprising the steps of monitoring the pressure of refrigerant in the refrigerant tank as refrigerant is flowing through the apparatus, determining the rate at which the pressure in the refrigerant tank is dropping, and determining the rate at which the pressure in the refrigerant tank is dropping, and determining that the refrigerant tank is empty when the rate of pressure drop in the refrigerant tank reaches a predetermined amount.

5. The method of claim 4 wherein the step of determining that the refrigerant tank is empty comprises determining that the refrigerant tanks is empty when the rate of pressure drop in the refrigerant tank reaches ten p.s.i./minute.

Description:

BACKGROUND AND SUMMARY OF THE INVENTION

This invention relates to refrigerant charging systems, and more particularly, to a control system for controlling the charging of refrigerant into a refrigerant system.

In the past, a number of charging systems and techniques have been used to charge refrigerant into refrigerant systems, such as cooling systems. These systems can be as simple as a set of hoses and gauges which are used to connect a tank of pressurized refrigerant to the refrigerant system. Refrigerant is then charged into the refrigerant system until a desired pressure is reached. Outside the automotive industry, the use of hose and gauge sets is perhaps the most common way of charging refrigerant systems.

In the automotive industry, a number of systems have been used to charge refrigerant into refrigerant systems, i.e., the air conditioning systems on the automobiles, including the hose and gauge sets. While the hose and gauge sets are truly portable in the sense that they can be picked up and carried from job to job by hand, more complex systems are portable only in the sense that they are built in carts that can be wheeled from job to job.

One such refrigerant charging system that has been used in the past is described in U.S. Pat. No. 3,873,289 for an Air Conditioner Servicing United to Kenneth R. White, the president of K-Whit Tools, Inc, the owner of this application. The apparatus disclosed in the '289 patent charges refrigerant through a pressure compensated constant flow valve and controls the amount of refrigerant charged into the refrigerant system by a timer. In this manner, the charging system disclosed in the '289 patent achieves the desirable objective of accurately controlling the amount of refrigerant charged into the refrigerant system being charged.

While the system disclosed in the '289 patent has been successfully marketed for many years by the assignee of this application, one problem that it has is that the mass of refrigerant which flows through the constant flow valve in a given unit of time will vary from refrigerant type to refrigerant type. Moreover, it will also vary with pressure which in turn varies with temperature. Controlling the mass of refrigerant charged and being able to determine the mass of refrigerant charged is desirable since mass or weight is typically used both for inventory purposes and for determining the cost of the recharging service.

In addition to being able to accurately determine the mass of refrigerant charged into a refrigerant system, it is also desirable to be able to charge a given amount of refrigerant into a refrigerant system. Often, when recharging a refrigerant system, the service technician will take appropriate measurements, such as inlet and outlet pressures, and determine the amount of refrigerant that needs to be recharged into the system. Alternatively, the service technician may choose to charge the refrigerant system to a given pressure in which case it is important that the service technician be able to determine the amount of refrigerant charged into the system for the reasons discussed previously.

Another problem with systems of the type described in the '289 patent is that they are only "semi" portable. They are mounted in carts and while they can be rolled from job to job in a confined area, such as in an automotive repair garage, they cannot be easily moved from site to site such as is required to service home and commercial refrigerant systems. For this reason, hose and gauge sets are still the system of choice in servicing refrigerant systems outside the automotive industry. However, hose and gauge sets are manual systems which rely solely upon the judgement of the service technician to determine when the refrigerant system has been adequately charged. Moreover, they do not provide for a way of determining the amount of refrigerant charged into a system, although sometimes scales are used with hose and gauge sets to determine this.

It is an object of this invention to provide a control system for controlling the charging of refrigerant into a refrigerant system that has a constant flow valve and determines the mass of refrigerant charged based on the volume of refrigerant that has flowed through the valve, the refrigerant type, and the pressure of the refrigerant being charged into the refrigerant system.

It is also an object of this invention to provide a control system for controlling the charging of refrigerant into a refrigerant system that allows the service technician to preset the amount of refrigerant to be charged into the refrigerant system and which will then charge that amount of refrigerant into the refrigerant system.

It is also an object of this invention to provide a truly portable, i.e., hand carried, control system for controlling the charging of refrigerant into a refrigerant system.

It is also an object of this invention to provide a mass flowmeter for gaseous fluids which a constant flow valve through which the gaseous fluid flows and which determines the mass amount of gaseous fluid based on the volume of gaseous fluid that has flowed through the constant flow valve and the density of the gaseous fluid as determined by the pressure of the gaseous fluid at the outlet of the constant flow valve and data related to the density characteristics of the gaseous fluid.

SUMMARY OF THE INVENTION

An apparatus and method for controlling the charging of refrigerant into a refrigerant systems determines the mass amount of refrigerant charged into the refrigerant system by determining the volume of volume of refrigerant charged into the refrigerant system, determining the density of the refrigerant based on its pressure as it is charged into the refrigerant system, and determining the mass amount of refrigerant charged into the refrigerant system based on the volume and density of the refrigerant. The apparatus preferably has a pressure compensated constant flow valve and determines the volume amount of refrigerant based on the amount of time refrigerant has flowed through the constant flow valve and flow characteristics of the refrigerant. The apparatus preferably includes means for selecting the particular type of refrigerant to be charged into the refrigerant system from different types of refrigerants. The apparatus stores in a memory data related to density and flow characteristics of each of the refrigerant types and uses the data for the selected refrigerant type when determining the density and volume of refrigerant. Also, the apparatus preferably provides for two different types of charging modes, charge to a set amount and charged to pressure. In the charge to set amount, the amount of refrigerant to be charged into the refrigerant system can be preset and the apparatus will stop the charging of refrigerant into the refrigerant system once that set amount is reached and display on a display the amount of refrigerant charged. In the charge to pressure mode, the apparatus will continuously charge until stopped. The apparatus monitors and displays the pressure of refrigerant in the refrigerant system so that a technician can stop the charging process once the desired pressure is reached. The apparatus will also continuously determine and display the mass amount of refrigerant charged. The apparatus also preferably monitors both the high and low pressure sides of the refrigerant systems and displays these pressure in either pressure units or temperature units.

An apparatus and method of controlling the charging refrigerant from a tank of pressurized refrigerant into a refrigerant system according to this invention monitors the pressure in the pressurized tank. When the rate of pressure decay in the pressurized tank, i.e., the rate at which pressure in the tank is dropping, reaches a predetermined amount, the refrigerant tank is determined to be empty and the charging process is terminated.

A portable, hand carried, apparatus for controlling the charging of refrigerant into a refrigerant system has a manifold to which is mounted a constant flow valve in series between an inlet and an outlet of the manifold. When in use, the manifold inlet is coupled to a source of refrigerant and the manifold outlet is coupled to the refrigerant system. A solenoid valve is mounted to the manifold in series with the constant flow valve between the manifold inlet and outlet. A controller energizes and deenergizes the solenoid valve to open and close it to permit refrigerant to flow through the apparatus into the refrigerant system to charge refrigerant into it and to close the solenoid valve to stop the charging process. The manifold can also be provided with pressure transducer ports to which are mounted pressure transducers. The pressure transducers are coupled to the controller which can then determine the pressures of the refrigerant at the manifold inlet and outlet therefrom.

A mass flowmeter for gaseous fluids has a constant flow valve through which the gaseous fluid flows. The mass amount of gaseous fluid that has flowed through the mass flowmeter is determined by determining the volume of gaseous fluid that has flowed through the mass flowmeter, determining the pressure of the gaseous fluid at the outlet of the constant flow valve and determining the density of the gaseous fluid based on the determined pressure and data related to the density characteristics of the gaseous fluid, the mass amount of gaseous fluid that has flowed through the constant flow valve, and thus through the flowmeter, being determined based on the determined volume and density of the gaseous fluid.

Additional features and advantages of the invention will become apparent to those skilled in the art upon consideration of the following detailed description of a preferred embodiment, exemplifying the best mode of carrying out the invention as presently perceived. The detailed description particularly refers to the accompanying figures in which:

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a perspective view of a control system in accordance with this invention;

FIG. 2 is a schematic of the fluid flow circuit of the control system of FIG. 1;

FIGS. 3A and 3B are top and side perspective views, respectively, of a manifold in which the fluid flow circuit of FIG. 2 is implemented;

FIG. 4 is a block diagram of the electronic circuit of the control system of FIG. 1;

FIG. 5 is a flow chart of a computer program which operates the control system of FIG. 1;

FIG. 6 is a flow chart of the read switches subroutine of the computer program of FIG. 5;

FIG. 7 is a flow chart of the check utilities subroutine of the computer program of FIG. 5;

FIG. 8 is a flow chart of the calculate pressure subroutine of the computer program of FIG.5;

FIG. 9 is a flow chart of the calculate temperature subroutine of the computer program of FIG. 5;

FIGS. 10A-10D are flow charts of the calculate charge subroutine of the computer program of FIG. 5;

FIG. 11 is a flow chart of the convert data for display subroutine of the computer program of FIG. 5; and

FIGS. 12A-12C are schematics of the electronic circuit of FIG. 4.

DETAILED DESCRIPTION OF THE DRAWINGS

While the invention described below is discussed in the context of a control system for charging refrigerant into a refrigerant system, the apparatus and method described can also be used for other gaseous fluids. Thus, the apparatus and method described can be utilized as a mass flowmeter for gaseous fluids using the techniques discussed herein.

Referring to FIG. 1, a control system 10 for controlling the charging of refrigerant into a refrigerant system 12 (FIG. 2) is shown. Control system 10 has a case 14 in which is mounted a keyboard/display 16 which extends through a top surface of case 14. Keyboard display 16 includes a high pressure display 18, a low pressure display 20, a refrigerant selector/display 22, charge amount keys/display 24, temperature/pressure mode selector key 26, stop point key 28, clear key 30, start/hold key 32, on key 34, off key 36, and low battery error indicator 38, out-of-refrigerant error indicator 40, and insufficient pressure drop error indicator 42. A knob 44, which is used to actuate shut-off valve 72 (FIG. 2), is mounted to shaft 73 (FIG. 3) of shut-off valve 72 which extends up from the top surface of case 14. A low pressure port coupling 46, a vacuum/recovery port coupling 48, a refrigerant supply port coupling 50 and a high pressure port coupling 52 extend through the lower side, as oriented in FIG. 1, of case 14. A battery charge light emitting diode (LED) 54, a power jack 56 and a temperature probe jack 58 are mounted in the right side, as oriented in FIG. 1, of case 14.

Case 14 has a handle 60 in which a hook 62 and a hook release lever 64 are mounted. Handle 60 has a slot 61 into which hook 62 can be received and secured by a conventional catch (not shown). Hook release lever 64 is depressed to release hook 62 so that it can be drawn out of slot 61 in handle 60 for use in hanging case 14.

Referring to FIG. 2, control system 10 has a flow control circuit 66 through which refrigerant flows. Flow control circuit 66 is preferably implemented by use of a manifold 200 (FIGS. 3A and 3B), which is mounted in case 14 of control system 10. Referring to FIGS. 2, 3A and 3B, flow control circuit 66, as implemented in manifold 200, has a vacuum recovery port 202 to which is coupled vacuum/recovery port coupling 48, a refrigerant supply port 204 to which is coupled refrigerant supply port coupling 50, a high pressure port 206 to which is coupled high pressure port coupling 52, and a low pressure port 208 to which is coupled low pressure port coupling 46. Flow control circuit 66 also includes a constant flow valve 68, a solenoid valve 70, shut-off valve 72, a tank pressure transducer 74, a low side pressure transducer 76, and a high side pressure transducer 78.

Solenoid valve 70 is mounted in manifold 200 and has an inlet 80 coupled by a passageway 212 in manifold 200 to refrigerant supply port 204. A tank pressure transducer 74 is also mounted in manifold 200 and is coupled by passageway 212 in manifold 200 to refrigerant supply port 204. An outlet 82 of solenoid valve 70 is coupled by a passageway 214 in manifold 200 to an inlet 84 of constant flow valve 68. Constant flow valve 68 is also mounted in manifold 200. An outlet 86 of constant flow valve 68 is coupled by a passageway 216 in manifold 200 to low pressure port 208 and through shut-off valve 72 to vacuum/recovery port 202. Shut-off valve 72 is mounted in manifold 200 in series between vacuum/recovery port 202 and low pressure port 208 and has shaft 73 extending upwardly therefrom. When manifold 200 is mounted in case 14 of control system 10, shaft 73 extends through the top surface of case 14 of control system 10 and knob 44 is affixed to shaft 73. Low side pressure transducer 76 is also coupled by passageway 216 to low pressure port 208. High side pressure transducer 78 is coupled by a passageway 218 in manifold 200 to high pressure port 206.

Referring to FIG. 4, control system 10 has an electronic control circuit 88. Electronic control circuit 88 includes a microcontroller 90 whihch has analog inputs 92, 94, 96, 98. Microcontroller 90 is illustratively a MC68HC705B5P microcontroller manufactured by Motorola, Inc., 6501 William Canon Drive West, Austin, Tex. 78735. Analog inputs 92, 94, 96, 98 are internally multiplexed in microcontroller 90 to an analog/digital converter which is part of microcontroller 90 wherein microcontroller 90 can selectively digitize the analog signals at analog inputs 92, 94, 96, 98. Analog input 92 is coupled to tank pressure transducer 74, analog input 94 is coupled to low side pressure transducer 76, analog input 96 is coupled to high side pressure transducer 78, and analog input 98 is coupled to the temperature probe jack 58 into which a temperature probe 100 can be plugged. Microcontroller 90 also has discrete digital outputs 101 and 103 coupled to a buzzer 102 and solenoid valve 70, respectively. Additionally, microcontroller 90 has address/data inputs/outputs 105 coupled to keyboard/display 16.

Referring to FIGS. 1-4, in use the low pressure port coupling 46 is coupled to a low pressure port 104 of refrigerant system 12 thus coupling low pressure port 208 of fluid control circuit 66 to the low pressure port 104 of refrigerant system 12. High pressure port coupling 52 is coupled to a high side port 106 of refrigerant system 12 thus coupling high pressure port 206 of fluid control circuit 66 to the high side port 106 of refrigerant system 12.

The service technician selects the correct refrigerant type by pressing refrigerant selector key 120 of refrigerant selector/display 22 and the selected refrigerant is displayed on refrigerant displays 122 of refrigerant selector/display 22. The service technician now takes the high and low pressures of refrigerant system 12. Low and high pressure transducers 76, 78, generate analog electrical signals which are proportional to the pressures at the low and high side ports 104, 106, of refrigerant system 12. The analog signals generated by low and high pressure transducers 76, 78, are provided to analog inputs 94, 96 of microcontroller 90. Microcontroller 90 digitizes the low and high pressure signals at its analog inputs 94, 96, determines the low and high pressures from the digitized values, and displays the low and high side pressures of refrigerant system 12 on low and high pressure displays 20, 18, respectively. If temperature probe 100 is inserted in temperature probe jack 58, an analog electrical signal indicative of the temperature is provided at analog input 98 of microcontroller 90. Microcontroller 90 digitizes the temperature signal, determines the temperature sensed by temperature probe 100 from the digitized value, and displays it on low pressure display 20. Low pressure display 20 will display the temperature sensed by temperature probe 100 as long as it is plugged into temperature probe jack 58 and temperature probe 100 must be removed from temperature probe jack 58 for microcontroller 90 to display the low pressure on low pressure display 20.

The low and high pressures can also be displayed in degrees as is conventional when dealing with refrigerant systems. To change between displaying the low and high pressures in pounds per square inch and degrees, the service technician toggles temperature/pressure mode selector key 26. When in the temperature mode, microcontroller 90 looks up in a table for the selected refrigerant the temperature values which correspond to the low and high pressures. Illustratively, microcontroller 90 has a table of such values for each refrigerant that can be selected. Alternatively, it could solve the appropriate mathematical equation, selected based on the selected refrigerant, for the temperature values using the pressures values as variables in the equation.

Prior to charging refrigerant into refrigerant system 12, the service technician may purge it first. To do so, the service technician couples vacuum/recovery port coupling 48, and thus vacuum/recovery port 202 of fluid control circuit 66, to a refrigerant recovery system (not shown). Shut-off valve 72 is then opened by turning knob 44. Refrigerant then flows from refrigerant system 12 out of low pressure port 104 of refrigerant system 12 into low pressure port 208 of control system 10, through shut-off valve 72 and out through vacuum/recovery port 202 into the refrigerant recovery system (not shown). After refrigerant system 12 has been purged, knob 44 is turned to close shut-off valve 72.

Control system 10 can also be used to evacuate refrigerant system 12, which would typically take place after it has been purged. Vacuum/recovery port 48 is coupled to a vacuum pump (not shown). The vacuum pump is turned on and knob 44 again turned to open shut-off valve 72 which draws vacuum on the low pressure side of refrigerant system 12. After refrigerant system 12 has been evacuated, knob 44 is turned to close shut-off valve 72, the vacuum pump turned off and disconnected from vacuum/recovery port 48.

To charge refrigerant into refrigerant system 12 with control system 10, refrigerant supply port coupling 50 is coupled to a pressurized refrigerant supply tank 210 which couples refrigerant supply port 204 of fluid control circuit 66 to refrigerant supply tank 210. Refrigerant supply tank 210 contains the type of refrigerant which the service technician previously selected. The service technician now sets control system 10 to either charge to a desired amount of refrigerant or to charge to pressure, i.e., to charge until the service technician determines that a desired pressure is reached at which time the service technician stops the charging. To set control system 10 to charge to a desired amount of refrigerant, stop point key 28 is pressed so that it is illuminated. When stop point key 28 is illuminated, the previously entered stopping point (desired amount of refrigerant) will be displayed on charge amount keys/display 24 by microcontroller 90. The pounds and ounces increment keys 110, 112, 116, 118, of charge amount keys/display 24 are pressed until the desired amount of refrigerant is displayed on pounds and ounces displays 108, 114, of charge amount keys/display 24.

The stop point key 28 can be pressed to turn it off, in which case microcontroller 90 will display the total amount of refrigerant dispensed on charge amount keys/display 24. Prior to charging, this must be cleared by pressing clear key 30.

Charging is started by pressing start/hold key 32. Microcontroller 90 responds to start/hold key 32 being depressed by energizing solenoid valve 70 to open it. Refrigerant will now flow from the refrigerant supply tank 210 into refrigerant supply port 204 through refrigerant port coupling 50, through solenoid valve 70, constant flow valve 68, out of low pressure port 208 and into the low pressure side of refrigerant system 12 through low pressure port coupling 46 and the low pressure port 104 of refrigerant system 12. Assuming the stop point key 28 is not illuminated, microcontroller 90 will display the amount of refrigerant charged into refrigerant system 12 on charge amount keys/display 24. Microcontroller 90 continuously determines the amount of refrigerant that has been charged into refrigerant system 12. Once the desired amount of refrigerant has been charged into refrigerant system 12, microcontroller 90 deenergizes solenoid valve 70, closing it and shutting off the flow of refrigerant through control system 10, and also energizing buzzer 102. Charging can be stopped by pressing start/hold key 32 which will cause microcontroller 90 to deenergize solenoid valve 70 thus shutting it. Again pressing start/hold key 32 causes control system 10 to resume charging.

To charge to pressure, the desired amount of refrigerant is set to zero. The stop point key 28 is pressed to illuminate it and the clear key 30 pressed to set the desired amount of refrigerant to zero. The stop point key 28 is pressed again and the clear key then pressed to reset the amount of refrigerant charged to zero. The start/hold key 32 is then pressed. Microcontroller 90 energizes solenoid valve 70 to open it and refrigerant begins flowing from the refrigerant supply tank 210 through control system 10 into the refrigerant system 12 through its low side port 104. Again, microcontroller 90 continuously determines the amount of refrigerant charged into refrigerant system 12. The amount of refrigerant charged into refrigerant system 12 will be displayed by microcontroller 90 on charge amount keys/display 24 and will display the low and high pressures of refrigerant system 12 on low and high pressure displays 20, 18, respectively. Charging will continue until start/hold key 32 is pressed again, at which time microcontroller 90 will deenergize solenoid valve 70, closing it. The total amount of refrigerant charged into refrigerant system 12 will be displayed by microcontroller 90 on charge amount keys/display 24 which the technician can then record for billing and inventory purposes.

FIGS. 5-11 are flow charts of the program for microcontroller 90. Referring first to FIG. 5, which shows the program flow for the main routine, an internal counter in microcontroller 90 is set to generate an interrupt every five milliseconds. That is, the internal counter counts clock pulses generated by a clock circuit for microcontroller 90 and generates an interrupt after five milliseconds has elapsed. After the internal counter generates an interrupt, an interrupt counter is incremented. As will be seen, the main routine is on a forty interrupt cycle wherein the various subroutines shown in FIG. 5 are executed once every forty interrupts, but at different points in the forty interrupt cycle. The read switches and check utilities subroutines are executed when the interrupt counter is equal to eight. The calculate pressure, calculate temperature and calculate charge subroutines are executed when the interrupt counter is equal to sixteen. The convert data for display subroutine is executed when the interrupt counter is equal to twenty-four. Data is loaded into display/keyboard 16 when the interrupt counter is equal to thirty-two. When the interrupt counter reaches forty, it is reset.

FIG. 6 is a flow chart showing the read switches subroutine. Upon entry to the entry read switches subroutine, a determination is made as to whether any switch of keyboard/display 16 has been pressed. If not, the read switches routine returns to the main routine. If a switch has been pressed, the appropriate memory in microcontroller 90 is updated. Status bits for the various switches are updated and in the event pounds/ounces keys 110, 112, 116, 118, were pressed, the predetermined amount of refrigerant to be charged into refrigerant system 12 is incremented or decremented, as the case may be. Thereafter, the read switches subroutine returns to the main routine.

Referring to FIG. 7, the checks utilities subroutine is described. Upon entry to the check utilities subroutine, a determination is first made as to whether the five volt power supply voltage is too low. If so, microcontroller 90 is put to sleep, i.e., powered down to a quiescent state. If not, an internal beep counter in microcontroller 90 is checked to see if the beep count is zero. If it is, the subroutine branches to where it checks to determine if there has been a ten minute timeout. If not, the beep count is checked to see if it is odd. If not, buzzer 102 is turned off. If the beep count is odd, buzzer 102 (FIG. 4) is turned on. After buzzer 102 has been turned on or off as the case may be, the beep count is decremented. The subroutine next checks for a ten minute timeout, that is, that the pressure in the low pressure side of refrigerant system 12 has not changed or a switch of keyboard/display 16 has not been pressed for ten minutes. If so, microcontroller 90 is put to sleep. Next, the check utilities checks to determine if refrigerant supply tank 210 (FIG. 2) is empty. It does so by determining whether the pressure in the refrigerant supply tank 210 has dropped at or above a predetermined rate. If so, the refrigerant supply tank 210 is empty. In other words, if the rate of pressure decay in the refrigerant supply tank reaches a predetermined level, this is an indication that the refrigerant supply tank is empty. Applicants have determined that a rate of pressure decay about 10 psi/minute, or greater, works well as an indication that refrigerant tank 210 is empty. If the refrigerant supply tank 210 is determined to be empty, a refrigerant tank empty flag is set in the memory of microcontroller 90. This will cause microcontroller 90 to illuminate tank empty error indicator 40 at the appropriate time. After checking to determine if the refrigerant supply tank 210 is empty, the check utilities sets or resets error indicators 38, 40, 42, based on the status of their respective error flags in the memory of microcontroller 90. If refrigerant tank empty error indicator 40 is set or illuminated by microcontroller 90, or insufficient pressure drop pressure drop error indicator 42 is set or illuminated, the charging process is also terminated. The check utilities subroutine then returns to the main routine.

Referring to FIG. 8, the calculate pressures subroutine is described. The calculate pressures subroutine determines the pressures in the high and low sides of refrigerant system 12. To do so, microcontroller 90 reads its internal A/D converters to which pressure transducers 76, 78 are coupled. That is, microcontroller 90 digitizes the analog signals at its analog inputs 94, 96 to which pressure transducers 76, 78 are respectively coupled. The internal analog/digital converter of microcontroller 90 is autozeroed if necessary, and the digitized values digitally filtered to remove noise. Next, the digitized values are scaled as appropriate for English or Metric. Jumper J9 (FIG. 12A) determines whether control system 10 will display in English or Metric units. The digitized pressure values are saved in microcontroller 90's memory for subsequent display. The pressure of the refrigerant supply tank 210 coupled to refrigerant supply port 204 (FIGS. 2 and 3) is next read by microcontroller 90 digitizing the analog signal at its analog input 92 to which tank pressure transducer 74 is coupled. The tank pressure is then compared to the low side pressure in refrigerant system 12. If it is not at least twenty p.s.i. greater than the low side pressure in refrigerant system 12, the low delta pressure or insufficient pressure drop error flag is set. (In order for constant flow valve 68 to work properly, there must be at least a twenty p.s.i. drop across it.) This will cause error indicator 42 to be illuminated by the check utilities subroutine. The calculate pressure subroutine then returns to the main routine.

Turning now to FIG. 9, the calculate temperatures subroutine is described. Upon entry to the subroutine, the type of refrigerant selected by the operator is checked and the calculate temperature subroutine selects the appropriate routine for the selected refrigerant type. Each refrigerant type has a routine which includes a look-up table stored in the memory of microcontroller 90 in which temperatures corresponding to pressures in ten degree increments are stored. As has been discussed previously, pressures in refrigerant systems are often expressed in terms of temperature and for each type of refrigerant there exist known temperature/pressure correlation tables which provided the source of the data in the look-up tables. Such tables can be found in standard reference works such as the American Society of Heating, Refrigerating, and Air Conditioning Engineers, Handbook of Fundamentals, (1972). Next, the closest entries in the look up table to the low and high side pressures are found and the temperatures in the look up table corresponding to those entries then found. Since the look up table is in ten degree increments, a pressure will usually fall between two entries in the look up table. Therefore, the temperature corresponding to the low side pressure must be interpolated from the two entries in the look up table that the low side pressure falls between and the temperature corresponding to the high side pressure must be interpolated from the two entries in the look up table that the high side pressure falls between as indicated by the interpolate temperatures between two pressure values step. The high and low side temperatures are then saved. Next, the calculate temperature subroutine checks to see if temperature probe 100 is inserted in temperature probe jack 58. If it is, the subroutine saves the probe temperature and then returns to the main routine. If temperature probe 100 is not inserted in temperature probe jack 58, the calculate temperature subroutine returns to the main routine.

Turning to FIGS. 10A-10D, the calculate charge subroutine is described. FIG. 10A is a flow chart showing an overview of the steps in the calculate charge subroutine which are described in more detail in FIGS. 10B-10D. First, the offset for the particular refrigerant type that has been selected is set. Each refrigerant type that can be selected has a table containing the charge constants for that refrigerant type that are used in calculating the charge. These constants are taken from standard reference works such as the ASHRE Handbook referenced above. As shown in Table 1, each table has four bytes.

(The flow rate constant is multiplied by 256 to provide whole numbers for use in the calculations described below.) Illustratively, five refrigerant types can be selected, R12, R22, R500, R502, and R134a. As shown in FIG. 10B, the offsets are set to zero, four, eight, twelve, and sixteen when the refrigerant types are R12, R22, R500, R502, and R134a, respectively. Table 2 is the table of charge constants for these five refrigerants, given as decimal numbers.

After the offset for the selected refrigerant has been set, the density of the refrigerant is calculated using the equation DENSITY=MX+B

where M is the low side pressure of the refrigerant system 12 as determined by control system 10, X is the density curve slope for the selected refrigerant type taken from that refrigerant's table, and B is the density curve intercept taken from that refrigerant's table. As shown in more detail is FIG. 10C, the density is calculated by first setting a temporary value equal to the density curve slope value from the refrigerant's table (offset+0 table location) times the low side pressure. This value is then divided by 256. (The offset+0 table location ends up being the high order byte of a two byte word that microcontroller 90 uses as the multiplicand in the equation resulting in a product which is 256 times too high.) This value is then negated and the density calculated by adding to it the density curve slope intercept value from the refrigerant's table (offset+1 and offset+2 table locations).

Returning to FIG. 10A, after the density of the refrigerant has been determined, the amount of incremental charge of refrigerant that has flowed through constant flow valve 68 (FIG. 2) for a 0.2 second interval is determined. As described in more detail in FIG. 10D, the incremental charge amount is determined by multiplying the refrigerant's flow rate constant from the table for the selected refrigerant (offset+3 table location) by the density for the refrigerant which was just calculated and dividing this value by 256.

Referring back to FIG. 10A, after the incremental charge amount is calculated, it is added to the charge total. The charge total is then checked to see if it exceeds 10,000. If it does, the total ounces of refrigerant or freon charged is incremented and the charge total is decremented by 10,000. The charge subroutine then returns to the main routine as it does if the charge total is less than 10,000.

Referring to FIG. 11, the convert data for display subroutine is described. First, the data to be displayed is converted to BCD (binary coded decimal format) with sign format and the BCD format then converted to seven segment format. The subroutine then returns to the main routine. As discussed, when the internal interrupt counter is equal to thirty-two, the data which has been converted for the display/keyboard 16.

FIGS. 12A-12C are schematics of electronic control circuit 88 (FIG. 4) for the control system 10.

Although the invention has been described in detail with reference to certain preferred embodiments, materials and specific examples, variations and modifications exist within the scope and spirit of the invention as described and as defined in the following claims.