CN114859798A - Control circuit, control method thereof, controller, and computer-readable storage medium - Google Patents
Control circuit, control method thereof, controller, and computer-readable storage medium Download PDFInfo
- Publication number
- CN114859798A CN114859798A CN202210787091.2A CN202210787091A CN114859798A CN 114859798 A CN114859798 A CN 114859798A CN 202210787091 A CN202210787091 A CN 202210787091A CN 114859798 A CN114859798 A CN 114859798A
- Authority
- CN
- China
- Prior art keywords
- channel number
- current value
- channel
- target
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B70/00—Technologies for an efficient end-user side electric power management and consumption
- Y02B70/10—Technologies improving the efficiency by using switched-mode power supplies [SMPS], i.e. efficient power electronics conversion e.g. power factor correction or reduction of losses in power supplies or efficient standby modes
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Dc-Dc Converters (AREA)
Abstract
The embodiment of the application provides a control circuit, a control method thereof, a controller and a computer readable storage medium, wherein the control circuit comprises a controller and a plurality of output channels, and each output channel is provided with a power controller for controlling the magnitude of a power supply current; in addition, the control method is applied to a controller and comprises the following steps: acquiring a set current value, and determining a target output channel according to the set current value; and generating a control instruction, and sending the control instruction to the power controller in the target output channel so as to control the power supply current of the power controller in the target output channel. The target output channels of required quantity can be determined according to the set current value, and the parallel output of the target output channels can be realized by controlling the power supply current of the power supply current, so that the multichannel free parallel output can be flexibly realized when different current demands are met, and the product adaptability is improved.
Description
Technical Field
The present application relates to electronic circuits, and in particular, to a control circuit, a control method thereof, a controller, and a computer-readable storage medium.
Background
At present, the power of power supply trade does more greatly, output current can be up to thousands of amperes, and bigger current output scope can let the power designer be difficult to handle, and it is higher to realize the cost, general designer can adopt the fixed parallelly connected mode of multichannel to control, however, to the fixed parallelly connected mode of multichannel, because can only fix a parallelly connected mode when the multichannel is parallelly connected, its algorithm and hardware can not adjust in a flexible way, thereby can lead to needing redesign when dealing with different current demands, product adaptability is poor.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the application provides a control circuit, a control method thereof, a controller and a computer readable storage medium, which can flexibly realize multi-channel free parallel output when different current requirements are met, and improve the product adaptability.
In a first aspect, an embodiment of the present application provides a control method for a control circuit, where the control circuit includes a controller and a plurality of output channels, the controller is connected to a load through the plurality of output channels, and each output channel is provided with a power controller for controlling a magnitude of a supply current; the control method is applied to the controller and comprises the following steps: acquiring a set current value, and determining target output channels according to the set current value, wherein the target output channels are one or more of the output channels; and generating a control instruction, and sending the control instruction to the power controller in the target output channel so as to control the power supply current of the power controller in the target output channel.
In some embodiments, each of the power controllers includes a power switch driver and a power switch device, the controller being connected to the power switch device through the power switch driver; when the control command comprises a PWM control signal, the sending the control command to the power controller in the target output channel comprises: sending the PWM control signal to the power switch driver in the target output channel to cause the power switch driver to generate and send a PWM drive signal to the power switch device based on the PWM control signal.
In some embodiments, the determining a target output channel according to the set current value comprises: acquiring a target correction threshold, the total channel number of the output channels and the rated current value of each output channel; and determining the channel number of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value.
In some embodiments, the target modification threshold is a target modification ratio; determining the channel number of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value, wherein the channel number of the target output channel comprises at least one of the following:
subtracting one from the total channel number to obtain a first channel number, calculating a first product value of the first channel number, the rated current value and the target correction proportion, and determining the channel number of the target output channel as the first channel number when the set current value is smaller than the first product value;
and subtracting one from the total channel number to obtain a first channel number, calculating a first product value of the first channel number, the rated current value and the target correction proportion, and determining the channel number of the target output channel as the total channel number when the set current value is greater than or equal to the first product value.
In some embodiments, the target modification threshold is a target modification current value; determining the channel number of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value, wherein the channel number of the target output channel comprises at least one of the following:
subtracting one from the total channel number to obtain a first channel number, calculating a difference value between the rated current value and the target correction current value, calculating a second product value between the difference value and the first channel number, and determining the channel number of the target output channel as the first channel number when the set current value is smaller than the second product value;
and subtracting one from the total channel number to obtain a first channel number, calculating a difference value between the rated current value and the target correction current value, calculating a second product value between the difference value and the first channel number, and determining the channel number of the target output channel as the total channel number when the set current value is greater than or equal to the second product value.
In some embodiments, the obtaining the set current value includes: and acquiring a set current value from an upper computer.
In some embodiments, the generating control instructions comprises: acquiring the channel number of the target output channel; determining a phase difference parameter according to the number of the channels; and sequentially generating control instructions based on the phase difference parameters, wherein the control instructions correspond to the target output channels one to one.
In a second aspect, an embodiment of the present application further provides a controller, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the control method according to the first aspect when executing the computer program.
In a third aspect, an embodiment of the present application further provides a control circuit, including the controller according to the second aspect.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions for executing the control method according to the first aspect.
The embodiment of the application comprises the following steps: for a larger current output range, the embodiment of the application firstly obtains a set current value, determines target output channels with a target number according to the set current value, then generates a control instruction, and sends the control instruction to a power controller in the target output channels so as to control the power supply current of the power controller. According to the technical scheme of the embodiment of the application, the required number of target output channels can be determined according to the set current value, and the parallel output of the target output channels can be realized by controlling the power supply current of the power controller, so that the embodiment of the application can flexibly realize the multi-channel free parallel output when different current requirements are met, and the product adaptability is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the claimed subject matter and are incorporated in and constitute a part of this specification, illustrate embodiments of the subject matter and together with the description serve to explain the principles of the subject matter and not to limit the subject matter.
FIG. 1 is a circuit schematic of a control circuit provided by one embodiment of the present application;
FIG. 2 is a circuit schematic of an output channel in a control circuit provided by one embodiment of the present application;
FIG. 3 is a circuit schematic of a current sampling module in the control circuit provided by one embodiment of the present application;
FIG. 4 is a circuit schematic of a controller in the control circuit provided by one embodiment of the present application;
FIG. 5 is a flow chart of a control method of a control circuit provided in one embodiment of the present application;
fig. 6 is a detailed flowchart of sending a control instruction to the power controller in the target output channel in step S200 of fig. 5;
FIG. 7 is a detailed flowchart of the determination of the target output channel according to the set current value in step S100 of FIG. 5;
FIG. 8 is a detailed flowchart of one embodiment of determining a target output channel based on the set current value, the target modified threshold value, the total channel number, and the rated current value in step S420 of FIG. 7;
FIG. 9 is a detailed flowchart of another embodiment of determining a target output channel based on the set current value, the target modified threshold value, the total channel number, and the rated current value in step S420 of FIG. 7;
fig. 10 is a diagram showing specific steps of acquiring the set current value in step S100 of fig. 5;
fig. 11 is a detailed flowchart of the generation control instruction in step S200 of fig. 5;
fig. 12 is a schematic hardware configuration diagram of a controller according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
In the related art, the larger the power of the power supply industry is, the output current can reach thousands of amperes, the larger and larger current output range can make power supply designers difficult to process, the implementation cost is higher, common designers can adopt a multi-channel fixed parallel connection mode to control, however, for the multi-channel fixed parallel connection mode, only one parallel connection mode can be fixed when the multiple channels are connected in parallel, the algorithm and hardware of the multi-channel fixed parallel connection mode cannot be flexibly adjusted, so that redesign is needed when different current demands are met, and the product adaptability is poor.
Based on this, the embodiment of the application provides a control circuit, a control method thereof, a controller and a computer readable storage medium, which can flexibly realize multi-channel free parallel output when facing different current requirements, and improve the product adaptability.
The control circuit, the control method thereof, the controller and the computer readable storage medium provided in the embodiments of the present application are specifically described in the following embodiments, and first, the control circuit in the embodiments of the present application is described.
As shown in fig. 1, fig. 1 is a schematic circuit diagram of a control circuit according to an embodiment of the present application.
Specifically, the control circuit of the embodiment of the present application includes, but is not limited to, a controller 100, a current sampling module 400, and a plurality of output channels 200, wherein the controller 100 is connected to a load 300 through the plurality of output channels 200, respectively, and the controller 100 is further connected to the output channels 200 through the current sampling module 400.
It is understood that, with respect to the load 300, energy storage or consumption devices such as lithium batteries, resistors, inductors, capacitors, etc. may be included, but the present application is not limited to the type of the load 300.
It should be noted that, regarding the output channel 200 described above, as shown in fig. 2, fig. 2 is a schematic circuit diagram of an output channel in a control circuit provided in an embodiment of the present application; the output channel 200 of the embodiment of the present application includes, but is not limited to, a power controller, wherein the power controller includes, but is not limited to, a power switch driver 210 and a power switch device 220, and the controller 100 is connected to the power switch device 220 through the power switch driver 210.
In addition, as can be seen from fig. 2, the power switch device 220 is provided with a control terminal for connecting to the power switch driver 210, a current input terminal for connecting to a power supply, and a current output terminal for connecting to the load 300. Specifically, the controller 100 can control the magnitude of the supply current of the power switching device 220 through the power switching driver 210, so that the power switching device 220 is in an on state or an off state; when the power switching device 220 is in the on state, the power switching device 220 can receive a supply current of a power supply through the current input terminal and supply the supply current to the load 300 through the current output terminal, in other words, the power supply can supply power to the load 300 through the power switching device 220. When the power switch device 220 is in the off state, the power switch device 220 cannot receive the supply current of the power source through the current input terminal, and cannot supply the supply current to the load 300 through the current output terminal, in other words, the power source cannot supply power to the load 300 through the power switch device 220. Therefore, the embodiment of the present application can control the supply current of the output channel 200 through the power switch device 220.
It should be noted that, regarding the power switch driver 210, an input end thereof is used for being connected to the controller 100, and an output end thereof is used for being connected to a control end of the power switch device 220. Specifically, the power switch driver 210 is capable of receiving a PWM (Pulse Width Modulation) control signal from the controller 100, generating a PWM driving signal according to the PWM control signal, and transmitting the PWM driving signal to the control terminal of the power switch device 220, so as to control the magnitude of the supply current of the power switch device 220.
In addition, it is understood that the power switch device 220 may include, but is not limited to, a Metal-Oxide-Semiconductor Field-Effect Transistor (MOS), an Insulated Gate Bipolar Transistor (IGBT), a relay, or other electronic devices with a specific switching function, and the type of the power switch device 220 is not limited in the embodiments of the present application.
It should be noted that, regarding the current sampling module 400 described above, as shown in fig. 3, fig. 3 is a schematic circuit diagram of the current sampling module in the control circuit provided in an embodiment of the present application; the current sampling module 400 of the embodiment of the present application includes, but is not limited to, a current sensor 410 and an analog-to-digital conversion unit 420, wherein the current sensor 410 is configured to be disposed on a power channel, and the current sensor 410 is further connected to the controller 100 through the analog-to-digital conversion unit 420.
The power supply path refers to a power supply path between the power supply and the load 300. Therefore, regarding the installation position of the current sensor 410, it may be installed between the current input terminal of the power switching device 220 and the power source, or between the current output terminal of the power switching device 220 and the load 300.
In addition, as can be seen from fig. 3, the current sensor 410 can collect a current sampling signal at the power channel, and since the current sampling signal is an analog signal, the current sampling signal needs to be converted into a digital signal by the analog-to-digital conversion unit 420, and the digital signal is sent to the controller 100 in this embodiment of the application.
In addition, it should be noted that the current sensor 410 according to the embodiment of the present application may acquire a current sampling signal at a power channel through a device such as a shunt sensor, a current transformer, a hall current sensor, or a fluxgate sensor, and mainly use the above devices to acquire a change in magnitude of a current signal, and the current signal is received by the controller 100 after passing through the analog-to-digital conversion unit 420.
It should be noted that, regarding the controller 100 described above, as shown in fig. 4, fig. 4 is a schematic circuit diagram of a controller in a control circuit provided in an embodiment of the present application; the controller 100 of the embodiment of the present application, in addition to having a general IO control function, further includes but is not limited to a main control chip 110, a phase-error control module 120, and a main-slave current-sharing control module 130, specifically, the main control chip 110 is directly connected to the phase-error control module 120, and the main control chip 110 is further indirectly connected to the phase-error control module 120 through the main-slave current-sharing control module 130, where the main-slave current-sharing control module 130 is further configured to be connected to the current sampling module 400 to receive a digital signal from the current sampling module 400; in addition, the phase error control module 120 is configured to be connected to a plurality of output channels 200 and send the PWM control signal to the output channels 200.
It should be noted that, the two modules, i.e., the phase-staggered control module 120 and the master-slave current-sharing control module 130, are both enabled when n channels are required to output a large current in parallel, where n is greater than or equal to 2 and n is an integer; regarding the control logic of the error phase control module 120 and the master-slave current sharing control module 130, the following are respectively:
for the control logic of the phase error control module 120: firstly, it should be noted that, for the existing multi-channel fixed parallel connection mode, the output currents are superposed in phase, and the output current ripple is large due to superposition of multi-channel in-phase signals, so that the stability of the whole circuit is poor. Therefore, the embodiment of the application can reduce output ripples by performing phase-staggered output control on the multi-channel output signals, thereby improving the stability of current output. The specific control logic is as follows: when n output channels 200 output large currents in parallel, the output channels 200 are controlled to output the large currents in a staggered phase mode, and small ripple currents are guaranteed while the large currents are output. The phase difference between the output channels 200 is (360 °/n), and the embodiment of the present application can avoid the ripple superposition between the output channels 200 through the phase-staggered output, thereby improving the output stability.
For the control logic of the master-slave current-sharing control module 130: first, in the conventional multi-channel fixed parallel connection method, the large current and small current operation modes are fixed, and the accuracy of the large current and the small current is inconsistent due to the fixed operation mode, so that the accuracy is lowered at the time of the small current. Therefore, the same high-precision output can be achieved when the independent-combination parallel output is realized through the master-slave current sharing control. The specific control logic is as follows: assuming that the rated current output by a single channel is x A (amperes), when n channels are output in parallel, the maximum current output by the single channel can reach nx A; in the embodiment of the application, a threshold value p can be set, wherein p can be a percentage value, and only (n-1) channels are opened when the set current is smaller than (n-1) px A; when the set current is greater than or equal to (n-1) px A, opening n channels; the output current initial values of all the output channels are (set current/n), and in the dynamic process, the output current of the main channel is adjusted in real time according to the total output error, so that the difference between the total output current and the set value is within the error range; therefore, the embodiment of the application can achieve the same high-precision output when realizing the free combination parallel output.
Various embodiments of the control method by the control circuit of the present application are proposed based on the hardware structure of the control circuit described above.
As shown in fig. 5, fig. 5 is a flowchart of a control method of a control circuit according to an embodiment of the present application; the control method is applied to a controller, and may include, but is not limited to, step S100 and step S200.
S100, acquiring a set current value, and determining target output channels according to the set current value, wherein the target output channels are one or more output channels;
and S200, generating a control instruction, and sending the control instruction to the power controller in the target output channel to control the power supply current of the power controller in the target output channel.
Specifically, for a large current output range, a set current value is obtained first, a target number of target output channels is determined according to the set current value, then a control instruction is generated, and the control instruction is sent to a power controller in the target output channels to control the supply current of the power controller. According to the technical scheme of the embodiment of the application, the required number of target output channels can be determined according to the set current value, and the parallel output of the target output channels can be realized by controlling the power supply current of the power controller, so that the embodiment of the application can flexibly realize the multi-channel free parallel output when different current requirements are met, and the product adaptability is improved.
The set current value may be acquired by a current sampling module or may be acquired by a user input method, and the acquisition method of the set current value is not limited in the embodiments of the present application.
The number of target output channels is related to the value of the set current value. In one embodiment, the larger the value of the set current value, the larger the number of target output channels; the smaller the value of the set current value, the smaller the number of target output channels.
In addition, it is worth noting that the controller can control the supply current magnitude of the power switch device; wherein when the power switch device is in the conducting state, the power supply can supply power to the load through the power switch device. When the power switch device is in the off state, the power supply cannot supply power to the load through the power switch device. Therefore, the power switch device can control the supply current of the output channel.
In addition, as shown in fig. 6, fig. 6 is a specific flowchart of sending a control instruction to the power controller in the target output channel in step S200 of fig. 5; when the control command includes the PWM control signal, the sending of the control command to the power controller in the target output channel in the above step S200 may include, but is not limited to, the step S300.
And step S300, sending the PWM control signal to a power switch driver in the target output channel so that the power switch driver generates and sends a PWM driving signal to the power switch device based on the PWM control signal.
Specifically, the power switch driver can receive a PWM control signal from the controller, generate a PWM driving signal according to the PWM control signal, and transmit the PWM driving signal to a control terminal of the power switch device, so as to control the magnitude of the supply current of the power switch device.
In addition, as shown in fig. 7, fig. 7 is a specific flowchart of determining a target output channel according to a set current value in step S100 of fig. 5; regarding the determination of the target output channel according to the set current value in the above step S100, it may include, but is not limited to, including step S410 and step S420.
Step S410, acquiring a target correction threshold, the total channel number of output channels and the rated current value of each output channel;
and step S420, determining a target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value.
Specifically, the present embodiment may estimate the number of target output channels by setting a current value, a target correction threshold value, and a rated current value.
In the process of acquiring the number of target output channels, the number of target output channels may be calculated by inputting the set current value, the target correction threshold value, the total channel number, and the rated current value into a calculation formula, or the number of target output channels may be determined by performing table lookup according to the set current value, the target correction threshold value, the total channel number, and the rated current value, or the set current value, the target correction threshold value, the total channel number, and the rated current value may be input into a trained neural network model to calculate the number of target output channels, or the number of target output channels may be obtained in another manner.
In addition, it should be noted that the target correction threshold is set to prevent the output channel from transmitting current at full load, and therefore, the embodiment of the present application ensures that the output channel has a certain current output margin by setting the target correction threshold.
It should be understood that the target correction threshold may be preset by a user or may be set according to a current circuit parameter of the control circuit, and the setting mode of the target correction threshold is not limited in the embodiment of the present application.
In addition, as shown in fig. 8, fig. 8 is a detailed flowchart of an embodiment of determining a target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value in step S420 of fig. 7; regarding the determination of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value in the above step S420, it may include, but is not limited to, including step S510, step S520 and step S530.
Step S510, subtracting one from the total channel number to obtain a first channel number, and calculating a first product value of the first channel number, the rated current value and the target correction proportion;
step S520, when the set current value is smaller than the first product value, determining the channel number of the target output channel as a first channel number;
step S530, when the set current value is greater than or equal to the first product value, determining the number of channels of the target output channel as the total number of channels.
Specifically, assuming that the rated current output by a single channel is x A (amperes), when n channels are output in parallel, the maximum current output by the single channel can reach nx A; in the embodiment of the application, a target correction threshold p can be set, wherein p can be a target correction proportion, and only (n-1) channels are opened when the set current is smaller than (n-1) px A; when the set current is greater than or equal to (n-1) px A, opening n channels; the output current initial values of all channels are (set current/n), and in the dynamic process, the output current of the main channel is adjusted in real time according to the total output error, so that the difference between the total output current and the set value is within the error range; therefore, the embodiment of the application can achieve the same high-precision output when realizing the free combination parallel output.
For example, currently, there are 6 channels, each output channel can output 50A current, and the target correction threshold is 80%, then the current thresholds of 5 channels are turned on: (6-1) × 60A × 80% = 240A. When the set current is 220A, if the set current is less than 240A, 5 output channels are opened, and the output current of each output channel is 220A/5= 44A; when the set current is 270A, the set current is equal to or larger than 240A, 6 output channels are opened, and the output current of each output channel is 270A/6= 45A. Therefore, the calculation shows that whether the output is 220A or 270A, the devices of each output channel work under the same or similar environment, and the working characteristics of the electronic components are the same, and the design can ensure that the working characteristics of the electronic components are in the same or similar area to the maximum extent, so that the output stability and the accuracy are higher.
In addition, as shown in fig. 9, fig. 9 is a detailed flowchart of another embodiment of determining a target output channel according to the set current value, the target correction threshold value, the total channel number, and the rated current value in step S420 of fig. 7; regarding the determination of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value in the above step S420, it may include, but is not limited to, including step S610, step S620 and step S630.
Step S610, subtracting one from the total channel number to obtain a first channel number, calculating a difference value between a rated current value and a target correction current value, and calculating a second product value between the difference value and the first channel number;
step S620, when the set current value is smaller than the second product value, determining the number of channels of the target output channel as the first number of channels;
step S630, when the set current value is greater than or equal to the second product value, determining the number of channels of the target output channel as the total number of channels.
Specifically, assuming that the rated current output by a single channel is x A (amperes), when n channels are output in parallel, the maximum current output by the single channel can reach nx A; in the n channels, one channel is selected as a main channel, and the rest channels are slave channels, in the embodiment of the application, a target correction threshold value p can be set, wherein p can be a target correction current value, and when the set current is less than (n-1) × (x-p) a, only (n-1) channels are opened; when the set current is greater than or equal to (n-1) × (x-p) A, opening n channels; the output current initial values of all channels are (set current/n), and in the dynamic process, the output current of the main channel is adjusted in real time according to the total output error, so that the difference between the total output current and the set value is within the error range; therefore, the embodiment of the application can achieve the same high-precision output when realizing the free combination parallel output.
In addition, as shown in fig. 10, fig. 10 is a detailed step diagram of acquiring the set current value in step S100 of fig. 5; regarding the obtaining of the set current value in the above step S100, there may be included, but not limited to including, step S700.
And S700, acquiring a set current value from an upper computer.
Specifically, the controller of the embodiment of the application can determine the set current value according to a command of the upper computer.
In addition, as shown in fig. 11, fig. 11 is a specific flowchart of the generation of the control command in step S200 of fig. 5; the generation control instruction in step S200 may include, but is not limited to, step S810, step S820, and step S830.
Step S810, acquiring the channel number of a target output channel;
step S820, determining phase difference parameters according to the number of channels;
and S830, sequentially generating control instructions based on the phase difference parameters, wherein the control instructions correspond to the target output channels one to one.
Specifically, when n output channels output large currents in parallel, the output channels are controlled to output the large currents in a staggered phase mode, and small ripple currents are guaranteed while the large currents are output. The phase difference between the output channels is (360 DEG/n), and through the phase-staggered output, the ripple superposition between the output channels can be avoided, and the output stability is further improved.
An embodiment of the present application further provides a controller, where the controller includes: the control circuit comprises a memory, a processor, a program stored on the memory and capable of running on the processor, and a data bus for realizing connection communication between the processor and the memory, wherein the program realizes the control method of the control circuit when being executed by the processor.
Referring to fig. 12, fig. 12 is a schematic diagram of a hardware structure of a controller according to an embodiment of the present application, where the controller includes:
the processor 510 may be implemented by a general-purpose CPU (central processing unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided in the embodiment of the present application;
the memory 520 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM). The memory 520 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 520 and called by the processor 510 to execute the control method of the embodiments of the present disclosure;
an input/output interface 530 for implementing information input and output;
the communication interface 540 is used for realizing communication interaction between the device and other devices, and may realize communication in a wired manner (e.g., USB, network cable, etc.) or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.); and
a bus 550 that transfers information between various components of the device (e.g., processor 510, memory 520, input/output interfaces 530, and communication interfaces 540);
wherein processor 510, memory 520, input/output interface 530, and communication interface 540 are communicatively coupled to each other within the device via bus 550.
The embodiment of the present application further provides a storage medium, which is a computer-readable storage medium for computer-readable storage, and the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the control method of the control circuit described above.
The memory, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation to the technical solutions provided in the embodiments of the present application, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems with the evolution of technology and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the solutions shown in fig. 5 to 11 do not constitute a limitation of the embodiments of the present application, and may include more or less steps than those shown, or combine some steps, or different steps.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "C and/or D" may indicate: c only, D only and C and D are present simultaneously, wherein C and D can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and the scope of the claims of the embodiments of the present application is not limited thereto. Any modifications, equivalents and improvements that may occur to those skilled in the art without departing from the scope and spirit of the embodiments of the present application are intended to be within the scope of the claims of the embodiments of the present application.
Claims (10)
1. The control method of the control circuit is characterized in that the control circuit comprises a controller and a plurality of output channels, the controller is connected to a load through the output channels, and each output channel is provided with a power controller for controlling the magnitude of a power supply current; the control method is applied to the controller and comprises the following steps:
acquiring a set current value, and determining target output channels according to the set current value, wherein the target output channels are one or more of the output channels;
and generating a control instruction, and sending the control instruction to the power controller in the target output channel so as to control the power supply current of the power controller in the target output channel.
2. The control method of claim 1, wherein each of the power controllers comprises a power switch driver and a power switch device, the controller being connected to the power switch device through the power switch driver; when the control command comprises a PWM control signal, the sending the control command to the power controller in the target output channel comprises:
sending the PWM control signal to the power switch driver in the target output channel to cause the power switch driver to generate and send a PWM drive signal to the power switch device based on the PWM control signal.
3. The control method according to claim 1, wherein the determining a target output channel according to the set current value includes:
acquiring a target correction threshold, the total channel number of the output channels and the rated current value of each output channel;
and determining the channel number of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value.
4. The control method according to claim 3, wherein the target correction threshold is a target correction ratio; determining the channel number of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value, wherein the channel number of the target output channel comprises at least one of the following:
subtracting one from the total channel number to obtain a first channel number, calculating a first product value of the first channel number, the rated current value and the target correction proportion, and determining the channel number of the target output channel as the first channel number when the set current value is smaller than the first product value;
and subtracting one from the total channel number to obtain a first channel number, calculating a first product value of the first channel number, the rated current value and the target correction proportion, and determining the channel number of the target output channel as the total channel number when the set current value is greater than or equal to the first product value.
5. The control method according to claim 3, wherein the target correction threshold value is a target correction current value; determining the channel number of the target output channel according to the set current value, the target correction threshold value, the total channel number and the rated current value, wherein the channel number of the target output channel comprises at least one of the following:
subtracting one from the total channel number to obtain a first channel number, calculating a difference value between the rated current value and the target correction current value, calculating a second product value between the difference value and the first channel number, and determining the channel number of the target output channel as the first channel number when the set current value is smaller than the second product value;
and subtracting one from the total channel number to obtain a first channel number, calculating a difference value between the rated current value and the target correction current value, calculating a second product value between the difference value and the first channel number, and determining the channel number of the target output channel as the total channel number when the set current value is greater than or equal to the second product value.
6. The control method according to any one of claims 1 to 5, wherein the obtaining of the set current value includes:
and acquiring a set current value from an upper computer.
7. The control method according to any one of claims 1 to 5, wherein the generating a control instruction includes:
acquiring the channel number of the target output channel;
determining a phase difference parameter according to the number of the channels;
and sequentially generating control instructions based on the phase difference parameters, wherein the control instructions correspond to the target output channels one to one.
8. A controller, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor executing the control method according to any one of claims 1 to 7 when executing the computer program.
9. A control circuit comprising the controller of claim 8.
10. A computer-readable storage medium storing computer-executable instructions for performing the control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210787091.2A CN114859798B (en) | 2022-07-06 | 2022-07-06 | Control circuit, control method thereof, controller, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210787091.2A CN114859798B (en) | 2022-07-06 | 2022-07-06 | Control circuit, control method thereof, controller, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114859798A true CN114859798A (en) | 2022-08-05 |
CN114859798B CN114859798B (en) | 2022-09-27 |
Family
ID=82626808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210787091.2A Active CN114859798B (en) | 2022-07-06 | 2022-07-06 | Control circuit, control method thereof, controller, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114859798B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116804863A (en) * | 2023-05-30 | 2023-09-26 | 苏州贝茵科技股份有限公司 | Method for freely switching output functions and controller device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170214318A1 (en) * | 2016-01-26 | 2017-07-27 | Rohm Co., Ltd. | Dc/dc converter |
CN109448659A (en) * | 2018-12-27 | 2019-03-08 | 惠科股份有限公司 | Drive control module and display device |
CN110749848A (en) * | 2019-09-25 | 2020-02-04 | 西安航天计量测试研究所 | Current parameter calibration system and method based on current channel switching instrument |
CN110780111A (en) * | 2019-11-11 | 2020-02-11 | 杭州和利时自动化有限公司 | Current type analog quantity output module and control method thereof |
CN111682507A (en) * | 2020-06-10 | 2020-09-18 | 昂纳信息技术(深圳)有限公司 | Monitoring device, monitoring system and monitoring method of laser driver |
CN112034414A (en) * | 2020-09-09 | 2020-12-04 | 南方电网科学研究院有限责任公司 | Self-adaptive sampling method, system and equipment for core board of electric meter |
CN112671232A (en) * | 2020-12-24 | 2021-04-16 | 漳州科华技术有限责任公司 | LLC resonant circuit control method and device and terminal equipment |
CN112910061A (en) * | 2021-04-07 | 2021-06-04 | 科世达(上海)机电有限公司 | Control method, device and medium for charging system load balancing |
CN113054758A (en) * | 2021-03-16 | 2021-06-29 | 中国人民解放军海军工程大学 | Multi-channel wireless power transmission system for realizing power self-balancing |
-
2022
- 2022-07-06 CN CN202210787091.2A patent/CN114859798B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170214318A1 (en) * | 2016-01-26 | 2017-07-27 | Rohm Co., Ltd. | Dc/dc converter |
CN109448659A (en) * | 2018-12-27 | 2019-03-08 | 惠科股份有限公司 | Drive control module and display device |
CN110749848A (en) * | 2019-09-25 | 2020-02-04 | 西安航天计量测试研究所 | Current parameter calibration system and method based on current channel switching instrument |
CN110780111A (en) * | 2019-11-11 | 2020-02-11 | 杭州和利时自动化有限公司 | Current type analog quantity output module and control method thereof |
CN111682507A (en) * | 2020-06-10 | 2020-09-18 | 昂纳信息技术(深圳)有限公司 | Monitoring device, monitoring system and monitoring method of laser driver |
CN112034414A (en) * | 2020-09-09 | 2020-12-04 | 南方电网科学研究院有限责任公司 | Self-adaptive sampling method, system and equipment for core board of electric meter |
CN112671232A (en) * | 2020-12-24 | 2021-04-16 | 漳州科华技术有限责任公司 | LLC resonant circuit control method and device and terminal equipment |
CN113054758A (en) * | 2021-03-16 | 2021-06-29 | 中国人民解放军海军工程大学 | Multi-channel wireless power transmission system for realizing power self-balancing |
CN112910061A (en) * | 2021-04-07 | 2021-06-04 | 科世达(上海)机电有限公司 | Control method, device and medium for charging system load balancing |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116804863A (en) * | 2023-05-30 | 2023-09-26 | 苏州贝茵科技股份有限公司 | Method for freely switching output functions and controller device |
CN116804863B (en) * | 2023-05-30 | 2024-01-30 | 苏州贝茵科技股份有限公司 | Method for freely switching output functions and controller device |
Also Published As
Publication number | Publication date |
---|---|
CN114859798B (en) | 2022-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100593522B1 (en) | Voltage Set Point Control Structure | |
KR100989480B1 (en) | Method and system for communicating filter compensation coefficients for a digital power control system | |
CN101272092B (en) | Control circuit and controlling method of switching power supply system | |
CN104951032B (en) | Scheme is uniformly controlled for noninverting efficient voltage reducing boost power converter | |
CN101640481A (en) | Mixed power converter | |
CN103155432A (en) | Plc/power supply hybrid device and device with communication function | |
CN114859798B (en) | Control circuit, control method thereof, controller, and computer-readable storage medium | |
US20170206296A1 (en) | Simulation device and method for simulation | |
CN104579082A (en) | Single-resistor sampling time compensation method and system | |
CN111137152A (en) | Direct-current charging pile and flexible expansion method thereof | |
US20220399745A1 (en) | Line-interactive uninterruptible power supply with integrated charger | |
US11245334B2 (en) | Energy accumulator emulator and method for emulation of an energy accumulator | |
JP2010154614A (en) | Dc power supply device | |
CN115561665B (en) | Power supply detection method, device, equipment, medium and circuit | |
CN103201638B (en) | Supply unit | |
CN115347650B (en) | Power supply method, device, equipment and medium based on voltage adjustment of detection equipment | |
US20230216411A1 (en) | Remote current sense compensation in multiphase voltage regulators | |
CN110752793A (en) | ZYNQ-based multi-motor direct torque control system and control method thereof | |
US20210326293A1 (en) | Bus communication signal conversion method and device, medium, and numerical control machine tool control equipment | |
CN115378290A (en) | Space vector modulation method for reducing current harmonics and related equipment | |
CN112671308B (en) | Motor switching control method, frequency converter and computer readable storage medium | |
CN111025007B (en) | Power supply voltage detection method and device and storage medium | |
CN104821809A (en) | Digital circuit for generating a pulse-width modulated signal | |
CN112104217A (en) | Power supply soft start control method and device | |
CN118137835B (en) | System on chip for voltage conversion, method, medium and power supply system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |