SYSTEM FOR CALIBRATING A LINE ISOLATION MONITOR

Abstract: A line isolation monitor (LIM) indicates the maximum hazard current of an ungrounded polyphase power distribution system. The LIM is microcontroller based and continuously monitors a fault impedance for each phase of the distribution system. The fault impedance is determined by the LIM by injecting a continuous sine wave measurement current into a ground terminal to generate a measurement voltage across the fault impedance. Using the measurement voltage and current, the LIM calculates the fault impedance and, using this impedance, calculates the hazard current based on the maximum line to ground voltage of the ungrounded system. The LIM has means for self-calibration and self-testing while on-line and during a power-up sequence. These tests compare measured and theoretical values of circuit parameters of voltage and current sensing circuits. During this calibration check, the monitoring circuits of the LIM are removed from the isolated system and known voltage and current signals are injected internally to the monitoring circuits to verify the component parameters. If the calibration parameters are outside tolerances by a first, low level, the LIM annunciates a warning, but will continue to monitor the hazard current. If the deviation is greater than a second, higher level, the LIM will indicates a fault and remove itself from service.

Description: SYSTEM FOR CALIBRATING A LINE ISOLATION MONITOR Description Technical Field Applicants' invention relates generally to an apparatus for monitoring an ungrounded polyphase power distribution system and more particularly to a microprocessor based line isolation monitor (LIM) for detecting and indicating the magnitude of hazard leakage current in the distribution system and ground. Related Applications This application is related to the following, commonly assigned applications filed concurrently herewith, entitled "Monitor For An Ungrounded System" (Application Serial No. 08/xxx,xxx, Our Docket OSH-1) and "System For Measuring Line To Ground Impedance" (Application Serial No. 08/xxx,xxx, Our Docket OSH-3). The contents of these applications are expressly incorporated herein by reference. Background Art Standards set by the National Fire Protection Association (NFPA) as detailed in the National Electric Code, Article 517-104 require that each power circuit within an anesthetizing location, such as in a hospital operating room, shall be ungrounded and isolated from any distribution system supplying other, non-anethetizing locations. Additionally, there is a requirement that a monitor must be used with the ungrounded system to provide a continuous indication of possible leakage or fault currents from any of the isolated conductors to ground. This requirement is for the safety of the patient. The normal high impedance of the human body can be bypassed during certain medical procedures such as when electrodes or probes are used to monitor heart activity, for instance. Under these conditions, alternating current flowing through the body could produce extreme shock or even death. The ideal isolated conductor in an ungrounded system has infinite impedance to ground and no current flow would result if a short circuit or very low impedance was placed between the conductor and ground. In the real world, however, there are no perfect insulators. All isolated conductors experience some capacitive or resistive leakage current to ground. Insulation deteriorates with age and use. Capacitive leakage are inherently present in all systems. Both types of leakages increase by the number of devices connected to the system and the length of the conductors themselves. These leakages provide a current path to ground and if a grounded low impedance is connected to the isolated conductor, as might be the case with a heart monitor, the current has a return path due to the leakages. Total hazard current is defined as the total current that would flow through a low impedance conductor connected between ground and the isolated conductor. Total hazard current is a combination of fault hazard current, that current that results from all user devices, except for a LIM, connected to the isolated system, and monitor hazard current, that current that results only from a LIM connected to the isolated system. The NFPA standards require a visual and audible warning if the total hazard current exceeds a predetermined limit and also limits the amount of current attributed to the monitor. Several types of LIMs have been available for some time. These include static ground detector and dynamic LIMs. These types, although somewhat effective, did not offer continuous monitoring, were somewhat difficult to use, and also added a large amount of hazard current to the total hazard current. One type of dynamic LIM that overcame some of these problems is disclosed in commonly assigned U.S. Patent No. 3.976,987. A DC reference voltage, proportional to the maximum voltage to ground from either conductor of a two wire ungrounded system is determined and used as a reference voltage for the system. A capacitive component and a resistive component are generated from the reference voltage and are applied across the system leakage impedances in parallel. Circuitry within the LIM separates the impedance voltage response from the line voltage response to produce a difference signal. This signal is used to derive a combined resistive and capacitive component signal representing the maximum hazard current of the system. However, this type of monitor requires periodic manual calibration which requires removal from the system for calibration at a test bench. The monitor is frequency and voltage dependant, thereby requiring different versions to accommodate different voltages and line frequencies. Furthermore, the monitor and others similar to it have limited self-test capabilities. These self checks could determine if the monitor itself is operating properly. Some multiphase systems require more than one monitor on the same circuit. Prior art LIMs were not capable of being coupled to a circuit at the same time due to LIM to LIM interference. If the ground connection to the LIM itself is defective, measurement of the hazard current will be unreliable. It would be desirable to provide a line isolation monitor that overcomes these disadvantages and includes other features that accurately computes the hazard current of an ungrounded power system. Summary of the Invention Accordingly, the principal object of the present invention is to provide an improved line isolation monitor for determining the hazard current of an ungrounded, polyphase system. A further objective of the invention is to provide a line isolation monitor utilizing a method of self-calibration and self-testing of its internal circuitry. An additional objective of the invention is to provide a line isolation monitor having a method of automatic detection of the line frequency of the ungrounded, polyphase system. An additional objective of the invention is to provide a line isolation monitor having a method of monitoring the integrity of its ground connection. Another objective of the invention is to provide a line isolation monitor having a . means of communicating measured and calculated parameters with other peripheral devices. Yet another objective of the invention is to provide a line isolation monitor having a means of measuring and compensating for the effects of stray capacitances within the line isolation monitor that could cause errors in the measurements. In the preferred embodiment of the invention, a DLIM, which is a digital line isolation monitor, is microcontroller based and continuously measures the fault impedance of a polyphase, ungrounded or isolated system. The DLIM could be used to monitor the hazard current of an isolated power system as used in a hospital, or the leakage current of an isolated power system as used in a marina. The DLIM could also be used to detect the degradation of insulation of electrical motors coupled to isolated power systems. It injects a continuous sine wave measurement current into the ground terminal of the isolated system. This sine wave current signal is precise with respect to its frequency and phase angle from cycle to cycle. This current creates a test voltage across the hazard impedance. The microcontroller generates the precision phase sine wave signal that has a frequency that is a ratio of the line frequency of the isolated system, which is also determined by the microcontroller. The microcontroller uses the line frequency to calculate the actual capacitive reactance at the power line frequency. A frequency selective current to voltage converter locked to the test current frequency, measures the injected current. For each phase, a frequency selective amplifier with appropriate filtering, measures the voltage to ground potential, which is the sum of the test voltage and the actual line voltage to ground. The sum of the test voltages from each phase to ground is computed. Knowing the magnitude and the phase of the test current and the test voltages, the microcontroller calculates the hazard impedance using Ohms law z(eq) = v/i. The equivalent shunt resistance and capacitance are also calculated. Knowing the hazard impedance, the maximum hazard current to ground is determined by the relationship Ihmax = (Largest phase voltage)/ Z(eq). The microcontroller determines the largest phase voltage. The hazard current is displayed on a two digit display and an analog bar graph. When the total hazard current, which includes both resistive and capacitive leakage currents, reaches a predetermined alarm threshold, the DLIM produces visual and audible alarms. The microcontroller calculates the hazard current at least once every five seconds. Since the current and voltage measurements are frequency selective, by using two different test frequencies, two DLIMs can share the same ungrounded system without interference with each other. For accurate results, the gains of the individual voltage amplifiers are measured and compared to theoretical values as determined from circuit design. This type of self calibration occurs every time the DLIM is powered-up, periodically during normal operation, or through a test mode which can be initiated manually. During this calibration check, the monitoring circuits of the DLIM are removed from the isolated system and known voltage and current signals are injected internally to the monitoring circuits to verify the component parameters. If the calibration parameters are outside tolerances by a predetermined amount, the DLIM annunciates a warning, but will continue to monitor the hazard current. If the deviation is greater than a second manual predetermined amount, the DLIM will indicate a fault and remove itself from service. Other features and advantages of the invention, which are believed to be novel and nonobvious, will be apparent from the following specification taken in conjunction with the accompanying drawings in which there is shown a preferred embodiment of the invention. Reference is made to the claims for interpreting the full scope of the invention which is not necessarily represented by such embodiment. Brief Description of the Drawings FIGs. 1a, 1b and 1c are effective circuit diagrams to illustrate the main principle of operation of a line isolation monitor connected to an isolated power system. FIG. 2 is a context diagram of a line isolation monitor constructed according to the present invention. FIG. 3 is a schematic block diagram of a line isolation monitor constructed according to the present invention and as outlined in Fig. 2. FIGs. 4a and b are detailed schematic block diagrams of a current generator and injector as depicted in Fig. 3 configured for 120 volt or 240 volt operation, respectively. FIGs. 5a and 5b are detailed schematic diagrams of the line isolation monitor constructed according to the present invention and as depicted in Fig. 3. FIG. 6 is a software data flow diagram illustrating important elements in the architecture of the microcontroller of the line isolation monitor as depicted in Fig. 3. Detailed Description Although this invention is susceptible to embodiments of many different forms, a preferred embodiment will be described and illustrated in detail herein. The present disclosure exemplifies the principles of the invention and is not to be considered a limit to the broader aspects of the invention to the particular embodiment as described. FIGs. 1a, 1 b, and 1c illustrates a typical isolated power supply system having conductors L1 and L2. A grounded system 2 connected to earth ground 4 is connected to a primary winding of isolation transformer 3. L1 and L2 are coupled to a secondary winding 5 of transformer 3. Impedances Z1 and Z2 are called the hazard impedances and represent stray resistance and capacitance to earth ground 4. For a perfectly isolated system, Z1 and Z2 are infinity ohms and a grounded, low impedance object would experience no current flow if it came in contact with either L1 or L2 and ground. However, all isolated and ungrounded systems have some resistive and capacitive leakage to ground caused by the fact that there are no perfect insulators. Some current flow will therefore result if that grounded object contacts L1 or L2. The total current that could flow is defined as a hazard current. V1 and V2 are the line voltages measured to ground from L1 and L2, respectively, using conventional methods. To measure the equivalent impedance to ground, a test signal is injected into the isolated system by LIM 6. A test current It is generated by the LIM 6 and injected into the ground terminal 4. A voltage generator 7 produces voltage V(test) which has a predetermined amplitude and frequency. The current through R1 , having a known resistance, becomes the test current It and its value is easily calculated since V(test) and R1 are known. This current It creates a test voltage across the impedances Z1 and Z2. The impedances Z1 and Z2 in turn, can then be calculated through Ohms law since the current It is known and the test voltages across the hazard impedances can be measured. Since the secondary winding 5 has a very low impedance to the test current It, it can be replaced by a short circuit as shown in Fig. 1 b and rearranged in Fig. 1c whereby Z(eq) is the equivalent impedance of the parallel combination of Z1 and Z2. This shows that a Thevenin equivalent impedance can be measured using a current generator 8, represented by voltage generator 7 and resistor R1 , from L1 or L2 to ground. The equivalent impedance Z(eq) is calculated by dividing the voltage across the current generator 8 by the generator current. Once Z(eq), the hazard impedance, is determined, maximum hazard current can be calculated using the greater line to ground voltage of either V1 or V2. FIG. 2 illustrates a functional or context diagram of a digital line isolation monitor (DLIM) 15 constructed according to the present invention. The voltage between the three phase conductors L1 , L2, and L3 and ground of an isolated and ungrounded system 10 is measured by DLIM 15 by creating a test voltage that will inject a known test current into the line conductors L1-L3. Knowing these voltages and knowing the current, DLIM 15 calculates the hazard impedance. A maximum hazard current is then calculated by using the highest of the three line voltages. The hazard current will be displayed through a two digit display 9 which is part of DLIM 15 and a proportional analog signal to the hazard current will be sent to an external and remote current display 11. If the calculated hazard current current exceeds a selectable 2mA or 5mA threshold level, an audible alarm 12 will sound. Alarm silence switch 13 may disable the alarm after it has sounded. Output relay 14 will change state and visual red indicator 16 will turn- on indicating a hazard condition and visual green indicator 17 will turn-off to indicate that the ungrounded system 10 has a higher hazard current potential than the threshold level. DLIM 15 has a serial port for transmitting data to a computer 19 or other type of data processor. This data contains information of the status of DLIM 15 and data concerning the ungrounded system 10 that has been measured and calculated by DLIM 15. A test button 21 allows the DLIM to self test itself when depressed. FIG. 3 is a schematic block diagram of the digital line isolation monitor (DLIM) 15 constructed according to the present invention and as outlined in Fig. 2. The three phase isolated and ungrounded system 10 has conductors L1 , L2, and L3 is isolated from a grounded system by some isolation means 3. The ungrounded system could be of any type such as from a generator, an inverter system from a UPS system, or an isolation transformer. Hazard impedance in each leg is designated by Z1 , Z2, and Z3, respectively. A power supply 18 connected to L1 and L2 generates the circuit supply voltages and circuit ground 20. Signal 22 is used by a microcontroller 24 to determine the line frequency of the ungrounded system. The microcontroller 24 contains at least a CPU, a memory, and analog to digital (A/D) converters. All signal processing, calculations, control signals, and outputs are controlled by the microcontroller 24. The microcontroller 24 generates digital signals 26 that go to a sine wave generator 28 to produce a sine wave signal 30. These signals 26 are generated 16 times per cycle at a predetermined frequency which is related to a ratio of the line frequency signal 22. A hardware low pass filter smooths the output 30 to make it continuous between sample points. Current injector 32 is driven by sine wave signal 30 to create a test current 11 which is injected into L1 , L2 and L3 and is used to determine the hazard impedance as previously discussed. A current to voltage converter 34. measures the injected current and sends a signal ITEST to the microcontroller 24. A calibration control 36 provides switching functions between monitoring the line voltages V1 -V3 and a calibration voltage Vt during calibration and also provides the means for injecting the test current 11 into earth ground 4. Control signals CAL1 and CAL2 are generated by microcontroller 24 during the calibration procedure or test mode. In normal operation when the DLIM 15 is monitoring and measuring the hazard current, line voltages V1 -V3 are coupled to buffer amplifiers 38-39 having gains of G2, G3, and G4, respectively. Buffer amplifier 38 measures the L1 voltage to ground V1 which is the sum of the L1 voltage to ground and the test voltage created from the injected test current 11. Output VL1 is equal to V1 * G2. Using the relationship that V1 =(IV * G2)/G2, the microcontroller 24 calculates the actual V1 voltage to ground. The gain G2 is measured, and as will be discussed later, is checked during calibration to ensure that it has not changed and is within predetermined tolerances. In a similar manner, voltages V2 and V3 to ground are calculated and gains G3 and G4 are measured by the microcontroller 24. The microcontroller 24 will add the VL1 and VL2 signals. Each of these signals is the algebraic sum of the line voltage to ground, which is at line frequency, and the test voltage signal, which is at a ratio of the line frequency. Since the test voltage component to ground has the same phase and amplitude relationship for VL1 and VL2, the sum will be double the amplitude of the test voltage. The line frequency signals L1 and L2 to ground are 180 degrees out of phase, and will be cancelled when summed together if the impedances Z1 and Z2 are equal. If unequal, L1 and L2 will not cancel, but the test voltage is still doubled, increasing the ratio of the test voltage to the line voltage over the case of measuring the test signal to ground on a single line. A frequency selective voltmeter function within the microcontroller 24 locked to the frequency and phase of the test current measures the sum of the test voltages from L1 and L2 to ground. Likewise, a frequency selective ammeter function also locked to the frequency and phase of the test current measures the current injected into the system. With these quantities calculated, the microcontroller 24 then calculates a complex hazard impedance using Ohms law z(eq)=v/i. The equivalent shunt resistance and capacitance are also calculated. Since these quantities are complex numbers, both magnitude and phase are calculated. Additionally, the calculated hazard impedance must be corrected to represent the impedance at line frequency since the test current is not at the same frequency as the line frequency. The impedance is modeled as a resistor-capacitor parallel combination. Although the real part is not frequency dependent, the imaginary part is frequency sensitive. To correct for this difference, the imaginary part of the impedance, expressed as an admittance, is multiplied by the ratio of the line frequency to the test frequency to give the admittance at the line frequency. In order for the microcontroller 24 to calculate the amplitude and phase of the complex phase voltages VL1-VL3, a discrete Fourier transform (DFT) process is used. Since the injected test current 11 is generated by the microcontroller 24, the measured voltages are phase coherent with the measurement signals. The DFT acts as a frequency selective voltmeter, phase locked to the frequency of the test signal, and separates the real and imaginary parts of the measured signals using the following equations: n REAL PART - K ∑ Vn SIN(Θ) eq. 1 0 and n IMAGINARY PART = K ∑ Vn COS(Θ) eq. 2 0 As is obvious to one skilled in the art, other Fourier Transforms such as a Fast Fourier Transform (FFT) could be used in place of the DFT function. The sums are calculated over multiple cycles of the test frequency. Vn is the value of the input voltage being measured, VL1 , VL2, or VI3, at position 0 in the cycle. These sums are scaled to represent the real and imaginary parts of the input voltage. Values for the sine and cosine functions are taken from lookup tables programmed into the microcontroller 24. To reduce errors caused by spectral leakage, the input voltages are first windowed using a modified Kaiser- Bessel window. This modification involves the use of discrete points in the window function to represent the window function at a given position. This allows for a decrease in the size of the window function. Knowing the hazard impedance, the maximum hazard current to ground is determined by microcontroller 24 using the relationship Ihmax = (Largest phase voltage)/ Z(eq). The microcontroller 24 measures the phase voltages V1-V3 and determines the largest of the phase voltages V1-V3 using a DFT tuned to the line frequency. The hazard current is displayed on a display panel 42 having a two digit display for displaying the hazard current in milliamperes (mA), a single digit for displaying a threshold current, and an analog bar graph for displaying a percentage, from 0 to 160 percent, of the threshold current. The threshold current can be set for either 2mA or 5mA and is the point whereby the DLIM will indicate a safe condition if the measured hazard current is below the threshold and a hazard condition if the hazard current is above the threshold. An analog signal is also created by the microcontroller 24 to drive a remote analog meter 44 for also displaying the hazard current. When the total hazard current, which includes both resistive and capacitive leakage currents, reaches the predetermined alarm threshold, alarm contacts 46, audible alarm 48, and visual status indicator 50 are energized from signals generated by microcontroller 24. The microcontroller 24 calculates the hazard current at least once every five seconds. Since the current and voltage measurements are frequency dependant, microcontroller 24 has provisions for changing the frequency of the sine wave generator 28 and thus the frequency of the injected test current. Since the DFT voltmeters are very frequency selective, this will allow different DLIMs, operating at different test current frequencies, to share the same ungrounded system without interference from each other. Microcontroller 24 also has provisions for broadcasting data through an infrared port 52 and a serial communications port 54. This data includes measured and calculated values relating to voltage, current, impedance, and frequency, among other operating conditions. The infrared port allows for ground isolation between the system and the remote location receiving the infrared signals. The serial data is in ASCII format using the Hewlett Packard HP-95LX serial infrared protocol, although other protocols are possible. FIG 4a details operation of the test current injector 32 configured for 120 volt operation. Transformer T1 has windings 60 and 62 connected in parallel across the L1 , L2 power line voltages. Capacitor C1 will be charged to the positive peaks of V1 + Va by the power line through an auto transformer winding 64 of T1 and diode CR1. Similarly, capacitor C2 will be charged to the negative peaks of V1 + Va through winding 64 of T1 and diode CR2. Node A is a current summing node and, under Kirchhoff's current law, the currents entering and leaving node A must sum to zero. The input currents into operational amplifier 66 are very small and can be considered to be essentially zero. Op amp 66, along with Q1 and R1 form a voltage to current converter and will vary current i1 so that the voltage across R1 will be the same as vg. Any variation in the feedback voltage across resistor R1 will cause op amp 66 to change its output voltage, changing the conductivity of transistor Q1 and modulating the test current It. Q1 is a MOSFET having negligible gate current. Previous current generators used bipolar transistors which have measurable base current that added to the test current, giving erroneous results when measuring the resultant test voltage. Current generator 68 produces a constant current i2. The test current It will varying according to the relationship between i1 and i2. If i1 equals i2, the test current It will be zero. If i1 is greater than i2, the test current It will flow out of node A, through R1 to earth ground 4 and the hazard impedances Z1 and Z2, and return to the negative terminal of capacitor C1. If i1 is less than i2, the test current It will flow from the positive terminal of capacitor C2, through the hazard impedances Z1 and Z2, through R1 , and into node A. The current It flowing through R1 is equal to vg/R1 , using Ohms law. Voltage vg is the sine wave signal 30 generated by the microcontroller 24 and sine wave generator 28 and current It becomes the test current 11 flowing through the equivalent hazard impedance Z(eq) previously discussed. Transformer T1 is an autotransformer and is used to boost the line voltage since the test current It must flow during peaks of the line voltage which buck the the test voltage. The voltage va sets the compliance of the current source during peaks of the power line. To provide versatility with the DLIM, the same current injector circuit 32 can be used on a 220 volt system without changing component values. Through the use of a voltage selector switch, the configuration of transformer T1 can be changed so that the primary windings 60 and 62 are connected as shown in Fig 4b. This switch also moves the junction of C1 and C2 from L1 to the center tap of Tϊ . This modifies the current paths for the test current It such that if i1 is greater than i2, the test current It will flow out of node A, through R1 to earth ground 4 and the hazard impedances Z1 and Z2, through the primary winding 60, and return to the negative terminal of capacitor C1. If i1 is less than i2, the test current It will flow from the positive terminal of capacitor C2, through the primary winding 60, through the hazard impedances Z1 and Z2, through R1 , and into node A. The remainder of the circuit functions the same as the 120 volt version. Figs. 5a and 5b are detailed schematic diagrams of the preferred embodiment of the digital line isolation monitor 15 of the present invention and as detailed in Fig. 3. Values for standard resistors, capacitors, and biasing networks obvious to one of ordinary skill in the art have not been detailed. Microcontroller 24 comprises a 16 bit Motorola MC68HC16Z1 microcontroller chip 70 with on-chip A/D converters and support circuitry including a reset circuit 71 , an EPROM memory 72, and system clock 73. Microcontroller 24 has an internal watchdog timer which is updated periodically. If it ever times out, due possibly to a transient that may have corrupted its internal or external memory, the microcontroller 70 will reset itself and start a new power-up sequence. An internal counter will keep track of the number of timeouts. This will also occur if the microcontroller 70 detects spurious interrupts which also could have been due to transients. For a three phase system, incoming line conductors L1-L3 are connected to terminals 1-3, respectively. For a single phase system, the L3 terminal 3 is left open. Switch S4D is used to select the single or three phase mode of operation. Because the DLIM 15 may be connected to branch circuits without circuit breakers or other protective devices, fuses F1-F2 provide internal fusing of the L1-L2 lines. All input resistors 74 are carbon film and flame proof to absorb the line voltages in the event of contact failure of switching relays K1 and K2. Relays K1 and K2 function as part of the calibration control 36. With the relays deeήergized, as shown, the voltages are coupled through resistors 75 for scaling by buffer amplifiers 38-40. Resistors 75 present very high impedance to maintain at least 30 megohms of resistive impedance to ground, limiting the DLIM hazard current. The outputs VL1-3 of amplifiers 38-40 are proportional to the line voltages V1-V3 measured with respect to ground and are inputted to microcontroller 70 for processing. The complex gain of each amplifier 38-40 is measured and checked during calibration to ensure that it has not changed and is within predetermined tolerances calculated from theoretical values of the system components. Relays K1 and K2 route the calibration voltage Vt to the inputs of amplifiers 38-40. The complex gains of the amplifiers are calculated using the ratio of the output voltages VL1 -3 to the input voltage Vt. Since the gain is the ratio of two signals derived from Vt, the exact value of the gain can be found without knowing the exact value of Vt. After calibration, microcontroller 70 compares the measured calibration parameters to the theoretical values as determined from the circuit design. If the comparison shows that these parameters are outside the tolerances by a first predetermined amount, DLIM 15 will annunciate a warning but will still continue to monitor the hazard current. If these parameters are outside the tolerances by a second and greater predetermined amount, DLIM 15 will declare a fault and remove itself from service and annunciate a warning. DLIM 15 calibrates itself at a rate that will allow relays K1 and K2 to have at least a ten year life. In a background calibration mode, a single calibration of the individual parameters such as gain G2 is made periodically and separately at one minute intervals to meet a hazard current response time requirement that calls for continuous monitoring of the hazard current. Over time, this will allow for all appropriate parameters to have been recalibrated. As discussed above, the gain of amplifiers 38-40 will be calculated at the test frequency and will have to be compensated to generate the gain at the line frequency of the system. In addition to the gain checks during calibration, proper operation of the DLIM 15 is periodically monitored by a self check. When relay K2 is energized by control signal CALIBRATE 2 from microcontroller 70, The DLIM's signal ground is switched from earth ground 4 to the midpoint of series connected precision resistors R33, R34, R45, and R46. These resistors have the same impedance and are connected across L1 and L2. Under this condition, the hazard impedance becomes the parallel combination of R34-R46 and R33-R45. The DLIM 15 measures this impedance at the test frequency, using the same method as it uses to calculate the hazard impedance during normal operation, and compares the impedance with a theoretical equivalent resistance based on the values of the resistors. If the measured value is within tolerance, the DLIM 15 will be assumed to be operating correctly. If not, the DLIM 15 will enter an error state which will be described later. A failed test could result from a faulty current injector 32 or current to voltage converter 34, defective relays K1 or K2, or a faulty A/D converter channel, including amplifiers 38-40. This test also checks the ratio of L1 to ground and L2 to ground at the line frequency. Since the resistors are equal, this ratio should very nearly equal 1. If the ratio is outside by a predetermined tolerance, the DLIM will also enter the error state. DLIM 15 also checks the external ground connection 4 which must be connected for proper operation of the DLIM 15. The missing ground detector relies on the fact that there is always some impedance to ground in any practical installation. If the DLIM 15 detects that the hazard impedance is greater than the largest practical impedance, which is approximately 8 megohms, the DLIM will consider it a fault, sound an alarm, and display an error code on a digital display. Transformer T1 has primary windings 60, 62 connected to L1 and L2 with switch S1 providing a means of connecting them in parallel or in series to accommodate line voltages of either 120 V or 240 V. Winding 64, as previously discussed, along with windings 60 and 62 are used with the test current injector circuit 32 to inject the test current It into line conductors L1 and L2. Transient and surge voltage protection is provided by suppressors RV1 and RV2. Center tapped secondary winding 75 provides the voltage source for power supply 18, which generates the circuit voltages for the DLIM 15. A conventional switching regulator circuit, the details of which are well known, and are not an object of the present invention, is utilized to generate the circuit voltages for the DLIM 15. Transistor Q1 , with appropriate biasing and filtering, outputs signal ACFREQ for inputting to microcontroller 70 for determining the line frequency of the isolated system. DLIM 15 sets the test frequency as a ratio of the power line frequency. Microcontroller 70 measures the line frequency by measuring its period, using the microcontroller clock, as determined by crystal 73, as a time base. This clock is not exact and will vary with time and temperature. However, this clock is also used to set the sample times for the test current It and sampling the test voltages, and absolute timing accuracy is not required. The sample time is given as: SAMPLE TIME = 1/(128 * TEST FREQUENCY) eq. 3 DLIM 15 samples the test voltages 128 times per cycle and samples the power line signal n times per power line cycle. The line frequency can then be expressed by the equation: LINE FREQUENCY = 1/(n * SAMPLE TIME) . eq. 4 Substituting eq. 3 into eq. 4 gives: LINE FREQUENCY = (12Sn) * TEST FREQUENCY eq. 5 The test frequency is therefore given by: TESTFREQUENCY=(n/128) * LINE FREQUENCY eq.6 The term n is a design variable and is used to select the approximate test frequency for a given line frequency and provides a method of selecting different test frequencies. Any wave form can be built from a weighted sum of square waves. Microcontroller 24 generates a sine wave using this principle with a Walsh sine wave generator. Walsh functions are described in an article entitled "Walsh Functions" in the September, 1977 issue of BYTE MAGAZINE and a direct object of the present disclosure. The sine wave is generated by a circuit that consists of a digital expander which expands an input square wave into a variety of digital waveforms and an analog adder that will recombine, in a predetermined ratio, the digital waveforms, to produce an analog output having a frequency related to the original square wave. The digital waveforms are square waves and are subsets of the original input square wave. As an example, the first waveform SAL(O) may be a square wave having a period x. Function SAL(1) may have a period of x/2 and SAL(2) may have a period of x/4, and so on. Each of the functions SAL(n) will be added to a composite waveform according to a Gray code. If the period is divided into n segments, the first Walsh function WAL(O) could consist of SAL(1), the second would consist of SAL(1) and SAL(2), the third would include only SAL(2), and so on. Different waveforms can be generated if the analog adder adds only some of the resultant Walsh functions. For the present invention, a sine wave is generated using three Walsh terms: SAL(1), SAL(3), and SAL(7). They are summed together by a summer circuit 28 consisting of operational amplifier U7C with input resistors 78 according to the equation: SINE WAVE = 1.0 * SAL(1 ) + 0.5 * SAL(3) + 0.25 * SAL(7) eq. 7 The amplitude of the sine wave can be reduced simply by dividing both sides of equation 7 by a constant. Thus, to reduce the sine wave amplitude by one half, the new equation becomes: SINE WAVE/2 = 0.5 * SAL(1 ) + 0.25 * SAL(3) + 0.125*SAL(7) eq. 8 This ability to change the magnitude of the sine wave output of sine wave generator 28 provides a means to increase or decrease the test voltage VT, allowing for better resolution of the hazard current calculations at the lower current levels. The microcontroller 70 will set the amplitude of the sine wave output based on the hazard impedance of the distribution system to maintain a compliance of the amplitude of the test current It- The input resistors 78 have resistance values that are correspondingly divided by two. Only three of the input resistors 78 are used at one time such that the amplitude of the sine wave, and ultimately the amplitude of the test voltage VT and test current It can be easily changed by shifting the three Walsh terms to different consecutive summing resistors 78. Amplifier U1A also acts as a hardware low pass filter which smooths the output 30 to make it continuous between the sample points. The resultant voltage output signal F is coupled to amplifier U1 A for filtering the resultant odd harmonics. The theoretical coefficients are not exactly 0.5, 0.25 and 0.125, which will add some distortion to the waveform of signal F. Output 30 of amplifier U1 A is coupled to the current injector circuit 32 and is also used to produce the test voltage Vt used in calibration and self-testing . Operation of the current injector circuit 32 has been previously discussed with reference to Figures 3a and 3b. Double-pole, double- throw switch S1 configures transformer T1 for 120 volt or 240 volt operation. With S1 as shown, windings 60 and 62 are connected in parallel across the L1 , L2 power line voltages. Capacitor C11 is charged to the positive peaks of V1 + Va by the power line through an auto transformer winding 64 of T1 and diode D9. Similarly, capacitor C10 is charged to the negative peaks of V1 + Va through winding 64 of T1 and diode D10. Node 80 is the current summing node A and currents entering and leaving it must sum to zero. Signal 30 from amplifier U1 A as inputted to pin 3 of op amp U3A for modulating the test current It flowing into the ground node 4. Op amp U3A, along with Q2 and the resistor combination of R35 and R41 form a voltage to current converter and will produce a current 11 into node 80 such that the current through the R35 and R41 will create a voltage across R35 and R41 that will be the same as signal 30. The current through R35 and R41 becomes the test current It. Transistor Q3, which is an N-channel depletion mode MOSFET combined with resistor R36 in its source lead is a current generator for producing a constant current i2 into node 80. Test current It varies according to the relationship between ι ' 1 and i2 as previously discussed. With switch S1 in its other state, windings 60 and 62 are connected in series, allowing the same current injector circuit 32 to be used on a 240 volt system without changing component values. Switch S1 also moves the junction of C10 and C11 from L1 to the center tap of T1. This modifies the current paths for the test current It such that if i1 is greater than i2, the test current It will flow out of node 80, through R35 and R41 to earth ground 4 and the hazard impedances Z1 and Z2, through the primary winding 60, and return to the negative terminal of capacitor C11. If i1 is less than i2, the test current It will flow from the positive terminal of capacitor C10, through the primary winding 60, through the hazard impedances Z1 and Z2, through R35 and R41 , and into node 80. The remainder of the circuit functions the same as the 120 volt version. Amplifiers U3B and U2C scale the voltage across resistors R35 and R41 to create signal ITEST for use by the microcontroller 70 in calculating the hazard impedance and other parameters. A -2.5 VDC voltage level provides a means of level shifting of the test current signal ITEST and the voltage signals V1 -V3 since these voltages are AC signals and must be positive voltages for inputting to the microcontroller 70. Microcontroller 70 receives various inputs from program switches to control the configuration of DLIM 15. Switch S4A determines if the hazard alarm threshold will be 2mA or 5mA. Switch S4B determines the frequency of the voltage test signal VT from the DLIM 15, allowing two different DLIMs to monitor the same system without interference from each other. Switch S4C disables the audio alarm 48. When this is in the OFF position, the audio alarm will be disabled. The alarm will sound however for calibration warnings, DLIM faults, and missing ground faults. DLIM 15 has various indicators to provide a visual indication of its status in addition to the SILENCE LED DS5. A green SAFE LED DS3 is used to indicate that the hazard current is below the threshold level selected, either 2mA or 5mA. A red HAZARD LED DS4 when lit, indicates that the hazard current is above the threshold level, or indicates that an error condition exists for the DLIM itself. This error condition does not imply that the power system is unsafe, but is meant to alert the user that its safety is unknown since the DLIM may not be monitoring the power line accurately. Multiplexer and driver circuit 84 receives data from microcontroller 70 and directs it to a single digit display 85 for displaying the selected threshold current, a two digit display 86 for displaying the hazard current, and a 20 segment analog bar graph display 87, 88 for indicating, in ten percent increment, the percentage of threshold current that the hazard current is at. The first ten segments are from 0 to 100 percent and may be green to indicate that the hazard current is below the threshold level. Segments 11 -16 are red and indicate up to 160 percent. In addition to controlling a bar graph display, the microcontroller 70 has other outputs for conveying the status of the DLIM and the power system it is monitoring. This includes a pulse width modulated output METER OUT that is proportional to the hazard current. This provides a method for driving an analog meter 44 that would be at a location remote from the DLIM. A serial communications channel 54 is coupled to amplifier U7D for one way communication with a peripheral device to communicate measured and calculated parameters and other pertinent data. An infrared port 52 will also output this information approximately every two seconds. This information will be in ASCII format using a Hewlett Packard HP-95LX serial protocol and will include line to ground RMS voltages, shunt impedance, test current and voltages, hazard current, number of watchdog time-outs or spurious interrupts, and the cause of last microcontroller reset. Besides the audio alarm output 48, the microcontroller 70 will energize a two pole, form C contact relay K3 when the threshold level has been exceeded. One set of contacts of K3 is uncommitted, allowing the user to control a variety of different devices. The other set of contacts supplies an isolated low voltage from an isolated secondary from transformer T1 that can be used to control a remote annunciator such as Square D Company's models IA-1 C and M5-IA1. Microcontroller 70 performs all diagnostics and self tests at preset times. At initial energization or power-up it will test the microcontroller hardware and software, sequentially test the analog and digital displays for a visual test, test the ground connection, measure the power line frequency, and calibrate and test the measuring circuitry. The DLIM 15 will enter an error state if any of the tests fail. In this state, the two digit display will display an "Er" message, activate the audio alarm, turn off the SAFE LED and turn on the HAZARD LED. Activating test button S2 will place a two digit error code in the two digit display. This error code will indicate the reason for the failure as indicated in Table 1 as follows: ERROR CODE ERROR CONDITION 01 Test voltage gain is high 02 Test voltage gain is low 1 0 L1 gain is high 1 1 L1 gain is low 20 L2 gain is high 21 L2 gain is low 40 Low test generator current 41 High test generator current 50 No ground connection 60 Test generator voltage is low 61 Test generator voltage is high Table 1 Releasing the test button S2 will reset the DLIM and restart the power- up sequence. FIG. 6 details the software data flow within microcontroller 70 to illustrate important elements in the architecture of the microcontroller 70. The executive program 100 directs and controls all functions within DLIM 15. Upon receiving a power-up signal 102, the executive 100 will start the power-up sequence which requires a calibration sequence 104 and voltage measurements 106 of the line voltages of an ungrounded system 10 and test voltages previously described. Operation of the microcontroller 70 is under the influence of timed interrupts 108 which controls the Walsh generator 110 for producing the test voltage 1 12 having a frequency that is a multiple of the line frequency. The line frequency is determined from zero voltage crossings of a sample of the L1 and L2 line voltages and is stored in the LIM data base 114. Walsh generator 110 uses data from tables 116 for constructing the sine wave test voltage 1 12. These tables are also used by calculation routine 118 to determine the amplitude and phase of the complex voltages representing the values of line voltages L1-L3, the test current 120 injected into the ground connection, and the test voltage 112. This is done using a digital signal processing method employing discrete Fourier transforms. The executive 100 controls and directs the particular parameter that is being measured. The calibration sequence 104 will verify that tolerances for the various circuit elements are within specified limits and will maintain data in a location 122 for use in calculating the hazard current and during calibration cycles that are periodically conducted when the microcontroller 70 is placed on-line. After power up, the microcontroller 70 is placed on-line to continuously monitor the hazard current of the ungrounded system 10. The executive 100 will request a measurement of the line voltages L1- L3 and the test voltages 1 12 to calculate Fourier sums 124 representing the complex values of the voltages. These values are used to calculate the maximum line voltages by calculation routine 126. Calculation routine 106 calculates the test voltage and current 120 and stores the result in storage 128. Calculation routine 130 uses the test voltage and test current from storage 120 to calculate the hazard impedance using Ohms law. Knowing the hazard impedance and the maximum line voltage, the hazard current is calculated by calculation routine 130, again using Ohms law, and is stored in the data base 114 where the executive can readily access it for comparison with the threshold level setting. The executive 100 also controls several external devices that provide visual, audio, and electrical information regarding the status of the ungrounded system. If the hazard current is below a preset level, the executive sends control signals to external relay 132 for keeping it deenergized and to turn-on SAFE LED 134. When the hazard current exceeds the preset level, it energizes the external relay 132, turns off the SAFE LED 134, turns on an ERROR LED 136 and energizes an audio alarm 138. Executive 100 provides control for a communications routine 140 which selects data from the data base 114 for outputting from a serial data communications port and an infrared optical port. In addition to a calibration of the system during power-up, the executive 100 will order a calibration routine 104 if a test control 142 is activated. This signal will force the power-up routines to restart and calibrate the system. Standards set by NFPA require that line isolation monitors be tested periodically, at least once a month and this input will provide that function. The standards also require that the hazard current be displayed continuously. The executive 100 will command that the hazard current be measured and calculated at least every five seconds. Under control of the executive 100, there will be an automatic self-calibration routine running essentially concurrent with the hazard current determination. This routine will test each parameter separately, at one minute intervals, while maintaining the continuous monitoring of the line hazard current. The test control 142 will also provide a means of debugging and testing the DLIM 15 to facilitate troubleshooting. While the specific embodiments have been illustrated and described, numerous modifications are possible without departing from the scope or spirit of the invention. For instance instead of injecting a known test current into the ground terminal, a constant test voltage applied through a known resistance could be utilized to provide a similar function. It is readily apparent that all of the electronic circuitry is adaptable for integration as an ASIC chip. Although in the foregoing embodiments have been applied to single and three phase systems, it will be clearly understood that the invention is equally applicable to polyphase systems.

Claims: Claims We claim: 1. A system for self-calibrating a line isolation monitor that continuously displays a hazard current between line conductors of an ungrounded polyphase power distribution system and ground, said monitor having a current sensing circuit for measuring a test current injected into said power distribution system, a voltage sensing circuit for each of said line conductors, said voltage sensing circuits for measuring voltages between said line conductors and ground, said voltages consisting of a line voltage and a test voltage generated across a hazard impedance between said line conductors and ground by said test current, said self- calibrating system comprising: A. a sine wave generator for generating a calibration test voltage; B. a calibration control for selecting inputs to said voltage sensing circuits, said inputs coupled to said line conductors when said monitor is in a normal mode of operation, and said inputs coupled to said sine wave generator when said monitor is in a calibration mode, said voltage sensing circuits to measure said voltages between said line conductors and ground when in said normal mode and to measure said test voltage when in said calibration mode; C. a first comparator for comparing outputs of said voltage sensing circuits with predetermined parameters when in said calibration mode, said predetermined parameters calculated as theoretical values based on component values and tolerances within said voltage sensing circuits, said first comparator for outputting a signal representative of a deviation from said predetermined parameter; D. a second comparator for comparing said test current with a theoretical value based on component values and tolerances within said current sensing circuit and said converter; E an output circuit for annunciating a warning if either of said outputs representing a deviation from said first and second comparators exceed a first, predetermined amount, and for annunciating a fault if either of said outputs exceed a second, greater, predetermined amount when in said calibration mode; and F. wherein said line isolation monitor continuously self- calibrates at predetermined times without interfering with said continuous display of said hazard current. 2. The self-calibrating system of claim 1 further including means for switching measurement of said voltages between said line conductors and ground to measurement between said line conductors and a signal ground coupled to a midpoint of two equal and series connected resistors connected between two of said line conductors, said series connected resistors having a theoretical and known impedance, said line isolation monitor having means to compare said theoretical impedance with a measured and calculated impedance using said voltage sensing circuits and said monitor having means for annunciating a fault if said measured and calculated impedance is outside of predetermined tolerances with said theoretical impedance. 3. The self-calibrating system of claim 2 further including means for measuring a ratio of a first voltage between a first of said line conductors and said signal ground and a second voltage between a second of said line conductors and said signal ground and wherein said ratio should be approximately equal to one, and said monitor having means for annunciating a fault if said ratio varies appreciably from one. 4. The self-calibrating system of claim 3 further including means for comparing said first voltage and said second voltage with a minimum and predetermined, expected line voltage, said monitor having means for annunciating a fault if either of said voltages is below said minimum voltage. 5. The self-calibrating system of claim 2 wherein said line isolation monitor includes means for self-configuring for operation with different voltage levels from said power distribution system, said self-configuring to maintain a compliance of the amplitude level of said test current at the different voltage levels using said two equal and series connected resistors. • 6. The self-calibrating system of claim 1 wherein said voltages between said line conductors and ground, and said test current are complex functions having phase and amplitude terms, and wherein said line isolation monitor further includes means to compute and process said complex functions to separate said terms into real and imaginary parts of gain. 7. The self-calibrating system of claim 1 wherein said line isolation monitor includes a microcontroller, said microcontroller for controlling and initiating said self- calibration under various conditions, said various conditions including an initial calibration upon power-up and periodic calibrations at predetermined time intervals thereafter. 8. The self-calibrating system of claim 7 wherein microcontroller further including a watchdog timer which will initiate a start-up sequence and self-calibration if said timer times-out, to insure that said line isolation monitor functions properly. 9. The self-calibrating system of claim 7 wherein said microcontroller determines line frequency of said power distribution system and functions as said sine wave generator to generate said calibration test voltage having a frequency at a ratio of said determined line frequency. 10. The self-calibrating system of claim 7 wherein said microcontroller uses a predetermined time point to generate said calibration test voltage and uses said predetermined time point to sample said voltages between said line conductors and ground to preserve a phase angle relationship between said voltages to reduce timing source errors in said microcontroller. 1 1 . The self-calibrating system of claim 7 wherein said microcontroller further includes means for displaying an error code, said error code to indicate a reason for a warning or fault annunciation. 12. A method of self-calibrating a microcontroller-based line isolation monitor for continuously displaying a hazard current between line conductors of an ungrounded polyphase power distribution system and ground, said monitor including a current sensing circuit for measuring a test current injected into said power distribution system and a voltage sensing circuit for each of said line conductors, said voltage sensing circuits for measuring voltages between said line conductors and ground, said voltages consisting of a line voltage and a test voltage generated across a hazard impedance between said line conductor and ground by said test current, said method of self-calibration comprising: A. generating a calibration test voltage: B. selecting inputs to said voltage sensing circuits, said inputs coupled to said line conductors when said monitor is in a normal mode of operation, and said inputs coupled to said calibration test voltage when said monitor is in a calibration mode, said voltage sensing circuits to measure said voltages between said line conductors and ground when in said normal mode and to measure said test voltage when in said calibration mode; C. comparing outputs of said voltage sensing circuits with predetermined parameters when in said calibration mode, said predetermined parameters calculated as theoretical values based on component values and tolerances within said voltage sensing circuits and outputting a signal representative of a deviation from said predetermined parameter; D. annunciating a warning if said output signal representing a deviation exceeds a first, predetermined amount, and for annunciating a fault if said output exceeds a second, greater, predetermined amount when in said calibration mode; E comparing said test current with a theoretical value based on component values and tolerances within said current sensing circuit and outputting a signal representative of a deviation from said theoretical value; F. annunciating a warning if said output signal representing a deviation from said theoretical value exceeds a first, predetermined amount, and for annunciating a fault if said output exceeds a second, greater, predetermined amount when in said calibration mode; and G wherein said line isolation monitor continuously self- calibrates at predetermined times without interfering with said continuous display of said hazard current. 13. The method of self-calibrating a line isolation monitor of claim 12 wherein said calibration method is performed upon a power-up sequence and at least once every predetermined time period, wherein said calibration during each time period is time-shared with hazard current calculations so as to provide continuous display of said hazard current during calibration.

Inventors: JANKE DONALD R, RODRIAN JAMES A, JANKE, DONALD, R., RODRIAN, JAMES, A.
Applicants: SQUARE D CO, SQUARE D COMPANY
Application year: 1995
Main classification: G01R31
IPC codes: G01R27, G01R31