A working method of host competition logic system
The host competition logic system enhances three-phase system reliability by using two communication lines and fault management to maintain operation even if the host fails or is damaged, addressing limitations of single-phase and single-bus systems.
Patent Information
- Application Number
- CN202011460378.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-05
- Filing Date
- 2020-12-11
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-12-11
AI Technical Summary
Existing host competition logic systems are limited to single-phase modules and single bus communication, leading to unreliable data exchange, potential system damage, and power loss when the host module fails or is damaged, especially in three-phase systems.
A host competition logic system with multiple modules using two communication lines for enhanced reliability, including real-time data reception, fault judgment, offline data clearing, and host identity confirmation, allowing three-phase systems to operate stably even if the host loses power or experiences communication failures.
Ensures stable system operation by enabling three-phase systems to continue functioning without shutdowns, improving communication reliability through redundant communication designs and fault management.
Smart Images

Figure CN112416664B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of cabinets, and in particular relates to a working method of a host competition logic system. Technical Background
[0002] In the parallel module system, the host is mostly used in single-phase parallel modules. A bus is used to connect all independent modules and realize the interaction of communication data between modules. The module sends the host competition related data to the bus and receives the host competition data of other modules from the bus. When the host is damaged, such as the module where the host is located loses power and cannot work normally, the system will not work properly. Using it in a dynamic voltage restorer will cause the load to lose power.
[0003] At present, a single bus communication data interaction method is usually used, which can better solve the data exchange and communication problems between power modules, but there are several problems as follows:
[0004] First, the current logic only supports single-phase multiple modules to compete for the host, and does not support three-phase modules hanging on the same bus to compete for the host at the same time, that is, it is only suitable for single-phase systems or three independent single-phase systems.
[0005] Second, the current host competition data is only sent or received through one bus, which has low reliability. If this bus is damaged, the system will not work properly. In serious cases, it will cause system damage, machine explosion, and load power failure causing customer complaints.
[0006] Third, when the power supply of the host module fails and the system does not fail, the host will be lost and the machine needs to be shut down, compete for the host again, and compete for a new host before restarting. For the dynamic voltage restorer, if a voltage drop occurs when re-competing for the host, the machine cannot compensate in time, which will cause the load to lose power or be damaged. Summary of the invention
[0007] The object of the present invention is to provide a working method of a host competition logic system for performing host competition in a three-phase system and providing system communication reliability.
[0008] The present invention provides a working method of a host competition logic system, wherein the host competition logic system is provided with a plurality of modules, and comprises the following steps:
[0009] S1: working steps of receiving communication data;
[0010] S2: The machine number repeats the working steps of fault judgment;
[0011] S3: working steps for clearing offline module data;
[0012] S4: The working step of host competition to confirm identity;
[0013] For step S1, each module transmits the data required for host competition to a communication bus, and at the same time, receives the host competition information sent by other modules on the bus in real time.
[0014] Furthermore, two communication lines are used to communicate between adjacent modules.
[0015] Furthermore, for the working steps of receiving communication data, four arrays are first established: array 0, array 1, array 2 and array 3. The four arrays are used to store the host competition data of the same-phase module, among which array 0 is used as the storage space for the module data itself, and the rest are used as storage space for receiving data from other modules.
[0016] Furthermore, step S1 includes the following specific steps:
[0017] S11: Compare the encoding of the array 1 feature with the received encoding to see if they are the same or if the encoding of the array 1 is 0;
[0018] S12: If yes, store the received data into array 1, clear the data counter of array 1, and end; if no, compare whether the feature code of array 2 is the same as the received code or whether the code of array 2 is 0;
[0019] S13: If the feature code of array 2 is the same as the received code or the code of array 2 is 0, the received data is stored in array 2, the data counter of array 2 is cleared, and the process ends; if the feature code of array 2 is different from the received code and the code of array 2 is not 0, the feature code of array 3 is compared to see if it is the same as the received code or if the code of array 3 is 0;
[0020] S14: If the feature code of array 3 is the same as the received code or the code of array 3 is 0, the received data is stored in array 3, the data counter of array 3 is cleared, and the process ends; if the feature code of array 3 is not the same as the received code and the code of array 3 is not 0, a data overflow fault is set and the process ends.
[0021] Furthermore, for the working steps of machine number duplication fault judgment, when the dial codes of two modules are the same, a machine number duplication fault will be reported, causing modules with different numbers to receive data from the same module twice, resulting in data overwriting and affecting normal communication.
[0022] Furthermore, step S2 includes the following specific steps:
[0023] S21: Determine whether the received unique code is different from its own unique code;
[0024] S22: If the received unique code is the same as its own unique code, then end; if the received unique code is different from its own unique code, then determine whether the machine number of the received data is the same as its own machine number;
[0025] S23: If the machine number of the received data is different from the own machine number, then end; if the machine number of the received data is the same as the own machine number, then determine that the machine number is repeated and end.
[0026] Furthermore, for the working step of clearing offline module data, when receiving the corresponding module data, the counter of the corresponding array will be cleared regularly. If the counter of the corresponding array of the online module is not cleared within a certain period of time, the data of the corresponding array will be cleared.
[0027] Furthermore, step S3 includes the following specific steps:
[0028] S31: Clear the counter of the corresponding array starting from array 1, at this time i=1;
[0029] S32: Determine whether the clearing group has not reached the 4th group;
[0030] S33: If not, then end; if yes, then determine that array i is not empty;
[0031] S34: the counter of array i is increased by 1;
[0032] S35: Determine whether the counter is ≥ 4;
[0033] S36: If not, then end; if yes, then it means that all the data in array i are cleared to zero, and then end.
[0034] Furthermore, for the working steps of host competition and identity confirmation, identity confirmation is mainly divided into two major directions. One is that the monitoring setting has only one module and there is only one module for communication interaction detection. At this time, this module directly acts as the host; the other is that the number of modules in the monitoring setting is greater than or equal to 2, at this time, competition for the host is required.
[0035] Further, the step S4 includes the following specific steps: S41: determining whether there is no dialing fault and whether the module interaction is completed;
[0036] S42: If yes, determine that the monitoring setting single phase is one module and there is only one module for interaction; otherwise, end;
[0037] S43: If yes, determine whether the machine is a slave and the master is lost; if not, determine whether the monitoring setting single phase is greater than or equal to two modules;
[0038] S44: When judging whether the machine is a slave or a master online or directly using no, otherwise end; if the monitoring setting single phase is less than two modules, then end; if the monitoring setting single phase is greater than or equal to two modules, then judge whether the machine is a slave and both the master and the sub-master are lost;
[0039] S45: If the machine is a slave and both the master and the slave are lost, then "the online slave with the smallest machine number is the master; the second smallest is the slave; otherwise it is a slave", and the process ends; otherwise, it is determined whether "the machine is a slave and the master is not lost, but the slave is lost";
[0040] S46: If "this machine is a slave and the master is not lost, but the sub-master is lost", then "the online slave with the smallest machine number is used as the sub-master, otherwise it is a slave", and the process ends; otherwise, the process checks whether "this machine is a sub-master and the master is lost";
[0041] S47: If "this machine is a secondary host and the host is lost", it directly acts as the host and ends; otherwise, it ends.
[0042] The host competition logic system of the present invention has a host competition and is compatible with a three-phase system; when the host loses power or a communication failure occurs and cannot work normally, it does not need to be shut down, and other modules will be used for control to ensure the stable operation of the system; a two-way communication method is used to realize a redundant design of communication, thereby improving the communication reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The preferred embodiments will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the present invention.
[0044] Figure 1 It is a structural schematic diagram of a single-phase pluggable cabinet device of the present invention;
[0045] Figure 2 A distribution diagram of three-phase module identification codes of the host competition logic system of the present invention;
[0046] Figure 3 A schematic diagram of one of the communication wiring modes between multiple modules of the present invention;
[0047] Figure 4 Two communication routing modes between the same-phase modules of the present invention;
[0048] Figure 5 This is a flow chart of receiving communication data of the present invention;
[0049] Figure 6 This is a flow chart of the machine number duplication fault judgment of the present invention;
[0050] Figure 7 This is a flow chart of clearing data of the offline module of the present invention;
[0051] Figure 8 This is a flow chart of host competition and identity confirmation in the present invention. DETAILED DESCRIPTION
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0053] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".
[0054] The technical solution of the present invention is described in detail below with specific embodiments.
[0055] like Figure 1 The single-phase plug-in cabinet device is shown, which includes a cabinet body 1, a plurality of power modules 2 arranged in parallel, and a bypass module 3 located below the last power module 2, wherein the cabinet body 1 is provided with a plurality of slots 11 arranged in parallel and isolated from each other, and the plurality of power modules 2 and the bypass module 3 (such as Figure 6 and Figure 7 ) are installed in different slots 11. In this embodiment, the power modules 2 are provided with N (N>1, N is a positive integer), the first power module is 2-1, and the last power module is 2-n.
[0056] A three-phase system (i.e., phase A, phase B, and phase C) is installed in a single-phase plug-in cabinet device and works together. Each of the three phases competes for a host to perform logical control of its own phase.
[0057] The modules below are referred to as power modules or power fuzzy and bypass modules.
[0058] Figure 2The figure shows the distribution diagram of the three-phase module identification code of the host competition logic system of the present invention. The host competition logic system of the present invention is provided with a plurality of modules, and each module is in a unidirectional working mode. Each module is provided with phase A, phase B and phase C respectively. In the present embodiment, four modules are divided into one phase, wherein phase A includes 0000 (1) to 0011 (4), phase B includes 0100 (5) to 0111 (8), and phase C includes 1000 (9) to 1011 (12). The four modules of phase A can be connected to phase B (or C) for use, but cross-number dialing is not supported. Cross-number dialing means that 0000 (1) and 0100 (5) exist in the same phase at the same time. The cross-number is determined by the upper two bits of the identification code, such as Figure 1 The upper two bits 00 are phase A, 01 are phase B, and 10 are phase C. If they are 11, it is judged as a fault and the machine is not allowed to start running.
[0059] Figure 3 The figure shows a communication connection mode between modules, where the communication connection is a bus. Each module transmits the data Tx required for host competition to the bus, and at the same time, receives the host competition information Rx sent by other modules on the bus in real time. Each module determines whether the data is sent by the same-phase module through the source address of the data. If it is the data of the same-phase module, it will be received.
[0060] Figure 4 The figure shows two communication lines between adjacent modules. The purpose of using two communication lines is to improve the reliability of the system. The two communication lines are used for communication between modules in the same phase, transmission of control data, control bits between the host and the module, and transmission of given information. Figure 4 shown.
[0061] One communication channel is used to transmit the module's own dial code. Two of them are used to confirm whether there is a cross-number phenomenon. If so, it is considered that a dial fault has occurred, otherwise it is normal. The other two are used by the module to determine the real host number to avoid the situation where two hosts appear at the same time.
[0062] The data transmitted by the other communication channel is the main component of the host competition logic, which is used to compete with the host and determine the host competition related faults.
[0063] The host competition logic system of the present invention includes:
[0064] S1: working steps of receiving communication data;
[0065] S2: The machine number repeats the working steps of fault judgment;
[0066] S3: working steps for clearing offline module data;
[0067] S4: The working step of the host competing to confirm the identity.
[0068] For step S1,
[0069] Each module will transmit the data Tx required by the host competition to the bus, and at the same time, receive the host competition information Rx sent by other modules on the bus in real time. Among them, each module determines whether it is the data sent by the same phase module according to the source address of the data. If it is the data of the same phase module, it will be received.
[0070] For the working steps of receiving one communication data, firstly, four arrays (array 0, array 1, array 2 and array 3) are established to store the host competition data of the same-phase module. Array 0 is used as the storage space for the module data itself, and the rest are used as the storage space for receiving data from other modules. The flowchart of receiving one communication data is as follows: Figure 5 The specific workflow is as follows:
[0071] S11: Compare the code (ie, ID) of the feature of array 1 with the received code (ie, ID) to see whether they are the same or whether the code (ie, ID) of array 1 is 0;
[0072] S12: If yes, store the received data into array 1, clear the data counter of array 1, and end; if no, compare whether the feature code (ie, ID) of array 2 is the same as the received code (ie, ID) or whether the code (ie, ID) of array 2 is 0;
[0073] S13: If the feature code (ID) of array 2 is the same as the received code (ie, ID) or the code (ie, ID) of array 2 is 0, the received data is stored in array 2, the data counter of array 2 is cleared, and the process ends; if the feature code (ie, ID) of array 2 is different from the received code (ie, ID) and the code (ie, ID) of array 2 is not 0, the feature code (ie, ID) of array 3 is compared to see if it is the same as the received code (ie, ID) or if the code (ie, ID) of array 3 is 0;
[0074] S14: If the characteristic code (i.e., ID) of array 3 is the same as the received code (i.e., ID) or the code (i.e., ID) of array 3 is 0, the received data is stored in array 3, the data counter of array 3 is cleared, and the process ends; if the characteristic code (i.e., ID) of array 3 is not the same as the received code (i.e., ID) and the code (i.e., ID) of array 3 is not 0, a data overflow fault is set and the process ends.
[0075] For the work steps of machine number duplication fault judgment, when the dial codes of two modules are the same, a machine number duplication fault will be reported, causing a module with a different number to receive data from the same module twice, resulting in data overwriting, which will affect normal communication. Therefore, a machine number duplication fault should be reported and the machine should be shut down or not allowed to start up. The machine number duplication fault judgment flow chart is as follows Figure 6 The specific workflow is as follows:
[0076] S21: Determine whether the received unique code is different from its own unique code;
[0077] S22: If the received unique code is the same as its own unique code, then end; if the received unique code is different from its own unique code, then determine whether the machine number of the received data is the same as its own machine number;
[0078] S23: If the machine number of the received data is different from the own machine number, then end; if the machine number of the received data is the same as the own machine number, then determine that the machine number is repeated and end.
[0079] For the working steps of clearing offline module data, when receiving the corresponding module data, the counter of the corresponding array will be cleared regularly. If the counter of the corresponding array of the online module is not cleared within a certain period of time, the data of the corresponding array will be cleared. The flowchart of clearing offline module data is as follows: Figure 7 The specific workflow is as follows:
[0080] S31: Clear the counter of the corresponding array starting from array 1, at this time i=1;
[0081] S32: Determine whether the clearing group has not reached the 4th group;
[0082] S33: If not, then end; if yes, then determine that array i is not empty;
[0083] S34: the counter of array i is increased by 1;
[0084] S35: Determine whether the counter is ≥ 4;
[0085] S36: If not, then end; if yes, then it means that all the data in array i are cleared to zero, and then end.
[0086] For the working steps of host competition and identity confirmation, the identity confirmation is mainly divided into two major directions. One is that the monitoring setting has only one module and there is only one module for communication interaction detection. In this case, this module directly acts as the host; the other is that the number of modules in the monitoring setting is greater than or equal to 2. In this case, competition for the host is required. The host competition and identity confirmation flow chart is as follows Figure 8 The specific workflow is as follows:
[0087] S41: Determine whether there is no dial fault and whether the module interaction is completed;
[0088] S42: If yes, determine that the monitoring setting single phase is one module and there is only one module for interaction; otherwise, end;
[0089] S43: If yes, determine whether the machine is a slave and the master is lost; if not, determine whether the monitoring setting single phase is greater than or equal to two modules;
[0090] S44: When judging whether the machine is a slave or a host online or directly using no, otherwise end; if the monitoring setting single phase is less than two modules, then end; if the monitoring setting single phase is greater than or equal to two modules, then judge whether the machine is a slave and the host and are both lost;
[0091] S45: If the monitoring setting single phase is greater than or equal to two modules, then "the online slave with the smallest machine number is the master; the second smallest is the sub-master; otherwise it is the slave", and the process ends; if the monitoring setting single phase is less than two modules, then determine whether "this machine is a slave and the master is not lost, but the sub-master is lost";
[0092] S46: If "this machine is a slave and the master is not lost, but the secondary master is lost", then "the online slave with the smallest machine number is used as the secondary master, otherwise it is a slave", and the process ends; if "this machine is not a slave and the master is not lost, but the secondary master is lost", then determine whether "this machine is a secondary master and the master is lost";
[0093] S47: If "this machine is a secondary host and the primary host is lost", it directly acts as the primary host and ends; if "this machine is not a secondary host and the primary host is lost", it ends.
[0094] Dial-up fault processing, the dial-up fault includes the data overflow fault, the machine number duplication fault and additional faults as needed, wherein the additional faults as needed include the host duplication fault (the number of modules set to the host position is greater than 1), the dial-up phase fault (the modules with the same phase are inconsistent with the phase of the host) and the phase overflow fault (the two upper bits of the dial are equal to 3).
[0095] The present invention adopts two communication modes between modules: one of them uses redundant communication lines (i.e., one is copied on the basis of the original communication), and the other communication line realizes the sending and receiving of host competition data. The first communication line is connected between the modules in the same phase, and the two communication lines are used to improve reliability and prevent the system from powering off due to damage to one of the modules; the other communication line is used to transmit data between all modules, but each module selects the data of the module in the same phase for reception through the address, and does not receive the data of other phase modules, and does not support the installation of a three-phase system in the same single-phase plug-in cabinet device to work together. Each of the three phases competes for a host and performs logical control of the phase in which it is located.
[0096] The host competition logic system of the present invention supports the three-phase system connected to the same bus to transmit host competition data; the host data is transmitted through two communication lines. If one communication line fails, it will not cause the system to stop working, thereby improving the system communication reliability; when the host loses power or a communication failure occurs, it will not shut down, and a normal module will act as the host and continue to work.
[0097] The host competition logic system of the present invention has a host competition and is compatible with a three-phase system; when the host loses power or a communication failure occurs and cannot work normally, it does not need to be shut down, and other modules will be used for control to ensure the stable operation of the system; a two-way communication method is used to realize a redundant design of communication, thereby improving the communication reliability of the system.
[0098] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the specific details of the above embodiments. It should be pointed out that for ordinary technicians in this technical field, within the technical concept of the present invention, without departing from the principle of the present invention, several improvements and modifications can be made, and the technical solution of the present invention can be subjected to multiple equivalent transformations. These improvements, modifications and equivalent transformations should also be regarded as the protection scope of the present invention.
Claims
1. A method for operating a host competition logic system, wherein the host competition logic system is provided with a plurality of modules, characterized in that: The steps include: S1: working steps of receiving communication data; S2: The machine number repeats the working steps of fault judgment; S3: working steps for clearing offline module data; S4: The working step of host competition to confirm identity; For step S1, for the working step of receiving communication data, four arrays are first established: array 0, array 1, array 2 and array 3, respectively. The four arrays are used to store the host competition data of the same-phase module, wherein array 0 is used as the storage space for the module data itself, and the rest are used as the storage space for receiving the data of other modules; each module transmits the data required for the host competition to a communication bus, and at the same time, receives the host competition information sent by other modules on the bus in real time; For step S2, when the dial codes of the two modules are the same, a machine number duplication fault will be reported, causing a module with a different number to receive data from the same module twice, so that the data is overwritten, which will affect normal communication. Therefore, a machine number duplication fault should be reported and the module should be shut down, or not allowed to start up; For step S3, when the corresponding module data is received, the counter of the corresponding array will be cleared regularly. If the counter of the corresponding array of the online module is not cleared within a certain period of time, the data of the corresponding array will be cleared; For step S4, the identity confirmation is mainly divided into two major directions. One is that the monitoring setting has only one module and there is only one module for communication interaction detection. At this time, this module directly acts as the host; the other is that the number of modules in the monitoring setting is greater than or equal to 2, and a competition for the host is required.
2. The operating method of the host competition logic system according to claim 1, characterized in that: Two communication lines are used to communicate between adjacent modules.
3. The operating method of the host competition logic system according to claim 1, characterized in that: Step S1 includes the following specific steps: S11: Compare the encoding of the array 1 feature with the received encoding to see if they are the same or if the encoding of the array 1 is 0; S12: If yes, store the received data into array 1, clear the data counter of array 1, and end; if no, compare whether the feature code of array 2 is the same as the received code or whether the code of array 2 is 0; S13: If the feature code of array 2 is the same as the received code or the code of array 2 is 0, the received data is stored in array 2, the data counter of array 2 is cleared, and the process ends; if the feature code of array 2 is different from the received code and the code of array 2 is not 0, the feature code of array 3 is compared to see if it is the same as the received code or if the code of array 3 is 0; S14: If the feature code of array 3 is the same as the received code or the code of array 3 is 0, the received data is stored in array 3, the data counter of array 3 is cleared, and the process ends; if the feature code of array 3 is not the same as the received code and the code of array 3 is not 0, a data overflow fault is set and the process ends.
4. The operating method of the host competition logic system according to claim 1, characterized in that: Step S2 includes the following specific steps: S21: Determine whether the received unique code is different from its own unique code; S22: If the received unique code is the same as its own unique code, then end; if the received unique code is different from its own unique code, then determine whether the machine number of the received data is the same as its own machine number; S23: If the machine number of the received data is different from the own machine number, then end; if the machine number of the received data is the same as the own machine number, then determine that the machine number is repeated and end.
5. The operating method of the host competition logic system according to claim 1, characterized in that: The step S3 comprises the following specific steps: S31: Clear the counter of the corresponding array starting from array 1, at this time i=1; S32: Determine whether the clearing group has not reached the 4th group; S33: If not, then end; if yes, then determine that array i is not empty; S34: the counter of array i is increased by 1; S35: Determine whether the counter is ≥ 4; S36: If not, then end; if yes, then it means that all the data in array i are cleared to zero, and then end.
6. The operating method of the host competition logic system according to claim 1, characterized in that: The step S4 includes the following specific steps: S41: determining whether there is no dialing fault and whether the module interaction is completed; S42: If yes, determine that the monitoring setting single phase is one module and there is only one module for interaction; otherwise, end; S43: If yes, determine whether the machine is a slave and the master is lost; if not, determine whether the monitoring setting single phase is greater than or equal to two modules; S44: when it is determined that the local machine is a slave machine or a master machine online or directly uses no, otherwise it ends; If the monitoring setting single phase is less than two modules, it ends; if the monitoring setting single phase is greater than or equal to two modules, it is determined whether the machine is a slave and both the master and the slave are lost; S45: If this machine is a slave and both the master and the slave are lost, the online slave with the smallest machine number will be used as the master; The second smallest is the secondary host; otherwise it is the slave", and ends; Otherwise, determine whether "this machine is a slave and the master is not lost, and the secondary master is lost"; S46: If "this machine is a slave and the master is not lost, but the secondary master is lost", then "the online slave with the smallest machine number is used as the secondary master, otherwise it is a slave", and the process ends; Otherwise, determine whether "this machine is a secondary host and the host is lost"; S47: If "this machine is a secondary host and the host is lost", it directly acts as the host and ends; otherwise, it ends.
