Airborne equipment relay self-detection method
By integrating or expanding A/D conversion functionality into airborne equipment, combined with host computer software and test boards, real-time acquisition of relay status and comprehensive software judgment are achieved, solving the inefficiency problem of electromagnetic relay fault detection and improving fault location speed and equipment maintainability.
Patent Information
- Application Number
- CN202411189179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-08
AI Technical Summary
The fault detection of electromagnetic relays in existing airborne equipment relies on manual measurement, which leads to low troubleshooting efficiency, inability to detect and locate faults in a timely manner, and affects the reliability and maintainability of the equipment.
By integrating or expanding the A/D conversion function in the processor chip, combined with host computer software and test board, real-time acquisition and status judgment of relay input and output signals can be realized. The software comprehensively judges the relay working status, and mechanical delay is taken into account to reduce false alarms and missed alarms.
It enables rapid and accurate fault location of electromagnetic relays, improves the fault diagnosis capability and maintainability of equipment, and reduces the demand for human resources.
Smart Images

Figure CN118914836A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of electronic technology, and in particular relates to a method for self-detection of a relay of an airborne device. Background Art
[0002] The airborne device includes a test board, a processor, and a relay (electromagnetic relay). The processor has a host board. The host board runs the upper computer software, and the test board software runs on the test board. In a certain airborne device, there is an existing upper computer software that controls the external power supply connection and disconnection through a two-stage electromagnetic relay. The front and rear two-stage electromagnetic relay control is adopted because the processor chip and the control logic unit CPLD of the host board where the upper computer software is located can generally only output 5V control power, and the control end of the high-power relay used to output 28V requires 28V input power. Therefore, a primary relay that converts from 5V to 28V is required between the control level of the host board and the secondary relay. On the one hand, it receives 5V control power input at the control level, and on the other hand, it outputs 28V control power to the secondary relay to meet the voltage isolation requirements of the control circuit and the output circuit. The primary relay is also called the control (level) relay, and the secondary relay is also called the output (level) relay, see Figure 1 .
[0003] Since the electromagnetic relay is the key executive component of the equipment and has a limited lifespan, it is a consumable component. After working for tens of thousands of times, the probability of failure gradually increases. The above circuit uses a control and output two-stage relay in series on a single 28V signal output line. As long as one function fails, the 28V output function of this line fails, which reduces the reliability of the system to a certain extent. Especially when the equipment uses this method in large quantities to achieve multi-channel 28V output, when a line output fails, in order to locate the faulty device, it is necessary to use auxiliary methods such as manually using a multimeter to measure the flying wire. Since the equipment cannot automatically realize the fault point detection and reporting functions, on the one hand, this results in slow troubleshooting efficiency, and on the other hand, it cannot capture and locate occasional faults in the first time and properly solve them. Subsequent faults appear from time to time, which will have a serious adverse effect on the functional performance and maintainability of the equipment or product. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] The present invention is to capture the cause of the fault in the first time, locate the faulty device, not miss a single fault phenomenon, and improve the maintainability of the product. A method for quickly detecting electromagnetic relays in airborne equipment is designed.
[0006] (II) Technical solution
[0007] In order to solve the above technical problems, the present invention provides a method for self-detection of an airborne device relay, wherein the airborne device comprises a test board, a processor, and a relay, wherein the processor has a host board, a host computer software runs on the host board, and a test board software runs on the test board;
[0008] For a processor chip with an internal A / D conversion function, the input and output signals of each relay are simultaneously connected to the A / D acquisition input pin of the processor chip. By initializing the relevant registers of the A / D conversion chip in the processor chip, the A / D conversion function of the processor chip is normally used to read the current status of the relay input and output signals.
[0009] For processor chips without integrated A / D conversion function, a test board is used to expand the A / D conversion function of the host board. The test board communicates with the host board through the UART serial port and feeds back the A / D conversion results to the host board's host computer software in real time.
[0010] The hardware of the test board consists of a programmable processor chip with A / D conversion function and UART serial port communication function, an op amp follower circuit and a voltage divider circuit; the test board software implements the initialization configuration of the A / D interface and the UART serial port, and realizes the functions of receiving the A / D conversion command from the host computer software through the serial port, executing the A / D conversion and obtaining the result, and sending the result to the host computer software through the RS422 serial port;
[0011] As embedded software, the host computer software runs in a fixed cycle. In order to realize periodic detection of each detection point, the host computer software establishes a command / response mechanism with the test board software. If the test board software is not controlled, it will periodically perform detection and report the results to the host computer software. In this case, the data received by the host computer software will be in an uncontrolled state, resulting in unreliable judgment results.
[0012] The present invention also provides a system for implementing the method.
[0013] The invention also provides an application of the method in the field of electronic technology.
[0014] (III) Beneficial effects
[0015] The electromagnetic relays used in airborne equipment generally complete the connection and disconnection of external power supply under the control of the host computer software. The present invention proposes a self-detection method for electromagnetic relays of airborne equipment by combining software technology and hardware technology. This method adds the power supply state A / D recovery conversion function to the relay control end (input stage), power input end and power output end (output stage) on the basis of the original software control relay to perform the connection and disconnection functions, and comprehensively judges the correctness of the working state of each relay through software. When a fault occurs, the faulty relay element can be accurately located, reducing maintenance manpower and other support resources, and improving the fault diagnosis capability and maintainability of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of a device in which the upper computer software in the existing airborne equipment controls the connection and disconnection of external power supply through a two-stage electromagnetic relay;
[0017] Figure 2 A schematic diagram of the connection between the processor chip with internally integrated A / D function and the relay in the present invention;
[0018] Figure 3 A schematic diagram of connecting a processor chip without integrated A / D function or a chip with insufficient A / D resources with a test board in the present invention;
[0019] Figure 4 This is a schematic diagram of the internal and external structure of the test board of the present invention;
[0020] Figure 5 For processor chips without integrated A / D functions or processor chips with insufficient A / D resources, the main process of the host computer software and the test board software flow chart;
[0021] Figure 6 This is the main flow chart of the host computer software for the processor chip with integrated A / D conversion function;
[0022] Figure 7 This is a schematic diagram of the connection and status of the two-stage relay on the 28V output line;
[0023] Figure 8 Schematic diagram of the relationship between FTmin and FTkeep. DETAILED DESCRIPTION
[0024] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0025] In order to capture the cause of the fault in the first place, locate the faulty device, not miss any fault phenomenon, and improve the maintainability of the product, the present invention adopts a method for quickly detecting electromagnetic relays in airborne equipment, and the following requirements need to be met through this method:
[0026] 1. The host computer software can use this method to detect the status of all primary and secondary relay control terminals and output terminals in real time every cycle.
[0027] 2 The upper computer software combines the currently detected status to comprehensively judge the correctness of the current output status of the primary and secondary relays. When an unreasonable status occurs, a corresponding relay fault status mark is generated and the status is promptly fed back to the user.
[0028] 3. Due to the mechanical delay between the relay control end and the output end, the host computer software needs to comprehensively consider the delay effect of the primary and secondary relays, and no false alarm phenomenon of false faults should be generated.
[0029] Method proposed for requirement 1:
[0030] In airborne equipment, the host computer software generally runs on a host board with an embedded system. The processor of the host board is generally a processor chip based on PowerPC or ARM series core with multiple functional on-chip peripherals such as UART. Here, the processor chip is divided into two categories: one is the on-chip peripheral chip with A / D analog-to-digital conversion function integrated inside the processor chip, and the other is the chip without integrated A / D function or the chip with insufficient A / D resources.
[0031] For processor chips with internal A / D conversion function, it is only necessary to connect the input and output signals of each relay to the A / D acquisition input pin of the processor chip at the same time. Figure 2 The host computer software is designed according to the corresponding chapter of the processor chip software manual. By initializing the relevant registers of the A / D conversion chip in the processor chip, the A / D conversion function of the processor chip can be used normally to read the current status of the relay input and output signals.
[0032] For processor chips without integrated A / D function, or processor chips with insufficient A / D resources, it is necessary to consider using a dedicated test board to expand the A / D function of the host board. The test board generally communicates with the host board through the UART serial port and feeds back the A / D conversion results to the host board's host computer software in real time. Figure 3 .
[0033] The hardware of the test board consists of a programmable processor chip with A / D conversion function and UART serial port communication function, an op amp follower circuit and a voltage divider circuit; the software design needs to implement the A / D interface and UART serial port initialization configuration, receive the A / D conversion command from the host computer software through the serial port, execute the A / D conversion and obtain the result, and send the result to the host computer software through the RS422 serial port, etc. Figure 4 shown.
[0034] As embedded software, the host computer software generally runs at a fixed time interval (such as 10ms). In order to realize the periodic detection of each detection point, the host computer software needs to establish a reliable command / response mechanism with the test board software. If the test board software is not controlled, it will periodically perform detection and report the results to the host computer software, then the received data of the host computer software will be in an uncontrolled state, resulting in unreliable judgment results; under the premise that time conditions permit, the use of synchronous detection between the test board software and the host computer software is the most stable and reliable.
[0035] The upper computer software sends an A / D conversion command to the test board software once every 10ms, and waits for the test board to reply with the A / D conversion result after sending. Taking into account 30% time redundancy, for a 10ms cycle, the longest waiting time cannot exceed 7ms. For the calculation of the shortest waiting time, it is necessary to consider the total length of the serial port data received and sent; the A / D conversion command sent is fixed to 5 bytes, with two header words 0x55 and 0xAA, and the following three bytes are fixed to 0x01, 0x61, and 0x62; 0x01 represents the payload length of 1 byte, 0x61 represents the payload, and 0x62 represents the check byte; the length of the A / D conversion result is related to the number of lines to be detected, and each A / D conversion result occupies two bytes. The test board supports a total of 16 channels of level detection, so the A / D conversion result will produce a 32-byte payload, plus the header word, length The speed and check bytes are 36 bytes in total, so the total number of received and sent data is 5+36=41 bytes; the serial port configuration is calculated based on the baud rate of 115200b / s, 1 start bit, and 1 stop bit, which requires a total of 41 bytes*10 bits per byte / 115200*1000ms=3.56ms; considering the time it takes for the test board software to run an A / D conversion, the shortest reliable waiting time for the host computer is 5ms, that is, 5ms after the host computer sends the A / D conversion command and starts timing, under normal circumstances, the A / D conversion result can be received from the serial port, otherwise it is determined that the test board has a functional failure. For details of the main process of the host computer software and the test board software process, see Figure 5 .
[0036] For processor chips with integrated A / D conversion function, the situation is relatively simple, such as Figure 6As shown. For processor chips with integrated A / D conversion function, the host computer software determines whether the actual voltage is 28V valid or disconnected based on the voltage value after A / D conversion. Therefore, it is necessary to determine a specific threshold value. If it is higher than the threshold value, it is determined to be 28V output valid, otherwise it is determined to be 0V or disconnected. Here, the A / D conversion result provided by the ADC conversion module of the TI series DSP digital signal processor TMS320F28335 is taken as an example (that is, the processor chip with integrated A / D conversion function is the F28335 chip), and the following method is considered:
[0037] It is known that the ADC conversion module of the F28335 chip has a 12-bit resolution, 0x000 represents 0V, and 0xFFF represents the maximum voltage; since the 28V voltage output by the relay passes through the voltage divider circuit and the operational follower circuit before reaching the pin of the ADC conversion module, and after ADC conversion, the result may not be the maximum voltage data 0xFFF, so it is necessary to use the ADC conversion module through software to obtain the converted value of 28V in advance, specifically 0xE00, so it is determined to use half of the value 0xE00, 0x700, as the judgment threshold; according to the judgment threshold, during normal use, if the A / D conversion result data of a certain point is about 0xE00, the state of the point is judged to be 28V; if the A / D conversion result data of a certain point is slightly more than 0x000, the state of the point is judged to be 0V or disconnected.
[0038] 2. Method proposed for requirement 2
[0039] Based on the corresponding method proposed for requirement 1, whether it is a processor chip without integrated A / D function, a processor chip with insufficient A / D resources, or a processor chip with integrated A / D conversion function, the host computer software can normally and periodically obtain the current status of the front and rear detection points of the two-stage relay on the 28V output line. Figure 7 As shown: There are 5 detection points on each 28V output line, such as Figure 7 As shown in numbers 1 to 5; among them, numbers 3, 4, and 5 are the current states obtained by the AD conversion method of the test board, number 1 is the control state of the internal output of the host computer software, which can be obtained by defining storage variables, number 2 is hardware-forced connection, the condition is met when the onboard equipment is powered on, and the host computer software does not need to obtain the state; when the status of all detection points is valid, it means that there is a corresponding valid voltage value at the detection point numbered 2; when there is an invalid status of a detection point, it means that there is no voltage value at the detection point numbered 2, and it is suspended or grounded.
[0040] pass Figure 7 It can be concluded that:
[0041] a) When the status of detection points No. 1, 3, and 4 are all valid at the same time, the status of detection point 5 is valid, otherwise it is invalid.
[0042] b) Primary (control level) relay fault judgment criteria:
[0043] 1) If detection point 1 is valid and detection point 3 is invalid, it is judged as fault 1;
[0044] 2) If detection point 1 is invalid and detection point 3 is valid, it is judged as fault 2;
[0045] c) Secondary (output stage) relay fault judgment criteria:
[0046] 1) If detection point 3 is valid, detection point 4 is valid, and detection point 5 is invalid, it is judged as fault 1;
[0047] 2) If the detection point No. 3 is invalid or the detection point No. 4 is invalid, and the detection point No. 5 is valid, it is judged as fault 2;
[0048] For both primary and secondary relays, there are two types of faults: Fault 1 and Fault 2. The cause of Fault 1 is that the output should be valid but the actual output is invalid, which is a failure of the closing function; the cause of Fault 2 is that the output should be invalid but the actual output is valid, which is a failure of the opening function.
[0049] After obtaining the status of each point in each cycle, the host computer software judges according to the above logic to determine whether the working status of the primary and secondary relays in the current cycle is normal; if a fault occurs, the host computer software can generate and accurately express the specific fault cause of each relay by establishing a structure array. The following is an example of the actual detection of the primary and secondary relays of the two 28V output lines 1 and 2, a total of 4 relays. The effective state of the secondary relay control level includes the control input and external power supply being valid at the same time, such as Figure 7 As shown at 3 and 4 o'clock.
[0050]
[0051]
[0052]
[0053]
[0054] 3. Method proposed for requirement 3
[0055] Since the two-stage electromagnetic relay is a mechanical switch, there is a delay in the opening and closing action. The control-stage relay is about 1ms, and the output-stage relay is about 10ms. In addition, there may be errors in the A / D conversion. Therefore, in order to avoid potential false alarms, the host computer software should not directly give the relay detection result after obtaining the A / D conversion result in the current cycle, but should count the number of faults N for the detection result of each cycle; if a certain fault occurs in a relay in the current cycle, the number of faults N of this type will increase by 1; if the relay continues to have the same fault in the next cycle, the number of faults N of this type will increase by 1 again; if the relay does not continue to have the same fault, the number of faults of this type will be cleared to N0; multiplying the number N-1 by the preset host computer software period Period can obtain the fault state duration FTkeep; until the fault state duration FTkeep reaches the shortest fault resolution time FTmin, the final fault is generated and reported and displayed.
[0056] When FTkeep is shorter than FTmin, it will be filtered out; only when FTkeep is equal to or longer than FTmin, it will be judged as a fault. The method for determining FTmin is as follows:
[0057] The relay on the airborne equipment generally supplies power to other devices or outputs a valid 28V pulse signal by closing and connecting the power supply. Therefore, the present invention only takes the failure of the closing function as an example for explanation, and the failure of the disconnection function is the same. For the pulse signal, there is generally a shortest pulse time width PTmin. FTmin needs to be determined in combination with the host computer software detection cycle, the mechanical delay of the relay and the shortest pulse time width PTmin.
[0058] Due to the mechanical delay of the actual relay, when the upper computer software controls the relay to close, the current cycle is prone to detection failure. Therefore, if FTmin is too short, false alarms are likely to occur; and if FTmin is too long, faults are likely to be missed (FTmin is longer than the fault duration FTkeep and the fault is not determined). For details on the relationship between the various times, see Figure 8 .
[0059] When the upper computer software cycle is 10ms, the longest delay of the relay is tens of 10ms, and the actual shortest pulse time width PTmin is 100ms, FTmin is generally 50ms, that is, under the premise of the first fault detection, the next 50ms are continuous, and the fault is detected for 5 software cycles. When the total number of faults reaches 6, the final fault is generated and reported. This ensures that false alarms are reliably eliminated and faults are accurately identified and judged during the normal closing time period of the relay.
[0060] For details on the hardware board cross-link relationship, refer to Figure 2 , 3, 4. When the upper computer software runs on a processor chip with an A / D conversion function, there is no need to consider the RS422 serial bus communication problem. It can directly execute A / D conversion after controlling the output relay closing and opening commands. According to the contents of items 2 and 3 of the invention, it can make periodic judgments and generate corresponding fault information based on the conversion results.
[0061] When the host computer software is implemented on a processor chip without A / D conversion function, although the principle is the same, each data frame format needs to be strictly checked and frame break timeout judgment during the reception and transmission process of the RS422 serial bus, otherwise it will have an adverse effect on the detection result. To solve this problem, the following simple and easy method is proposed.
[0062] 1. Methods for the detection board software to receive and judge serial port data:
[0063] The upper computer software cycle is 10ms. It sends an A / D conversion command to the test board software once per cycle and uses the UART serial port module to send fixed 5-byte data: 0x55, 0xAA, 0x01, 0x61, 0x62.
[0064] The test board software judges each received byte one by one in the same byte order. If the order of the received 5 bytes is exactly the same as the above 5 bytes, AD conversion will be started and the result will be sent back to the host computer; if any received byte does not match the order of the byte that should be received, the data received by the hardware serial port module will be cleared, and the data will be received and judged again.
[0065] Through this method, when the host computer software (sender) first encounters a frame break timeout problem and then resends the 5-byte command, the test board can determine that the byte sequence is wrong and wait to receive a new 5-byte command again, so that the detection function can continue to cycle.
[0066] 2. Method for host computer software to receive test board data
[0067] Since the synchronous command / response detection method is adopted, the host computer has the initiative to detect, so the software can first clear the cache data of the hardware serial port module, then send a 5-byte conversion command, wait for 5ms, and then determine whether the length of the newly received data of the hardware serial port module is qualified and whether the verification is correct. Only when all conditions are met can the AD conversion results of each channel be further extracted to perform subsequent relay fault judgment.
[0068] Through this method, when the test board has a frame break timeout problem, the host computer software can directly cache the new data length from the hardware serial port module and make a judgment. If the new data length is incorrect, it is judged that the communication function of the test board in the current cycle is invalid, and the subsequent relay fault judgment is not performed; if the communication returns to normal in the next cycle, the relay fault judgment continues. When the communication function fails for N consecutive cycles (N is 100, corresponding to 1 second), the host computer software determines that the communication function of the test board has failed, generates a test board fault mark, and no longer performs periodic relay self-detection.
[0069] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for self-detection of relays of airborne equipment, It is characterized in that The onboard equipment includes a test board, a processor, and a relay. The processor has a host board. The host board runs the host computer software, and the test board software runs on the test board. For a processor chip with an internal A / D conversion function, the input and output signals of each relay are simultaneously connected to the A / D acquisition input pin of the processor chip. By initializing the relevant registers of the A / D conversion chip in the processor chip, the A / D conversion function of the processor chip is normally used to read the current status of the relay input and output signals. For processor chips without integrated A / D conversion function, a test board is used to expand the A / D conversion function of the host board. The test board communicates with the host board through the UART serial port and feeds back the A / D conversion results to the host board's host computer software in real time. The hardware of the test board consists of a programmable processor chip with A / D conversion function and UART serial port communication function, an op amp follower circuit and a voltage divider circuit; the test board software implements the initialization configuration of the A / D interface and the UART serial port, and realizes the functions of receiving the A / D conversion command from the host computer software through the serial port, executing the A / D conversion and obtaining the result, and sending the result to the host computer software through the RS422 serial port; As embedded software, the host computer software runs at a fixed cycle. To realize periodic detection of each detection point, the host computer software establishes a command / response mechanism with the test board software. If the test board software is not controlled, and periodically performs detection and reports the results to the host computer software, the received data of the host computer software is in an uncontrolled state, resulting in unreliable judgment results.
2. The method according to claim 1, It is characterized in that The host computer software sends A / D conversion commands to the test board software with a period of 10ms, and waits for the test board to reply with the A / D conversion results after sending. For a period of 10ms, the waiting time is no longer than 7ms. For the calculation of the shortest waiting time, the total length of the serial port data received and sent is considered. The A / D conversion command sent is fixed to 5 bytes, with two header words 0x55 and 0xAA, and the following three bytes are fixed to 0x01, 0x61, and 0x62. Among them, 0x01 represents the payload length of 1 byte, 0x61 represents the payload, and 0x62 represents the check byte. The length of the A / D conversion result is related to the number of lines to be tested. Each A / D conversion result occupies two bytes. The test board supports a total of 16 Therefore, the A / D conversion result will generate a 32-byte payload, plus the header, length and check byte, a total of 36 bytes, so the received and sent data is 5+36=41 bytes in total; the serial port configuration is calculated according to the baud rate of 115200b / s, 1 start bit, and 1 stop bit, a total of 41 bytes*10 bits per byte / 115200*1000ms=3.56ms is required; considering the time it takes for the test board software to run an A / D conversion, the shortest reliable waiting time for the host computer software is 5ms, that is, 5ms after the host computer software sends the A / D conversion command and starts timing, under normal circumstances, the A / D conversion result can be received from the serial port, otherwise it is determined that the test board has a functional failure.
3. The method according to claim 1, It is characterized in that After obtaining the status of each point in each cycle, the host computer software judges according to the judgment logic to determine whether the working status of the first and second level relays in the current cycle is normal; if a fault occurs, the host computer software accurately expresses the specific cause of the fault of each relay by establishing a structure array.
4. The method according to claim 1, It is characterized in that For processor chips with integrated A / D conversion function, the upper computer software determines whether the actual voltage is 28V valid or disconnected based on the voltage value after A / D conversion. Therefore, it is necessary to determine a specific threshold value. If it is higher than the threshold value, it is judged that the 28V output is valid, otherwise it is judged to be 0V or disconnected.
5. The method according to claim 4, It is characterized in that If the processor chip with integrated A / D conversion function is an F28335 chip, the method of determining the specific threshold value and judging the state of the detection point according to the threshold value is as follows: It is known that the ADC conversion module of the F28335 chip has a 12-bit resolution, 0x000 represents 0V, and 0xFFF represents the maximum voltage; since the 28V voltage output by the relay passes through the voltage divider circuit and the operational follower circuit before reaching the pin of the ADC conversion module, after ADC conversion, the result may not be the maximum voltage data 0xFFF, so the ADC conversion module is used to obtain the 28V converted value in advance as 0xE00, so it is determined to use half of the value 0xE00, 0x700, as the judgment threshold; According to the judgment threshold, during normal use, if the A / D conversion result data of a certain point is 0xE00, the state of the point is judged to be 28V; if the A / D conversion result data of a certain point is greater than the preset threshold value of 0x000, the state of the point is judged to be 0V or disconnected.
6. The method according to claim 4, It is characterized in that Regardless of whether it is a processor chip without integrated A / D function or a processor chip with insufficient A / D resources, the host computer software can normally and periodically obtain the current status of the front and rear detection points of the two-stage relay on the 28V output line; suppose there are 5 detection points on each 28V output line, numbered 1 to 5; among them, numbers 3, 4, and 5 are the current status obtained by the AD conversion method of the test board, number 1 is the control status of the internal output of the host computer software, which can be obtained by defining storage variables, number 2 is hardware-forced connection, and the condition is met when the onboard equipment is powered on, and the host computer software does not need to obtain the status; when the status of all detection points is valid, it means that there is a corresponding valid voltage value at the detection point numbered 2; when the status of a certain detection point is invalid, it means that there is no voltage value at the detection point numbered 2, and it is suspended or grounded; Then we have: a) When the status of the detection points No. 1, 3, and 4 are all valid at the same time, the status of detection point 5 is valid, otherwise it is invalid; b) Fault judgment criteria for control level relay, i.e., primary relay: 1) If detection point 1 is valid and detection point 3 is invalid, it is judged as fault 1; 2) If detection point 1 is invalid and detection point 3 is valid, it is judged as fault 2; c) Output relay, i.e. secondary relay fault judgment criteria: 1) If detection point 3 is valid, detection point 4 is valid, and detection point 5 is invalid, it is judged as fault 1; 2) If the detection point No. 3 is invalid or the detection point No. 4 is invalid, and the detection point No. 5 is valid, it is judged as fault 2; For both primary and secondary relays, there are two types of faults: Fault 1 and Fault 2. The cause of Fault 1 is that the output should be valid but the actual output is invalid, which is a failure of the closing function; the cause of Fault 2 is that the output should be invalid but the actual output is valid, which is a failure of the opening function.
7. The method according to claim 1, It is characterized in that The upper computer software counts the number of faults N in the detection results of each cycle; if a certain fault occurs in a certain relay in the current cycle, the number of faults N will increase by 1; if the same fault continues to occur in the relay in the next cycle, the number of faults N will increase by 1 again; if the same fault does not continue to occur in the relay, the number of faults will be cleared to N0; the number N-1 is multiplied by the preset upper computer software cycle Period to obtain the fault state duration FTkeep; until the fault state duration FTkeep reaches the shortest fault resolution time FTmin, the final fault is generated.
8. The method according to claim 7, It is characterized in that When FTkeep is shorter than FTmin, it will be filtered out; only when FTkeep is equal to or longer than FTmin, it will be judged as a fault; the method for determining FTmin is as follows: FTmin is determined by combining the host computer software detection cycle, relay mechanical delay and the shortest pulse time width PTmin.
9. A system for implementing the method according to any one of claims 1 to 8.
10. Application of the method according to any one of claims 1 to 8 in the field of electronic technology.
