Fault processing method and device for combined process
By setting response-level alarm codes for each step in the combination process and setting alarm codes according to the priority attribute division of the step, the problem of the combination process being susceptible to fault interference is solved, and high fault tolerance and control reliability of the combination process are achieved.
Patent Information
- Application Number
- CN202411697077.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-15
AI Technical Summary
The existing combination process is susceptible to failure interference and has poor control fault tolerance, which leads to the combination process being unable to end normally and the control purpose cannot be achieved.
By setting response-level alarm codes for each step in the combination process and setting alarm codes according to the priority attribute division of the step, when the work step pause fault mode is triggered during the execution of the combination process, the pause fault processing is performed according to the alarm code.
The secondary step failures in the combined process do not affect the execution of key steps. The same step failure is differentiated in different combination processes, improving the fault tolerance and control reliability of the combined process.
Smart Images

Figure CN119828633A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of parallel control technology, and in particular to a fault handling method and device for a combined process. Background Art
[0002] In the field of special vehicle control, in order to improve the simplicity, safety and reliability of user operation, a combined process is usually designed. The combined process is triggered by one-click operation to form a series of control processes, and the controlled object is controlled to complete a series of corresponding actions. The combined process consists of several serial and parallel steps. For the controlled entity or network element, each step includes execution status data such as control object identification, step sequence number, step name, step status, and execution control data such as execution conditions, control requirements, abnormal identification, and fault alarm. During the execution of the combined process, each step implements different control functions according to the execution order, execution conditions, and control requirements. When an abnormality occurs during the execution process, the pause fault mode is entered, and the corresponding fault judgment and fault handling are performed to ensure the safety of users and controlled objects. At present, in the execution of the combined process, once the abnormality of the step execution is detected, the pause fault mode will be triggered, and the step execution will be suspended for fault handling, so that the complete combined process often cannot be terminated normally, and the control purpose cannot be achieved. Summary of the invention
[0003] In view of the above problems, an embodiment of the present invention provides a fault handling method and device for a combined process, which solves the technical problems that the existing combined process is susceptible to fault interference and has poor control fault tolerance.
[0004] The fault handling method for the combined process according to the embodiment of the present invention includes:
[0005] Forming response classifications and alarm codes corresponding to the response classifications for the pause failure modes of each process step in the combined process;
[0006] According to the priority attribute division of each step in the combined process, the alarm code of the corresponding pause fault mode is set;
[0007] When the work step pause fault mode is triggered during the execution of the combined process, the pause fault processing is performed according to the alarm code.
[0008] In one embodiment of the present invention, the alarm code setting rules include:
[0009] A two-level alarm code is set for the pause failure mode of the same work step, and the two-level alarm code is set as the second-class alarm code and the third-class alarm code in the system alarm system.
[0010] In one embodiment of the present invention, the suspending fault processing according to the alarm code includes:
[0011] In a single-step process, a second-class alarm code is set when the work step is a critical work step; the single-step process is suspended when the work step triggers a suspend fault mode due to a fault; a second-class alarm code is set when the work step is a secondary work step, and the single-step process is suspended when the work step triggers a suspend fault mode due to a fault.
[0012] In one embodiment of the present invention, the suspending fault processing according to the alarm code includes:
[0013] In the combined process, when the work step is a secondary work step, the third type of alarm code is set; when the work step triggers the pause fault mode for the first time due to a fault, the third type of alarm code is reported, and only the control output of the work step to the controlled object is stopped; when the work step triggers the pause fault mode for the second time, the second type of alarm code is reported, and the control output of the work step to the controlled object is stopped.
[0014] In one embodiment of the present invention, the suspending fault processing according to the alarm code includes:
[0015] In the combined process, when there is a critical step in the parallel process, a second-class alarm code is set for the critical step. When the critical step triggers the suspension fault mode due to a fault, the combined process is immediately suspended while reporting the second-class alarm code, and the control output of the parallel process to all controlled objects is stopped;
[0016] In the combined process, when there is a secondary step in the parallel step, three types of alarm codes are set for the secondary step. When the secondary step triggers the pause fault mode due to a fault, the three types of alarm codes are reported and only the control output of the controlled object of this secondary step is stopped, and other steps in the parallel step continue to be executed.
[0017] In one embodiment of the present invention, the suspending fault processing according to the alarm code includes:
[0018] In the combined process, determine the combined sub-process in which the same work step is located; when the same work step is in different combined sub-processes, determine the priority attributes in the corresponding sub-processes, and the same work step is set to three types of alarm codes by default;
[0019] When the same process step is a critical process step in the first combined sub-process, after the preceding critical process step is executed, it is determined whether the same process step triggers a suspension fault mode due to a fault. When it is determined that the suspension fault mode is triggered, the third-class alarm code of the same process step is upgraded to a second-class alarm code and reported, and the first combined sub-process is immediately suspended;
[0020] When the same process step is a secondary process step in the second combined sub-process, after the preceding critical process step is completed, it is not determined whether the same process step triggers a pause fault mode due to a fault, and the subsequent critical process steps continue to be executed.
[0021] The fault handling device for the combined process according to the embodiment of the present invention includes:
[0022] A memory, used to store program codes of the above-mentioned fault handling method for the combined process during the processing;
[0023] A processor is used to run the program code.
[0024] The fault handling device for the combined process according to the embodiment of the present invention includes:
[0025] An alarm code configuration module, used to form a response classification for the pause failure mode of each step in the combined process and form an alarm code corresponding to the response classification;
[0026] The alarm code mapping module is used to set the alarm code of the corresponding pause fault mode according to the priority attribute division of each step in the combined process;
[0027] The fault handling module is used to perform pause fault handling according to the alarm code when the work step pause fault mode is triggered during the execution of the combined process.
[0028] In one embodiment of the present invention, the fault processing module includes:
[0029] The key attribute processing unit is used to set a second-class alarm code for a key step when there is a key step in the parallel step in the combined process. When the key step triggers a suspension fault mode due to a fault, the second-class alarm code is reported and the combined process is immediately suspended, and the control output of the parallel step to all controlled objects is stopped;
[0030] The secondary attribute processing unit is used to set three types of alarm codes for the secondary steps when there are secondary steps in the parallel steps in the combined process. When the secondary step triggers the pause fault mode due to a fault, the three types of alarm codes are reported while only the control output of the controlled object of this secondary step is stopped, and other steps in the parallel steps continue to be executed.
[0031] In one embodiment of the present invention, the fault processing module includes:
[0032] The work step affiliation discrimination unit is used to determine the combined sub-process in which the same work step is located in the combined process; when the same work step is in different combined sub-processes, the priority attribute in the corresponding sub-process is determined. The same work step is set to three types of alarm codes by default;
[0033] The key process step processing unit is used to determine whether the same process step triggers a suspension fault mode due to a fault after the preceding key process step is executed, when the same process step is a key process step in the first combined sub-process. When it is determined that the suspension fault mode is triggered, the third-class alarm code of the same process step is upgraded to a second-class alarm code for reporting and the first combined sub-process is stopped and immediately suspended;
[0034] The secondary process step processing unit is used for, when the same process step is a secondary process step in the second combined sub-process, not judging whether the same process step is in a suspended fault mode due to a fault after the preceding key process step is completed, and continuing to execute subsequent key processes.
[0035] The fault handling method for the combined process of the embodiment of the present invention forms control optimization for the handling process of the pause fault mode by associating the pause fault mode of a single step with the importance of the single step in the local control process. It is achieved that the failure of a minor step in the combined process does not affect the execution of the key step, and the differentiated handling of the same step failure in different combined processes is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 FIG. 1 is a flow chart of a method for handling a fault in a combined process according to an embodiment of the present invention.
[0037] Figure 2 FIG. 1 is a schematic diagram showing an application of a method for handling a combined process fault according to an embodiment of the present invention.
[0038] Figure 3 FIG. 1 is a schematic diagram of the architecture of a fault handling device for a combined process according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. 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.
[0040] An embodiment of the present invention provides a method for handling a fault in a combined process. Figure 1 As shown. Figure 1 In this embodiment, the present invention comprises:
[0041] Step 100: forming a response classification for the pause failure mode of each step in the combined process and forming an alarm code corresponding to the response classification.
[0042] Those skilled in the art can understand that the work step definition can be performed in the form of a function, and the complete content of the input, output, processing conditions and processing logic of the corresponding control process can be formed through the function form definition, and then the combined process definition can be formed in the form of a function. The same work step can be reused in the combined process, including repeated execution at a certain frequency or multiple deployments in different control stages. The same work step appearing in the combined process can be determined according to objective needs and objective influences. The priority or importance level of the control node can be determined. Then, the judgment level is assigned to the graded alarm code, which is a specific working condition state of the work step to form an additional control dimension of the work step processing process, which can effectively reflect the priority or importance of the work step in different control steps or control logic of the combined process. The work step response state code is formed for the graded alarm code, and the graded state of the current work step is distinguished by the work step execution state code. For example, the pause fault mode of a work step can be assigned a graded alarm code to form different grades of the fault handling process. The pause fault mode includes the fault state and fault handling process that cause the work step to pause.
[0043] Step 200: setting the alarm code of the corresponding pause fault mode according to the priority attribute division of each step in the combined process.
[0044] The priority attribute of the work step is determined according to the priority level set or assigned to the current work step in the combined process. The priority level can be the key work step, main work step and secondary work step divided for the final realization of the combined process control purpose, or the key work step, main work step and secondary work step divided for the degree of influence on the final realization of the combined process control purpose. Setting the alarm code for the work step priority attribute can be used to initialize the processing level when the current work step appears in the corresponding control state.
[0045] Step 300: When the work step pause fault mode is triggered during the execution of the combined process, pause fault processing is performed according to the alarm code.
[0046] The pause fault mode will cause the pause fault processing to be suspended, resulting in the execution process of the work step being suspended. The real-time classification of the pause fault processing process is formed through the alarm code, and the specific execution status and execution process of the work step are marked and controlled according to the alarm code. For example, when the pause fault mode of the work step is triggered, the criticality of the work step is judged according to the default alarm code, and the execution, delay or neglect of the pause fault processing is formed. For example, the real-time classification can be changed by changing the alarm code.
[0047] In one embodiment of the present invention, the alarm code setting rules for the same process step include:
[0048] A two-level alarm code is set for the pause failure mode of the same work step, and the two-level alarm code is set as the second-class alarm code and the third-class alarm code in the system alarm system.
[0049] The fault handling method for the combined process of the embodiment of the present invention forms control optimization for the handling process of the pause fault mode by associating the pause fault mode of a single step with the importance of the single step in the local control process. It is achieved that the failure of a minor step in the combined process does not affect the execution of the key step, and the differentiated handling of the same step failure in different combined processes is achieved.
[0050] like Figure 1 As shown, in one embodiment of the present invention, based on the above embodiment, step 300 includes the following fault handling method:
[0051] Step 410: In a single-step process, when the work step (its priority attribute) is a critical work step, a second-class alarm code is set; when the work step triggers a suspend fault mode due to a fault, the single-step process is suspended; when the work step (its priority attribute) is a secondary work step, a second-class alarm code is set, and when the work step triggers a suspend fault mode due to a fault, the single-step process is suspended.
[0052] The fault handling method for the combined process in the embodiment of the present invention associates the work step processing level with the system alarm system through the alarm code, so that the alarm code will not cause processing differences of the pause fault mode during the serial control process, thereby ensuring a unified processing process for the pause fault mode.
[0053] like Figure 1 As shown, in one embodiment of the present invention, based on the above embodiment, step 300 also includes the following fault handling method:
[0054] Step 510: In the (multi-step) combined process, when the step (priority attribute) is a secondary step, a third-category alarm code is set; when the step triggers the pause fault mode for the first time due to a fault, a third-category alarm code is reported, and only the control output of the step to the controlled object is stopped; when the step triggers the pause fault mode for the second time, a second-category alarm code is reported, and the control output of the step to the controlled object is stopped.
[0055] The fault handling method for the combined process of the embodiment of the present invention associates the work step processing level with the system alarm system through the alarm code, so that the fault handling of the work step can form dynamic feedback with the system, and the control requirements of the complex process can be effectively responded to by modifying the alarm code.
[0056] like Figure 1 As shown, in one embodiment of the present invention, based on the above embodiment, step 300 also includes the following fault handling method:
[0057] Step 610: In the (multi-step) combined process, when there is a critical step (with a priority attribute) in the parallel steps, a second-class alarm code is set for the critical step. When the critical step triggers a pause fault mode due to a fault, the second-class alarm code is reported and the combined process is immediately paused, and the control output of the parallel steps to all controlled objects is stopped.
[0058] Step 620: In the (multi-step) combined process, when there is a secondary step (with a priority attribute) in the parallel step, three types of alarm codes are set for the secondary step. When the secondary step triggers the pause fault mode due to a fault, the three types of alarm codes are reported while only the control output of the controlled object of this secondary step is stopped, and other steps in the parallel step continue to be executed. The control of the key step is not affected.
[0059] The fault handling method for the combined process of the embodiment of the present invention, based on associating the process step processing level with the system alarm system through the alarm code, distinguishes the degree and direction of influence between the parallel process steps in the combined process through the alarm code, so that the influence of the suspension fault on the complete execution of the combined process and the reliability of the key control execution can be effectively balanced.
[0060] like Figure 1 As shown, in one embodiment of the present invention, based on the above embodiment, step 300 also includes the following fault handling method:
[0061] Step 710: In the combined process, determine the combined sub-process in which the same work step is located; when the same work step is in different combined sub-processes, determine the priority attribute in the corresponding sub-process, and the same work step is set to three types of alarm codes by default.
[0062] Step 720: When the same work step is a critical work step in the first combined sub-process, after the execution of the preceding critical work step, determine whether the same work step triggers a pause fault mode due to a fault. When it is determined that the pause fault mode is triggered, upgrade the third-category alarm code of the same work step to a second-category alarm code and report it, and stop immediately suspending the first combined sub-process.
[0063] Step 730: When the same process step is a minor process step in the second combined sub-process, after the preceding critical process step is completed, it is not determined whether the same process step triggers a pause failure mode due to a fault, and the subsequent critical process steps are continued to complete the second combined sub-process.
[0064] The fault handling method for the combined process in the embodiment of the present invention associates the work step processing level with the system alarm system through alarm codes, and identifies the priority level of the same work step in each combined sub-process through alarm codes, thereby forming flexible processing timing and processing logic for the pause fault mode of the same work step, thereby meeting the fault handling requirements and efficiency of complex combined processes.
[0065] The application process of the fault handling method for the combined process according to the embodiment of the present invention is as follows: Figure 2 As shown. Figure 2 In the process, for the parallel steps in the combined process, the key steps and secondary steps are determined. When the key step triggers a pause fault, all parallel steps in the combined process are paused until the user sends a process continuation instruction. When a secondary step triggers a pause fault, only the secondary step is terminated to keep the combined process going. Furthermore, when a key step (necessary sub-step) in the subsequent steps of the parallel step triggers a pause fault, even if the previous step of the subsequent step is a secondary step, the key step will also raise the alarm code, causing all steps in the combined process to pause. The control of the combined process is achieved through the step classification and the alarm code classification of the pause fault to form a regulation mechanism for secondary feedback in the key control purpose.
[0066] A fault handling device for a combined process according to an embodiment of the present invention includes:
[0067] A memory, used to store program codes of the fault handling method for the combined process in the above embodiment during the processing;
[0068] The processor is used to run the program code of the fault handling method for the combined process in the above embodiment during the processing.
[0069] An embodiment of the present invention is directed to a fault handling device for a combined process. Figure 3 As shown. Figure 3 In this embodiment, the present invention comprises:
[0070] The alarm code configuration module 10 is used to form a response classification and an alarm code corresponding to the response classification for the pause failure mode of each step in the combined process.
[0071] The alarm code mapping module 20 is used to set the alarm code of the corresponding pause fault mode according to the priority attribute division of each step in the combined process.
[0072] The fault processing module 30 is used to perform a pause fault processing according to the alarm code when the work step pause fault mode is triggered during the execution of the combined process.
[0073] like Figure 3 As shown, in one embodiment of the present invention, the fault processing module 30 includes:
[0074] The basic process processing unit 41 is used to set a second-class alarm code when the work step is a key work step in a single-step process; the single-step process is suspended when the work step triggers a suspension fault mode due to a fault; and set a second-class alarm code when the work step is a secondary step, and the single-step process is suspended when the work step triggers a suspension fault mode due to a fault.
[0075] like Figure 3As shown, in one embodiment of the present invention, the fault processing module 30 further includes:
[0076] The basic process debugging unit 51 is used to set the third type of alarm code when the work step is a secondary work step in the combined process; when the work step triggers the pause fault mode for the first time due to a fault, the third type of alarm code is reported, and only the control output of the work step to the controlled object is stopped; when the work step triggers the pause fault mode for the second time, the second type of alarm code is reported, and the control output of the work step to the controlled object is stopped.
[0077] like Figure 3 As shown, in one embodiment of the present invention, the fault processing module 30 further includes:
[0078] The key attribute processing unit 61 is used to set a second-class alarm code for a key step when there is a key step in the parallel step in the combined process. When the key step triggers the suspension fault mode due to a fault, the second-class alarm code is reported and the combined process is immediately suspended, and the control output of the parallel step to all controlled objects is stopped;
[0079] The secondary attribute processing unit 62 is used to set three types of alarm codes for the secondary steps when there are secondary steps in the parallel steps in the combined process. When the secondary step triggers the pause fault mode due to a fault, the three types of alarm codes are reported while only the control output of the controlled object of this secondary step is stopped, and other steps in the parallel steps continue to be executed.
[0080] like Figure 3 As shown, in one embodiment of the present invention, the fault processing module 30 further includes:
[0081] The work step belonging determination unit 71 is used to determine the combined sub-process in which the same work step is located in the combined process; when the same work step is in different combined sub-processes, the priority attribute in the corresponding sub-process is determined, and the same work step is set to three types of alarm codes by default;
[0082] The key process step processing unit 72 is used to determine whether the same process step triggers a suspension fault mode due to a fault after the preceding key process step is executed, when the same process step is a key process step in the first combined sub-process, and when it is determined that the suspension fault mode is triggered, upgrade the third-class alarm code of the same process step to a second-class alarm code and report it, and stop immediately suspending the first combined sub-process;
[0083] The minor process step processing unit 73 is used for, when the same process step is a minor process step in the second combined sub-process, not judging whether the same process step triggers a pause fault mode due to a fault after the preceding key process step is completed, and continuing to execute subsequent key processes.
[0084] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A fault handling method for a combined process, characterized in that: include: Forming response classifications and alarm codes corresponding to the response classifications for the pause failure modes of each process step in the combined process; According to the priority attribute division of each step in the combined process, the alarm code of the corresponding pause fault mode is set; When the work step pause fault mode is triggered during the execution of the combined process, the pause fault processing is performed according to the alarm code.
2. The fault handling method for a combined process according to claim 1, characterized in that: The alarm code setting rules include: A two-level alarm code is set for the pause failure mode of the same work step, and the two-level alarm code is set as the second-class alarm code and the third-class alarm code in the system alarm system.
3. The fault handling method for a combined process according to claim 2, characterized in that: The pause fault processing according to the alarm code includes: In a single-step process, a second-class alarm code is set when the work step is a critical work step; the single-step process is suspended when the work step triggers a suspend fault mode due to a fault; a second-class alarm code is set when the work step is a secondary work step, and the single-step process is suspended when the work step triggers a suspend fault mode due to a fault.
4. The fault handling method for a combined process according to claim 2, characterized in that: The pause fault processing according to the alarm code includes: In the combined process, when the work step is a secondary work step, the third type of alarm code is set; when the work step triggers the pause fault mode for the first time due to a fault, the third type of alarm code is reported, and only the control output of the work step to the controlled object is stopped; when the work step triggers the pause fault mode for the second time, the second type of alarm code is reported, and the control output of the work step to the controlled object is stopped.
5. The fault handling method for a combined process according to claim 2, characterized in that: The pause fault processing according to the alarm code includes: In the combined process, when there is a critical step in the parallel process, a second-class alarm code is set for the critical step. When the critical step triggers the suspension fault mode due to a fault, the combined process is immediately suspended while reporting the second-class alarm code, and the control output of the parallel process to all controlled objects is stopped; In the combined process, when there is a secondary step in the parallel step, three types of alarm codes are set for the secondary step. When the secondary step triggers the pause fault mode due to a fault, the three types of alarm codes are reported and only the control output of the controlled object of this secondary step is stopped, and other steps in the parallel step continue to be executed.
6. The fault handling method for a combined process according to claim 2, characterized in that: The pause fault processing according to the alarm code includes: In the combined process, determine the combined sub-process in which the same work step is located; when the same work step is in different combined sub-processes, determine the priority attributes in the corresponding sub-processes, and the same work step is set to three types of alarm codes by default; When the same process step is a critical process step in the first combined sub-process, after the preceding critical process step is executed, it is determined whether the same process step triggers a suspension fault mode due to a fault. When it is determined that the suspension fault mode is triggered, the third-class alarm code of the same process step is upgraded to a second-class alarm code and reported, and the first combined sub-process is immediately suspended; When the same process step is a secondary process step in the second combined sub-process, after the preceding critical process step is completed, it is not determined whether the same process step triggers a pause fault mode due to a fault, and the subsequent critical process steps continue to be executed.
7. A fault handling device for a combined process, characterized in that: include: A memory, used to store program codes of the fault handling method for the combined process according to any one of claims 1 to 6 during the processing; A processor is used to run the program code.
8. A fault handling device for a combined process, characterized in that: include: An alarm code configuration module, used to form a response classification for the pause failure mode of each step in the combined process and form an alarm code corresponding to the response classification; The alarm code mapping module is used to set the alarm code of the corresponding pause fault mode according to the priority attribute division of each step in the combined process; The fault handling module is used to perform pause fault handling according to the alarm code when the work step pause fault mode is triggered during the execution of the combined process.
9. The fault handling device for a combined process as claimed in claim 8, characterized in that: The fault processing module comprises: The key attribute processing unit is used to set a second-class alarm code for a key step when there is a key step in the parallel step in the combined process. When the key step triggers a suspension fault mode due to a fault, the second-class alarm code is reported and the combined process is immediately suspended, and the control output of the parallel step to all controlled objects is stopped; The secondary attribute processing unit is used to set three types of alarm codes for the secondary steps when there are secondary steps in the parallel steps in the combined process. When the secondary step triggers the pause fault mode due to a fault, the three types of alarm codes are reported while only the control output of the controlled object of this secondary step is stopped, and other steps in the parallel steps continue to be executed.
10. The fault handling device for a combined process according to claim 8, characterized in that: The fault processing module comprises: The work step affiliation discrimination unit is used to determine the combined sub-process in which the same work step is located in the combined process; when the same work step is in different combined sub-processes, the priority attribute in the corresponding sub-process is determined. The same work step is set to three types of alarm codes by default; The key process step processing unit is used to determine whether the same process step triggers a suspension fault mode due to a fault after the preceding key process step is executed, when the same process step is a key process step in the first combined sub-process. When it is determined that the suspension fault mode is triggered, the third-class alarm code of the same process step is upgraded to a second-class alarm code for reporting and the first combined sub-process is stopped and immediately suspended; The secondary process step processing unit is used for, when the same process step is a secondary process step in the second combined sub-process, not judging whether the same process step is in a suspended fault mode due to a fault after the preceding key process step is completed, and continuing to execute subsequent key processes.