1. Field of the Invention
The subject matter disclosed herein relates to sensing information associated with switching devices and, more specifically, to sensing various types of this information over a wide range of operating conditions and values.
2. Brief Description of the Related Art
Different types of switching devices (e.g., electrical contacts, switches, and so forth) are used in various environments. For example, a power generation plant uses a large number of electrical contacts (e.g., switches and relays). The electrical contacts in a power generation plant can be used to control a wide variety of equipment such as motors, pumps, solenoids and lights. A control system needs to monitor the electrical contacts within the power plant to determine their status in order to ensure that certain functions associated with the process are being performed. In particular, the control system determines whether the electrical contacts are on or off, or whether there is a fault near the contacts such as open field wires or shorted field wires that affect the ability of the contacts to perform their intended function.
One approach that a control system uses to monitor the status of the electrical contacts is to send an electrical voltage (e.g., a direct current voltage (DC) or an alternating current (AC) voltage) to the contacts in the field and determine whether this voltage can be detected. The voltage, which is provided to the electrical contacts for detection, is known as a wetting voltage. If the wetting voltage levels are high, galvanic isolation in the circuits is used as a safety measure while detecting the existence of voltage. Detecting the voltage is an indication that the electrical contact is on or off. A wetting current is associated with the wetting voltage.
Various problems have existed with previous approaches in monitoring contacts and other types of switching devices. For example, the contacts need to be isolated from the control system, or damage to the control system may occur. Also, the control system may need to handle a wide variety of different voltages, but previous devices could only handle voltages within narrow ranges. Previous devices have also been inflexible in the sense that they cannot be easily changed or modified without circuit changes involving setting jumpers and/or adjusting resistors or other components to account for changes in the operating environment or conditions, or received voltages. All of these problems have resulted in general dissatisfaction with previous approaches due to the need to supply many variations of the same circuit function with each set to a particular voltage and/or current.
The approaches described herein provide for a wide range of input voltage values, provide isolation, control wetting current, provide internal checking of timing and communications, and provide a command/response interface. Multiple signal voltage spans or ranges are allowed with either multiple channels provided into an analog-to-digital (A/D) converter of a microcontroller or the use of a high resolution A/D converter to allow conversion of the input voltage followed by comparison to commanded thresholds. Inclusion of timing circuits within the contact input circuit allows for signal timing to be determined for sequence of events information on the response of the contact input circuit to an external control system.
The use of an embedded A/D converter and control logic allows for either discrete parts such as microcontrollers or incorporation of the circuit within a mixed signal ASIC. Communications from the logic allows for self test operations to improve the detection of faults, improving the safety integrity level (SIL) rating on the channel.
In many of these embodiments and at embedded control logic, electrical information with respect to a switching device is sensed. A decision is made as to an operation of the control logic based on the sensed information. The operation may be one or more of setting a wetting current or determining whether the electrical information is within an acceptable range.
In some aspects, the electrical information may relate to or indicate an open switching device, a closed switching device, an open wiring, and a closed wiring. Other examples are possible.
In other aspects, the decision is associated with setting the wetting current, In other examples, a power or communications isolation with a control system. In some examples, the isolation is provided by at least one optocoupler or other form of galvanic isolation for data.
In still other examples, programming commands are received from a control system and the programming commands are effective to program the embedded control logic. In some aspects, the sensing is accomplished across multiple ranges of the electrical information. In other examples, the electrical information is a voltage at the switching device or a wetting current.
In others of these embodiments, an apparatus includes a current sink circuit and an input voltage sensing and digitizing module. The input voltage sensing and digitizing module includes embedded control logic and is coupled to the current sink circuit. The embedded control logic is configured to sense electrical information with respect to a switching device coupled to the embedded control logic, and to make a decision as to an operation of the embedded control logic based on the sensed information. The operation is one or more of setting a wetting current using the current sink circuit and determining whether the electrical information is within an acceptable range.
For a more complete understanding of the disclosure, reference should be made to the following detailed description and accompanying drawings wherein:
Skilled artisans will appreciate that elements in the figures are illustrated for simplicity and clarity. It will further be appreciated that certain actions and/or steps may be described or depicted in a particular order of occurrence while those skilled in the art will understand that such specificity with respect to sequence is not actually required. It will also be understood that the terms and expressions used herein have the ordinary meaning as is accorded to such terms and expressions with respect to their corresponding respective areas of inquiry and study except where specific meanings have otherwise been set forth herein.
The approaches described herein provide for the programmed control of contact input settings across channels of a contact, switch, or discrete input module such as found in distributed control systems (DCS) or programmable logic controller (PLC)-based systems. The use of embedded control logic within a microcontroller or application specific integrated circuit (ASIC) is shown to allow a solution that provides programmed control of wetting current and voltage thresholds.
In one advantage of the present approaches, programmable thresholds for switch state decisions are provided. In another advantage, a programmable wetting current (based on switch voltage span) is provided. Improved self-test operations for fault detection are also obtained. The possible use of mixed signal ASIC to absorb channel components is also available. The possible insertion of mixed signal ASICs within a multi-die package to absorb isolation is also provided.
In some aspects, the present approaches use an embedded microcontroller or a mixed signal ASIC within an isolated contact input circuit. A further advantage of the present approaches is that the control logic and A/D converter can be embedded within a custom mixed signal ASIC allowing the part to be optimized for this application both in channel count, packaging, parts cost, and performance.
The present approaches provide a universal input channel, reducing the variations in products as well as allowing for random combinations of switch circuits into a single module. The present approaches also provide for isolation of the contact(s) from the control system—either to avoid ground loops disturbing analog signals or to provide for voltage zone isolation. The isolation applies both to any supplied power to the circuit as well as to communications signals to/from the circuit.
In another advantage, the use of an embedded microcontroller with an internal analog-to-digital (A/D) converter and communications, local “intelligence” may be applied to control a current sink based on sensed voltage and thereby control the wetting current. The voltage sensed by the A/D converter of the microcontroller's may be used to turn off the current sink (e.g., at high voltages) or on (e.g., at lower voltages). The communications ability and functionality provided by the microcontroller may also be used to control the sink current directly from instructions received from an external control system.
Referring now to the figures, and in particular to
The input voltage sensing and digitizing module 114 may include an embedded control logic and this embedded control logic may be disposed in an application specific integrated circuit (ASIC), a microprocessor, or a microcontroller to mention a few examples. The input voltage sensing and digitizing module 114 senses electrical information with respect to a switching device is sensed. A decision is made as to an operation of the embedded control logic based on the sensed information. The operation may be one or more of setting a wetting current or determining whether the electrical information is within an acceptable range.
The isolation barrier 116 may represent galvanic separation such that the two sides of the isolation barrier (i.e., the input 110 side and the control system 122 side) are electrically insulated from one another to provide galvanic isolation. The isolation barrier 116 provides protection for the control system 122 from electrical characteristics and abnormalities existing on the input 110 side of the isolation barrier 116 that the control system 122 may simply be incapable of withstanding. For example, the control system 122 may be configured to operate with, for example, approximately 3.3V, approximately 5V, approximately 12V, or approximately 24V power supply and utilize corresponding small signals. However, in one example, the input 110 side of the isolation barrier 116 may be a higher-voltage circuit with operating voltages exceeding 250V, or even 500V. Further, and especially in the instance where switching devices 104 are used in power plant applications or are otherwise geographically spread apart, lighting or other phenomena may create sizeable surges on the inputs 110 exceeding hundreds or thousands of volts, which surges a control system 122 may not be capable of withstanding.
So configured, and in one example setting, the contact input circuit 100 can be utilized with a switching device 104 (e.g., an electro-mechanical switch or other switching means) such that the information provided about the signal existing at the inputs 110 can be utilized to determine various aspects or characteristics of the switching device 104 (e.g., if it is closed, open, shorted, subject to a weak connection, oxidized, etc). In such an example setting, the switching device 104 may be coupled to a power supply 102 or other power source. Various resistances associated with the switching device 104, the power supply 102, or current paths are represented generally by series resistor Rs 106 and parallel resistor Rp 108, which allow for detection of wiring faults, where the open switch voltage and closed switch voltages are different from an open wire input or a short to the supply 102.
Although only a switching device 104 application is described here, the contact input circuit 100 can be utilized in many various application settings to provide information about signals existing at the inputs 110 to the contact input circuit 100.
By at least one approach, the contact input circuit 100 may be further equipped with a current sink circuit 112. By this, the contact input circuit 100 may be configured to provide, for example, a wetting current across the switching device 104. The wetting current can be advantageously used to prevent and/or break through surface film resistance in the switching device 104, such as a layer of oxidation, which can otherwise cause the switching device 104 to remain electrically open even when it may be mechanically closed. Further applications include providing a sealing current or fritt current as may be utilized in telecommunications.
By at least another approach, the communication isolation circuit 120 can provide communications from the control system 122 to the contact input circuit 100. For example, these communications may be commands to control the current sink circuit 112 according to various requirements and/or sensed aspects of the input signal. Lastly, in another approach, the contact input circuit 100 may include a power isolation circuit 118 that is configured to provide power to the contact input circuit 100 through power transfer across the isolation barrier 116 (e.g., through the use of a transformer or by other known power transfer techniques).
Referring now to
The input signal continues into a voltage attenuator circuit including resistors 214, 224, and 226 and zener diode 222. The voltage is attenuated through the voltage divider created by the set of resistors 214, 224, 226, with the output between resistors 224 and 226 being sent to an input of the processing device 228. Zener diode 222 operates as a voltage clamp to ensure the voltage into the processing device 228 stays within its input range (i.e., within approximately 3 to 4 volts for typical microcontrollers operating on a 5 volt supply).
By one approach, the processing device 228 is configured to measure the voltage of the signal received from the voltage attenuator circuit. This may be achieved by known analog-to-digital conversion techniques, or other known voltage measurement techniques, that may be internal or external to the processing device 228. By measuring this attenuated voltage, the processing device 228 then knows the voltage that exists at the input contacts 202 to the circuit 200. The processing device may be able to relate the attenuated voltage to the actual voltage at the input contacts 202 through the use of a lookup table (e.g., relating the values of the measured attenuated voltage to the input voltage) or through a simple calculation corresponding to the relation between the attenuated and actual voltages.
The processing device 228 may be further configured with one or more additional inputs that are individually or collectively configured to receive communications from external sources. For example, the processing device 228 may be able to receive commands and/or data from the control system 234 through communications isolation circuit 232 via optocoupler 236 across isolation barrier 244 to an input that may utilize a pull-up resistor 240. This input (or another input) may also be configured to receive communications from a local source (i.e., not across the isolation barrier 244) from, for example, a universal asynchronous receiver transmitter (UART), inter-integrated circuit network (I2C), or other communication port that may communicate with diagnostic and/or programming equipment, a computer, other contact input circuits, and so forth. Further still, the processing device 228 may be configured with one or more outputs that can relay commands and/or data to an external device, such as the control system 234. For example, the processing device 228 may output the output data signal through a resistor 242 and through communications isolation circuit 232 via optocoupler 238 across the isolation barrier 244 to the control circuit. The output signal may be provided to other devices as well as needed. In one example, the processing device 228 is a ATTINY 10 microcontroller manufactured by Atmel containing both an ARM 32 bit processor, internal working memory, A./D, timer, and communications interface.
In one embodiment, the processing device 228 is further configured to control a wetting current produced by the current sink circuit 208. With the knowledge of the incoming voltage, the processing device can vary the wetting current that is driven by the current sink circuit 208 according to the needs of the present conditions or voltage across the switching device 104. For example, if a low voltage exists across the switching device 104 (e.g., approximately 12V or 24V), a higher wetting current may be required to ensure enough power is provided across the switching device 104 contacts to ensure their health. However, if that same higher current were used with a higher voltage, such as 250V or 500V, that higher current would result in a much higher power than is needed across the contacts. This would also result in the need for unnecessarily large components capable of sinking the extra power that would be generated by the higher current combined with the higher voltage. Therefore, in the contact input circuit 200 as described herein, which is capable of operating with a wide range of switch voltages, it is beneficial to vary the current through the current sink circuit 208 to minimize unnecessary power dissipation and corresponding component selection. Accordingly, the processing device 228 may be configured to select an optimized wetting current for the given input voltage and further configured to control the current sink circuit 208 according to its selection. By one approach, the processing device 228 outputs a pulse train that is useable by the current sink circuit 208. Resistor 220 and capacitor 219 serve as a low pass filter, converting the pulse train from 228 into a DC voltage setting to set the gate voltage at transistor 212.
The current sink circuit 208 includes a transistor 212 (shown here as an N-channel MOSFET, though other transistor types may be equally as suitable) with its drain connected to the high voltage input and its source connected through a resistor 216 to ground. This path provides a wetting current across the input contacts 202 and thus across the switching device 104. By one approach, the current sink circuit 208 receives a pulse train from the processing device 228 into input resistor 220. The pulse train is then low pass filtered by a zener diode 218 and a capacitor 219 in parallel between the gate of the transistor 212 and ground. By this, the low pass filter will establish a DC voltage at the gate of the transistor 212 commensurate with the duty cycle of the wetting current pulse train from the processing device 228. This DC voltage will resultantly set the wetting current through the transistor 212. Thus, the wetting current can be varied as needed via local control directly within the same input contact circuit 200.
Optionally, the processing device 228 and other components of the input contact circuit 200 may he powered from power sourced from the control system 234 (or another source across the isolation barrier 244. In one example, a transformer 246 is provided with current in its primary side winding from the control system 234, which power is then transferred across the isolation barrier 244 to the secondary winding of the transformer 246. By one approach, and in an attempt to minimize a foot print as well as cost, the transformer 246 may be a planar transformer comprised of two sets of loops (i.e., the primary and secondary windings) within a circuit board. Current from the secondary winding of the transformer 246 travels through rectifying diode 248 and across filtering capacitor 250, which operates to provide a filtered input into voltage regulator 254. Voltage regulator 254 outputs a positive voltage supply for the circuit 200, which can be further filtered by filtering capacitor 252. This operating voltage can then be used by the processing device 228 as well as other components requiring operating voltages.
As shown here, by one approach, the processing device 228 may be as small as a 6-pin device, allowing for an input to sense the incoming voltage, one to control the current sink circuit 208, and two for two-way data communication (with two pins for power and ground). Thus, the cost, complexity, and footprint of the processing device 228 can be minimized by this approach.
Referring next to
The illustrated contact input circuit 300 represents a single contact input channel of a plurality of identical (or nearly identical) input channels 302 (shown here as four different input channels 302). Each individual input channel 302 may be configured to be coupled to a different individual switching device 104 to provide monitoring thereof as well as well as provide a wetting current.
Each channel 302 is identical or similar to the singular input channel of
Each input channel 302 is also configured with a current sink circuit, such as current sink circuit 208 from
In some aspects, the processing device 312 may utilize a reset circuit to detect and recover from supply fluctuations and initial power up. Resistor 342, capacitor 346, and Schottky diode 344 may be used to provide the timing for the reset circuit. A watchdog timer within the processing device 312 may be used to further improve recovery from computing malfunctions, with the example LPC 1111 containing a watchdog timer internally.
As with
Turning now to
The attenuation circuit 412 portion of the contact input circuit is altered in
Attenuation path 506 may correspond to, for example, a maximum voltage of 48 volts (with a certain tolerance by some approaches, for example, including about 10%). Resistors 512, 514, and 516 are selected so that a voltage at or near the higher end of the allowable input into the processing device 414 (for example, 5V) is achieved when the input voltage is at around 48V. This creates a higher gain than the other attenuation paths 508 and 510. Zener clamp diode 518 is provided to ensure that the output of this first attenuation path 506 (existing between resistors 514 and 516) does not exceed the maximum output (e.g., approximately 5V) even when the input voltage exceeds the 48V point.
Attenuation path 510 may correspond to, for example, a maximum voltage of 150V. Resistors 526, 528, and 530 are selected so that a voltage at or near the higher end of the allowable input into the processing device 414 (for example, 5V) is achieved when the input voltage is at around 150V. This creates a lower gain than attenuation path 506, but higher than attenuation path 510. Zener clamp diode 532 is provided to ensure that the output of this second attenuation path 510 (existing between resistors 528 and 530) does not exceed the maximum output (e.g., 5V) even when the input voltage exceeds the 150V point.
Finally, attenuation path 508 may correspond to, for example, a maximum voltage of 250V. Resistors 520 and 522 are selected so that a voltage at or near the higher end of the allowable input into the processing device 414 (for example, 5V) is achieved when the input voltage is at around 250V. This creates a lower gain than attenuation paths 506 and 510. This attenuation path may not require a Zener clamp diode as the input voltage may not exceed a maximum input 250V in this example and thus, the output (between resistors 520 and 522) will not exceed the maximum for the processing device 414 (though other maximum inputs are possible by other approaches, including but not limited to 500V, wherein a 250V maximum attenuation path 508 would preferably include a Zener clamp diode).
Turning to
By this, a varying degree of precision can be achieved according to the input voltage range. For example, and with continuing reference to
Referring now to
By one approach, and as discussed above, input voltage across the input contacts 702 enters the contact input circuit 700 through a protection circuit including diode 704, resistor 706, and protection Zener diode 708. This input voltage is then fed into the input of the single component 714. The single component 714 may also include a voltage attenuation circuit including a resistor voltage divider circuit comprised of series resistors 738, 740, and 736 that receives the input voltage and outputs an attenuated voltage on a node between resistors 740 and 736. A Zener clamp diode 734 may also be included from ground to a node between series resistors 738 and 740, ensuring the input voltage into the ADC does not exceed its maximum allowable input. The voltage attenuator circuit is configured to receive input voltage and provide a scaled output voltage to the ADC 746. The ADC 746 then communicates with the state machine 748 to provide readings of the scaled input voltage.
As discussed above with respect to various processing devices, the state machine 748 is configured by some approaches to determine a wetting current based on the sensed input voltage. The state machine 748 may output a pulse train that is fed across a Zener clamp diode 742 and a low pass filtering capacitor 756 and output from the single component 714 to the gate of a FET 710, as discussed above. The filtered wetting current pulse train will create a DC voltage on the input to the FET 710, which then controls the current therethrough and through resistor 712. The FET 710 is preferably external to the single component 714 as it will be capable of sinking relatively higher amounts of current than are appropriate for a single component 714.
Additionally, as discussed above in reference to other embodiments, the single component 714 may be capable of communicating with external components such as the control system 722 through a communication isolation circuit 720 across isolation Wilier 716. The state machine 748 may include one or more communication inputs that may be coupled to the control system 722 across the isolation barrier 716 through one or more optocouplers 726. Similarly, the state machine 748 may include one or more communication outputs that may communicate data to the control system 722 across the isolation barrier 716 through one or more other optocouplers 728.
By using the single component 714, the features and functionality as described with respect to previous figures discussed herein may be incorporated into a single, low-cost component, thus reducing the size, complexity, and cost of the contact input circuit 700.
As has been described herein, contact input circuits are provided that are capable of receiving a wide range of input voltages and are correspondingly capable of varying a wetting current through the contacts of a switch. The power dissipated by the wetting current is optimized for various input currents. Systems that are not capable of varying the wetting current must set the wetting current high enough to account for the lowest input voltage in order to maintain universality. Such a design requires large and robust components capable of withstanding the power dissipation that is produced from combining the high current required with low voltage inputs with a high voltage input (e.g., approximately 250V or 500V). Thus, by varying the wetting current according to the input voltage as described herein, universality can be maintained while reducing the size or robustness of various components, therefore reducing cost and size of the contact input circuit. Further, by including the capability to control the wetting current locally within the contact input circuit, a contact input circuit is provided that does not rely exclusively on a control system for control of the wetting current, thus increasing the number of systems which the contact input control system is compatible with, as well as offloading the processing from the control system.
It will be appreciated that the various examples described herein use various components (e.g., resistors and capacitors) that have certain values. Example values are shown in the figures for many of these components. However, if not shown, these values will be understood or easily obtainable by those skilled in the art and, consequently, are not mentioned here.
It will be appreciated by those skilled in the art that modifications to the foregoing embodiments may be made in various aspects. Other variations clearly would also work, and are within the scope and spirit of the invention. The present invention is set forth with particularity in the appended claims. It is deemed that the spirit and scope of that invention encompasses such modifications and alterations to the embodiments herein as would be apparent to one of ordinary skill in the art and familiar with the teachings of the present application.
Utility application entitled “Apparatus and Method for Wetting Current Measurement and Control” naming as inventor Daniel Alley, and having attorney docket number 267012 (130838); Utility application entitled “Contact Input Apparatus Supporting Multiple Voltage Spans and Method of Operating the Same” naming as inventor Daniel Alley, and having attorney docket number 268616 (130841); are being filed on the same date as the present application, the contents of which are incorporated herein by reference in their entireties.