Control instruction acquisition device and system
By using multiple target ports to output voltage values in the photovoltaic inverter and combining preset rules to obtain control instructions, the problem in the existing technology of being unable to accurately identify the multiple control switch states of the DRED command response device is solved, and the inverter is realized The flexible output control and power quality response meet the safety standards of Australia and New Zealand.
Patent Information
- Application Number
- CN202110205981.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-02-24
AI Technical Summary
The existing technology is difficult to effectively obtain the control instructions of the DRED command response device in the photovoltaic inverter. Especially when there are multiple control switches on the branch, it cannot accurately distinguish different switch states, resulting in the inability to adapt to the safety standards of Australia and New Zealand. .
By changing the connection situation between the first port and the second port of the command response device, using multiple target ports to output voltage values, and combining preset rules to obtain target control instructions, it is suitable for situations where there are multiple control switches on the branch to achieve control. Accurate identification of control instructions.
It realizes the inverter's output control according to the target control instructions, adapts to different power grid needs, improves the flexibility and stability of the power quality response mode, and meets the inverter safety standards of Australia and New Zealand.
Smart Images

Figure CN114968355B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and more specifically, to a control instruction detection device and system. Background Art
[0002] The safe and stable operation of the power grid is the foundation of national economic development. To this end, countries have issued corresponding requirements to solve this problem. For Chinese manufacturing to go global, it is necessary to understand local policies and comply with their standards and specifications. Among them, the safety standards for photovoltaic grid-connected inverters and photovoltaic energy storage inverters issued by Australia and New Zealand require that all photovoltaic inverters sold to Australia and New Zealand must comply with this safety standard. This safety standard requires that the inverter can perform output control according to the control instructions sent by the power grid company to the DRED (Demand Response Electrical Device). Therefore, it is necessary to obtain this control instruction. Summary of the invention
[0003] An objective of the embodiments of the present disclosure is to provide a new technical solution for acquiring control instructions.
[0004] According to a first aspect of the present disclosure, a control instruction acquisition device is provided, which is used to communicate with a command response device; the command response device includes M second ports, N branches, and N first ports connected to the N branches in a one-to-one correspondence, one branch includes no more than M control switches, the control switch in each branch is connected between the second port and the corresponding first port, different control switches in the same branch are connected to different second ports, the number of the control switches is greater than N, and M and N are both positive integers; the command response device is configured to change the connection between the corresponding first port and the second port by changing the state of a predetermined control switch to characterize a target control instruction; the control instruction acquisition device includes: a first processing module and a second processing module; the first processing module includes a plurality of target ports; the first processing module is used to connect the first port and the second port, and output a corresponding voltage value through the target port according to the connection condition; the second processing module is used to acquire the target control instruction according to the corresponding voltage value output by the target port and a preset rule.
[0005] Optionally, the control instruction acquisition device also includes a storage module; the storage module is used to store a plurality of pre-set control instructions, each of which corresponds to a voltage condition of each of the target ports; the second processing module is used to detect whether the corresponding voltage value output by the target port meets the target voltage condition; if the corresponding voltage value output by the target port meets the target voltage condition, the control instruction corresponding to the target voltage condition is determined as the target control instruction, and the target voltage condition is the voltage condition of the target port corresponding to the control instruction.
[0006] Optionally, the voltage condition includes: a voltage interval or a voltage value.
[0007] Optionally, the multiple target ports include: a fourth port, N third ports; the first processing module includes: a second circuit having the fourth port, N first circuits having the third port; wherein the N first circuits are used to connect the N first ports one-to-one; any of the first circuits is used to output a corresponding voltage value via the third port; the second circuit is used to connect the second port and output a corresponding voltage value via the fourth port.
[0008] Optionally, the first circuit includes a first resistor, a first operational amplifier and a first filtering circuit; wherein, the first end of the first resistor is connected to a first supply voltage, and the second end of the first resistor is connected to the corresponding first port; the positive input end of the first operational amplifier is connected to the second end of the first resistor, and the negative input end of the first operational amplifier is connected to the output end of the first operational amplifier; the first end of the first filtering circuit is connected to the output end of the first operational amplifier, and the second end of the first filtering circuit serves as the third port.
[0009] Optionally, the second circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a second operational amplifier and a second filtering circuit; wherein the first end of the second resistor is connected to the second supply voltage, and the second end of the second resistor is connected to the second port; the first end of the third resistor is connected to another second port, and the second end of the third resistor is grounded; the first end of the fourth resistor is connected to the second end of the second resistor, and the second end of the fourth resistor is connected to the positive input end of the second power amplifier; the first end of the fifth resistor is connected to the positive input end of the second power amplifier, and the second end of the fifth resistor is grounded; the first end of the sixth resistor is connected to the first end of the third resistor, and the second end of the sixth resistor is connected to the negative input end of the second power amplifier; the first end of the seventh resistor is connected to the negative input end of the second power amplifier, and the second end of the seventh resistor is connected to the output end of the second power amplifier; the first end of the second filtering circuit is connected to the output end of the second power amplifier, and the second end of the second filtering circuit serves as the fourth port.
[0010] Optionally, the resistance values of the fourth resistor and the sixth resistor are both first values; the resistance values of the fifth resistor and the seventh resistor are both second values; when the voltage value of the second supply voltage is greater than the maximum allowable voltage value corresponding to the fourth port, the ratio of the second value divided by the first value is less than 1; when the voltage value of the second supply voltage is less than the maximum allowable voltage value corresponding to the fourth port, the ratio of the second value divided by the first value is greater than 1.
[0011] Optionally, the control instruction acquisition device further includes: a communication module; the communication module is used to send the target control instruction to the inverter, so that the inverter executes the target control instruction.
[0012] According to the second aspect of the present disclosure, a control instruction acquisition system is also provided, comprising: an inverter and a control instruction acquisition device as described in any one of the first aspect of the present disclosure; wherein the inverter is used to execute the target control instruction sent by the control instruction acquisition device.
[0013] Optionally, the control instruction acquisition system also includes the command response device.
[0014] One beneficial effect of the embodiments of the present disclosure is that, according to the connection between the first port and the second port of the command response device, multiple voltage values are output through multiple target ports, and then according to the corresponding voltage values output by the target ports, corresponding target control instructions are obtained, so that the inverter can perform output control according to the target control instructions.
[0015] Other features and advantages of the embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the embodiments of the present disclosure.
[0017] Figure 1 is a block diagram of a control instruction acquisition device according to an embodiment;
[0018] Figure 2 is a block diagram of a control instruction acquisition device according to another embodiment;
[0019] Figure 3 is a schematic diagram of the internal structure of a command response device according to an embodiment;
[0020] Figure 4 is a schematic diagram of the connection relationship between a control instruction acquisition device and a command response device according to an embodiment;
[0021] Figure 5-Figure 9 are schematic diagrams of the connection relationship between the first circuit and the second circuit in different switch states;
[0022] Fig.10 is a block diagram of a control instruction acquisition system according to an embodiment. DETAILED DESCRIPTION
[0023] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0024] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0025] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0026] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0027] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0028] With the improvement of power generation technology, the quality of the power grid itself has been greatly improved compared with 10 years ago. Due to the improvement of power grid quality, the market demand for photovoltaic inverters has not only stayed at the function of grid-connected power generation, but also paid more and more attention to the protection of power grid quality. Whether it is a centralized photovoltaic power station or a distributed photovoltaic power station, or even a household photovoltaic grid-connected inverter, energy is input into the power grid. As a new energy power generation equipment, the power grid companies of various countries require that the power output of the photovoltaic inverter does not affect the quality and stability of the power grid. In this case, in order to ensure the quality of the power grid, the inverter needs to have a flexible adjustment function to adapt to various situations. Specifically, the inverter needs to be able to perform output control according to the control instructions sent by the power grid company to DRED (Demand Response Electrical Device) to achieve flexible adjustment functions.
[0029] To this end, the control instruction needs to be obtained. Considering that the DRED can control the internal control switch to the corresponding switch state according to the received control instruction, the corresponding control instruction can be obtained based on the change of the switch state.
[0030] Based on the above content, one application scenario of the embodiment of the present disclosure is how to obtain control instructions. In the process of implementation, the inventor found that for the case where there is a control switch on a branch inside the DRED, the IO (input and output) detection method of the relay or the optocoupler can be used. Specifically, the control instruction can be detected by the contact and disconnection of the relay or the conduction and disconnection of the optocoupler. However, this detection method is not suitable for the case where there is more than one control switch on a branch inside the DRED. For example, it cannot completely distinguish different switch states, so it is not suitable for the control instruction detection of the energy storage system DRED.
[0031] In view of the technical problems existing in the above implementation methods, the inventors have proposed a control instruction acquisition method, which specifically outputs multiple voltage values through multiple target ports according to the connection between the first port and the second port of the command response device, and then obtains the corresponding target control instruction according to the corresponding voltage value output by the target port, so that the inverter can perform output control according to the target control instruction. That is, in this method, the corresponding target control instruction is obtained based on not only the specific value of the voltage value, but also the target port from which the voltage value is output, based on these two types of information.
[0032] Hereinafter, various embodiments and examples according to the present invention are described with reference to the accompanying drawings.
[0033] <Device Example>
[0034] Figure 1 1 is a block diagram of a control instruction acquisition device 100 according to an embodiment. The control instruction acquisition device 100 is used to communicate with a command response device 200. The command response device 200 is first described below.
[0035] In detail, for the command response device 200:
[0036] In this embodiment, the command response device 200 includes M second ports, N branches, and N first ports connected to the N branches in a one-to-one correspondence. One branch includes no more than M control switches. The control switch in each branch is connected between the second port and the corresponding first port. Different control switches in the same branch are connected to different second ports. The number of the control switches is greater than N, and M and N are both positive integers.
[0037] The command response device 200 is configured to change the connection between the corresponding first port and the second port by changing the state of a predetermined control switch to represent the target control instruction.
[0038] Specifically, when the command response device 200 receives the target control instruction, it can set each internal control switch to a corresponding on or off state. To distinguish different control instructions, the switch states of the internal control switches of the command response device 200 are different for different control instructions.
[0039] Since the first port and the second port are both ports connected to the control switch, when the switch state of the control switch changes, the connection state between the first port and the second port changes accordingly.
[0040] like Figure 3 As shown, Figure 3 FIG. 2 shows a schematic diagram of the internal structure of a command response device 200. In the command response device 200, M=2, N=4. Figure 3 The command response device 200 shown includes two second ports, four branches, and four first ports connected to the four branches in a one-to-one correspondence, and one branch includes two control switches. The two second ports are REF GEN / 0 and COM LOAD / 0 respectively; the four first ports are DRM1 / 5, DRM2 / 6, DRM3 / 7, and DRM4 / 8 respectively.
[0041] Based on the above, if Figure 1 As shown, the control instruction acquisition device 100 of this embodiment may include a first processing module 101 and a second processing module 102. The first processing module 101 and the second processing module 102 are described below.
[0042] In detail, for the first processing module 101:
[0043] The first processing module 101 includes a plurality of target ports 1011. The first processing module 101 is used to connect the first port and the second port, and output a corresponding voltage value through the target port 1011 according to the connection status.
[0044] In this embodiment, the target port 1011 is used to output corresponding voltage values to the connected second processing module 102. When the command response device 200 is connected, different control instructions received by the command response device 200 may cause the voltage values output by the multiple target ports 1011 to change accordingly.
[0045] In this way, the first processing module 101 can connect the first port and the second port of the command response device 200, so that the voltage values output by the multiple target ports 1011 change with the change of the target control instruction, that is, the voltage values output by the multiple target ports 1011 reflect the target control instruction.
[0046] In detail, for the second processing module 102:
[0047] The second processing module 102 is used to obtain the target control instruction according to the corresponding voltage value output by the target port 1011 and a preset rule.
[0048] In detail, the second processing module 102 may be an MCU (Microcontroller Unit) as the main control chip of the control instruction acquisition device 100. For example, the MCU may analyze the control instruction by receiving the sampling signal, and respond to different demand modes through software settings. Alternatively, the second processing module 102 may also be a device such as a DSP (Digital Signal Processing), an ARM (Advanced RISC Machines), etc.
[0049] As mentioned above, the second processing module 102 can be connected to each target port 1011, so as to obtain the voltage value output by each target port 1011, and then determine the corresponding control instruction, that is, determine the target control instruction.
[0050] The target control instruction can be output to the inverter, so that the inverter controls the inverter operation by executing the target control instruction, thereby providing a corresponding power quality response mode. In this way, the inverter can have a demand mode response function, can provide a variety of power quality response modes, and can also enable the inverter to operate stably during the adjustment process.
[0051] In one embodiment of the present disclosure, please refer to Figure 2 The control instruction acquisition device 100 further includes: a communication module 104. The communication module 104 is used to send the target control instruction to the inverter so that the inverter executes the target control instruction.
[0052] In this embodiment, the communication module 104 is used to implement the communication function between the second processing module 102 and the inverter. For example, the specific communication method can be CAN communication, RS485 communication, Ethernet communication, etc.
[0053] More commonly, the control instruction acquisition device 100 can be configured inside the inverter as a new part of the inverter, or can be configured outside the inverter as an independent entity and connected to the inverter through a line.
[0054] As can be seen from the above, the control instruction acquisition device 100 provided in this embodiment can output multiple voltage values through the multiple target ports 1011 included according to the connection between the first port and the second port of the command response device 200, and then obtain the corresponding target control instruction accordingly, that is, the target control instruction is obtained by combining the specific value of the voltage value and the corresponding relationship between the voltage value and the target port. In this way, it can adapt to the situation where there is more than one control switch on a branch inside the command response device 200, and can distinguish different switch states, so it is suitable for control instruction detection of the energy storage system command response device 200, and is suitable for inverter safety standards issued by Australia and New Zealand.
[0055] As mentioned above, the target control instruction can be obtained based on the specific numerical value of the voltage value and the corresponding relationship between the voltage value and the target port. Therefore, a standard mapping relationship between the two can be established in advance, so that the control instruction that matches the current value can be determined from multiple preset control instructions as the target control instruction based on the comparison between the current value and the standard value.
[0056] Based on this, in one embodiment of the present disclosure, please refer to Figure 2 The control instruction acquisition device 100 further includes a storage module 103. The storage module 103 is used to store a plurality of preset control instructions, each of which corresponds to a voltage condition of each target port 1011.
[0057] In detail, the multiple control instructions may include various control instructions that the power grid company may send to the command response device 200 according to the power grid conditions, so that the target control instruction can be determined therefrom. The multiple voltage conditions of each stored control instruction correspond to multiple target ports 1011, so as to be compared with the voltage value output by each target port 1011.
[0058] Based on the above content, correspondingly, the second processing module 102 is used to detect whether the corresponding voltage value output by the target port 1011 meets the target voltage condition; if the corresponding voltage value output by the target port 1011 meets the target voltage condition, the control instruction corresponding to the target voltage condition is determined as the target control instruction, and the target voltage condition is the voltage condition of the target port 1011 corresponding to the control instruction. In addition, in the case where there is no target control instruction, the set abnormal reminder processing can be executed.
[0059] In detail, after obtaining the voltage value output by each target port 1011, the second processing module 102 may poll the stored control instructions until the target control instruction is found. Specifically, the voltage value output by any target port 1011 should meet the voltage condition corresponding to the target port 1011 of the target control instruction.
[0060] Considering that most operational amplifier circuits have certain errors, the error situation can be specifically determined based on the accuracy of the circuit voltage divider resistance value, the power supply voltage accuracy, the microcontroller sampling port accuracy, etc. Therefore, in one embodiment of the present disclosure, the voltage condition includes a voltage range or a voltage value.
[0061] In the case where the voltage condition includes a voltage interval, it is possible to determine whether the voltage value meets the voltage condition by determining whether the voltage value falls within the voltage interval. By setting the voltage interval, the problem of voltage sampling error can be addressed, the accuracy of control instruction determination can be improved, and misjudgment of control instructions can be avoided. The voltage interval can be set according to actual needs, for example, the voltage interval can be set according to the standard voltage value and the voltage value floating error.
[0062] In the case where the voltage condition includes a voltage value, it is possible to determine whether the voltage value meets the voltage condition by determining whether the error between the voltage value output by the target port 1011 and the corresponding stored voltage value meets the expected error requirement. In this way, the problem of voltage sampling error can also be dealt with, the accuracy of control instruction determination can be improved, and misjudgment of control instructions can be avoided. The error requirement can be set as needed, for example, the error requirement can be set according to the voltage value floating error.
[0063] In detail, the output of the voltage value can be realized by a circuit. Thus, in one embodiment of the present disclosure, the plurality of target ports 1011 include: a fourth port and N third ports. Correspondingly, the first processing module 101 includes: a second circuit having the fourth port and N first circuits having the third ports.
[0064] The N first circuits are used to connect the N first ports in a one-to-one correspondence. Any of the first circuits is used to output a corresponding voltage value via the third port. The second circuit is used to connect the second port and output a corresponding voltage value via the fourth port.
[0065] In this embodiment, based on the connection relationship between the various components, the change in the state of the control switch in the command response device 200 can cause a change in the connection between the first port and the second port in the command response device 200, and cause a change in the connection between the first circuit and the second circuit in the control instruction acquisition device 100, thereby causing a change in the output voltage value of each target port 1011.
[0066] In this embodiment, voltage sampling is implemented by a circuit having a target port. Considering that the command response device 200 usually has multiple branches, a corresponding number of first circuits can be set so that one first circuit corresponds to one branch. The first circuit is connected to one end of the control switch in the branch, and the second circuit is connected to the other end of the control switch in the branch. In this way, when the state of the control switch changes, the voltage value output by the first circuit and the second circuit can reflect this state change.
[0067] like Figure 3 As shown, Figure 3 FIG. 2 shows a schematic diagram of the internal structure of a command response device 200. It can be seen that the command response device 200 includes 8 control switches, namely, S 1 ~S 8 These 8 control switches are connected in series in pairs in a branch. 1 , S 2 , S 3 , S 4 After closing, it is connected to port COM LOAD / 0, S 5 , S 6 , S 7 , S 8 When closed, it is connected to port REF GEN / 0.
[0068] The command response device 200 also includes 4 first ports and 2 second ports, wherein the 4 first ports are DRM1 / 5, DRM2 / 6, DRM3 / 7, and DRM4 / 8. The 2 second ports are REF GEN / 0 and COM LOAD / 0, and a 15K resistor is connected in series between the two ports.
[0069] Thus, the control instruction acquisition device 100 may include four first circuits, such as Figure 4 The circuits shown in FIG. 1 are connected to four first ports one by one, and the voltage values output by the corresponding four third ports are respectively Figure 4 The V 1 ~V 4 In addition, the control instruction acquisition device 100 may include a second circuit, such as Figure 4 The circuit shown in FIG. 1 is connected to two second ports respectively, and the voltage value output by the corresponding fourth port is V as shown in FIG. 0 .
[0070] Based on this, the connection relationship between the control instruction acquisition device 100 and the command response device 200 can be as follows: Figure 4 shown. Figure 4 The various components of the command response device 200 are not shown. The specific internal structure can be referred to in Figure 3 Content shown.
[0071] Please refer to Figure 4 In the first circuit and the second circuit shown, the first processing module 101 can use an operational amplifier chip and a resistor series-parallel voltage division method to perform sampling, the input end of the circuit is connected to the corresponding first port or second port in the control instruction acquisition device 100, and the output end of the circuit is connected to the second processing module 102. For example, when the second processing module 102 is an MCU, the five output ends of the circuit are respectively connected to the five pins of the MCU. Figure 4 As shown, when the connection between the first port and the second port changes, V 0 ~V 4 The value of changes accordingly and is output to the second processing module 102.
[0072] Based on the above content, in order to implement sampling of the output voltage value of each target port 1011, the specific circuit designs of the first circuit and the second circuit can be described as follows.
[0073] In detail, for the specific circuit design of the first circuit:
[0074] In one embodiment of the present disclosure, the first circuit includes a first resistor, a first operational amplifier and a first filtering circuit.
[0075] The first end of the first resistor is connected to the first supply voltage, and the second end of the first resistor is connected to the corresponding first port. The positive input end of the first operational amplifier is connected to the second end of the first resistor, and the negative input end of the first operational amplifier is connected to the output end of the first operational amplifier. The first end of the first filter circuit is connected to the output end of the first operational amplifier, and the second end of the first filter circuit serves as the third port.
[0076] In this embodiment, the first resistor plays a voltage dividing role in the first circuit, and the first resistor can be as follows: Figure 4 R 7 , R 9, R 11 or R 13 The first operational amplifier in the first circuit can be as follows Figure 4 U shown 2 , U 3 , U 4 or U 5 .
[0077] In detail, the first filter circuit in the first circuit may include a resistor and a capacitor that play a filtering role. The resistor may be Figure 4 R 02 , R 03 , R 04 or R 05 The capacitor can be Figure 4 C shown 02 , C 03 , C 04 or C 05 .
[0078] In addition, the connection relationship between the components in the first circuit can be as follows Figure 4 shown.
[0079] In addition, if Figure 4 As shown, a resistor that plays a limiting role can also be set in the first circuit as needed, and the resistor can be as follows Figure 4 R 8 , R 10 , R 12 or R 14 .
[0080] In this embodiment, the first supply voltage is Figure 4 V REF As shown. Considering that the operational amplifier resistor will be matched and divided differently according to different combinations of control switches in the command response device 200, and the output voltage value of the operational amplifier is equal to V REF The value of V REF The value of can preferably be half of the limiting voltage of the corresponding sampling port of the microcontroller.
[0081] In detail, for the specific circuit design of the second circuit:
[0082] In one embodiment of the present disclosure, the second circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a second operational amplifier and a second filtering circuit.
[0083] Wherein, the first end of the second resistor is connected to the second supply voltage, and the second end of the second resistor is connected to the second port. The first end of the third resistor is connected to another second port, and the second end of the third resistor is grounded. The first end of the fourth resistor is connected to the second end of the second resistor, and the second end of the fourth resistor is connected to the positive input end of the second power amplifier. The first end of the fifth resistor is connected to the positive input end of the second power amplifier, and the second end of the fifth resistor is grounded. The first end of the sixth resistor is connected to the first end of the third resistor, and the second end of the sixth resistor is connected to the negative input end of the second power amplifier. The first end of the seventh resistor is connected to the negative input end of the second power amplifier, and the second end of the seventh resistor is connected to the output end of the second power amplifier. The first end of the second filter circuit is connected to the output end of the second power amplifier, and the second end of the second filter circuit serves as the fourth port.
[0084] In this embodiment, in order to accurately obtain the target control instruction, the second circuit uses a differential operational amplifier for sampling.
[0085] In the second circuit, the second resistor and the third resistor both play a voltage dividing role in the second circuit. The second resistor can be as follows: Figure 4 R 1 , the third resistor can be as Figure 4 R 4 .
[0086] The second operational amplifier in the second circuit can be Figure 4 U shown 1 .
[0087] The combination of the fourth resistor, the fifth resistor, the sixth resistor, and the seventh resistor in the second circuit can achieve a ratio effect. The four resistors can be respectively as follows: Figure 4 R 2 , R 3 , R 5 or R 6 .
[0088] In detail, the second filter circuit in the second circuit may include a resistor and a capacitor for filtering. The resistor may be Figure 4 R 01 The capacitor can be Figure 4 C shown 01 .
[0089] In addition, the connection relationship between the components in the second circuit can be as follows Figure 4 As shown. Among them, Figure 4 K1 to K6 are six ports for connecting the first processing module 101 and the command response device 200 .
[0090] As mentioned above, the combination of the fourth resistor, the fifth resistor, the sixth resistor and the seventh resistor in the second circuit can achieve a transformation ratio effect, so the resistance values of these four resistors should meet the preset transformation ratio requirements.
[0091] In this embodiment, the circuit transformation ratio of the second circuit may depend on the second supply voltage (ie Figure 4 The selection of Vcc voltage can refer to the voltage range provided by the operational amplifier chip, and the optional range of the resistance values of these four resistors is relatively wide.
[0092] For example, if the selected Vcc value is lower than the MCU sampling port voltage value, then the ratio size is preferably amplified, but the maximum sampling output value after amplification cannot exceed the MCU sampling port limit. If the selected Vcc value is higher than the MCU sampling port voltage value, then the ratio size is preferably reduced, and similarly, the maximum sampling output value after reduction cannot exceed the MCU sampling port limit.
[0093] Based on this, in one embodiment of the present disclosure, the resistance values of the fourth resistor and the sixth resistor are both the first value; and the resistance values of the fifth resistor and the seventh resistor are both the second value.
[0094] When the voltage value of the second supply voltage is greater than the maximum allowable voltage value corresponding to the fourth port, the ratio of the second value divided by the first value is less than 1.
[0095] When the voltage value of the second supply voltage is less than the maximum allowable voltage value corresponding to the fourth port, the ratio of the second value divided by the first value is greater than 1.
[0096] Please refer to Figure 4 , these four resistors can be respectively as follows Figure 4 R 2 , R 3 , R 5 or R 6 For example, if the second supply voltage (ie Figure 4 The voltage value of Vcc in (assuming 5V) is greater than the maximum allowable voltage value corresponding to the fourth port (i.e. Figure 4 Medium V 0 The maximum allowable voltage value, assuming it is 3V), you can set R 2 =R 5 =20K, R 3 =R 4 =10K, the ratio is 0.5, that is, the transformation ratio is 0.5.
[0097] On the contrary, if the second supply voltage (i.e. Figure 4The voltage value of Vcc in (assuming 1.5V) is less than the maximum allowable voltage value corresponding to the fourth port (i.e. Figure 4 Medium V 0 The maximum allowable voltage value, assuming it is 3V), you can set R 2 =R 5 =10K, R 3 =R 4 =20K, the ratio is 2, that is, the transformation ratio is 2.
[0098] For example, when the second processing module 102 is a single-chip microcomputer, the maximum allowable voltage value may be a corresponding sampling input pin limit value of the single-chip microcomputer. Figure 4 As shown, Figure 4 V 1 ~V 5 Should be smaller than the corresponding sampling input pin limit of the microcontroller.
[0099] As can be seen from the above, compared with the existing implementation, under the premise that the command response device 200 changes the closing state of the internal control switch according to different control instructions, the control instruction acquisition device 100 provided by the embodiment of the present disclosure realizes the resistor series or parallel voltage division of different detection circuits by connecting different ports of the command response device 200, and then determines the corresponding target control instruction according to the corresponding voltage value output by the operational amplifier of different detection circuits, so that the detection of control instructions is more comprehensive and more identifiable combinations are available. In addition, the different voltage values output by each detection circuit can be set within a certain voltage range, so as to improve the accuracy of the main control chip in identifying the working mode of the command response device 200. In addition, the input and output delay of the operational amplifier chip is as small as microseconds, which greatly improves the detection and identification speed of control instructions, and is low-cost.
[0100] Below, Figure 3 The command response device 200 shown, Figure 4 Taking the control instruction acquisition device 100 shown as an example, the relevant contents of the control instruction acquisition process are described.
[0101] like Figure 3 As shown, the command response device 200 includes 8 control switches, and please combine Figure 4 For example, the inverter can provide at least the following 8 inverter demand response modes (DRMs), the state of the control switch corresponding to each mode, and the control instructions corresponding to each mode can be described as follows:
[0102] - DRM1 Mode: S 1 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: no charging;
[0103] DRM2 Mode: S 2 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: charging power is less than 50%;
[0104] DRM3 mode: S 3 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: charging power is less than 75%;
[0105] DRM4 mode: S 4 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: forced charging 100%;
[0106] DRM5 mode: S 5 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: no discharge;
[0107] DRM6 mode: S 6 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: the discharge power is less than 50%;
[0108] DRM7 mode: S 7 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: the discharge power is less than 75%;
[0109] DRM8 mode: S 8 Closed, the other 7 control switches are open, and the corresponding control instructions indicate: forced discharge 100%.
[0110] It should be noted that when the command response device 200 is connected to the inverter, the command response device 200 Figure 4 The S shown 9 It is a continuous closed state. It can be understood as S 9 When closed, it indicates that the command response device 200 is connected to the inverter. 9 When disconnected, it means that the command response device 200 is disconnected from the inverter, but S 9 The opening or closing of does not correspond to the DRM mode, that is, it is not used as a control switch.
[0111] In addition, in the command response device 200, Figure 4 The S5a, S1a, 10R resistor and diode loop shown are auxiliary circuits inside the command response device 200 and are disconnected by default.
[0112] In a possible implementation, the command response device 200 includes: Figure 4 The switch S0 shown, although not used as a control switch, can also correspond to a DRM mode. For example, the DRM mode can be as follows:
[0113] DRM0 mode: S0 Closed, the 8 control switches can be open or closed, and the corresponding control instructions indicate: the device is disconnected and there is no connection.
[0114] The inverter can be disconnected from the grid by executing the instructions corresponding to the DRM0 mode. 0 When closed, port REF GEN / 0 is short-circuited with port COM LOAD / 0.
[0115] Please refer to Figure 4 , considering V 0 The value of can be obtained by multiplying the voltage value at K6 by the value of the above transformation ratio. Therefore, in order to simplify the numerical calculation, in one embodiment of the present disclosure, the voltage dividing resistor R of the differential circuit is 4 The resistance value of is preferably 0 ohm, that is, the COM LOAD / 0 port is directly connected to GND. 0 When closed, the REF GEN / 0 port and the COMLOAD / 0 port are short-circuited, V 0 The output is 0V.
[0116] In R 4 = 0, S 1 , S 2 , S 3 , S 4 After closing, it is equivalent to pulling directly to GND. Other voltage divider resistors (R 1 , R 7 , R 9 , R 11 , R 13 ) The resistance value selection range is relatively wide, and can be 10K, 20K, 100K and other resistance values, as long as the selection requirements of the voltage divider resistor are met.
[0117] In addition, the R 8 , R 10 , R 12 , R 14 It is a limiting resistor and does not play a voltage dividing role in the circuit, so its resistance value can be selected relatively widely.
[0118] The resistance value of the filter resistor at the output of the op amp can be selected based on the actual filtering requirements of the circuit.
[0119] Next, R 4 =0 as an example, please refer to Figures 5 to 9 , examples are given to illustrate the output voltage values of each target port 1011 under different switching states.
[0120] It should be noted that Figures 5 to 9The 15K resistor connected in series at K5 and K6 is a resistor connected in series between port REF GEN / 0 and port COM LOAD / 0 in the command response device 200, which is equivalent to connecting a 15K resistor in series between K5 and K6. It is only used for understanding the scheme and does not affect the specific structure of the second circuit.
[0121] Example 1, S 1 ~S 8 Initial situation when both are disconnected:
[0122] Please refer to Figure 4 , the initial states of the five circuits are, V 1 The output voltage is V REF Voltage value, V 2 The output voltage is V REF Voltage value, V 3 The output voltage is V REF Voltage value, V 4 The output voltage is V REF Voltage value, V 0 The output voltage is V CC The voltage value is multiplied by the differential circuit ratio.
[0123] Normally, considering that the eight control switches are initially in an open state, the corresponding control switches will be controlled to close only when a control instruction is received, so only the switch closing state can be analyzed without analyzing the switch opening state.
[0124] Example 2, S 5 When closed (the other 7 control switches are open):
[0125] Please refer to Figure 5 , when switch S 5 When closed, K1 and K5 are short-circuited, and the resistance R in the circuit 7 With R 1 After voltage division, it is then connected to the 15K resistor and R 4 The voltage is divided, so V 1 The output voltage value is not 0V, and the specific value can be obtained according to the resistance voltage division situation in the circuit.
[0126] For example, assuming that the voltage at K5 is U, the difference between Vcc and U divided by R 1 The flow through R 1 The current I 1 I 1 Divided into three directions, corresponding to R 7 , 15K, R 2 R 3 . V REF The difference between U and R 7 The flow through R 7 The current I7 U divided by 15K gives the current I flowing through the 15K resistor. The difference between U and GND divided by R 2 and R 3 The sum of the flow through R 2 The current I 2 . Because I 1 =I 7 +I+I 2 , so U can be calculated. Then, V 1 The value of is equal to the value of U, V 0 The value of is equal to the value of U multiplied by the differential circuit ratio.
[0127] V 2 、V 3 、V 4 There is no resistance voltage change in the branch, so the output voltage remains unchanged, which is V REF Voltage value.
[0128] Example 3, S 1 Close (the other 7 control switches are open, that is, S 2 ~S 8 Both disconnected):
[0129] Please refer to Figure 6 , when switch S 1 When closed, K1 and K6 are short-circuited, and the resistance R in the circuit 7 , R 4 For voltage division, since R4 is 0 ohm, V 1 The output is 0V.
[0130] V 2 、V 3 、V 4 There is no resistance voltage change in the branch, so the output voltage remains unchanged, which is V REF Voltage value.
[0131] V 0 Output voltage value, resistance R 1 Connect in series with a 15K resistor and then with a resistor R 7 The voltage value obtained by dividing the voltage and multiplying it by the transformation ratio of the differential circuit.
[0132] Example 4, S 1 and S 5 When closed (the other 6 control switches are open):
[0133] Please refer to Figure 7 , when switch S 1 With S 5 When closed at the same time, K1, K5, and K6 are short-circuited, making the voltage values at K1, K5, and K6 all 0V, so channel V 0The output voltage value is 0V, which can be directly judged as output DRM0 mode.
[0134] Example 5, S 1 and S 2 When closed (the other 6 control switches are open):
[0135] Please refer to Figure 8 , when switch S 1 With S 2 When closed at the same time, K1, K2, and K6 are short-circuited, and R 7 , R 9 , R 4 For voltage division, due to R 4 is 0 ohm, so V 1 and V 2 The output is 0V.
[0136] V 3 、V 4 There is no resistance voltage change in the branch, so the output voltage remains unchanged, which is V REF Voltage value.
[0137] V 0 Output voltage value, resistance R 1 Connect in series with a 15K resistor and then connect to R 7 and R 9 The voltage value obtained by multiplying the resistor voltage by the differential circuit ratio.
[0138] Example 6, S 1 , S 6 and S 8 When closed (the other 5 control switches are open):
[0139] Please refer to Fig. 9 , when switch S 1 , S 6 , S 8 When closed at the same time, K1 and K6 are short-circuited. 4 is 0 ohm, so V 1 The output is 0V.
[0140] When the switch S 1 , S 6 , S 8 When closed at the same time, K2, K4, and K5 are short-circuited, V 2 and V 4 The branch is a resistor R 9 , R 13 , R 1 After voltage division, it is divided with 15K resistor, so V 2 and V 4The output voltage value is not 0V, and the specific value can be obtained according to the resistance voltage division situation in the circuit.
[0141] V 3 There is no resistance voltage change in the branch, so the output voltage remains unchanged, which is V REF Voltage value.
[0142] V 0 Output voltage value, resistance R 9 , R 13 , R 1 The voltage value obtained by dividing the voltage and then dividing it with a 15K resistor is multiplied by the differential circuit ratio.
[0143] Example 7, S 1 ~S 4 When closed (the other 4 control switches are open):
[0144] When the switch S 1 , S 2 , S 3 , S 4 When closed at the same time, K1, K2, K3, K4, and K6 are short-circuited. 4 is 0 ohm, so V 1 ~V 4 The outputs are all 0V.
[0145] V 0 Output voltage, for the resistor R 7 / R 9 / R 11 / R 13 After parallel connection, the resistance value is equal to R 1 / 15K / R 2 R 3 The voltage value is obtained by dividing the voltage and then multiplying it by the transformation ratio of the differential circuit. For the detailed calculation process, please refer to the calculation process in Example 2 above, which will not be described in detail in this example.
[0146] Example 8, S 1 , S 2 , S 5 and S 6 When closed (the other 4 control switches are open):
[0147] When the switch S 1 , S 5 , S 2 , S 6 When closed at the same time, K1, K2, K5, and K6 are short-circuited, making the voltage values at K1, K2, K5, and K6 all 0V, so channel V 0 The output voltage value is 0V, which can be directly judged as output DRM0 mode.
[0148] Example 9, S1 ~S 4 , S 7 When closed (the other three control switches are open):
[0149] When the switch S 1 , S 2 , S 3 , S 4 , S 7 When closed at the same time, K1, K2, K3, K4, K5, and K6 are short-circuited, making the voltage values at K1, K2, K3, K4, K5, and K6 all 0V, so channel V 0 The output voltage value is 0V, which can be directly judged as output DRM0 mode.
[0150] With reference to the above examples, other control switch closing conditions can be obtained based on the same implementation principle, which are not listed one by one in this embodiment.
[0151] Based on the above content, it can be seen that the control instruction acquisition device 100 provided in this embodiment can identify a large number of control switch closing conditions, so it is suitable for application scenarios with more control instruction categories. The control instruction acquisition device 100 provided in this embodiment has the characteristics of simple circuit, low cost, wide application range, and many detection types.
[0152] <System Embodiment>
[0153] Fig.10 FIG. 1 is a schematic block diagram of a control instruction acquisition system 10 according to an embodiment. Fig.10 As shown, the control instruction acquisition system 10 may include an inverter 300 and a control instruction acquisition device 100 provided by an embodiment of the device disclosed herein. The inverter 300 is used to execute the target control instruction sent by the control instruction acquisition device 100.
[0154] The inverter 300 may be the inverter described in the device embodiment of the present disclosure.
[0155] In one embodiment of the present disclosure, the control instruction acquisition system 10 further includes the command response device 200 .
[0156] In one embodiment of the present disclosure, the second processing module 102 of the control instruction acquisition device 100 may include a processor and a memory, the memory is used to store an executable computer program, and the processor is used to acquire the target control instruction according to the control of the computer program.
[0157] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0158] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0159] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0160] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0161] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0162] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0163] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0164] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0165] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A control instruction acquisition device, used for communicating with a command response device; The command response device includes M second ports, N branches, and N first ports connected to the N branches in a one-to-one correspondence, one branch includes no more than M control switches, the control switch in each branch is connected between the second port and the corresponding first port, different control switches in the same branch are connected to different second ports, the number of the control switches is greater than N, and M and N are both positive integers; The command response device is configured to change the connection between the corresponding first port and the second port by changing the state of the predetermined control switch to represent the target control instruction; It is characterized in that The control instruction acquisition device comprises: a first processing module and a second processing module; The first processing module includes a plurality of target ports; The first processing module is used to connect the first port and the second port, and output a corresponding voltage value through the target port according to the connection condition; The second processing module is used to obtain the target control instruction according to the corresponding voltage value output by the target port and a preset rule.
2. The control instruction acquisition device according to claim 1, in, The control instruction acquisition device also includes a storage module; The storage module is used to store a plurality of preset control instructions, each of which corresponds to a voltage condition of each target port; The second processing module is used to detect whether the corresponding voltage value output by the target port meets the target voltage condition; If the corresponding voltage value output by the target port satisfies the target voltage condition, the control instruction corresponding to the target voltage condition is determined as the target control instruction, and the target voltage condition is the voltage condition of the target port corresponding to the control instruction.
3. The control instruction acquisition device according to claim 2, in, The voltage condition includes: a voltage range or a voltage value.
4. The control instruction acquisition device according to claim 1, in, The multiple target ports include: a fourth port and N third ports; The first processing module includes: a second circuit having the fourth port, and N first circuits having the third port; The N first circuits are used to connect the N first ports in a one-to-one correspondence; Any of the first circuits is used to output a corresponding voltage value via the third port; The second circuit is used to connect to the second port and output a corresponding voltage value via the fourth port.
5. The control instruction acquisition device according to claim 4, in, The first circuit includes a first resistor, a first operational amplifier and a first filter circuit; Wherein, a first end of the first resistor is connected to a first supply voltage, and a second end of the first resistor is connected to the corresponding first port; The positive input terminal of the first operational amplifier is connected to the second end of the first resistor, and the negative input terminal of the first operational amplifier is connected to the output terminal of the first operational amplifier; The first end of the first filter circuit is connected to the output end of the first operational amplifier, and the second end of the first filter circuit serves as the third port.
6. The control instruction acquisition device according to claim 4, in, The second circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a second operational amplifier and a second filter circuit; Wherein, a first end of the second resistor is connected to a second supply voltage, and a second end of the second resistor is connected to the second port; A first end of the third resistor is connected to another second port, and a second end of the third resistor is grounded; The first end of the fourth resistor is connected to the second end of the second resistor, and the second end of the fourth resistor is connected to the positive input end of the second power amplifier; A first end of the fifth resistor is connected to the positive input end of the second power amplifier, and a second end of the fifth resistor is grounded; A first end of the sixth resistor is connected to a first end of the third resistor, and a second end of the sixth resistor is connected to a negative input end of the second power amplifier; A first end of the seventh resistor is connected to a negative input end of the second power amplifier, and a second end of the seventh resistor is connected to an output end of the second power amplifier; A first end of the second filtering circuit is connected to an output end of the second power amplifier, and a second end of the second filtering circuit serves as the fourth port.
7. The control instruction acquisition device according to claim 6, in, The resistance values of the fourth resistor and the sixth resistor are both the first value; The resistance values of the fifth resistor and the seventh resistor are both the second value; When the voltage value of the second supply voltage is greater than the maximum allowable voltage value corresponding to the fourth port, the ratio of the second value divided by the first value is less than 1; When the voltage value of the second supply voltage is less than the maximum allowable voltage value corresponding to the fourth port, the ratio of the second value divided by the first value is greater than 1.
8. The control instruction acquisition device according to claim 1, in, The control instruction acquisition device further includes: a communication module; The communication module is used to send the target control instruction to the inverter, so that the inverter executes the target control instruction.
9. A control instruction acquisition system, include: An inverter and a control instruction acquisition device as described in any one of claims 1 to 8; The inverter is used to execute the target control instruction sent by the control instruction acquisition device.
10. The control instruction acquisition system according to claim 9, in, The control instruction acquisition system also includes the command response device.
