CA1337079C - Apparatus for monitoring a gaseous atmosphere - Google Patents

Apparatus for monitoring a gaseous atmosphere

Info

Publication number
CA1337079C
CA1337079C CA000616865A CA616865A CA1337079C CA 1337079 C CA1337079 C CA 1337079C CA 000616865 A CA000616865 A CA 000616865A CA 616865 A CA616865 A CA 616865A CA 1337079 C CA1337079 C CA 1337079C
Authority
CA
Canada
Prior art keywords
sensor
gain
gas
halogen
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CA000616865A
Other languages
French (fr)
Inventor
William J. Ii Williams
Daniel M. Thorsen
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sentech Corp
Original Assignee
Sentech Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US07/134,293 external-priority patent/US4910463A/en
Application filed by Sentech Corp filed Critical Sentech Corp
Priority to CA000616865A priority Critical patent/CA1337079C/en
Application granted granted Critical
Publication of CA1337079C publication Critical patent/CA1337079C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

There is disclosed apparatus for monitoring the concentration levels of halogen gas in a gaseous atmosphere as confined in an enclosure over a relatively extended period of time. Such monitoring apparatus includes a sensor including first and second electrodes disposed to define a space therebetween through which the gaseous atmosphere flows and a voltage source for applying a voltage between the first and second electrodes whereby an ionization current flows to the first electrode. A control mechanism illustratively in the form of a programmed microcontroller monitors the ionization current collected by the first electrode as the output signal of the sensor, to determine an increase therein as would be indicative of a halogen leak. Upon determining an increase of the sensor output signal above a predetermined difference, the control mechanism removes the energization from the halogen sensor whereby the ionization current is terminated and the life of the sensor extended. The control mechanism further causes an initial reading of the sensor signal to be taken and to be stored, whereby subsequent sensor readings may be compensated by subtracting the stored value therefrom to provide a compensated output indicative of the increased halogen level with respect to the initial background reading thereof. The relatively small halogen sensor output is amplified by a variable gain amplifier, whose gain setting is automatically set over a large range of sensitivities.

Description

1 337079 74711-lD

Field of the Invention This invention relates to halogen gas monitors and, in particular, to apparatus including halogen gas sensors for processing the sensor output signal to determine the existence of a halogen leak with greater reliability over an extended period of time.
This application is a division of our Canadian patent application Serial No. 586,152 filed December 16, 1988.
Description of the Prior Art Sensors such as that described in U. S. Patent No.
2,550,498 of Rice take the form of an electrical discharge device for receiving a sample of an atmosphere suspected of containing a concentration of a substance to be detected and comprising cathode and anode elements for producing and collecting ions. The collected ions produce from one of these electrodes a current which varies with the concentration of the substance to be detected.
One common use of such electrical discharge devices is as sensors within halogen leak detectors to detect the leakage of halogens and their gas compounds. In order to detect widely varying levels of concentration of such substances, the prior art halogen leak detectors have included provisions for adjusting the sensitivity of the sensor in order to extend the useful range.
Such detectors have ranges of sensitivity which limit their use to the detection of leak rates within a limited span of leak rates. Thus, a halogen leak detector having a sensitivity - 1337(~79 adapted for measuring relatively large leak rates of halogen compounds on the order of 10 3 cc./sec. into a particular region, could be altered only with difficulty to increase its sensitivity so as to detect accurately leak rates of halogen compounds on the 10 9 cc./sec. into the same region. Typically, halogen leak detectors have marginal stability when operating near the upper limits of their sensitivity as evidenced by fluctuations in their output readings.
Many prior art halogen leak detectors are portable and are carried to particular site where a leak of a relatively high level of concentration of halogens was suspected to be present.
~owever, applications have arisen such as in the refrigeration industry where it is desired to monitor low rate halogen leaks into relatively large enclosures. Typically, the levels of 1~ halogen concentration in such relatively large enclosures are quite small, requiring extremely sensitive and stable leak detectors.
U.S. Patent No. 3,144,600 of Roberts discloses a halogen leak detector comprising an electrical discharge device as its sensor and employing an amplifier of variable gain for amplifying the output current of the sensor. In particular, the gain of the amplifier is set by a multi-range control switch to adapt the sensor for sensing corresponding multiple ranges of level~ of halogen concentration. In addition, the collected current as produced by the sensor in the presence of clean air is compensated by applying an adjustable zeroing voltage of opposite ._ poiarity to the output current of the sensor. ~ore particularly, the magnitude of the zeroing voltage is adjusted over a range sufficient to null the sensor output even when it is operating in its highest range of sensitivity, i.e. when the multi-range S control switch is adjusted tO impart the least degree of attenuation so as to sense relatively small concentrations of halogen compounds.
U.S. Patents 2,996,661 of Roberts discloses the adjustment of leak detectors for varying levels of concentration by controlling the flow of the atmosphere to the detector through use of a variable orifice. ~.S. Patent 3,875,q99 of Roberts discloses the use of such a variable orifice in combination with a combined multi-range switch as would affect the gain of a sensor output amplifier and also would variably set a selected orifice to permit a corresponding flow to the sensor.
U.S. Patent 3,065,411 of ~oberts further disclose~ a halogen leak detector capable of indicating both the current level and the relative magnitude of the change in the detected concentration of halogen compounds. A first circuit is responsive to the collected current to be set into damped oscillation by a change of the collected current. The damped oscillation is in turn applied to a control circuit having a threshold level. Oscillation above that threshold level will dis~ose the control circuit to its conducting condition.
Further, the first circuit inc}udes means for changing the amplitude of the oscillations in order to acc: ~date sensing 1 33707q haiogen compounds of varying concentrations.
U.S. Patent No. 3,076,139 of Roberts relates to a halogen leak detector particularly adapted to sense changins concentrations of halogen compounds, as well as to respond only to sudden changes in the level of halogen concentration. An RC
coupling circuit is connected between a sensor as described above and an amplifier, which drives a leak indicating means. The RC
coupling circuit repeatedly discharges its input signal, zeroing in effect the sensor and permitting a new sensing of the halogen compounds. A multi-position switch i5 provided to connect a selected capacitor from a plurality of available capacitors to form a corresponding RC coupling circuit for each of the plurality of ranges of halogen concentration to be sensed.
U.S. Patent No. 3,363,451 of Roberts discloses a lS halogen leak detector wherein a capacitor is charged by a variable biasing circuit and a current derived from its sensor to the level of the detected halogen concentration. The capacitor is in turn connected to a control circuit having a threshold level, which may be exceeded by the output of the charged capacitor to energize a leak indicating means. The variable biasing circuit includes a potentiometer which is adjusted in accordance with the desired range of halogen concentration to be detected. A further sensitivity switch i5 provided to couple a battery to extend the range of balance control of the potentiometer in order to accommodate higher levels of current and thus higher levels of halogen concentration.

As evident from the above discus~ion of the prior art, ~uch haloqen leak detectors were primarily portable devices not particularly adapted for extended monitoring application~ of a single environment, where it would be particularly de~ired to sense relatively low levels of halogen concentration. It was contemplated that ~uch portable detectors would be used with an operator continually pre~ent to set the desired range of halogen concentration to be detected by manipulating a multi-range switch, while observing a suitable leak det~cting means such as a meter. When a suitable mid-range indication was provided on the m~ter, the operator knew that the correct switch setting had been achieved. Such a portable haloqen leak detector i~ described in a service manual entitled ~The Ferret~ Leak Detector (type ~25)~
published by General Electric. The ~25 leak detector uses an ~-integrator to continually eliminate background steady-state signals fro~ its sensor. In an application of extended use of a halogen leak detector as i5 contemplated by this invention, such an integrator type of circuitry would continually zero any small incremental leaks in a particular enclo~ure and would not be able to sense the accumulation of ~uch small leaks.
The halog~n ~n~ors in the form of an electrical discharg~ devtce are r~lativ~ly eYpensive. The life of such sensors is relatively limited re~uiring frequent replacement.
EYperi~nce with that halogen sen~or manufactured by Yokagowa Corp. under model No. 6614RllGl has ~hown it to have a life of approximately 1500-1800 hours. The collector/cathode elements of 1 33707~

such electrical discharge devices are coated with rare earth metals and tend to deteriorate rapidly during sustained collec~ion of the ion stream as occurs in the presence of halogen gases. In applications wherein such a halogen sensor and its leak detector are used to monitor halogen leaks within a given enclosure for relatively long periods of time, a halogen leak may occur and is accordingly sensed by the halogen sensor for a relatively long period of time until an operator may intervene to re-set, re-zero or otherwise disable the halogen sensor. During such a relatively long period, the collector/cathode element of the sensor is continually bombarded by the increasing level of ions due to the presence of the halogen. Such extended use quickens the deterioration of the collector/cathode elements and therefore the life of such halogen sensors.

SUMMARY OP T~E INVENTION
It is therefore an object of this invention to provide a new and improved halogen monitorinq apparatus as is capable of automatic operation without operator intervention, thus permitting thi~ apparatus to be used unattended to monitor halogen leaks in a particular enclosure for extended periods of time.
It is a further object of this invention to provide a new and improved halogen monitoring apparatus for the sensinq of halogen leaks in which the life of its halogen sensor is significantly extended.

-1 337079 ~ ~
.

It is another object of this invention to provide a new and improved regulating circuit for a halogen sensor, which is capable of compensating for residual levels of halogen in a particular enclosure.
s It is a still further object of this invention ~o provide a new and improved halogen monitoring apparatus ~hich is capable of initially taking a reading of the residual or initial level of haloqen within a particular enclosure and of compensating or subtracting that level from further halogen measurements.
It i5 a still further object of this invention to provide a new and improved halogen monitoring apparatus which is capable of automatically setting the sensitivity level of its sensor in a selected range from a plurality of such ranges.
It is another object of thi~ invention to provide a new and improved halogen monitoring apparatus which is capable of providing a leak manifestation indicative of a selected increase in the level of halogen concentration.
In accordance with these and other objects of this 2~ invention, there is disclosed halogen monitoring apparatus including a halogen sensor of the type described with first and second electrodes disposed to define a space therebetween through which a gaseous atmosphere to be monitored flows, and a voltage source coupled to apply a voltage across the first and second electrodes, whereby an ionization current flows between the electrodes. The life of the sensor is extended by a control 1 3 3 7 0 7 "

circuit as illustratively includes a programmed microcontroller for sensing an increase in the ionization current and, if greater than a selected level, for causing the voltage source to remove or reduce the voltage therebetween to terminate the ionization S current flow and thus extend the life of the halogen sensor.
In a further aspect of this invention, the halogen monitoring apparatus includes a memory and a control mechanism illustratively in the form of a programmed microcon~roller for initially taking a first reading of the sensor signal as is indicative of a background or steady state level of the halogen gas within an enclosure to be monitored and for storing that background level signal in the memory to be used as a compensating signal to be subtracted from urther readings of the sensor signal to provide a compensated value indicative of the increase in the level of halogen concentration within the monitored enclosure.
In z still further aspect of this invention, the amplitude of the sensor signal is relatively low and is amplified by a variable gain sensor amplifier. The gain of the sensor amplifier is set by initially setting the gain to a relatively low value and thereafter increasing it until the output of the amplifier reaches a predetermined level and, thereafter, decreasing the amplifier gain.
In an illustrative embodiment of this invention wherein the control of the halogen monitoring apparatus is carried out by a programmed microcontroller, the apparatus includes an analog-_ 1 3 3 7 0 7 9 74711-lD
-to-digital (A/D) converter coupled to receive the output of the sensor amplifier. When the A/D converter overflows, the gain of the sensor amplifier is reduced a discrete amount or to the next lower setting, whereby the output of the A/D converter is set at a mid-level output.
In a further aspect of this invention, the halogen monitoring apparatus provides an indication of a halogen leak by determining an increase in the level of halogen concentration.
In particular, an increase in the gain of the sensor amplifier as well as an increase in the sensor signal are determined and if greater than a predetermined difference or increase, there is an indication of a leak. The monitoring apparatus may be set to measure a selected one of a range of halogen increases or differences, whereby the sensitivity of the monitoring apparatus may be correspondingly set.
Brief Description of the Drawings These and other objects and advantages of the present invention will become apparent by referring to the following detailed description and accompanying drawings, in which:
Figure 1 is a diagrammatic drawing of a halogen monitoring apparatus in accordance with teachings of this invention;
Figures 2A to 2D, when assembled as shown in Figure 2E, are detailed schematic drawings of the halogen monitoring apparatus as shown in Figure l;

1 33707~ ~

- PIGS. 3A to 3F are flow diagrams of the program executed by that microcontroller as shown in FIG. 2D.
FIGS. 4A and 4B are diagrammatic drawings respectively of a further, preferred embodiment of the halogen sensor and its related temperature regulation circuit, and of the halogen monitoring apparatus a~ would include a programmed microcontroller and variable gain amplifier; and ~ IGS. 5A to 5C are flow diagrams of the program executed by that microcontroller as shown in FIG. 43.

DESCRIPTION OF T~E PREFERRED EMBODIMENT
With reference to the drawings and in particular to Fig. 1, there is shown a halogen monitoring apparatus 10, particularly adapted to monitor the atmosphere within an enclosure to detect the occurrence of halogen leaks in accordance with the teachings of this invention. The monitoring apparatus 10 of this invention differq frcm the prior art which is typically a portable device as is brought to a particular area where a leak is suspected. In an illustrative use of this invention, the halogen monitoring apparatus 10 is disposed in an enclosure where there are disposed a number of compressors of the type as used for large, commercial refrigerators. Such compre~sors leak at low rates their refriqerant which comprises halogens or compounds thereof. If the leaks continue over a long period of time, a cons$dera~1e amount of the refrigerant will be lost. The refrigerant is expensive, and there may be also - 1 33707~ -spoilage of the refrigerated product, e.g., food. The halogen --monitoring apparatus 10 of this invention is particularly adapted to monitor such environments and, in particular, for sensing relatively small concentrations of, or leak rates of halogen S gases. If the source of the halogen leaks, e.g., compressors, is disposed in an enclosure with a relatively efficient flow of air therethrough, as would tend to dissipate the leaked halogen, the halogen monitoring apparatus 10 would in effect monitor the leak rate. On the other hand, if the enclosure is sealed, the leaked halogen would tend to build up and the halogen monitoring apparatus 10 would tend to provlde an indication of the accumulated concentration of halogen leaked into such a sealed enclosure. As will be explained, the halogen monitoring apparatus 10 is capable for operation over relatively long periods of time, if not continuous operation, whereby halogen leaks are immediately detected so that appropriate remedial steps may be taken quickly to repair immediately the leaking compressors.
As shown in FIG. 1, the haloqen monitoring apparatus 10 2Q includes a heater regulator 40, which in turn comprises a halogen sensor 12, adapted and operated to detect halogen leaks in accordance with the teachings of this invention. The halogen sensor 12 is shown in detail in Fig. 2B as including a heater/anode element 13 and a collector/cathode element 14 spaced therefrom and enclosed by an electrical shield 15. In an illustrative embodiment of this invention, the halogen sensor 12 1337~79 ' ~ ~

may take the form of that sensor manufactured by Yokagowa Corp.
under their designation 6614KllGl. The collector/cathode element 14 thereof illustratively takes the form of a rod suspended in a powdered-alkali metal core housed in a concentric platinum tube.
The tube and rod are connected by a welded platinum strip, thus keeping rod and tube at the same potential. The heater/anode element 13 may illustratively take the form of a coiled-wire heater wrapped on four ceramic posts and disposed about the aforementioned rod/tube assembly. Illustratively, a voltage in the order of 180 volts i5 imposed between the heater/anode element 13 and its collector/cathode element 14. Approximately 10 volts is applied across the heater/anode element 13, where~y current in the order of 4 amps is directed therethrough and the temperature of the seQsor 12 is raised to approximately 900 c, lS causing a small current to flow in the rod of the collector/cathode element 14. This small current flow, which is ~-due to ionization of the core material, increases linearly to a useful limit proportioned to the level of halogen in the gas or gaseous atmosphere passing through the sensor 12. Beyond this limit, the increase in current is extremely non-linear and exce~sive increases in halogen in the circulated atmosphere only serve to shorten the life of the halogen sensor 12. The current collected in the collector/cathode element 14 and appearing as an output signal of the halogen sensor 12 on a sensed current line 68 i9 rather small ~eing in the order of 1-100 ~A.
- Referring now to Fig. 1, the collected current in the - 1 33707q ~
~ , . :
coilector/cathode element 14 ~see ~ig. 2B) provides the output signal of the halogen sensor 12 (and its heater regulator 40) and is applied via the sensed current line 68 to a sensor amplifier 74, which amplifies the sensor signal and applies same via an S output line 58 to a sample and hold circuit 56. In turn, the sensor signal in an analog form is applied to an analog-to-digital (A/D) converter 54, which converts and applies the digital sensor signal to the microcontroller 62. The gain of the sensor amplifier 74 may be varied by an automatic gain setting circuit 70 and, in particular, set at a selected one of a plurality of gain or tap settings, corresponding to various ranges of sensitivity of the sensor 12. As illustrated in Pig.
1, the gain setting of the circuit 70 is controlled by the programmed microcontroller 62.
AS shown in Fig. 1, power is supplied to the heater regulator circuit 40 and its sensor 12 by a power supply 20. In turn, a typically available 120 VAC is applied to a surge protection and line filtering circuit 16, which in turn energizes the power supply 20. The various operations and functions of the 2-0 halogen monitoring apparatus 10 are controlled by a programmed microcontroller 62, the program being illustrated in Figs. 3A to 3P. In particular, the programmed microcontroller 62 senses an output from the sensor 12 indicative of the presence of a certain level of halogen gas. ~hen a halogen leak has been detected, the microcontroller 62 closes a power control switch 24 to thereby shortout-the 180 volts provided by the power supply 20 and to 1 337079 " ;~;

remove the collector/anode supply voltage from the sensor 12. As will be erplained in detail later, the removal of the collector/anode supply voltage from the sensor 12 prevents the rapid deterioration of its collector/cathode element 14 due to the ion bombardment that occur~ in the presence of halogens, whereby the life of the sensor 12 is significantly prolonged. ~s a result, the halogen monitoring apparatus 10 is capable of continuously monitoring halogen leaks within the enclosure.
Further, the current drawn through the heater/anode element 13 of the sensor 12 is applied as an analog signal to a heater current analog-to-digital (A/D) converter 44, which converts this analoq signal to a corresponding digital signal to be applied to the microcontroller 62.
In a further aspect of this invention as ~hown in Pig.
lS 1, an automatic zeroing circuit 78 i5 provided to initially take a reading of the sensor 12 as would be indicative of a steady state or background level of the halogen in an enclosure to be monitored. The background sensor signal is stored in a non-volatile memory within the circuit 78 and is subtracted, as will be explained later, from the current sensor signal to provide a compensated signal as indicative of an increase of the current halogen level over the original background level thereof.
Further, the microcontroller 62 is coupled to a transceiver 60 and adapts the microcontroller 62 for the transmission and 2~ reception via a serial c~ lnication port 86 of data message~ to and from a main controller (not shown). In this fashion, a lq -~ 1 337079 plurality of the halogen monitoring apparatus 10 may be employed at a plurality of remotely disposed refriserators to detect halogen gas leakage from their compressors and to report such leakage to the main controller.
As shown in FIG. 2A, energization in the illustrative form of 120 volts AC is applied to terminals TB 11 and 12 of the surge prote~tion and line filtering circuit 16. The output of circuit 16 is applied to the power supply 20 including a transformer 18. In particular, the output of circuit 16 is applied to a primary winding 18a of the transformer 18, being inductively coupled to each of a plurality of secondary windings 18b, 18c, 18d and lae. The output of the secondary winding 18b is full wave rectified to provide 10 volts DC to the heater regulator 40 as shown in Fig. 2B, ~hereby the current pasaing through the heater/anode element 13 and therefore its temperature may be accurately regulated. See U. S. Patent 3,912,967 of Longenecker. Briefly, the resistance presented by the heater/anode element 13 is sensed and is used to ~electively close the transistor Q3 when the resistance of the element 13 is ?o less than a desired value and to open the transistor Q3 when the resistance exceeds this value a~ would establish the desired temperature of the halogen sensor 12.
The output of the secondary winding 18c of the power supply 20 is half wave rectified and is applied to the power control switch 24, which controls the application of the ~ , 1 337(~7q reiatively high voltage, e.g., 180 volts, between the -heater/anode element 13 and the collector/cathode element 14 of the halogen sensor 12 and, in particular, the voltage applied to the point of interconnection of the resistors R21 and R22 of the heater regulator circuit 40. As will be explained, a control signal is developed by the microcontroller 62 as shown in ~ig. 2D
and applied via control line 25 to a sensor collector/anode over current protection circuit 27, which in turn provides an output to the power control switch 24 and in particular to its transistor Ql, which as will be eYplained removes (short circuit~) the high voltage as applied between the elements 13 and 14 of the halogen sensor 12. Briefly, the microcontroller 62 under the control of its program as shown in Figures 3A to 3P, responds to an output on the sensed current line 68 to render the transistor ~1 conductive, whereby the high voltage is removed and the life of the halogen sensor 12 eYtended.
The voltage appearing on the secondary winding 18d of power supply 20 is applied to a bro~n-out protection circuit 30, which prohibits the microcontroller 62 from initiating the execution of its program if the 120 volts AC applied to the surge protection and line filtering circuit 16 shoùld decrease as under brown out conditions. Almost immediately after application of 120 volts AC to the surge protection and line filtering circuit 16, a voltage comparator 28a responds to the 2.5 volts on its inverting input pin 8 a5 derived from the voltage reference circuit 22, whereby the open collector output of the voltage 1 337079 ~

. , comparator 28a is forced to ground, which is turn forces the RESE~ pin 4 of the microcontroller 62 to reset until the voltage appearing at the point of interconnection between resistors Rl4 and Rl5 rises to at least 7.5 volt~. At that point, the voltaqe at the non-inverting input of the voltaqe comparator 28a exceeds the 2.5 volts at the inverting terminal of the voltage comparator 28a, and the open collector output switcheq from being grounded to a floating output, which is pulled up to 5 volts via re~istor R18, thus forcing the RESET pin of the microcontroller 62 high, which hence initiates the microcontroller 62 into executing its instructions.
As shown in FIG. 2A, a RESET circuit 32 is provided to ensure that the microcontroller 62 is initially RESET when power first comes on. As will be eYplained, a watchdog circuit 34 i5 provided to prevent the RESET circuit 32 from further preventing the microcontroller 62 from being RESET. The watchdog circu-t 34 in the form of a voltage comparator 28c is coupled to pin 8 of the microcontroller 62 to monitor the proper execution of the program by the microcontroller 62. As long as the proqram continues to be eYecuted properly by the microcontroller 62, its RD pin 8 regularly applies a stroke pulse signal to the non-inverting input of the voltage comparator 28c providing 0 output pulqe~ which prevent microcontroller 62 from being RESET. The output of the voltage comparator 28c is in turn coupled to a RESET circuit 32 and in particular to the point of interconnection of a capacitor C14 and a resistor R32 which form 1 337079 ~ ~

a ~iming circuit 36. The timing circuit 36 has a time con~tant of 47 msecs., and the voltage across the capacitor C14 is applied to the inverting input of a voltage comparator 28b. A voltage divider comprised of the resistors R29 and R30 applies 1/2 of the output of the 5 volt regulator Q5 to the non-inverting input of the voltage comparator 28b as a reference level for the reset circuit 32. Approximately 32 msecs. after power is initially applied to the surge protection and line filtering circuit 16, the capacitor C14 is charged to a level exceeding that of the reference voltage divider, whereby the output of the voltage comparator 28b would be forced to ground, and hence cause a reset of the microcontroller 62. After the microcontroller 62 has been initially reset upon power-up and has started to execute its program, the microcontroller 62 outputs the strobe pulse from the RD pin 8 indicating that the program is being properly executed by the microcontroller 62. In particular, the strobe pulse regularly discharges the capacitor C14 at least every 32 msecs., thereby preventing the reset circuit 32 from resetting the microcontroller 62 while its program is being properly eYecuted.
As eYplained above, the output of the halogen sensor 12 is responsive to the ions collected by the collector/cathode element 14 and is applied via the sensed current line 68 to a variable high gain amplifier comprising an automatic gain setting circuit 70 and the sensor amplifier 74. A high gain amplifier is required because the output current of the halogen sensor 12 is relatively small in the order of 1-100 mamps. In particular and referring now to Pig. 2C, the sensor output i~ applied to an `
operational amplifier 76a whose output is in turn applied to a second operational ampliier 76b. A feedback circuit as would control the gain of the operational amplifier 76a is formed by S the automatic gain setting circuit setting 70, which takes the form of an analog multiplexer 72, using the generic industry standard designation 40Sl. As will be explained later, the analog multiplexer 72 operates under the control of the microcontroller 62 to short out a selected portion of a voltage divider comprised of resistors R43 to RS0 to thereby set the gain of the operational amplifier 76a. By so adiusting the gain of the operational amplifier 76a, various ranges of current levels of the halogen sensor 12 and thereby various ranges of halogen compound densities may be detected and accurately measured. The selectively amplified output of the operational amplifier 76a is applied further to the operational amplifier 76b to provide t~e output of the sensor amplifier 74 on input line 58. The output from the amplifier circuit 74 corresponds to ranges of halogen leaks of 1 x 10 4, 1 x 10 5, 1 x 10 6, and 1 x 10 7 cc/sec corresponding respectively to the tap ~ettings 7 and 6, S and 4, 3 and 2, and 1 and 0 of the analog multiplexor 72 as selected under the control of the microcontroller 62. In this embodiment, each range corresponds to two tap settinqs. It is now apparent that the halogen monitoring apparatus 10 differs from the prior art in that continued monitoring by an operator to select the size of the halogen leak to be detected by actuating a mechanical 1 33707~
, ro~ary switch to select the various gains of its sensor amplifier circuit is no longer needed in that this apparatus 10 employs an automatic gain ~etting circuit 70 under the control of the microcontroller 62.
S The automatic zeroing circuit 78 is incorporated into the halogen monitoring apparatus 10 to eliminate those steady-state signals from the halogen sensor 12 as may be due to the operation of the sensor 12 itself or to the presence of residual or backqround amounts of halogen compounds in the enclosure being monitored. In a contemplated application of the halogen monitorin~ apparatus 10 where it wou}d be used to continuously monitor halogen leaks within an enclosure for relatively prolonged periods of time, the automatic zeroing circuit 78 under the control of the microcontroller 62 measures the level of the background steady-state signal as originate from the halogen sensor 12 and serves to store and continuously subtract that level from the halogen sensor output signal as applied to the ~ensed current line 68. In particular, the automatic zeroing circuit 78 includes an electrically erasable digitally controlled potentiometer (EEPOT) 80 such as that manufactured by XICOR Inc. under their model number X9103P. The EEPOT 80 comprises a non-volatile memory having an extended memory life, e.g., 100 years, for storing a signal indicative of the position of its wiper arm as corresponds to the initially measured steady-state signal of the halogen sen~or 12. That zeroing output is applied via an operational amplifier 82 to be -, added in series with the halogen sensor output to the noninverting input of the operational amplifie~ 76a.
Refer,ing now to Fiq. 2D, a dipswitch 64 is connected to the inputs DB0 to DB7 of the microcontroller 62 and serves to provide operator input thereto. In particular, a run/test switch 6 of the dipswitch 64 permits the microcontroller 62 to operate in a selected one of a TEST or RUN mode. Initially, the operator sets switch 6 to operate the apparatus 10 in its TEST mode, wherein the halogen monitoring apparatus 10 takes an initial measurement of the background level signal outputted by the halogen sensor 12 and, if the background halogen level is reasonably low (no leak present), the operator changes the position of ~witch 6 of the dipswitch 64, whereby the microcontroller 62 causes the apparatus 10 to operate in its normal or RUN mode. In the RUN mode, the background signal is stored in the EEPOT 80 and i5 subtracted from the current output signal of the halogen sensor 12. Thus, the microcontroller 62 will continuously, in its run mode, zero out the current signal from the halogen ~en~or 12 with the stored background steady-state signal as stored in the EEPOT 80 until recalibration becomes necessary as would occur with the installation of the apparatus 10 and its halogen sensor 12 in a new enclosure or the replacement of the halogen sensor 12.
The analog output of the sensor amplifier 74 is applied via the input line 58 to an IN pin 3 of the sample and hold circuit 56. In turn, the analog ou~put from its OUT pin 5 is 1 337079 ~

applied to an input A0 pin of the A/D converter 54, which ~:
converts the inputted analog signal as indicative of the variably amplified halogen sensor output into a corresponding digital signal and applies this digital signal from its output S0 pin 5 to the Tl pin 39 of the microcontroller 62.
The A/D converter 54 is a 4-channel input device and also serves to monitor the power supply levels of the 180 volts, 5 volts and either of the +12 or -lS volts as are outputted from the power supply 20. In a recognized fashion, the microcontroller 62 applies to the CS pin 6 of the A/D converter 54 a channel select signal, whereby a selected one of the four input signals as are applied to the A0 to A3 pins is converted to its digital signal and is input to the microcontroller 62.
In normal operation of the halogen sensor 12, the current flowing through its heater/anode element 13 is in the order of 1-4 amps and is picked off from the TB33 terminal and applied to the heater current analog to digital (A/D) converter 44 and, in particular, to its timer 46 as shown in Fig. 2B. The timer 46 operates as a counter to output a ~ignal of a frequency proportional to the current outputted from the heater/anode element 13. The output of the timer 46 is applied via an opto-isolator 48, which serves to protect the microcontroller 62 from the relatively large signals present in the heater regulator circuit 40. The isolator output is applied via output line 50 and a transistor Qll (see Fig. 2D) to the P10 pin 27 of the microcontroller 62, whereby the heater current and thereby the 1 33707~
, operation of the halogen sensor 12 maybe monitored.
It is contemplated that a plurality of the halogen monitoring apparatus 10 and their halogen sensors 12 may be disposed at a like plurality of remote stations for monitoring halogen lea~s thereat. Each of the halogen monitoring apparatus 10 has the capa~ility of com~unicating with a centrally disposed main controller in the illustrative form of an IBM-PC/XT3 or compatible microcomputer. The main controller is capable of periodically ~ nicating or polling each of the remotely positioned halogen monitoring apparatu~ 10. As shown in figure 2D, pins P14 to P16 and T0 of the microcontroller 62 are coupled to the transceiver 60 for receiving and transmitting via the port 86 messages to the main controller. The transceiver 60 may illuqtratively take the form of that chip manufactured by Texas Instruments under the designation 75176 or the equivalent chip made by Pairchild Semiconductor and is capable of transmitting digital data at a baud rate of 1200 bits per second using the format of the "BISYNCn~ protocol. As will be explained in detail below, after a halogen leak has been detected, a statu~
register within the microcontroller 62 i~ changed to reflect the detected leak. Upon being polled by this main controller, the microcontroller 62 responds by transmitting a ~status byte"
including various data indicative of the operation of the halogen monitoring apparatus 10, as well as whether a leak has or has not been detected.
Each of the halogen monitoring apparatus 10 is coupled 1 33707~ ~

in parallel by a single communication line with the main controller, which poles each of the halogen monitoring apparatus 10 by addres~ing a par~icular halogen monitorinq apparatus 10 with a unique five bit address, whereDy the corresponding microcontroller 62 is enabled to interrogate its memory and to formulate and transmit a return message to the main controller via its transceiver 60. The dipswitch 64 provides a means in the form of its switches 1-5 for entering into the microcontroller 62 its unique address, whereby the main controller may communicate with that particular apparatus 10.
When the microcontroller 62 senses that the halogen sensor 12 has detected a leak as will be eYplained below, the microcontroller 62 outputs on its P13 pin 30 a signal that actuates a light indicator 88 to fla~h at an illustrative rate of l~z. As was explained above, ~he halogen sensor 12 is disabled by the microcontroller 62 after ~ensing a halogen leak. A
flashing light indicator 88 indicates that this particular halogen monitoring apparatus 10 and its halogen sensor 12 are in an off state and waiting for a service person to find and correct the leak and to reset the main controller, which will in turn reset the corresponding microcontroller 62. In addition, P23 pin 24 of the microcontroller 62 is coupled to an output switch 84 in the form of a FT Q12, which is operated to turn on when a leak is detected. As indicated in figure 2D, the FT Q12 connects terminals T~21 and 22 together, which may be employed to actuate a further alarm manife~tation. Upon receiving the return message 1 337~79 from the halogen monitoring apparatus 10, the main controller may actuate a beeper to provide a warning manifestation of a detected halogen leak. In addition, the main controller saves all status signals or fla~s indicative of the detected halogen leak on a suitable memory such as a floppy disk, bubble memory, or EAROM.
In turn the main controller may throush suitable connections over conventional telephone wires place call~ to appropriate mana~ement and service personnel to inform them that a leak has been detected.
Figure 3A shows a flow diagram of a main control proqram 100 as executed by the microcontroller 62 to control the various functions and processes of the halogen monitoring apparatus 10, whereas the remaining figures 3~ to 3F show various subroutines 200, 120, 198, 116 and 104 as are selectively called from the main control program 100. Referring now to Figure 3A, the microcontroller 62 enters the main control program 100 after a high signal has been applied to its P~SET pin 4 (see Fig. 2D) as is indicative that an input voltage has been applied to the surge protection and line filtering circuit 16 to eYecute its first instruction 102, whereby the halogen sen~or 12 is turned on by setting pin 29 of the microcontroller 62 and the control line 25 to a logic 0, which in turn turns off the transistor Q2 (see Fig. 2A) and thereby the transistor Ql of the power control switch 24. ~hus, the 180 volts derived from the power supply 20 is now applied between~ the heater/anode element 13 and the cathode/collector element 14 to actuate the halogen sensor 12.

1 33707q In step 102, the light indicator 88 is also turned off, before !, step 104 efects a 3 minute warmup loop to allow the halogen sensor 12 to stabilize its output current as applied to the sensed current line 68. ~hile in this 3 minute loop, the watchdog subroutine 104, as shown in more detail in Figure 3F, periodically provides a strobe pulse to the watchdog circuit 34, whereby the timing circuit 36 is defeated as explained above to thereby prevent the resetting of the microcontroller 62. After the 3 minute warmup has been completed as determined ~ ~ ~ ~ in ~tep 106, step 108 accesses the random access memory (RA~) of the microcontroller 62 to initialize the various flags to be used in the course of the main control program 100. In particular, step 108 sets a flag zero (F0) flag to 1 in preparation for further steps in the program 100 and also sets the tap or gain setting of the analog multiplexer 72 to its minimum gain setting, i.e., tap 7. Each time that the halogen monitoring apparatus 10 and its microcontroller 62 is powered up, control will enter the main control program 100 at step 102 and the program 100 will be reinitialized in step 108. Thus each time that the program is powered up, the analog mutliplexer 72 will be set to its minimum gain, so that as will be explained later, the tap setting of the analog multiplexer 72 may be incremented until a predetermined output is obtained from the sensor amplifier 74.
Next, step 110 accesses the inputs from the dipswitch ~4 to read into the microcontroller b2 its uni~ue address as set by the switche~ Sl-S5, to determine whether the halogen monitoring apparatus 10 is set in its RUN or TEST mode as by switch 56, and to determine the sensitivity of the halogen sensor 12 as set by switches 57 and S8. As will be explained below, the halogen monitoring apparatus 10 is capable of adjusting its S sensitivity to sense only changes of a certain magnitude in the increase of the current level from the halogen sensor 12 as a valid indication of a halogen leak. The use of two switches 57 and S8 permits the setting of four different levels of sensitivity or magnitudes of change of the halogen sensor output.
If step 112 determines that the halogen monitoring apparatus 10 is in its TEST mode as would normally occur at the installation of the apparatus 10 or recalibration of its halogen sensor 12, the program 100 moves to the sequence of steps 162 to 174, which sets the delta flag to 1. The delta flag is set, as will be explained below in detail, ln order to enable the calling of the zeroing circuit subroutine 198, whereby the automatic zeroing circuit 78 and, in parti-ular, its EEPOT 80 may be initialized, i.e. the background level of the residual or steady state halogen as sensed by the halogen sensor 12 is stored 2~ therein. The delta test flag is used by the main control program 100 t~o insure that when the run/test switch 6 of the dipswitch 64 has been changed from the test position to its run position and the program 100 is operating therein, the zeroing circuit subroutine 198 will be called only a single time in order to initialize the EEPOT 80. In step 162, the delta test flag is tested to-indicate whether it had been previously set as would 1 33707~ ~
.
have occurred by a previous execution of step 166. If the delta test flag has been set to 1, the program 100 returns to step 114;
if not set as would occur if the apparatus 10 is in its TEST mode and this is the first execution of the main control pro~ram 100, then step 166 sets the delta flag to 1 and step 168 applies a 0 state signal to the pins 1 and 2 of the EEPOT 80. Next, step 170 moves the output wiper ar~ Vw pin 5 of the EEPOT~G80 to its minimum position VL in preparation for the zeroing circuit subroutine 198. $hereafter, the main control program 100 returns to step 114 and the steps 162 to 174 will not be re-eYecuted in that the delta flag is now set to 1.
Next, step 114 sets the channel select registers Dl and D0 within the A/D converter 54 to convert all of its four input channels and an analog to digital (A/D) subroutine 116 is called to convert the following analog input signals into corresponding digital signals: 1) the amplified sensor signal as input to the AO pin 10; 2) a scaled portion of the 180 volt power supply signal as input to Al pin 11 from the point of inte~connection of resistors RS and R34; 3) a scaled portion of the 5 volt power signal as applied to the A2 pin 12 from point of interconnection of the resistor~ R16 and R17 of the power supply 20; and 4) the rectified +12 or -15 volt signals as applied to the A3 pin 13 from the point of interconnection of the elements CR10 and VR3.
NeYt in step 118, the pulses outputted by the heater current A/D
converter are applied to P10 pin 27 of the microcontroller 62 to be counted. $he frequency of these pulses i~ proportional to the 1 337079 - ~:

magnitude of the current flowing through the heater/anode element -~
13. Next, the serial input/output (I/0) subroutine 120, as will be eYplained in greater detail in ~igure 3C, is called if the main controller wants .o receive or to modify the status registers as stored in the RAM of ~he microcontroller 62.
NeYt in step 122, the flag zero (F0) flag is tested to see if the sensor ampliier 74 and the automatic gain setting circuit 70 have been initialized. If the F0 flag is still set (FO flag = 1) indicating that the gain tap of the analog multiplexer 72 has not been initialized after the most recent energization of the power supply 20, the main control program 100 moves to step 124. In step 108 as previously executed, tap 7 of the analog multiplexer 72 was initialized, i.e., is set so that the gain of the operational amplifier 76a i~ initially set at a lS minimum value. Now, step 124 examines the output of the A/D
converter 54 to determine whether it has overflowed, i.e., is greater than a 2.5 volts maximum input level. In many situations, where the enclosure to be tested is substantially free of halogen gas, the main control proqram 100 will proceed to increase by one tap setting the gain of the analog mutliplexer 72 each time that the step 126 i9 executed, from its minimum tap 7 until its 0 tap as indicative of the maYimum gain, is set. Step 124 continues to test whether the A/D converter 54 ~as overflowed and, if not, step 126 will increment the gain of the voltage comparator 76a by decreasing the tap setting, e.g. move the analog mult~plexer 72 to its next lower tap number. Thereafter, 1 33707~ ~
. .
step 12B will determine whether the analog multiplexer 72 i5 set at its maximum gain, i.e. its 0 tap, and, if not, step 138 stores an indication of the new tap value, e.g. tap 6, into a designated location within the RAM of the microcontroller 62. Next, step 140 switches the setting of the analog multiplexer 72 to the new higher tap setting. Step 142 initiates a wait period of 11 msec until the new tap output ha~ been qettled, before step 144 takes a ~current" value of the output of the halogen sensor 12 and stores it into a storage location of the microcontroller RAM
known as "old value", before the program returns to step 110.
In this fashion, the control program 100 loops repeatedly through step 126 until either the A/D converter 54 overflows as tested in step 124, or the analog multiplexer 72 is set at its minimum tap 0 corresponding to its maYimum gain as decided in step 128. In that case, step 130 actuates the analog multipleYer 72 to set its 0 tap for a maYimum gain or maYimum sensitivity of the halogen monitoring apparatus 10. Next, step 132 stores the indication that the analog multipleYer 72 is in its 0 tap into the "original tap~ location of the microcontroller 20. RAM. NeYt, the "current" value or output of the halogen ~ensor 12, which was read into the A/D converter 54 previously in step 116, i~ now set into the "original n value register of the microcontroller RAM, before step 136 resets the ~O flag to 0, indicating that the analog multipleYer 72 has now been initialized. Thus, each time that the main control program 100 is powered up and step 103 initializes the flags and, in ~337079 particular, sets the FO flag to 1 and disposes the tap gain of the analog multiple~er 72 to its minimum gain value or tap value 7, the program 100 will normally loop through step 126, whereby the tap of the analog multiplexer 72 will be set incrementally to its minimum position 0 for the maximum gain of the sensor amplifier 74. After the tap setting has been so initialized, step 136 resets the FO flag to 0. After the analog multiplexer 72 has been so initialized and the FO flag reset to 0, the main control program 100 will not again enter step 124, but will rather be directed to step 176 as will be explained.
If the FO flag has not been reset and there is initially some level of halogen concentration within the enclosure, the tap of the analog multiplexer 72 will not be reset to 0, but will be set to a particular tap setting 1 to 7 that lS will cause the A/D converter 54 to overflow as sensed in step 124. If the A/D converter 54 does overflow, the main control program 100 moves to step 146, which increments the tap setting by one to decrease the gain from that gain setting that caused the A/D converter 54 to overload. If the tap setting of the analog multiplexer 72 is at its minimum setting of 7 and the A/D
converter 54 is overflowed as determined in step 148, this is an indication of a leak, in that the concentration of halogen exceeds the minimum sensitivity of the apparatus 10 and the main control program 100 moves to the leak control portion 200 of the program, as will be explained with respect to Fig. 3B. ~owever, if the tap settin~ is les~ than 7, step lS0 will set this tap ; 1 33707q `~
...
~etting into the "current" value location of the microcontroller RAM and will also set the "original" value of the tap ~etting to 0. As will be apparent from the further explanation of the main control program 100, "current" and "original~ values of each of the tap settings of the analog multiplexer 72 as well as the "current" and "original" values of the halogen sensor output are saved in corresponding locations within the RAM of the microcontroller 62 to permit determination of increases of the halogen compound concentration levels as will be indicative of a halogen leak. NeYt, step 152 effects a change of the tap setting of the analog multiplexer 72 to its next lower gain setting, before step 154 effects a delay or wait period until the setting change can be completed. Next, step 156 loads the ~old value~ of the sensor output into the ~original~ value location of the microcontroller RAM, before step 158 determines whether the apparatus 10 is operating in its TEST or RUN mode. If in its TEST mode, the "current~ value of the tap in step 160 is moved to its "original" value. Thus, if the apparatus 10 is operating in its TEST mode, the tap setting obtained in step 150, as would be indicative of the quantitative or non-zeroed background level of halogen gas, i8 saved in the ~original~ value location of the microcontroller's RAM, whereby the "original~ value of the tap setting as taken in the zeroing circuit subroutine 198 and stored in the EEPOT 80, as will be explained, will be ignored to obtain a relative leak detection with regard to present levels of halogen. -If in the RUN mode, the main control program 100 moves 1 3 3 7 0 7 ~

directly to step 146 which resets the ~O flaq indicating that the analog multiplexer 72 has been initialized. Thus if the program is in the RUN mode as would normally occur, the "original" value of the tap setting as would normally be 0, corresponding to a S maximum gain of the sensor amplifier 74, will be set in the "original" value of the microcontroller's RAM, whereby in the further running of the main control program 100, current readings of the sensor output would be compensated with respect to the initially taken background level of the sensor output.
In the next }oop of the main control program 100 after the FO flag has been reset to 0 in either of steps 136 or 146, step 122 will direct the program 100 to step 176, which determines whether the output of the A/D converter 54 has overflowed. If in the overflow state, step 189 determines 5 whether the tap setting of the analog multiplexer 72 is at its t~f (~ g~
maximum~setting of 71and, if so, the main control program 100 provides an indication of a leak and the program 100 moves to lea~ control at 200, as will be eYplained. If not at tap setting 7, step 190 increments the tap by one position and decreases accordingly the gain of the sensor amplifier 74. Step 191 effects a change of the tap to its neYt higher setting, and step 192 effects a delay to permit the setting to be completed, before the proqram 100 returns to step 110.
On the other hand, if the A/D converter 54 has not overflowed after the FO flag hag been reset, the main control proqram 100 now determines whether there has been a halogen leak 1 337079 ~
_ , , as by comparing variously the change of the "current" values and "original" values of the tap settings of the analog multiplexer 72 and the output signals of the halogen sensor 12. In a significant aspect of this invention, the halogen monitoring apparatus 10 i.q capable of selecting different sensitivities to halogen compounds in the enclosure, i.e. smaller or larger changes of halogen compound concentrations with a particular enclosure may be selectively ~et for the apparatus 10 to provide an indication of a halogen leak. To this end, sensitivity switches 7 and 8 of the dip switch 64 may be variously set in any of four different comhinations that corresponds to a change or "adder~ from the original analog multipleYer 72 tap position by 1, 3, 5 or 7 tap positions.
First, in step 178, the "current" tap position is compared to the "original~ value thereof plus the above sensitivity "adder~ as entered by the dip switch 64 and, if greater or equal to the original tap position plu5 the sensitivity "adder", _hen step 180 determines whether the "current" value is not e~ual to the original value of the tap setting plus the sensitivity ~adder~, as would indicate that the "current" value of the tap setting is greater. If greater, the main control program 100 provides an indication of a leak and moves to the leak control at location 200. On the other hand, if the "current~ value of the tap setting is equal to the original value of the tap setti~g plus the sensitivity adder, step 182 performs a further test of whether the "current" value of the 1 3 3 7 0 7 ~
- ~
_ , .
halogen sensor output is greater than ~he "original~ value of the halogen sensor output and, if so, the main control program 100 provides an indication of a leak and also moves to the leak control location 200.
S Returning again to step 178, if the "current" value is not greater than the ~original" value of the tap setting plus the qensitivity "adder", the main control prosram 100 moves to step 194 to determine whether the output of the A/D converter 54 is less than 1/4 full scale thereof and, if not or greater, the ~current~ value within the "wait registers~ WO and Wl is decremented in step 184 by 1 to a minimum of 0. The "wait registers~ are used to indicate that a leak indication has ocurred and that d wait period has expired, notinq that the halogen monitoring apparatus 10 requires that three successive halogen leak indications and wait periods occur before a valid halogen leak and a warning signal thereof is provided. On the other hand, if the output of the A/D converter 54 is less than 1/4 full scale, step 196 decrements the gain by one tap to give sensor amplifier 74 maYimum sensitivity, before returning to step 184. NeYt, qtep 186 tests the dip switch 64 to determine whether the main control program 100 is operatinq in its RUN mode and, if still in its TEST mode, the main control program 100 returns to its step 110. On the other hand if in its run mode, step 188 tests whether the delta test flag is qet to 1 as would indicate that the operator has }ust set the run/test switch 6 of the dipswitch 64 from TEST mode to its ~UN mode and, if qet, ~he 1 3 3 7 0 7 q zeroing circuit subroutine 198, as will be further de~cribed with respect to figure 3D, is called. As will ~e explained later, the zeroing circuit ~ubroutine 198 causes the -EPOT 80 to output the initial steady state signal, which cancels out the ~ackground S level of halogens within the enclosure and stores a signal indicative of the position of its wiper arm in a non-volatile memory. That stored value of the wiper arm will be applied to the inverting input of the operational amplifier 82, which inverts and multiplies by 2 the voltage from the EEPOT 80 and app}ies that signal to the inverting input of the voltage comparator 76a. As will ~e eYplained, the zeroing circuit subroutine 198 will reset the delta test flag to 0, whereby the background level of the halogen sensor 12 will be calculated only at installation time, initially stored into the non-volatile memory of the ~POT 80 and will not be reset until the halogen sensor 12 i5 replaced and/or the halogen monitoring apparatus 10 is again r~calibrated by the operator.
Thus, it i8 seen that the main control program 100 and in particular its steps 176 to 196 serve to provide an indication of a halogen leak under the following conditions:
(1) whcn the "current" value of the tap position of the analog multipleYer 72 is greater than the "original" value of the tap position plus the sensitivity adder as entered on switches 7 and 8 the dip switch 64;
(2) when the "current" value of the tap position is equal to the "original" val~e of the tap position plus the ~6 ~ 1 3 3~ 019 sensitivity adder and the "current" value of the halogen sensor outp~t eYceed~ its ~original" value; and t~1 when the output of the A/D converter 54 overflows and the gain tap of the analog multipleYer 72 is set at its s minimum gain position 7.
Referring now to Figure 38, leak control location 200 is shown in detail. location 200 is entered when a predetermined change in the output of the halogen sensor 12 ha~ been detected in accordance with that criteria as e~plained above. T~e leak control location 200 verifies whether such a change as may be indicative (or not) of a leak are valid or spurious. In a significant aspect of this invention, when a leak change is so provided, step 202 removes the 180 volts as applied between the collector/cathode element 14 and the heater/anode element 13 of the halogen sensor 12 by setting the P12 pin 29 of the microcontroller 62 to a logic high as applied by the control line 25 to turn on transistor Q2, the isolator 26 and thus the transistor Ql, where~y the 180 volts as applied acro~s the output of the secondary coil 18c is qhorted out and the halogen sensor 12 is essentially deenergized. As a result, the collector/cathode element 14 no lonqer collects its current as would otherwise qignificantly shorten the life of the halogen sen~or 12. NeYt, step 204 reads the dip switch 64 to determine which position switch 6 of the dipswitch 64 is in and thus whether the halogen monitoring apparatus 10 is in its TEST or RUN
de. If in the RUN mode, the program moves to step 206, which 1 3 37 07~

increments by one a counter formed by the ~0 and Wl wait registers within the microcontroller RAM. ~ach time that a leak i9 confirmed at location 200 when in the R~ mode, this wait counter will be incremented by 1. Next, step 208 tests whether the wait counter has been incremented three times a~ would qualify for a verified leak as opposed to a nuisance or spurious indication. If the wait counter has not been incremented to three, the program moves to step 210 to set the leak wait mode flag, as will now be available to be transmitted to the main controller informing it that the halogen monitoring apparatus 10 is in the process of testing whether a valid halogen leak has occurred. At this point in time, a five minute timing period occurs. Initially, in step 212, a three minute waiting period is commenced durinq which the serial I/O subroutine 120 is called in order to permit communication between this halogen monitoring apparatus 10 and the centrally di~posed main controller, and the watchdog subroutine 104 as shown in Figure 3F is called to continuously reset or refresh the watchdog circuit 34, whereby the microcontroller 62 will not be reset. At the end of this three minute period, step 214 turns off the transistor Ql by permitting the P12 pin 29 of the microcontroller 62 to go high, whereby the halogen sensor 12 is turned back on for a two minute warm up period to permit its operation to settle before taking the neYt A/D sample of the halogen sensor 12. Further, step 216 calls the serial I/O subroutine 120 and the watchdog subroutine 104. After the two minute warm up period, step 218 resets the leak wait mode flag indicating that the waiting period iq over ~-and the program returns to step 110 of the main control program 100 .
If step 208 tests the wait counter registers ~O and Wl and determineq that three leak detections and corresponding wait period have occurred, there is a valid indication of a halogen leak within the enclosure and the program moves to qtep 220, which clears the wait counter registers WO and Wl to zero. After step 220, or if step 204 determines that the halogen monitoring apparatus 10 is operative in its TEST mode, the program goes to step 222, which sets the tap of the analog multipleYer 72 to its minimum gain setting 7, before step 224 sets the tap setting to 7. Next, step 226 resets the leak wait mode flag indicating that the halogen monitoring apparatus 10 haa not detected a halo~en leak and is processing the three wait periods. NeYt, step 228 sets a leak detect flag indicating that a leak has been detected and has been validated as decided in step 208 and further activates the FET Q12 by placing a logic one on P23 pin 24 of the microcontroller 62 to enable an external alarm as indicative of a valid leak. The leak control subroutine 200 now enters a loop through the step~ 230 to 236. Step 230 energizes the light indicator 88 to flash to provide a visual indication that a validated halogen leak ha~ been determined, before the serial I/O
subroutine 120 is called to permit communication between the remote halogen monitoring apparatus 10 and the centrally disposed main controller. The watchdog subroutine 104 is called to 1 337079 ;~

periodically strobe the watchdog circuit 34 thereby preventing the resetting of the microcontroller 62. Next, step 236 determines whether the leak detect flag has been set or reset.
If set, the program will continue to loop through steps 230 to 236, until the halogen leak within the enclosure has been monitored and cleaned up, and the main controller has transmitted a command to this apparatus 10 resetting its leak detect flag.
After being reset, step 236 returns the program to step 102.
Referring now to Figure 3C, the details of the serial I/O subroutine 120 will ~e eYplained. The microcontroller 62 executes the serial I/O subroutine 120 to operate its transceiver 60 in either its transmit or receive modes to respectively transmit messages via its serial communication port 86 to the centrally disposed main controller or to receive messages therefrom. Referring to ~igure 2D, the microcontroller ~2 actuates its enable line pin 32 to a logic one to transmit a message via its transmitter pin 31 and, conversely, enables its enable line pin 33 to a logic zero to receive messages from the transceiver 60 via its receiver line pin 1. In this fashion, 2~ each of the plurality, e.g., 32, of halogen monitoring apparatus 10 is capable of communicating with its centrally disposed main controller over a common transmission line in a polling scheme, which requires that each of the apparatus 10 has its own unique address as set by switches 1 to 5 of its dipswitch 64. Thus, if-the main controller wants to receive or transmit a message to aparticular apparatus 10, the main controller must utilize a ~ predetermined protocol, e.g., BISYNC~ , and include in the message the address of the particular apparatus 10 it wishes to poll.
Referring to Figure 3C, when the serial I/O subroutine 120 is called, step 302 disables the transmitter of the transceiver 60 by setting pin 32 of the microcontroller 62 to a logic low, and enables the receiver of the transceiver 60 by setting its pin 33 also to a logic low. NeYt, step 304 tests pin 1 of the microcontroller 62 for any change applied thereto from the main controller through the serial communication port 86 and the transceiver 60 within a 100 msec. period, and if no activity is present on this receiver line, the serial I/O subroutine 120 is exited, after step 322 tests to determine if the main controller had previously sent to this halogen monitoring apparatus 10 a disable command, i.e., the disable flag has been set. Such disable commands permit the main controller to l;~
selectively disable selected of the apparatus 10. If this apparatus }0 is disabled, the serial I/O subroutine 120 returns to step 302 and will continue in this loop until the main controller transmits a mecsage to this apparatus 10 to RESE~ its disable flag.
On the other hand, if a signal has been applied to the serial input pin 1 of the microcontroller 62 as determined by step 304, the subroutine 120 moves to step 306 which synchronizes the microcontroller 62 with the 1200 baud data message being transmitted by the main controller. Next, step 308 inputs the - ~ ~3707~
transmitted message to the microcontroller 62 from the main controller; the transmitted messase comprises an OP-ADDR byte, which includes a read or write com~nd plus the address of the polled apparatus 10, and a status byte which may command the S addressed halogen monitoring apparatus 10 to reset or disable itself. In step 309, the ACK/NAK flag is tested, which can only be set below in step 318 after the apparatus 10 has finished transmitting to the main controller. If the ACK/NAK flag is set, then the flag is reset at step 311, the subroutine is exited at step 313, and the program resumes to the next instruction after the call to Serial I/O subroutine 120. If the ACR/NAK flag is not set, Step 310 determines whether the address sent by the main controller matches that of this apparatus 10 as set by its dipswitch 64. }f the transmitted and retained addresses are different or if there are errors in the message received from the main controller, the subroutine 120 returns to step 322. If the addresses match, i.e., the main control is transmitting its message to this apparatus 10, then step 310 disables the receiver of the transceiver 60 by applying a logic one output to the RE
pin 2 of the transceiver 60 and enabling the transmitter of the transceiver 60 by applying a logic one output to the DE pin 32 of the transceiver 60. Next, step 314 reads the status byte as presently transmitted from the main controller. If the main controller has c~ ~nded this apparatus 10 to operate into its READ state, its status registers as formed in the RAM of the microcontroller 62 are accessed and a message is transmitted in 1 337079 ; ~
: ~, step 316.via its pin 31 to the main controller in the correct BIsYNC3 format. The message includes the following data: 1) the positions of the switches 6 to 8 of the dipswitch 64 as would be.
indicative of the desired sensitivity and whethe~r this regulating circuit 10 is in its RUN or TEST mode; 2) the status flags-leak wait mode, leak detect mode, disable mode; 3) the "original" and "current" values of the tap positions of the analog multiplexer 72; 4) the "current~ value of the output signal of the halogen sensor 12; 5) the "original~ value of the output of the halogen sensor 12; 6) the value of the 180 V; 7) the value of the S V;
8) the value of the + 12/-15 V; and 9) the value of the heater current.
An important note to realize here is that the current values of tap position and sensor magnitude are transmitted lS frequently to the main controller. When the predetermined level of halogen gas has been exceeded, the quantitative value can ~e computed and displayed by the main controller, whereby the urgency of the leak detect f lag signal can be evaluated by the service operator.
20. NeYt, step 318 sets the host ACK/NAK flag to tell the halogen monitoring apparatus 10 that the next incoming message from the main controller is an acknowledged signal indicating that the main controller received the message transmitted f rom -the apparatus 10 in step 316 or a negative acknowledge signal indicating that it did not. Step 320 then disables the transmitter of the transceiver 60 and the receiver thereof is enabled, before the subroutine 120 returns to step 308 to wait for the-AC~/NAK message from the main controller.
If step 314 has examined the status byte from the main controller and determines that it directs the apparatus 10 to operate in its WRITE state, the subroutine 120 moves to step 322, which causes an acknowledge message to be transmitted back to the main controller with the same OP/ADDR field that the main controller had sent to this apparatus 10. After such a transmission, step 324 then disables the transmitter and enables the receiver of the transceiver 60 to receive the next transmission of the main controller. Next, step 326 reads the status byte to determine if the main controller has sent a reset co~m~n~ to set the reset mode flag; if the reset mode flag has been set, step 338 resets the leak wait mode and the leak detect lS flaqs before exiting this subroutine 120 and returning to the calling step. On the other hand, if there i~ no re~et command as determined by step 326, step 328 determines whether a disable command has been sent from the main controller and, if true, step 330 sets the disable flag. Thereafter, step 336 effects a return to the calling step. If the disable flag is not set, then step 334 resets the disable flag and the subroutine 120 is exited in step 336.
~ eferring now to Fig. 3D, the detailed steps of the zeroing circuit subroutine 198 are ghown. As described above with regard to the main control program 100, the zeroing circuit ~ubroutine ls8 is called if step~ 186 and 188 determine that the 1 33707~

operator has just changed the run/test switch 6 of the dip switch ~-64 from the TEST mode to the RUN mode. In that case, the zeroing circuit subroutine 198 is called to cancel out the steady state background level signal outputted by the halogen sensor 12, and to remember (store) that signal level permanently until it is reprogrammed when this halogen monitoring apparatus 10 would be reinstalled in a new enclosure, the halogen sensor 12 is replaced or the apparatus 10 is otherwise recalibrated. Initially in step 400, the delta test flag is reset, so that the zeroing circuit subroutine 198 is called just once between recalibrations of the halogen sensor 12. Next, step 402 sets a counter of the EEPOT 80 to a predetermined count, e.g. 99, to keep track of the 99 positions of the output wiper arm on the VW pin S of the EEPOT
80. Next, step 404 test~ whether this wiper arm is not at the maYimum voltage position V~ and, if not, step 406 actuates the indicated inputs of the EEPOT 80, before step 408 commands and step 412 moves the wiper arm up one position to raise the output voltage ~y 0.05 V at the inverting- input of the operational amplifier 82, which multiplies that increase by minus 2 to place an additional -0.1 V at the inverting terminal of the operational amplifier 76a. The output of the halogen sensor 12 is converted in su~routine 116 to a digital signal, which is also applied to the input of the operational amplifier 76a. Next, step 424 examine~ pin 10 of the A/D converter 54 to determine whether the output of the halogen sensor 12 is still greater than or equal to 1/2 of its full scale value. If so control of the zero ` _ - 1337079 ~ ~

subroutine l9a returns to step 404 and the zeroing circuit subroutine lg8 will stay in the loop of steps 404 to 424 until the output of the A/D converter 54 falls below 1/2 full scale.
When less than l/2 full scale, the subroutine 198 moves to step 426 to test the gain tap of the analog multiplier 72 and, if not set to its maximum gain tap, i.e. its zero tap, then step 428 decreaseq the tap gain and step 430 physically changes the tap to the next lower setting to increase the gain of the operational amplifier 76a. The subroutine 198 will loop through steps 426 to 438, until the A~D converter 54 overflows in response to the output of the halogen sensor 12. When overflow does occur as sensed by step 438, control of the subroutine 198 returns to step 404 and the position of the wiper arm of the EEPOT 80 is once again incremented as in step 408 until the output from the A/D converter 54 of the halogen sensor 12 falls below 1/2 full scale.
When either the wiper arm of the EEPOT 80 reaches its maximum setting V~ as determined by step 404 or the gain tap of the analog multiplexer 72 reaches its maximum gain setting of zero as determined by step 426, the zeroing circuit subroutine 198 moves to step 440. Step 440 tests the input pin 10 of the A/D converter 54 for an input of the halogen sensor 12 for overflow. If there is an overflow, step 442 increments the tap of the analog multipleYer 72 to thereby decrease the qain of the sensor amplifier 74. NeYt step 444 tests whether the gain tap of the analoq multiplexer 72 is at itq minimum gain position 7. If 1 3 3 7 0 7 ~

-- at its minimum gain position and, as tested in step 440, the A/D
conv~rter output overflows, there is an indication of a leak detection and the program control jump5 to step 200 to process a leak being detected. If the gain tap of the analog multiplexer S 72 is not at its minimum position 7, step 446 further increments the tap position of the analog multiplexer 72 to decrease the gain of the sensor amplifier 74 and the subroutine 198 continues to loop through step 440, until the A/D converter output does not overflow as determined by step 440. In particular, step 446 effects a change of the tap to the ne~t highest setting to thereby decrease the gain of the sensor amplifier 74. Thus, the zeroing circuit subroutine 198 adjusts the position of the output of the EEPOT 80 from its minimum value Vl to that value at which a compensating voltage as output by the operational amplifier 82 will cancel or ~ubstantially cancel the background ~ignal as derived from the halogen sensor 12. The compensating output of the operational amplifier 82 is applied to the inverting input of the operational amplifier 76a, whereby its output is substantially zero. At that point, the position of the wiper arm of the EEPOT 80 is ~et in a mechanical sense and a qignal indicative of its position stored in its non-volatile memory in the form of the counter. Thus, until the halogen monitoring apparatus 10 is recalibrated, the EEPOT 80 will output a ~ignal corresponding to the background level of halogen as provided by the halogen sen~or 12 when the zeroing circuit subroutine }9B was executed initially in response to the run/test switch 6 being 1 33707~

disposed from its test to run positions. The setting of the wiper arm of the EEPOT 80 will not be changed until the halogen sensor 12 is recalibrated and the run/test switch 6 is again reset from its test to run positions.
When overflow does not occur as tested in step 440 the subroutine 198 moves to step 454, wherein the tap setting of the analog multipleYer 72 is set to the ~original" value thereof as stored in the microcontroller's RAH and ~tep 456 saves the output of the sensor amplifier 74 as derived from the halogen sensor 12 into the "original" value location of the microcontroller's RAM.
Thereafter, the subroutine 198 eYits and returns to step 110 of the main control program 100.
Referring now to Fig. 3E, the detailed steps of the analog to digital (A/D) subroutine 116 will now be explained.
lS The A/D subroutine 116 converts any of the analog signals as applied to the AjD converter 54 including the amplified sensor signal from the halogen sensor 12, a scaled down 180 volt power supply signal, a scaled down S V power supply signal, and either of the rectified ~12 or -15 power supply voltages, as respectively applied to the pins 10 to 13 of the A/D converter 54. When the A/D subroutine 116 is called from any of a number of points in the program, control ~umps to step 500, which causes a message indicative of the selected channel(s) to be sent serially from pin 37 of the microcontroller 62 to pin 3 of the A/D converter 54, where it is stored in a pair of registers DO
and Dl. If the selected input signal to be converted is from the ~8 , .
halogen sensor 12, then step 506 actuates the sample and hold circuit 56 wherein the sensor output is stored on capacitor C27 and, further, the sample and hold circuit 56 is disconnected from the operational amplifier 76b so that no change will take place while the A/D converter 54 is effecting the A/D conversion in step 510. In steps 514 and 516, the digital value is serially sent to pin 39 of the microcontroller 62. Thereafter, step 520 tests the DO and Dl register pair tO see if there are any more analog signals to be convert~d. If there are further signals to be converted, the subroutine 116 again will loop through steps 502 to 524. If not, the subroutine 116 exits to step 522 to return to that point in the program from which the A/D subroutine 116 was called.
Referring now to Figure 3F, the steps of the watchdog subroutine 104 are further described. When called, the watchdog subroutine 104 enters step 340, which outputs a logic low upon the RD pin 8 of the microcontroller 62 to the operational amplifier 2~c of the watchdog circuit 34, whereby a ground circuit is formed for the capacitor C14 of the timing circuit 36;
as a result, the capacitor C14 is discharged at least every 32 msec. to prevent the reset circuit 32 from otherwise pulsing the RESET pin 4 of the microcontroller 62 and thus resetting same.
Thereafter, the step 342 e~its this subroutine 104 to return to that point in the program 100 from which the watchdog subroutine 2~ 104 was called.
~eferring now to FIGS. 4A and 4B, there is shown a further, 1 3 3 7 0 7 9 ~ ~
, preferred embodiment of the ha}ogen monitoring apparatus of this inventiOn, wherein like elements are assigned corresponding numbers, but in the 600 series. The sensor 614, as shown particularly in FIG. ~A, is adapted to be incorporated into the halogen monitoring circuit as more fully shown in FIG. 4B. The current flowing through the collector/cathode element 614 is directly proportional to the amount of the halogens in the air sample flowing through the sensor 612 and provides an output signal proportional to that halogen concentration. The power supply 620 provides a regulated 180 volts between the collector/c~thode element 614 and the heater/anode element 613.
The power control switch 624 is actuated by a signal developed by the microcontroller 662 and applied via the control line 625 to the power control switch 624 to re ve the lB0 volts across the elements 613 and 614. The switch 624 mdy take the form either of a series or shunt circuit. The ionization voltage as applied via the switch 624 flows through the heater/anode element 613 to the collector/cathode element 614 and through a series connected resistor 631 and potentiometer 633, as shown in FIG. 4B, to the ground return of the power supply 620.
A~ shown in Fig. 4A, the voltage applied acros~ the heater/anode element 613 is provided by the heater regulation circuit 640 as comprises a voltage regulator circuit 629, which outputs a substantially fixed voltage which will be regulated in accordance with the temperature changes of the heater/anode element 613 to thereby control the voltage and the current as 1 337~79 applied to the element 613 such that a substantially constant -~
temperature of 900 c is maintained at the heater/anode element 613 of the sensor 612. The heater/anode element 613 i5 incorporated as a leg of a resistance bridge, which comprises a diode 603, resistors 604 and 606, and a potentiometer 607. If the temperature of the heater~anode element 613 varies, an error current is produced and applied to the base of a transistor 60~.
The error current is amplified by the transistor 608, which outputs and applies the amplified error current to a feedback input of the voltage regulator circuit 629. The voltage regulator circuit 629 outputs at its + and - terminals the regulated voltage across a pair of resistors 609 and 610, which serve to limit the initial startup voltage. A capacitor 605 is connected in parallel across the resistor 610 and reduces any tendency of this circuit to high fre~uency oscillation.
Typically, the heater/anode element 613 is comprised of a platinum wire. Since the temperature vs. resistance relationship of platinum is consi~tently linear, the resultant temperature control is carried out without switching effects or variations 2Q which would affect the low level ionization currents flowing between the heater/anode element 613 and the collector/cathode element 613. In addition, the temperature regulation circuit 640 does not wa~te energy in the form of heat, thus significantly eYtending the reliability and useful life of the components in the circuit 640.
Referring now to FIG. 4B, the output of the sensor 612 is 1 3370~q ~
developed by the current as flows through the collector/cathode -elemen~ 614 and the series connected resistor 631 and potentiometer 633. A voltage proportional to this current is developed at the tap of the potentiometer 633 and is applied to a buffer amplifier 635, which is connected as a voltage follower to the VIN(+) input of an analog-to-di~ital (A/D) converter 637.
The A/D converter 637 provides a digital output via a data bus 647 to an input/output port of the microcontroller 662.
The microcontroller 662 applies a diqital output via its input/output port and a data bus 649 to a multichannel digital-to-analog (D/A) converter 63g. The microcontroller 662 applies a strobe pulse via a strobe line 653 to the D/A converter 639, which applies via its first or channel A output a reference voltage. After buffering by a voltage follower 641, this reference voltage is applied to the A/D converter 637 at its VREF
input. The microcontroller 662 applies a strobe signal via a strobe line 655 to the A/D converter 637, which in response applies via the data bus 647 to the input/output port of the microcontroller 662, a digital signal corresponding to the ratio of the signal applied to the VREF input and the output of the sensor 612 as applied to the VIN(+) input. As will be explained, the microcontroller 662 is programmed for adjusting the level of the VREF input, whereby the gain afforded the output of the sensor 612 is automatically adjusted to be in range without potential stability problems.
As fu-rther shown in FIG. 4B, a dipswitch 657 is connected to `_ 1 337079 ::

the microcontroller 662, whereby an operator may throw the ~-~
dipswitch 657 to cause an offset voltage as developed at a second or channel B output of the D/~ converter 639 to be applied to the differential input VIN(-) input of the A/D converter 637, whereby a zero output is applied to the data bus 647. As will explained later, the microcontroller 662 applies via the data bus 649 a digital value to the D/A converter 639 to provide the desired offset after being buffered by a voltage follower 643.
As a result, the residual output from the sensor 612 as occurs in the absence of halogens or in the presence of a residual level thereof, is offset to provide a zero input to the input/output port of the microcontroller 662.
Various parameters of the halogen monitoring apparatus as shown in FIG. 43 are stored in a non-volatile memory or RAM 651.
Further, the halogen monitoring system and, in particular, its microcontroller 662 is in communication with a master computer, whereby the concentrations of halogen beinq monitored at the remotely disposed monitoring system may be communicated to the centrally disposed master computer. Further, the master computer can send messages to control and/or reset the operating parameters of the remote halogen monitoring apparatus. In an illu~trative ~ di ent of this invention, a transceiver 660 functions as a two wire serial interface with the master computer using illustratively the Electronic Industries Association Revised Standard 485. In an illustrative embodiment of this inventionj the microcontroller 662 may be implemented by that 1 337079 ~
_ controller as manufactured by the ~lectronic Monitoring and Controls Corp. under their designation NC-10. The switching voltage regulator 11 may illustratively take the form of that regulator manufactured by ~axim Corp. under their designation MAX638. Illustratively, the A/D converter 637 may take the form of that converter as manufactured under the generic designation ADC 801, the D/A converter 639 may take the form of that converter as manufactured under the generic designation AU 1741 and the transceiver 660 may take the form of that receiver manufactured under the generic designation 75176.
Referring now to FIG. SA, there is shown the main loop of the program 7~0 as executed by the microcontroller 662.
Initially in step 702, the 110 volts AC is applied to the halogen monitoring system of FIGS. 4A and B. Ne~t in step 704, at least lS three timing parameters and two voltage threshold levels are read out from the non-volatile RAM 6~1 for later use in the program 700. Illustratively, the three t-ming parameters include reprogrammable counts indicative of an initial warmup period, a wait period before the cathode/anode voltage is reapplied to the ~ensor 612 after it has been turned of and an alarm period initiated upon sen~ing a level of halogen concentration above a first or alarm level thereof. The voltage threshold levels include the alarm level, which if e~ceeded by the halogen concentration level measured by the sensor 612, will cause an alarm condition, and a~shutdown level corresponding to that level, which if exceeded, will cause the sensor 612 to be turned "
off. These five parameters are reprogrammable and messages ~ay be sent from the master computer to selectively reset any or all of these parameters dependent upan the observed levels of halogen and the particular application of this halogen monitoring apparatus.
Next step 706 times out the initial sensor warmup period to permit the sensor 612 to stabilize. During the warm-up period, the heater/anode element 613 is heated to its operating temperature in the order of 900 c, and the sensor 612 is stabilized before commencing operation of the system and, in particular, the resetting of the microcontroller 662. Then step 708 tests the dipswitch 657 to determine whether or not it has been thrown by the resident operator to adjust the offset voltage, whereby the background level of the output of sensor 612 is determined and is used as an offset such that the output of the A/D converter 637 will provide thereafter a zero output to ;~`
the microcontroller 662. If yes, the pro~ram moves to a subroutine 722 as will be described with respect to FIG. 5C. If not, the main loop moves to step 710, which measures and tests the halogen level as provided by the output signal of the sensor 612j as will explained in more detail with respect to FIG. SB.
Generally, the subroutine 710 adjusts the gain imparted by the A/D converter 637 to the output signal of the sensor 612 so that it i~ within the range of the A/D converter 637. Next, step 712 determines whether the haloqen level as sensed by the sensor 612 i9 greater-than the alarm level. In this regard, the alarm level 1 337a7q ~ ~

may be set equal to or less than the shutdown level. As will become apparent, if the measured halogen level exceeds ~he shutdown level, the anode/cathode voltage will be removed to thereby turn off the sensor 612. On the other hand, if the S halogen level exceeds the alarm level, but not the shutdown level, the sensor 612 will be permitted to continue to sense the halogen level at least until the alarm period times out and the sensor 612 is turned off. If the halogen level exceeds the alarm level as determined in step 712, the timing of the pre~et alarm period will begin and, if exceeded, as determined in step 714, the main loop will move to step 726 to transmit a message via the transceiver 660 to the master computer. Thereafter, step 728 will turn off the sensor 612 until a c~ ~nd ~start again~ is received from the master computer, at which time the program will return to step 706.
If the alarm period has not timed out as determined in step 714, step 715 determines whether the shutdown level has been exceeded. If not, the main loop continues to monitor the halogen level and returns to step 710. If the shutdown level has been exceeded, the cathode/anode voltage is removed in step 715 from the sensor 612. Next in step 716, the wait period is timed out while the sensor 612 is turned off. Thereafter, step 720 times a second warmup period to permit the sensor 612 to restabilize, before the main loop returns to step 710 to again test the halogen level. Thus, it is seen that if the halogen level exceeds the shutdown level, the sensor 612 will ~e turned off for 1 3 3 7 0 7 ~

-the wait period to permit the sensor to recheck the haloqen level ~-before sendinq a communication to the master computer indicative that the shutdown level has been exceeded.
Referring now to FIG. 5B, the halogen level testing subroutine 710 will be more fully eYplained. The anode/cathode voltage is initially applied to the sensor 712 in step 740, ~efore step 742 causes the microcontroller 662 to apply an 8 bit digital value indicative of the VREE via the data bus 649 to the D/A converter 639, before the microcontroller 662 applies a strobe via the strobe line 653 to cause the corresponding analog value of the VREF to be read out upon its channel A output. The value of the initial digital input is 01 ~EX. The digital input to the D/A converter 639 determines that factor ~y which the voltage output by the voltage reference 64~ will be divided to provide an lS analog signal on the channel A output. In the illustrative example where the reference output is 2.5 V, the initially set voltage on the channel A output equals 2.5/255 V for the digital input of 01 HEX. Next, step 744 causes the microcontroller 662 to apply a strobe via its strobe line 655 to the A/~ converter 637 to take a reading of the A/D converter 637. It is understood that this digital reading equals VIN/VREP times 255; thus, if the analog output of the sensor 612 as applied to the VIN~+) input is less than the VRE~, the output of the A/D converter 637 will be in range, i.e., less than 255 as determined in step 746.
25In particular, step 746 determines whether the digital output of the A/D converter 637 is over full scale, i.e., is 1 337079 ``~

equal to 255 or greater. If out of range or over full scale, step 748 determines whether the number of times that the subroutine 710 has incremented a pass counter, i.e., has looped through the steps 744 to 752, exceeds 6. If the number of passes S is less than 6, step 750 increments the pass counter, before step 752 multiplies the value of VREF by 2, i.e., the digital output of the microcontroller 662 is increased to 02 ~EX and the analog value of VREF appearing upon the channel A output of the D/A
converter 639 is doubled. As a result, the effective digital gain imparted by the A/D converter 637 to the sensor signal is doubled. It is seen that the sùbroutine 710 will loop through the steps 744 to ~tep 752 until the pass counter exceeds 6 or the digital output reading obtained from the A/D converter 637 is in range. If in range, step 754 determines the halogen level as an eYponential value, whose mantissa is the output value of the A/D
converter 637 and whose exponent i~ the count accumulated the pass counter. Also, the incremented count of the pass counter corresponds to the gain imparted by the A~D converter 637. After step 754, the program returns to step 712 of the main loop as shown in FIG. SA. If the pass count exceeds 6 as determined in step 748, the subroutine 710 moves to step 754 to provide an indication that a large halogen reading has been taken.
Referring now to FIG. SC, there is shown the subroutine 722 that is called to ~ero out the background level of the sensor output as would represent that residual sensor signal in the ~bsence of or with a background level of the halogens in the enclosure being monitored. The subroutine 722 is entered Crom step 708 to an initial step 760 as would indicate that the dipswitch 657, as sho~n in FIG. 4B, has been thrown to the corresponding position. In step 762, the microcontroller 662 outputs upon its data bus 649 a digital value corresponding to a 00 ~EX and applies a strobe via the strobe line 653 to output from the D/A converter 639 a zero reference signal, which after it is buffered by the voltage follower 643, serves as the offset for the A/D converter 637 at its VIN(-) terminal. Next, step 764 sets the A/D converter 637 to its unity or maximum gain as is designed to provide a maY signal, i.e., a digital output indicative of 255. The microcontroller 662 applies a digital value via the data bus 649 to the D/A converter 639 and strobes it via the line 653, whereby an output is provided at channel A.
After being buffered by the voltage follower 641, this output serves as the VREF input to achieve unity gain of the A/D
converter 637. Next, step 766 eYamines the output of the A/D
converter 637 and, if e~ual to zero, step 722 stores that value as applied to the VIN(-) input, which provides the desired offset for the background level of halogens sensed by the -~ensor 612.
That offset value is stored in step 774 in the non-volatile RAM
651, before step 776 returns to step 724 of the main loop, as shown in FIG. SA. Step 724 again tests the dipswitch 657 to determine whether it has been released. If not, the program continues to loop thro~gh step 724 until the dipswitch 657 is released,-at which time the program return~ to step 710.

1 337079 `` ~
- , , -- If the output of the A/D converter 637 is not zero as ~-determined by step 766, step 768 increments by 1 the digital value applied to the D/~ converter 639. Thereafter, step 770 determines whether the presentty incremented value of VIN(-) equals to 255. Should the VIN(-) value reach 255 without a zero reading, the microcontroller 662 actuates it~ transceiver 660 to transmit an emergency message to the master computer indicative of detection of an extremely high background level of halogens, before turning off the sensor 612 and waiting in step 780 for service. The subroutine 722 will loop through steps 764 to 770 incrementing the digital value provided by the microcontroller 662 to the D/A converter 639 until a zero reading is obtained in step 766 a~ indicates that the differential input level as applied to the VIN(-) input would provide a zero reading from the A/D converter 637, whereby the constant background level provided by the sensor 612 is offset or eliminated.

Thus, there has been shown apparatus or a circuit including a sensor for detecting halogen leaks, which is capable of use over an extended period of time in the order of months and even years for monitoring halogen leaks in an enclosure. The apparatu~ and process of this invention is capable of extending the life of the halogen sensor for extended periods of time by deenergizing this sensor upon the detection of a leak, whereby the continued drawing of the ionization current through the collector/cathode of the sensor is stopped and the life of the I 3 3 7 l) 7 ~
..
sensor extended. Further, the apparatus and process of this invention is capable of initially taking a measurement of the background level of any halogen that may be present in an enclosure, storing that background level over an extended period of time, and subtracting it from the current outputs of the halogen sensor to deter~ine an increase in the levels of concentration of halogen compounds in the enclosure and thus a leak. Further, this invention is capable of operating to sense a wide range of levels of concentration of halogen compounds as may be present in the enclosure, by automatically adjusting the gain of the sen~or output amplifier and of and remembering the adjusted gain level and the selected one of a plurality of degrees of sensitivity for this apparatus to determine a valid leak, as opposed to a spurious reading. Because the ~ain controller communicates with this apparatus, the size of the leak, its location, its date and time can be stored onto the memory medium of the mzin controller for future analysis.
In considering this invention, it should be remembered that the present disclosure is illustrative only and the scope of the invention should be determined by the appended claims.

Claims (30)

1. Apparatus for detecting the presence within a gaseous atmosphere of a gas of a concentration above a preset level, said detecting apparatus comprising:
a) a sensor responsive to the presence of the gas to provide a signal of an amplitude proportional to the concentra-tion of the gas;
b) actuable alarm means to provide an indication of the presence of the gas above the preset level; and c) control means for operating said apparatus in a selected one of a monitoring mode wherein said control means detects and compares said signal with said preset level, a leak wait mode and an alarm mode wherein said control means actuates said alarm means, said control means operating said apparatus in said monitoring mode and if said signal is above said preset level, for operating said apparatus in said leak wait mode for a period of time, at the end of said period of time, said control means again detecting and comparing said signal with said preset level and, if above said preset level, for operating said apparatus in said alarm mode and, if below said preset level, for operating said apparatus in said monitoring mode.
2. Apparatus as claimed in claim 1, wherein said time period is fixed.
3. A system for monitoring a plurality of enclosures for the presence of a predetermined gas therein above a preset level, said system comprising:

a) a central station;
b) a plurality of gas monitoring apparati, each gas monitoring apparatus associated with a corresponding one of the plurality of enclosures for monitoring for the presence of the gas in each, each of said plurality of gas monitoring apparatus comprises a gas sensor for providing a signal of an amplitude proportional to the concentration of the gas in its enclosure, and control means for receiving and comparing said signal with said preset level and, if above said preset level, for providing an alarm message indicative thereof; and c) communication means coupled to each of said control means for communicating between said central station and each of said plurality of said gas monitoring apparati, whereby said alarm messages are transmitted to said central station.
4. The system as claimed in claim 3, wherein said communicating means comprises a transmitter disposed at each of said plurality of gas monitoring apparati, said control means is responsive to the concentration of the gas above the preset level for actuating said transmitter to transmit said alarm message to said central station.
5. The system as claimed in claim 3, wherein said communication means comprises receiving and transmitting means disposed at said central station and at each of said plurality of said gas monitoring apparati.
6. The system as claimed in claim 5, wherein said receiv-ing and transmitting means at said central station polls said receiving and transmitting means at each of said plurality of gas monitoring apparati.
7. The system as claimed in claim 6, wherein said control means responds to the detection of the concentration of gas above said preset level for storing said alarm message, said receiving and transmitting means at each of said plurality of gas monitoring apparati responsive to being polled to transmit said alarm message if previously stored by said control means of said polled gas monitoring apparatus.
8. A system for monitoring for the presence of and keeping a record of a gas at a plurality of enclosures above a preset level, said system comprises:
a) a central station comprising receiving means and memory means; and b) a plurality of gas monitoring apparati, each associated with one of the enclosures and comprising a sensor responsive to the concentration of gas within its enclosure for providing a signal of an amplitude proportional to the gas concentration therein, control means for comparing said signal with said preset level for providing a message indicative thereof, and transmitting means for transmitting said message to said receiving means of said central station, whereby said messages may be recorded in said memory means.
9. A system for monitoring as claimed in claim 8, wherein there is included means for determining and further storing in said memory means the time and identity of said monitoring apparatus from a given message is transmitted therefrom to said central station.
10. Apparatus for monitoring a gaseous atmosphere within an enclosure over an extended period of time for an increase in the level of concentration of a predetermined gas within said enclosure, said gas monitoring apparatus comprising:
a) a sensor exposed to said gaseous atmosphere for providing a signal indicative of the level of concentration of said predetermined gas within said enclosure;
b) memory means;
c) first control means for taking an initial reading of said sensor signal as indicative of a background level of the concentration of said predetermined gas within said enclosure and for storing said background level in said memory; and d) second control means for thereafter periodically taking current readings of said sensor signal over said extended period of time and for nondestructively accessing said memory means and subtracting said background level from each of said current readings to provide a compensated sensor signal indicative of the current level of concentration of said predetermined gas less said background level thereof.
11. The monitoring apparatus as claimed in claim 10, wherein said memory means comprises a non-volatile memory.
12. The monitoring apparatus as claimed in claim 11, wherein said non-volatile memory comprises an electrically erasable potentiometer.
13. The monitoring apparatus as claimed in claim 10, as adapted for monitoring said gaseous atmosphere for a given increase in the level of the concentration of said predetermined gas as would indicate a valid leak of said predetermined gas within said enclosure in contrast to a spurious indication thereof, wherein there is further included third control means for initially taking a first reading of said compensated sensor signal and thereafter a second reading of said compensated sensor signal and for storing said first and second readings in a second memory means, fourth control means for accessing said second memory means for determining a difference between said stored first and second readings to provide an indication of said measured increase of the concentration level of said predetermined gas, and fifth control means for comparing said measured increase indication with said given increase and, if greater, for providing a warning manifestation indicative of said valid leak of said predetermined gas.
14. Apparatus for monitoring a gaseous atmosphere to detect a wide range of the levels of concentration of a pre-determined gas within said gaseous atmosphere as confined in an enclosure, said monitoring apparatus comprising:
a) a sensor exposed to said gaseous atmosphere for providing a signal indicative of the concentration level of said predetermined gas within said gaseous atmosphere;
b) means coupled to said sensor for amplifying said sensor signal to output an amplified signal indicative of the halogen gas concentration level, said amplifying means having a variable gain;
c) means for setting said gain of said amplifying means; and d) means coupled to said variable gain amplifying means for determining whether said amplified output signal is greater than a predetermined level and, if so, for causing said gain setting means to decrease said gain of said amplifying means.
15. The gas monitoring apparatus as claimed in claim 14, wherein there is further included means for causing said gain setting means to increase said gain of said amplifying means until said determining means determines that said sensor signal is greater than predetermined level.
16. The gas monitoring apparatus as claimed in claim 14, wherein said setting means variably sets said gain of said amplifying means at a selected one of a plurality of discrete gains.
17. The gas monitoring apparatus as claimed in claim 16, wherein there is further included means for causing said setting means to increase said gain to the next greater discrete gain of said plurality until said determining means determines that said sensor signal is greater than said predetermined level and, thereafter, for causing said gain setting means to set said gain at the next lower discrete gain of said plurality.
18. The gas monitoring apparatus as claimed in claim 14, wherein said sensor provides its signal in analog form, and there is further included an analog to digital converter coupled to receive said analog sensor signal for converting same into a corresponding digital signal, said determining means responsive to said digital signal for determining whether said analog to digital converter has overflowed and, if so, for causing said setting means to decrease said gain of said amplifying means.
19. The gas monitoring apparatus as claimed in claim 11, as adapted to detect an increase in the level of the concentra-tion of said predetermined gas as would indicate a valid leak of said halogen gas as opposed to a spurious indication thereof, wherein said gain setting means increases incrementally said gain until said determining means determines that said sensor signal is greater than said predetermined level and for causing said gain setting means to decrease said gain to a determined lower gain, memory means, means for first taking an original value of said determined gain and thereafter current values of said determined gains and for storing said original value of said determined gain in said memory means, means for accessing said memory means for determining a difference between said original value and each of said current values of said determined gains to provide an indication of the measured increase of the concentration level of said predetermined gas, and means for comparing said determined gain difference with a predetermined gain difference and, if greater, for providing a warning indication indicative of said valid leak of said predetermined gas.
20. The gas leak monitoring apparatus as claimed in claim 19, wherein said taking means first takes an original value of said sensor signal and thereafter current values of said sensor signal and for storing said original value of said sensor signal in said memory means, said comparing means for comparing said determined gain difference with said pre-determined gain increase and if equal and said current value of said sensor signal is greater than said original value of said sensor signal, for providing said warning indication of said valid leak of said predetermined gas.
21. Apparatus for monitoring a gaseous atmosphere for a selected increase in the level of the concentration of a pre-determined gas within a given enclosure as would indicate a valid leak of said predetermined gas in contrast to a spurious indication, said leak monitoring apparatus comprising:
a) a sensor exposed to said gaseous atmosphere for providing an output signal indicative of the concentration of said predetermined gas in said enclosure;
b) means for calibrating said sensor output signal with respect to a background level of the concentration of said predetermined gas in said enclosure, to provide a calibrated output signal;
c) means for periodically taking a reading of said calibrated output signal to provide a series thereof over an extended monitoring period;
d) means for measuring the difference between successive readings of said calibrated output signal;

e) means for variably selecting the magnitude of said selected increase; and f) means for comparing said measured difference with said selected increase and, if greater for providing an indication of said valid leak of said predetermined gas into said enclosure.
22. The monitoring apparatus as claimed in claim 21, adapted for transmitting a message indicative of said valid leak indication to a controller disposed remotely of said monitoring apparatus, wherein there is further included means responsive to said indication to be enabled for transmitting said message to the controller.
23. The apparatus as claimed in claim 22, wherein said transmitting means is responsive to said valid leak indication for transmitting said corresponding measured difference with said message to the controller.
24. The monitoring apparatus as claimed in claim 22, wherein there is included means coupled to said sensor for amplifying said sensor output signal, said amplifying means having a variable gain, means for setting said gain of said amplifying means, means for first taking a first value of said set gain corresponding to said background level of said sensor output signal and thereafter second values of said set gain corresponding to each of said current levels of said sensor output signal and for storing said first and second gain values in said memory means, means for accessing said memory means and for determining a gain difference between said first value and each of said second values of said set gain to provide an indication of said measured difference in the concentration level of said predetermined gas, said comparing means comparing said predetermined gain difference with a predetermined gain difference and, if greater, for providing said leak indication, said transmitting means responsive to said leak indication to be enabled for transmitting said determined gain difference with said message to the controller.
25. The monitoring apparatus as claimed in claim 22, wherein said calibrating means comprises a non-volatile memory means actuated at the beginning of said monitoring period for taking an initial reading of said sensor output signal to provide an indication of said background level of the concentration of said predetermined gas within said enclosure and storing same in said non-volatile memory means, and means for non-destructively accessng said non-volatile memory means and subtracting said background level from the current level of said sensor output signal to provide said calibrated output signal.
26. The gas monitoring apparatus as claimed in claim 14, wherein there is further included comparison means coupled to said variable gain amplifying means for comparing said amplified output signal with a set reference concentration level and, if said amplified output signal is greater, for providing an indication of a leak of said predetermined gas into said gaseous atmosphere.
27. Apparatus for detecting and measuring concentration levels of a predetermined gas within a gaseous atmosphere over an extended continuum, said continuum comprising a plurality of non-overlapping ranges, said apparatus comprising:
a) a sensor exposed to said gaseous atmosphere for providing a signal indicative of the concentration level of said predetermined gas within said gaseous atmosphere;
b) means coupled to said sensor for amplifying said sensor signal to output an amplified output signal indicative of the concentration level of said predetermined gas, said amplified output signal lying between a first lower and a second upper limit, said amplifying means having a plurality of discrete gains corresponding respectively to said plurality of ranges;
c) means for setting said gain of said amplifying means; and d) means coupled to said variable gain amplifying means for determining whether said amplified output signal is greater than said second upper limit and, if so, for causing said gain setting means to decrease said gain of said amplifying means to the next lower discrete gain, whereby said amplified output signal lies between said first and second limits.
28. The gas detecting and measuring apparatus as claimed in claim 27, wherein said amplified output signal is of an analog form, and there is further included means coupled to said amplifying means for receiving and converting said analog output signal into a corresponding digital signal.
29. The gas detecting and measuring apparatus as claimed in claim 27, wherein said gain setting means provides an output signal indicative of said one set discrete gain.
30. The gas detecting and measuring apparatus as claimed in claim 24, wherein said amplified output signal is of an analog form, and there is further included an analog to digital converter for receiving and converting said amplified analog output signal into a corresponding digital output signal, said determining means responsive to said digital output signal for determining whether said analog to digital converter has over-flowed and, if so, for causing said gain setting means to set said gain of said amplifying means to the next lower discrete gain.
CA000616865A 1987-12-17 1994-05-30 Apparatus for monitoring a gaseous atmosphere Expired - Fee Related CA1337079C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CA000616865A CA1337079C (en) 1987-12-17 1994-05-30 Apparatus for monitoring a gaseous atmosphere

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US134,293 1987-12-17
US07/134,293 US4910463A (en) 1987-12-17 1987-12-17 Halogen monitoring apparatus
CA000586152A CA1331792C (en) 1987-12-17 1988-12-16 Halogen monitoring apparatus
CA000616865A CA1337079C (en) 1987-12-17 1994-05-30 Apparatus for monitoring a gaseous atmosphere

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CA000586152A Division CA1331792C (en) 1987-12-17 1988-12-16 Halogen monitoring apparatus

Publications (1)

Publication Number Publication Date
CA1337079C true CA1337079C (en) 1995-09-19

Family

ID=25672309

Family Applications (1)

Application Number Title Priority Date Filing Date
CA000616865A Expired - Fee Related CA1337079C (en) 1987-12-17 1994-05-30 Apparatus for monitoring a gaseous atmosphere

Country Status (1)

Country Link
CA (1) CA1337079C (en)

Similar Documents

Publication Publication Date Title
US5198774A (en) Gas monitoring apparatus
US4910463A (en) Halogen monitoring apparatus
EP0764331B1 (en) Method and apparatus for calibrating moisture sensors
US5608384A (en) Method and apparatus for monitoring for the presence of a gas
US6888467B2 (en) Gas detection instrument and method for its operation
US5055269A (en) Temperature limited catalytic gas detector apparatus
US4063447A (en) Bridge circuit with drift compensation
US6526801B2 (en) Method of compensating for drift in gas sensing equipment
US8543340B2 (en) Self-adjusting electrochemical sensor
US4151738A (en) Toxic gas monitor having automatic calibration
US5980728A (en) Diagnostic method and apparatus for solid electrolyte gas analyzer
EP0314919B1 (en) Combustible gas detector having temperature stabilization capability
US4376026A (en) Oxygen concentration measurement and control
US4460353A (en) Drop controller
US5444435A (en) Halogen monitoring apparatus
US2441677A (en) Detecting and indicating system for explosive gases
CA1337079C (en) Apparatus for monitoring a gaseous atmosphere
US3215900A (en) Fluid monitoring system
US3933433A (en) Method and apparatus for gas detection
US4674061A (en) Method and device for the automatic calibration of measuring and indicating appliances for the determination of partial pressure of a gas
US3449566A (en) Reference and sensing unit for automatic gas standardizers
US6628092B2 (en) Ballast and method of feeding a fluorescent lamp
JPH0368338B2 (en)
JPH0470676B2 (en)
SU1601130A1 (en) Method of monitoring counter-flow of charge and gas in blast furnace

Legal Events

Date Code Title Description
MKLA Lapsed