BACKGROUND
Analog communication is widely used in factory automation applications and in process control applications. For example, programmable logic controllers, programmable automation controllers, and digital control systems, which are frequently used in factory automation applications and in process control applications, are commonly configured to generate analog output signals.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of an electrical environment including a programmable controller and a load.
FIG. 2 is a block diagram of an electrical environment including a system for providing an analog output signal using a Class-D amplifier, according to an embodiment.
FIG. 3 is a graph illustrating voltage of a digital output signal in one example of operation of an embodiment of the FIG. 2 electrical environment.
FIG. 4 is a graph illustrating current of a digital output signal in one example of operation of an embodiment of the FIG. 2 electrical environment.
FIG. 5 is a schematic diagram of one embodiment of the Class-D amplifier of the FIG. 2 electrical environment.
FIG. 6 is a schematic diagram of one embodiment of a filter of the FIG. 2 electrical environment.
FIG. 7 is a schematic diagram of one embodiment of sensing circuitry of the FIG. 2 electrical environment.
FIG. 8 is a block diagram of an electrical environment including a programmable controller including a Class-D amplifier, according to an embodiment.
FIG. 9 is a flow chart of a method for generating an analog output signal using a Class-D amplifier, according to an embodiment.
FIG. 10 is a block diagram of an electrical environment including an alternate embodiment of the FIG. 8 programmable controller configured to support a plurality of channels.
FIG. 11 illustrates one embodiment of output modules of the FIG. 10 programmable controller.
FIG. 12 is a block diagram of an alternate embodiment of the FIG. 10 electrical environment.
DETAILED DESCRIPTION OF THE EMBODIMENTS
An analog signal generated by a programmable controller, such as a programmable logic controller (PLC), a programmable automation controller (PAC), or a programmable controller of a digital control system (DCS), may need to drive a load having a wide range of possible impedance values. For example, FIG. 1 is a block diagram of an electrical environment 100 including a programmable controller 102 and a load 104. Programmable controller 102 is powered from a power supply having a fixed voltage Vs, and programmable controller 102 is configured to generate an analog output current signal Io having a magnitude of up to 20 milliamperes (mA) by controlling an amplifier within programmable controller 102 including one or more transistors (not shown) operating in their respective saturation regions. In this example, load 104 has an impedance that may range between zero and 1,000 ohms. Consequently, a voltage Vo across load 104 may significantly vary according to impedance of load 104. For example, if analog output current signal Io has a magnitude of 20 mA and load 104 has an impedance of 1,000 ohms, magnitude of voltage Vo is 20 volts. On the other extreme, if analog output current signal Io has a magnitude of 20 mA and load 104 has an impedance of zero, magnitude of voltage Vo is zero.
Low values of voltage Vo may result in significant power dissipation in programmable controller 102. For example, assume that analog output current signal Io has a magnitude of 20 mA, magnitude of voltage Vs is 20 volts, and load 104 has an impedance of zero, such that magnitude of voltage Vo is zero. Power dissipation (P) in programmable controller 102 under this scenario is equal to P=(Io)(Vs), and power dissipation in programmable controller 102 is therefore P=(20 mA)(20 volts)=0.400 watts (W)=400 milliwatts (mW). While 400 mW power dissipation in programmable controller 102 may be acceptable in some applications, such relatively large power dissipation may limit the quantity of output channels that can be supported by a single programmable controller due to inability to adequately cool the programmable controller if multiple channels are driving low-impedance loads. For example, assume that programmable controller 102 is modified to support eight output channels, i.e., programmable controller 102 is configured to generate eight different analog output current signals for powering eight different loads. Power dissipation in programmable controller 102 could be as high as 3.2 watts under this scenario, and it may therefore be challenging to adequately cool programmable controller 102, especially in applications where programmable controller 102 is within a cabinet that restricts transfer of heat away from programmable controller 102. Cooling challenges may be particularly acute in applications of programmable controller 102 where forced air cooling is undesirable, such as in dusty applications or in noise-sensitive applications.
Disclosed herein are systems and methods for providing an analog output signal using a Class-D amplifier which may help mitigate the problem discussed above. Particular embodiments of the new systems and methods configure a Class-D amplifier for an impedance of a load by controlling operation of the Class-D amplifier, at least partially based on a voltage across the load and/or a current flowing through the load, thereby helping minimize power dissipation when the load has a low impedance. Additionally, some embodiments do not require use of a dedicated power supply for the Class-D amplifier, which promotes low system cost, small system, and system simplicity. Furthermore, certain embodiments share one or more analog-to-digital converters (ADCs) among multiple output channels, thereby promoting low system cost, small system size, and system simplicity. Accordingly, the new systems and methods may enable a programmable controller to support a greater quantity of output channels than would be feasible using conventional technology.
FIG. 2 is a block diagram of an electrical environment 200, which includes one embodiment of the new systems for providing an analog output signal using a Class-D amplifier. Electrical environment 200 includes a Class-D amplifier 202, a filter 204, logical and interface circuitry 206, sensing circuitry 208, an ADC 210, and a load 212. Class-D amplifier 202 is electrically coupled between an internal node 214 and a digital output node 216, and filter 204 is electrically coupled between digital output node 216 and an analog output node 218. Load 212 is electrically coupled between analog output node 218 and a reference node 220, where reference node 220 is depicted as being a ground node, such as an earth ground node or a chassis ground node. It is understood, though, that reference node 220 need not be a ground node, and reference node 220 accordingly could be at a different electrical potential than an earth ground or a chassis ground. Class-D amplifier 202 is at least partially powered by a first power supply rail 222 and a second power supply rail 224. In certain embodiments, first power supply rail 222 is at a positive voltage with respect to reference node 220 and second power supply rail 224 is at negative voltage with respect to reference node 220, such that first power supply rail 222 and second power supply rail 224 collectively form a split power supply. In some other embodiments, second power supply rail 224 is the same as reference node 220, and first power supply rail 222 is at a positive voltage or a negative voltage with respect to reference node 220, such that first power supply rail 222 and second power supply rail 224 collectively form a unipolar power supply.
Logic and interface circuitry 206, henceforth referred to as circuitry 206 for brevity, is configured to generate a digital internal signal Dint on internal node 214. Circuitry 206 is optionally configured to generate digital internal signal Dint at least partially based on one or more input signals 226 to circuitry 206. Class-D amplifier 202 is configured to amplify digital internal signal Dint to generate a digital output signal Do on digital output node 216. Digital output signal Do is represented by one or more of (a) a current Ido flowing out of Class-D amplifier 202 to filter 204 via digital output node 216 and (b) a voltage Vdo on digital output node 216 with respect to reference node 220. Voltage Vdo, which is a digital voltage, has an average value, which may alternately be referred to as a direct current (DC) component of voltage Vdo, which may be a positive value, a negative value, or zero, with respect to reference node 220.
For example, FIG. 3 is graph 300 of voltage Vdo versus time illustrating one example operation of electrical environment 200 in an embodiment where first power supply rail 222 and second power supply rail 224 collectively form a split power supply having respective voltages V222 and V224 with respect to reference node 220. Class-D amplifier 202 drives digital output node 216 between first power supply rail 222 and second power supply rail 224 in response to digital internal signal Dint, in the FIG. 3 example. Voltage Vdo is at voltage V222 for 75 percent of each switching cycle of Class-D amplifier 202, and voltage Vdo is at voltage V224 for 25 percent of each switching cycle of Class-D amplifier 202, in the FIG. 3 example. Therefore, an average value (Vdo_avg) of voltage Vdo is given by EQN. 1 below, for the FIG. 3 example.
Additionally, Class-D amplifier 202 repeatedly drives current Ido a maximum value and a minimum value, with a finite slope between these two values. Current Ido also has an average value, alternately referred to as a DC component of current Ido, which may be a positive value, a negative value, or zero. For example, FIG. 4 is graph 400 of current Ido versus time illustrating one example of operation of electrical environment 200 where current Ido is continuous. Current Ido ramps between a maximum value 402 and a minimum value 404, and current Ido has an average value of Ido_avg.
FIG. 5 is a schematic diagram of a Class-D amplifier 500, which is one possible embodiment of Class-D amplifier 202 of FIG. 2, although it is understood that Class-D amplifier 202 could be embodied in other manners without departing from the scope hereof. Class-D amplifier 500 includes a modulator 502, a first switching device 504, and a second switching device 506. First switching device 504 is electrically coupled between first power supply rail 222 and digital output node 216, and second switching device 506 is electrically coupled between digital output node 216 and second power supply rail 224. Each of first switching device 504 and second switching device 506 includes, for example, one or more transistors and driver circuitry to drive the one or more transistors. First switching device 504 is controlled by a first control signal ϕ1 generated by modulator 502, and second switching device 506 is controlled by a second control signal ϕ2 generated by modulator 502. Modulator 502 generates first control signal ϕ1 and second control signal ϕ2 in response to digital internal signal Dint, such that digital output signal Do is an amplified version of digital internal signal Dint. Certain embodiments of modulator 502 generate first control signal ϕ1 and second control signal ϕ2 using a pulse width modulation (PWM) technique or a pulse frequency modulation (PFM) technique. In some embodiments, modulator 502 is a sigma delta modulator. It should be noted that first switching device 504 and second switching device 506 repeatedly switch between their respective on-states (conductive states) and their respective off-states (non-conductive states) in response to control signals ϕ1 and ϕ2, respectively, such that first switching device 504 and second switching device 506 do not operate in their saturation regions.
Referring again to FIG. 2, filter 204 is configured to convert digital output signal Do to an analog output signal Ao. Analog signal Ao is ideally equal to the average value of digital output signal Do, although analog signal Ao will not be exactly equal to the average value of digital output signal Do because a practical implementation of filter 204 is unable to completely remove Class-D amplifier 202 switching frequency components from analog output signal Ao. Analog output signal Ao is represented by one or more of (a) a current Iao flowing out of filter 204 to analog output node 218 and (b) a voltage Vao on analog output node 218 with respect to reference node 220. In some embodiments, filter 204 includes an inductive-capacitive filter. For example, FIG. 6 is a schematic diagram of a filter 600, which is one possible embodiment of filter 204, although it is understood that filter 204 may be embodied in other manners without departing from the scope hereof. Filter 600 includes an inductor 602 and a capacitor 604. Inductor 602 is electrically coupled between digital output node 216 and analog output node 218, and capacitor 604 is electrically coupled between analog output node 218 and reference node 220.
Referring again to FIG. 2, filter 204 provides analog output signal Ao to load 212 via analog output node 218, and a voltage across load 212 is therefore the same as voltage Vao on analog output node 218. Additionally, current Iao flows through load 212. In certain embodiments, impedance of load 212 may vary within a wide range of values independently of state of analog output signal Ao, e.g., impedance of load 212 may vary independently of magnitude and/or phase of analog output signal Ao. For example, in some embodiments, impedance of load 212 may range from zero and 750 ohms. As another example, in some other embodiments, impedance of load 212 may range from zero and 1,000 ohms. It is understood, though, that load 212 is not limited to any particular impedance range. For example, in some embodiments, impedance of load 212 may be greater than 1,000 ohms. As another example, in certain embodiments, a minimum impedance of load 212 is greater than zero. Additionally, in some embodiments, impedance of load 212 may not be known before Class-D amplifier 202 is deployed in electrical environment 200. In certain embodiments, load 212 includes an industrial device, such as an actuator, a valve, a motor, a motor starter, a solenoid, an alarm, a light, a relay, a counter, a pump, a fan, a printer, a heater, a compressor, a sequencer, etc.
Sensing circuitry 208 is configured to sense analog output signal Ao to generate an analog feedback signal Afb. Analog feedback signal Afb represents, for example, one or more of voltage Vao and current Iao. Connections between sensing circuitry 208 and analog output node 218 are not shown in FIG. 2. In some embodiments, sensing circuitry 208 includes one or more elements (not shown), such as a current sense resistor, for sensing magnitude of current Iao, as well as one or more switches for enabling sensing circuitry 208 to selectively sense one of voltage Vao and current Iao in response to a control signal c generated by circuitry 206.
For example, FIG. 7 is a schematic diagram of sensing circuitry 700, which is one possible embodiment of sensing circuitry 208, although it is understood that sensing circuitry 208 could be embodied in other manners without departing from the scope hereof. Sensing circuitry 700 includes an amplifier 702, a first switch 704, a second switch 706, and a current sense resistor 708. Current sense resistor 708 is electrically coupled between filter 204 and analog output node 218, and a voltage Vr across current sense resistor 708 is therefore proportional to magnitude of current Iao. Amplifier 702 is configured to generate analog feedback signal Afb in proportion to magnitude of voltage across its inputs. First switch 704 is configured to (a) electrically couple an non-inverting input of amplifier 702 to a side of current sense resistor 708 connected to filter 204 when control signal c is de-asserted and (b) electrically couple the non-inverting input of amplifier 702 to a side of current sense resistor 708 connected to analog output node 218 when control signal c is asserted. Second switch 706 is configured to (a) electrically couple an inverting input of amplifier 702 to the side of current sense resistor 708 connected to analog output node 218 when control signal c is de-asserted and (b) electrically couple an inverting input of amplifier 702 to reference node 220 when control signal c is asserted. As such, analog feedback signal Afb represents current Iao when control signal c is de-asserted, and analog feedback signal Afb represents voltage Vao when control signal c is asserted. In some alternate embodiments, first switch 704 and second switch 706 are controlled by different respective control signals instead of by a common control signal c.
Referring again to FIG. 2, ADC 210 is configured to convert analog feedback signal Afb to digital feedback signal Dfb, which is provided to circuitry 206. Circuitry 206 is configured to configure Class-D amplifier 202 for an impedance of the load 212 by generating digital internal signal Dint based on the digital feedback signal Dfb, as well as based on one or more input signals 226, such as to regulate magnitude of current Iao or voltage Vao while amplifying digital internal signal Dn. Stated differently, not only does electrical environment 200 amplify internal digital signal Dint, but electrical environment 200 also amplifies digital signal Dint in a manner which achieves a desired value of current Iao or voltage Vao, irrespective of impedance of load 212. For example, certain embodiments of circuitry 206 are configured to generate an error signal ERR according to EQN. 2 below, where K is a proportionality constant, Dref is a digital reference value, such as a digital reference value representing a desired magnitude of current Iao or a desired magnitude of voltage Vao. For example, in certain embodiments, digital reference value Dref is equal to, or is a scaled version of, a desired magnitude of current Iao or a desired magnitude of voltage Vao. Particular embodiments of circuitry 206 are configured to generate digital internal signal Dint based on one or more of input signals 226 in a manner that minimizes error signal ERR, thereby achieving a required value of current Iao or voltage Vao over a range of impedance values of load 212. Accordingly, in these embodiments, electrical environment 200 implements a closed-loop control system to regulate one or more of current Iao and voltage Vao, such as in response to changing magnitude of impedance of load 212, to configure Class-D amplifier 202 for impedance of load 212.
For example, assume that (a) circuitry 206 determines from an input signals 226 that magnitude of current Iao should be 20 mA and (b) impedance of load 212 may vary between zero and 1,000 ohms. In this example, Dfb would represent magnitude of current Iao and digital reference value Dref would represent 20 mA. Circuitry 206 would generated digital internal signal Dint as required to achieve a magnitude of current Iao of 20 mA irrespective of the impedance of load 212. For instance, if load 212 had an impedance of 50 ohms, circuitry 206 would generate digital internal signal Dint as required so that an average value of voltage Vod is 1 volt, which would result in magnitude of current Iao being 20 mA with the 50 ohm load, thereby configuring Class-D amplifier for the 50 ohm load. As another example, if load 212 had an impedance of 750 ohms, circuitry 206 would generated digital internal signal Dint as required so that an average value of voltage Vod is 15 volts, which would result in magnitude of current Iao being 20 mA with the 750 ohm load, thereby configuring Class-D amplifier for the 750 ohm load.
As another example, assume that (a) circuitry 206 determines from an input signals 226 that magnitude of voltage Vao should be 5 volts and (b) impedance of load 212 may vary between 200 and 1,000 ohms. In this example, Dfb would represent magnitude of voltage Vao and digital reference value Dref would represent 5 volts. Circuitry 206 would generate digital internal signal Dint as required to achieve a magnitude of voltage Vao of 5 volts irrespective of the impedance of load 212. For instance, if load 212 had an impedance of 200 ohms, circuitry 206 would generate digital internal signal Dint as required so that an average value of current Iod is 25 mA, which would result in magnitude of voltage Vao being 5 volts with the 200 ohm load, thereby configuring Class-D amplifier for the 200 ohm load. As another example, if load 212 had an impedance of 1,000 ohms, circuitry 206 would generate digital internal signal Dint as required so that an average value of current Iod is 5 mA, which would result in magnitude of voltage Vao would being 5 volts with the 1,000 ohm load, thereby configuring Class-D amplifier for the 1,000 ohm load.
It should be appreciated that a Class-D amplifier, such as Class-D amplifier 202 of electrical environment 200, does not include transistors continuously operating in their saturation regions. Consequently, Class-D amplifier 202 does not dissipate a large amount of power, even when load 212 has a low impedance. Additionally, Class-D amplifier 202 is capable of powering load 212 when load 212 has a high impedance. Such ability of Class-D amplifier 202 to drive a load having a wide possible impedance range may be particularly advantageous in embodiments where impedance of load 212 is not known before deployment of Class-D amplifier 202 in electrical environment 200.
One possible application of the new systems and methods for providing an analog output signal using a Class-D amplifier is a programmable controller application, such as a PLC application, a PAC application, or a DCS application. For example, FIG. 8 is a block diagram of an electrical environment 800 including a programmable controller 802, an electrical cable 804, and an instance of load 212. Electrical cable 804 electrically couples filter 204 to load 212, and electrical cable 804 is therefore part of analog output node 218. In certain embodiments, electrical cable 804 is relatively long, e.g., tens of meters in length, hundreds of meters in length, or even longer.
Programmable controller 802 includes an instance of Class-D amplifier 202, filter 204, sensing circuitry 208, and ADC 210. Additionally, circuitry 206 of FIG. 2 is collectively embodied by a processing system 806, an input module 808, a storage system 810, a digital interface 812, and an optional programming interface 814, in programmable controller 802. Two or more of the aforesaid elements of programmable controller 802 could be partially or fully combined without departing from scope hereof. Input module 808 is configured to receive one or more input signals 226 from outside of programmable controller 802 and provide the one or more input signals to processing system 806 as digital input signals Dinp. Input signals 226 may be analog input signals, digital signals, or a combination of analog and digital input signals. In embodiments where input signals 226 include analog input signals, input module 808 includes at least one ADC (not shown). In some embodiments, input signals 226 are generated by one or more of switch, a sensor, and an encoder.
Storage system 810 stores programming instructions 816, such as in the form of software and/or firmware, for execution by processing system 806. Storage system 810 is optionally configured to store additional information, such as digital input signals Dinp and/or working information for use by processing system 806. Processing system 806 is configured to generate digital internal signal Dint′ at least partially according to programming instructions 816 and digital feedback signal Dfb, and optionally further according to digital input signals Dinp. Additionally, processing system 806 is configured to generate control signal c at least partially according to programming instructions 816 and optionally further according to digital input signals Dinp. Digital interface 812 is configured to receive digital internal signal Dint′ from processing system 806, and digital interface 812 is configured to provide digital internal signal Dint′ to Class-D amplifier 202 as digital internal signal Dinp. In some embodiments, digital internal signal Dint is identical to digital internal signal Dint′, while in other embodiments, digital internal signal Dint is derived from, but is not identical to, digital internal signal Dint′. In particular embodiments, digital internal signal Dint′ is a serial communication signal. In some alternate embodiments, digital interface 812 is omitted and processing system 806 is configured to directly generate digital internal signal Dint. Class-D amplifier 202 and filter 204 are collectively configured to generate analog output signal Ao in response to digital internal signal Dint as discussed above with respect to FIG. 2. Additionally, sensing circuitry 208 and ADC 210 are collectively configured to generate digital feedback signal Dfb as discussed above with respect to FIG. 2.
Programmable controller 802 may be, for example, a programmable logic controller, a programmable automation controller, or a programmable controller of a digital control system, such as based on the configuration of programming instructions 816. For example, programming instructions 816 may include (a) instructions that cause programmable controller 802 to operate as a programmable logic controller, (b) instructions that cause programmable controller 802 to operate as a programmable automation controller, or (c) instructions that cause programmable controller 802 to operate as a programmable controller of a digital control system.
Optional programming interface 814 enables creation and/or modification of programming instructions 816. Certain embodiments of programming interface 814 include one or more user input devices and/or user output devices, such as a keyboard, a switch, a mouse, a touch pad, a screen, a monitor, a printer, etc. Additionally, some embodiments of programming interface 814 include one or more interfaces to an external system, such as an electrical interface (e.g., a Universal Serial Bus (USB) electrical interface and/or or an Ethernet electrical interface), a wireless interface (e.g., a Bluetooth wireless interface, a Wi-Fi wireless interface, a cellular wireless interface, and/or a satellite wireless interface), an optical interface (e.g., an optical cable interface and/or a free space optical interface), and/or a logical interface (e.g., an application programming interface (API)).
FIG. 9 is a flow chart of a method 900 for generating an analog output signal using a Class-D amplifier, which is one example of operation of programmable controller 802. It is understood, though, that programmable controller 802 is not limited to operating according to method 900.
In a block 902 of method 900, processing system 806 obtains one or more input signals 226 as digital input signals Dinp. In a block 904 of method 900, processing system 806 determines digital reference value Dref, where digital reference value Dref represents a desired value of analog output signal Ao, based on digital input signals Dinp and programming instructions 816. In one example of block 904, processing system 806 executes an algorithm defined by programming instructions 816, where the algorithm generates digital reference value Dref as a function of digital input signals Dinp. In a block 906, processing system 806 executes programming instructions 816 to set an initial value of digital internal signal Dint′ as a function of digital reference value Dref. In one example of block 906, processing system 806 executes programming instructions 816 to set the initial value of digital internal signal Dint′ to digital reference value Dref.
In a block 908 of method 900, processing system 806 receives digital feedback signal Dfb from ADC 210. In a block 910 of method 900, processing system 806 execute programming instructions 816 to determine an error signal ERR, such as by executing EQN. 2 above or by executing a variation of EQN. 2 above, where error signal ERR represents a difference between digital feedback signal Dfb and digital reference value Dref. In a decision block 912, processing system 806 executes programming instructions 816 to determine if error signal ERR is equal to zero, or if error signal ERR is within a predetermine tolerance of zero. If the result of decision block 912 is yes, method 900 to proceeds to decision block 914 where processing system 806 executes programming instructions 816 to determine if digital input signals Dinp have changed. If the result of decision block 914 is yes, method 900 returns to block 902 to obtain one or more new digital input signals Dinp, and if the result of decision block 914 is no, method 900 returns to block 908 to obtain an updated digital feedback signal Dfb.
Referring again to decision block 912, if the result of decision block 912 is no, method 900 proceeds from decision block 912 to decision block 916, where processing system 806 executes programming instructions 816 to determine if digital feedback signal Dfb is greater than digital reference value Dref. If the result of decision block 916 is yes, magnitude of analog output signal Ao is too large, and method 900 therefore proceeds to a block 918 where processing system 806 executes programming instructions 816 to decrement digital internal signal Dint′ and thereby decrease magnitude of analog output signal Ao. On the other hand, if the result of decision block 916 is no, magnitude of analog output signal Ao is too small, and method 900 therefore proceeds to a block 920 where processing system 806 executes programming instructions 816 to increment digital internal signal Dint′ and thereby increase magnitude of analog output signal Ao. Method 900 proceeds from either of block 918 or block 920 to decision block 914 (discussed above). While FIG. 9 does not illustrate method 900 having a “Stop” block, it is understood that processing system 806 could interrupt method 900 at any time, such as in response to a signal to inhibit generation analog output signal Ao.
Referring again to FIG. 8, programmable controller 802 could be modified to support additional channels, i.e., to be capable of generating multiple instances of analog output signal Ao for driving a plurality of different respective loads. For example, FIG. 10 is a block diagram of an electrical environment 1000 including a programmable controller 1002 and N loads 212, where N is an integer greater than one. In this document, specific instances of an item may be referred to by use of a numeral in parentheses (e.g. load 212(1)) while numerals without parentheses refer to any such item (e.g. loads 212). Programmable controller 1002 is an alternate embodiment of programmable controller 802 (FIG. 8) further including N output modules 1004 and a multiplexor 1007. Each output module 1004 includes at least a respective instance of Class-D amplifier 202, filter 204, and sensing circuitry 208. Details of output module 1004 are not shown in FIG. 10, but FIG. 11 illustrate N output modules 1104, where output modules 1104(1)-1104(N) are embodiments of output modules 1004(1)-1004(N), respectively.
Programmable controller 1002 additionally includes a processing system 1006 and programming instructions 1016 in place of processing system 806 and programming instructions 816, respectively. Processing system 1006 in similar to processing system 806 of FIG. 8 except that processing system 1006 is configured to generate N digital internal signals Dint′, i.e., a respective digital internal signal Dint′ for each output module 1004, instead of a single digital internal signal Dint′. For example, in certain embodiments, processing system 1006 is configured to generate each digital internal signal Dint′ at least partially according to programming instructions 1016 and optionally further according to digital input signals Dinp. In certain embodiments, each digital internal signal Dint′ may have a different respective value at any given time, while in certain other embodiments, two or more digital internal signal Dint′ have a common value at any given time. Programming instructions 1016 are similar to programming instructions 816 except that programming instructions 1016 are capable of supporting generation of N digital internal signals Dint′, instead of solely a single digital internal signal. Control signals c between processing system 1006 and output modules 1004 are not shown in FIG. 10 for illustrative clarity, but it is understood that in certain embodiments, processing system 1006 provides a respective control c to each output module 1004, such as to control whether the respective analog feedback signal Afb generated by the output module represents a current Iao or a voltage Vao.
Multiplexor 1007 is configured to multiplex analog feedback signals Afb before an input 1008 to ADC 210. For example, in some embodiments, multiplexor 1007 is configure to selectively communicatively couple one analog feedback signal Afb instance to ADC 210 at a given time in response to control signal m from processing system 1006, such as to enable ADC 210 to be shared by all N output modules 1004. For example, in particular embodiments, processing system 1006 generates control signal m to cause multiplexor 1007 to sequentially communicatively couple feedback signals Afb to ADC 210, so that each feedback signal Afb is periodically communicatively coupled to ADC 210 at a different respective time than each other feedback signal Afb. Accordingly, in particular embodiments, processing system 1006 sequentially receives a respective digital feedback signal Dfb for each output module 1004, and processing system 1006 generates each digital internal signal Dint′ at least partially based on a corresponding digital feedback signal Dfb.
It should be noted that not only do all channels of programmable controller 1002 share ADC 210, but some embodiments of programmable controller 1002 only require N inductors, i.e., a respective inductor for the filter 204 of each output module 1004, excluding any required power supply inductors. As such, the configuration of programmable controller 1002 promotes small size, low complexity, and low cost, of the programmable controller.
Programmable controller 1002 could be modified to omit multiplexor 1007 and to include a respective ADC 210 for each channel. For example, FIG. 12 is a block diagram of an electrical environment 1200, which is an alternate embodiment of electrical environment 1000 (FIG. 10) including programmable controller 1202 in place of programmable controller 1002. Programmable controller 1202 differs from programmable controller 1002 in that (a) multiplexor 1007 is omitted from programmable controller 1202 and (b) programmable controller 1202 includes a respective ADC 210 for each channel. Each ADC 210 is configured to convert a respective analog feedback signal Afb to a respective digital feedback signal Dfb, and each digital feedback signal Dfb is communicatively coupled to processing system 1006. As such, processing system 1006 may simultaneously receive a plurality of digital feedback signals Dfb, and certain embodiments of processing system 1006 are accordingly configured to simultaneously generate a plurality of digital internal signals Dint′.
Combinations of Features
Features described above may be combined in various ways without departing from the scope hereof. The following examples illustrate some possible combinations.
- (A1) A method for providing an analog output signal includes (1) amplifying a digital first internal signal using a first Class-D amplifier to generate a digital first output signal, (2) filtering the digital first output signal to generate an analog first output signal, (3) providing the analog first output signal to a first load, (4) sensing the analog first output signal to generate an analog first feedback signal, (5) converting the analog first feedback signal to a digital first feedback signal, and (6) configuring the first Class-D amplifier for an impedance of the first load by generating the digital first internal signal at least partially based on the digital first feedback signal.
- (A2) In the method denoted as (A1), sensing the analog first output signal may include one of sensing a voltage across the first load and sensing a magnitude of current flowing through the first load.
- (A3) In either one of the methods denoted as (A1) and (A2), an impedance of the first load may vary independently of a state of the analog first output signal.
- (A4) In any one of the methods denoted as (A1) through (A3), an impedance of the first load may range from zero to 1,000 ohms.
- (A5) In any one of the methods denoted as (A1) through (A4), the first load may include an industrial device.
- (A6) In any one of the methods denoted as (A1) through (A5), the analog first output signal may be a current signal.
- (A7) In any one of the methods denoted as (A1) through (A5), the analog first output signal may be a voltage signal.
- (A8) In any one of the methods denoted as (A1) through (A7), generating the digital first internal signal at least partially based on the digital first feedback signal may include generating the digital first internal signal to achieve an average value of the digital first output signal that is a function of an impedance of the first load.
- (A9) In any one of the methods denoted as (A1) through (A8), generating the digital first internal signal at least partially based on the digital first feedback signal may include generating the digital first internal signal at least partially based on a difference between the digital first feedback signal and a first reference value.
- (A10) Any one of the methods denoted as (A1) through (A9) may further include (1) using a first analog-to-digital converter (ADC) to convert the analog first feedback signal to the digital first feedback signal and (2) multiplexing the analog first feedback signal with an analog second feedback signal before an input to the first ADC.
- (A11) In the method denoted as (A10), multiplexing the analog first feedback signal with the analog second feedback signal may include communicatively coupling the analog first feedback signal and the analog second feedback signal to the input of the first ADC at different respective times.
- (A12) Either one of the methods denoted as (A10) and (A11) may further include (1) amplifying a digital second internal signal using a second Class-D amplifier to generate a digital second output signal, (2) filtering the digital second output signal to generate an analog second output signal, (3) providing the analog second output signal to a second load, and (4) sensing the analog second output signal to generate the analog second feedback signal.
- (A13) The method denoted as (A12) may further include using the first ADC to convert the analog second feedback signal to a digital second feedback signal.
- (A14) The method denoted as (A13) may further include configuring the second Class-D amplifier for an impedance of the second load by generating the digital second internal signal at least partially based on the digital second feedback signal.
- (B1) A programmable controller includes (1) a processing system configured to generate a digital first internal signal at least partially according to (a) programming instructions provided to the processing system and (b) a digital first feedback signal, (2) a first Class-D amplifier configured to amplify the digital first internal signal to generate a digital first output signal, (3) a first filter configured to filter the digital first output signal to generate an analog first output signal, (4) first sensing circuitry configured to sense the analog first output signal to generate an analog first feedback signal, and (5) a first analog-to-digital converter (ADC) configured to convert the analog first feedback signal to the digital first feedback signal.
- (B2) In the programmable controller denoted as (B1), the processing system may be configured to generate the digital first internal signal at least partially according to the digital first feedback signal to configure the first Class-D amplifier for an impedance of a first load receiving the analog first output signal
- (B3) In either one of the programmable controllers denoted as (B1) and (B2), the first filter may include an inductive-capacitive filter.
- (B4) In any one of the programmable controllers denoted as (B1) through (B3), the programmable controller may be selected from the group consisting of a programmable logic controller (PLC), a programmable automation controller (PAC), and a controller of a digital control system (DCS).
- (B5) Any one of the programmable controllers denoted as (B1) through (B4) may further include a programming interface enabling modification of the programming instructions provided to the processing system.
- (B6) In any one of the programmable controllers denoted as (B1) through (B5), the processing system may be further configured to generate the digital first internal signal at least partially according to one or more input signals received by the programmable controller.
- (B7) Any one of the programmable controllers denoted as (B1) through (B6) may further include a multiplexor configured to multiplex the analog first feedback signal with an analog second feedback signal before an input to the first ADC.
- (B8) In the programmable controller denoted as (B7), (1) the processing system may be further configured to generate a digital second internal signal at least partially according to (a) programming instructions provided to the processing system and (b) a digital second feedback signal, and (2) the programmable controller may further include (i) a second Class-D amplifier configured to amplify the digital second internal signal to generate a digital second output signal, (ii) a second filter configured to filter the digital second output signal to generate an analog second output signal, and (iii) second sensing circuitry configured to sense the analog second output signal to generate the analog second feedback signal.
- (B9) In the programmable controller denoted as (B8), the first ADC may be further configured to convert the analog second feedback signal to the digital second feedback signal.
- (C1) An electrical environment includes a programmable controller and a first load. The programmable controller includes (i) a processing system configured to generate a digital first internal signal at least partially according to (a) programming instructions provided to the processing system and (b) a digital first feedback signal, (ii) a first Class-D amplifier configured to amplify the digital first internal signal to generate a digital first output signal, (iii) a first filter configured to filter the digital first output signal to generate an analog first output signal, (iv) first sensing circuitry configured to sense the analog first output signal to generate an analog first feedback signal, and (v) a first analog-to-digital converter (ADC) configured to convert the analog first feedback signal to the digital first feedback signal. The first load is powered by the analog first output signal.
- (C2) The electrical environment denoted as (C1) may further include an electrical cable electrically coupling the first load to the programmable controller.
- (C3) In either one of the electrical environments denoted as (C1) and (C2), an impedance of the first load may range from zero to 1,000 ohms.
- (C4) In any one of the electrical environments denoted as (C1) through (C3), the programmable controller may be selected from the group consisting of a programmable logic controller (PLC), a programmable automation controller (PAC), and a controller of a digital control system (DCS).
- (C5) In any one of the electrical environments denoted as (C1) through (C4), the processing system may be configured to generate the digital first internal signal at least partially according to the digital first feedback signal to configure the first Class-D amplifier for an impedance of the first load.
Changes may be made in the above methods, devices, and systems without departing from the scope hereof. It should thus be noted that the matter contained in the above description and shown in the accompanying drawings should be interpreted as illustrative and not in a limiting sense. The following claims are intended to cover generic and specific features described herein, as well as all statements of the scope of the present method and system, which as a matter of language, might be said to fall therebetween.