1 setting method for judging communication interruption of hydrogen fuel cell air compressor test system
By using timers and communication flags to detect communication status in the hydrogen fuel cell air compressor test system, the problem of communication interruption is solved, the automatic shutdown strategy of the system is realized, the safety and accuracy of the test are improved, and communication errors are avoided. Accidents and losses caused by disruption.
Patent Information
- Application Number
- CN202411067743.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-09-10
AI Technical Summary
The hydrogen fuel cell air compressor test system cannot judge and process in time when the communication between the upper computer and the lower computer is interrupted, causing the test process to be unstable and affecting safety and performance verification.
By clearing communication flags and failure records during device initialization, communication connections are established, and timers are used to determine communication status. When the fault threshold is exceeded, a shutdown strategy is adopted to automatically detect and report communication interruptions to ensure system security.
It improves the detection accuracy of the communication status between the upper computer and the lower computer, avoids operational accidents and property losses caused by communication interruption, and ensures the safety and reliability of hydrogen fuel cell air compressor testing.
Smart Images

Figure CN118622683A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of hydrogen energy, and in particular relates to a method for determining communication interruption in a hydrogen fuel cell air compressor test system. Background Art
[0002] In order to get rid of excessive dependence on fossil energy and improve and reduce environmental pollution, the hydrogen energy and hydrogen fuel cell industries have also developed rapidly. As one of the core components of hydrogen fuel cells, the air compressor has very high market requirements for its performance and reliability, which needs to be verified through long-term performance tests and durability tests. When testing the air compressor, the tester monitors the test process through the host system and sends test instructions to the slave system for execution. If the communication between the host system and the slave system is interrupted, the slave system will not be able to effectively execute the test instructions. If timely measures are not taken, the safety of the tester and the test system cannot be guaranteed. For this reason, a method is needed to accurately and timely judge the communication failure of the control system.
[0003] In the field of industrial control, PLC is a highly efficient, flexible and reliable controller with a wide range of applications. The control system with PLC controller as the core and host PC as the real-time monitoring body has become a development direction of industrial automation PLC control system. Through the host computer's reading and writing monitoring of PLC data, the collection and transmission of field data and the automation and informatization of production process scheduling can be realized, and its application prospects are very broad. The stability of communication between PLC and host PC is related to the stability of the entire system operation. At present, the communication detection system on the market has a complex structure and cumbersome application, which is not suitable for users. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method for determining communication interruption in a hydrogen fuel cell air compressor test system, aiming to solve or improve the above technical problems.
[0005] To solve the above technical problems, the solutions of the present invention are as follows:
[0006] A method for determining communication interruption in a hydrogen fuel cell air compressor test system, characterized in that it includes the following steps: S1: After the upper computer system and the lower computer system are powered on, the communication flag bit B of each system is cleared to 0 and the communication failure record N is cleared to 0 during the device initialization operation; then the upper computer system initiates a communication connection request and establishes a communication connection with the lower computer system; S2: The upper computer system and the lower computer system start their own timers T respectively. When the delay time is up, they write 1 to the communication flag bit B of the other system respectively. S3: Then determine the communication flag bit B of the own system. If it is 1, clear the communication flag bit B of the own system to 0, and clear the communication failure record N; if it is not 1, add 1 to the communication failure record N of the own system; finally, reset and restart the timer T; S4: When the communication failure records N of the upper computer system and the lower computer system exceed their respective fault thresholds X, the upper computer system re-initiates a communication connection request to the lower computer system. If it fails, a shutdown strategy is adopted; the lower computer system directly adopts a shutdown strategy; the upper computer and the lower computer respectively send communication interruption information.
[0007] Specifically, the host computer system and the slave computer system have their own communication flags Ba and Bb respectively. a and B b The variable type is Boolean.
[0008] Specifically, the host computer system and the slave computer system each have their own communication failure records N a and N b , N a and N b The variable types are all integers.
[0009] Specifically, in step S4, the host computer system and the slave computer system each have their own fault thresholds, and the host computer fault threshold X a , Lower computer fault threshold X b Where X b The value range of X satisfies: b ≥X a +3.
[0010] Specifically, the lower machine timer Tb is related to the lower machine fault threshold Xb. b ×Timer T b ≤3s.
[0011] Specifically, the shutdown strategy of the upper computer system is a soft program recovery operation of the initial value, and the shutdown strategy of the lower computer system includes stopping the operation of the tested air compressor and stopping the entire test process.
[0012] The present invention provides a method for determining communication interruption in a hydrogen fuel cell air compressor test system, which has the following beneficial effects:
[0013] The invention can detect the communication status between the upper computer and the lower computer, and multiple judgments can increase the accuracy of the judgment. After the fault is judged, a shutdown strategy is automatically adopted to avoid hydrogen fuel cell air compressor operation accidents and property losses caused by communication interruption. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1The present invention is a flow chart of a method for determining communication interruption in a hydrogen fuel cell air compressor test system.
[0015] Figure 2 The present invention is an operation flow chart of a method for determining communication interruption in a hydrogen fuel cell air compressor test system. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] A method for determining communication interruption in a hydrogen fuel cell air compressor test system, characterized in that it comprises the following steps: S1: After the upper computer system and the lower computer system are powered on, the communication flag bit B of each system is cleared to 0 and the communication failure record N is cleared to 0 during the device initialization operation; then the upper computer system initiates a communication connection request and establishes a communication connection with the lower computer system; S2: The upper computer system and the lower computer system start their own timers T respectively. When the delay time is up, they write 1 to the communication flag bit B of the other system respectively. S3: Then determine the communication flag bit B of the own system. If it is 1, clear the communication flag bit B of the own system to 0, and clear the communication failure record N; if it is not 1, add 1 to the communication failure record N of the own system; finally, reset and restart the timer T; S4: When the communication failure records N of the upper computer system and the lower computer system exceed their respective fault thresholds X, the upper computer system re-initiates a communication connection request to the lower computer system. If it fails, a shutdown strategy is adopted; the lower computer system directly adopts a shutdown strategy. Each system sends a communication interruption message.
[0018] Specifically, the specific steps of S1 are:
[0019] After power-on, the host computer system is initialized, the communication flag is set to 0, and the communication failure record is cleared.
[0020] The upper computer is connected to the lower computer via a communication cable.
[0021] Specifically, the specific steps of S3 are:
[0022] After communication is established, the host computer starts the timer T a .
[0023] After communication is established, the lower computer starts the timer T b.
[0024] Timer T a After the delay time is up, the upper computer writes 1 to the communication flag of the lower computer.
[0025] Timer T b After the delay time is up, the lower computer writes 1 to the upper computer's communication flag.
[0026] Specifically, the specific steps of S3 are:
[0027] The host computer determines the communication flag bit B a Status, if it is 1, communication flag bit B a Set to 0 to clear the communication failure record.
[0028] The host computer determines the communication flag bit B a Status, if not 1, communication failure record N a Add 1.
[0029] The lower computer determines the communication flag bit B b Status, if it is 1, communication flag bit B b Set to 0 to clear the communication failure record.
[0030] The lower computer determines the communication flag bit B b Status, if not 1, communication failure record N b Add 1.
[0031] After the host computer detection is completed, the host computer timer T a Reset.
[0032] After the lower computer detection is completed, the lower computer timer T b Reset.
[0033] Specifically, the specific steps of S4 are:
[0034] Number of host computer communication failure records N a The cumulative value is greater than the set threshold X a When the upper computer system re-initiates a communication connection request to the lower computer system, if it fails, the upper computer starts the shutdown process and reports the interruption information.
[0035] Number of lower computer communication failure records N b Accumulated to set threshold X b When the lower computer automatically stops and reports the interruption information.
[0036] The host system and the slave system each have their own communication flag bit B a and B b , B a and B b The variable type is Boolean.
[0037] The host system and the slave system each have their own communication failure records N a and N b , N a and N b The variable types are all integer.
[0038] The host computer system and the slave computer system have their own fault thresholds. The host computer fault threshold X a , Lower computer fault threshold X b Where X b The value range of X satisfies: b ≥X a +3. Lower machine timer T b The fault threshold X of the lower computer b Related, lower computer fault threshold X b ×Timer T b ≤3s.
[0039] The shutdown strategy of the upper computer system is a soft program recovery operation of the initial value, and the shutdown strategy of the lower computer system includes stopping the operation of the air compressor under test and stopping the entire test process.
[0040] After the communication is established, the upper computer detects the communication flag bit and writes 1 to the lower computer, and the upper computer detects the communication flag bit and writes 1 to the lower computer; after the communication is established, the upper computer and the lower computer periodically judge the status of the communication flag bit. If the communication flag bits detected by the upper computer and the lower computer are both 1, the communication is normal. If not 1, the communication is interrupted, and the shutdown process and communication interruption information report are carried out.
[0041] After determining that the communication is normal, the upper and lower computers will detect that the communication flag is at 0.
[0042] The number of failed communication records of the host computer is N. a To set the threshold value X a When the host computer starts the shutdown strategy and reports the interruption information; the number of host computer communication failure records accumulates to N b To set the threshold value X b When the lower computer automatically stops and reports the interruption information.
[0043] A method for determining communication interruption in a hydrogen fuel cell air compressor test system is applicable to the hydrogen fuel cell air compressor test system, including a test bench, an air compressor and a driver installed on the test bench, and a complete air compressor process pipeline, including a cooling pipeline, an air intake pipeline and an exhaust pipeline.
[0044] In summary: the present invention can detect the communication status between the upper computer and the lower computer. Multiple judgments can increase the accuracy of the judgment. After the fault is judged, a shutdown strategy is automatically adopted to avoid hydrogen fuel cell air compressor operation accidents and property losses caused by communication interruption.
[0045] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for determining communication interruption in a hydrogen fuel cell air compressor test system, characterized in that: The following steps are involved: S1: After the upper computer system and the lower computer system are powered on, the communication flag bit B of each system is cleared to 0 and the communication failure record N is cleared to 0 during the device initialization operation; then the upper computer system initiates a communication connection request and establishes a communication connection with the lower computer system; S2: The upper computer system and the lower computer system start their own timers T respectively. When the delay time is up, they write 1 to the communication flag bit B of the other system respectively. S3: Then determine the communication flag bit B of the own system. If it is 1, clear the communication flag bit B of the own system to 0, and clear the communication failure record N; if it is not 1, add 1 to the communication failure record N of the own system; finally, reset and restart the timer T; S4: When the communication failure records N of the upper computer system and the lower computer system exceed their respective fault thresholds X, the upper computer system re-initiates a communication connection request to the lower computer system. If it fails, a shutdown strategy is adopted; the lower computer system directly adopts a shutdown strategy; the upper computer and the lower computer respectively send communication interruption information.
2. The method for determining communication interruption in a hydrogen fuel cell air compressor test system according to claim 1, characterized in that: The host system and the slave system each have their own communication flag bit B a and B b, B a and B b The variable type is Boolean.
3. The method for determining communication interruption in a hydrogen fuel cell air compressor test system according to claim 1, characterized in that: The host system and the slave system each have their own communication failure records N a and N b , N a and N b The variable types are all integer.
4. The method for determining communication interruption in a hydrogen fuel cell air compressor test system according to claim 1, characterized in that: In the steps S2 and S3, the host system and the slave system have their own timer T a and T b , and T a and T b The set delay times cannot be equal.
5. The method for determining communication interruption in a hydrogen fuel cell air compressor test system according to claim 1, characterized in that: In step S4, the host computer system and the slave computer system each have their own fault threshold value X a and X b ; where X b The value range of X satisfies: b ≥X a +3, and the fault threshold of the lower computer is X b ×Timer T b The delay time is ≤3s.
6. The method for determining communication interruption in a hydrogen fuel cell air compressor test system according to claim 1, characterized in that: The shutdown strategy of the upper computer system is a soft program recovery operation of the initial value, and the shutdown strategy of the lower computer system includes stopping the operation of the air compressor under test and stopping the entire test process.
