Controller cold backup control method

By constructing standard sample data and interlocking circuits, cold backup of the controller is achieved, which solves the problems of high power consumption and signal conflict in the hot backup scheme of the controller, improves the reliability and stability of the control system, and enables accurate fault location and handling.

CN118885338APending Publication Date: 2024-11-01WUHAN CHANGHAI ELECTRIC TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912296.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Existing controller hot backup solutions consume significant computing power and operating power, and are prone to signal conflicts, affecting the reliability and stability of the control system.

Method used

A cold backup control method is adopted, which constructs standard sample data through waveform acquisition and feature extraction. The primary controller and the backup controller are interlocked and switched only in case of failure, avoiding signal conflicts between multiple controllers. The fault type is determined by comparing the standard sample data and the controller is switched accordingly.

Benefits of technology

Without increasing the operating power of the equipment, the reliability and fault tolerance of the control system are improved, the stability of the controller operation is enhanced, the decision-making problem of signal conflict is avoided, and accurate fault location and handling are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885338A_ABST
    Figure CN118885338A_ABST
Patent Text Reader

Abstract

The invention discloses a controller cold backup control method. According to the method, standard sample data is constructed based on all task instructions needing to be executed by a controller; if the master controller fails to execute the task instruction, comparing the current task output process data with the standard sample data, if the data are inconsistent, re-executing the task instruction by the master controller, if the data are consistent, comparing the current task execution mechanism process data with the standard sample data, and if the data are inconsistent, re-executing the task instruction by the master controller. If yes, the master controller is switched to the standby controller, and if the data are consistent, it is judged that the task instruction is executed successfully; and the standby controller continues to execute the task instruction failed to be executed by the main controller. During normal operation, only one of the main controller and the standby controller is in an operation state. On the premise of not increasing the operation power of the equipment, the reliability and the fault-tolerant rate of the control system are enhanced, the operation stability of the controller is improved, and the decision problem of signal conflict of multiple controllers is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electrical control technology, and more specifically, to a controller cold backup control method. Background Art

[0002] In the control system, the controller is a task-based control unit. First, the background sends the task instruction to the controller, and the controller receives and executes the task instruction. During the actual task execution process, when the controller fails, it will cause the task instruction to fail to execute smoothly.

[0003] In order to ensure the reliable execution of tasks, a multi-controller redundancy solution is generally adopted. The hot backup in the prior art is to enable multiple controllers at the same time, receive data input, perform logical operations, and output at the same time. In addition, there is a direct coupling between the input signal and the output signal of the same channel of the main and standby controllers. When the signals conflict, complex data decisions need to be made to determine which controller's data is accurate. Therefore, this mode of operation consumes a large amount of computing power and operating power, and is also prone to errors, making it difficult to ensure the reliability and stability of the control system. Summary of the invention

[0004] In response to at least one defect or improvement need in the prior art, the present application provides a controller cold backup control method to enhance the reliability and fault tolerance of the control system, improve the stability of controller operation, and avoid decision-making problems caused by multi-controller signal conflicts without increasing the operating power of the equipment.

[0005] To achieve the above object, the present application provides a controller cold backup control method, comprising:

[0006] Based on all the task instructions that need to be executed by the controller, standard sample data is constructed through waveform acquisition and feature extraction operations;

[0007] The main controller receives the task instruction and generates the current task output process data and the current task execution mechanism process data;

[0008] If the main controller fails to execute the task instruction, the first judgment process is entered to compare the current task output process data with the standard sample data. If the data are inconsistent, the main controller re-executes the task instruction. If the data are consistent, the second judgment process is entered;

[0009] Entering the second judgment process, comparing the process data of the current task execution mechanism with the standard sample data, if the data are inconsistent, the main controller is switched to the standby controller, if the data are consistent, it is determined that the task instruction is executed successfully;

[0010] The standby controller continues to execute the task instruction that failed to be executed by the active controller;

[0011] During normal operation, only one of the main controller and the standby controller is in operation.

[0012] Furthermore, the construction of standard sample data based on all the task instructions to be executed by the controller through waveform acquisition and feature extraction operations includes:

[0013] Count all the task instructions that need to be executed by the controller, combine the outputs used when each task instruction is executed normally in an orderly manner, and build an output process data sample set;

[0014] The controller drives the motor to rotate after output, collects the current waveform when the motor rotates, extracts the characteristic quantity, and constructs the actuator process data sample set;

[0015] The output process data sample set and the actuator process data sample set constitute the standard sample data.

[0016] Furthermore, the output data time series set of a single task is the output process data, and the actuator data time series set of a single task is the actuator process data;

[0017] The output process data of multiple tasks constitute the output process data sample set, and the actuator process data of multiple tasks constitute the actuator process data sample set;

[0018] The data types included in the data timing set include one or more of signal type, signal quantity, signal occurrence sequence, signal time interval, signal duration, and waveform data of the actuator.

[0019] Furthermore, during normal operation, the implementation method in which only one of the active controller and the standby controller is in operation includes:

[0020] The main controller and the standby controller adopt an interlocking circuit.

[0021] Furthermore, the output process data of the current task is compared with the standard sample data. If the data are inconsistent, it is determined to be a software execution failure, and the main controller re-executes the task instruction.

[0022] Furthermore, the second judgment process is entered to compare the process data of the current task execution mechanism with the standard sample data. If the data are inconsistent, it is judged as a controller hardware failure, and the main controller is switched to the backup controller.

[0023] Furthermore, the standby controller continues to execute the task instruction that failed to be executed by the active controller, including:

[0024] The standby controller requests and executes the latest task instruction in the first cycle of power-on to achieve the execution effect of the task instruction that failed to be executed by the main controller.

[0025] Furthermore, the operation mode of the interlocking circuit includes:

[0026] The main controller drives the first actuator, and the normally closed contact of the first actuator controls the power input of the standby controller; the standby controller drives the second actuator, and the normally closed contact of the second actuator controls the power input of the main controller;

[0027] When the system starts normally, the main and standby controllers are powered on and run at the same time. After a preset time, the main controller drives the first actuator, the first actuator acts, its normally closed contact is disconnected, and the standby controller is powered off and shut down.

[0028] When the main and standby controllers switch, the main controller resets the first actuator, its normally closed contact resets, the standby controller is powered on and runs, the standby controller drives the second actuator, the second actuator acts, its normally closed contact opens, the main controller is powered off and shuts down, and the standby controller runs alone.

[0029] Furthermore, the comparison of the current task output process data with the standard sample data is specifically as follows:

[0030] The output process data of the current task is compared with the output process data sample set in the standard sample data.

[0031] Furthermore, the comparison of the current task execution mechanism process data with the standard sample data is specifically as follows:

[0032] The current task execution mechanism process data is compared with the execution mechanism process data sample set in the standard sample data.

[0033] In general, the above technical solutions conceived by the present application can achieve the following beneficial effects compared with the prior art:

[0034] (1) The present application discloses a controller cold backup control method, which constructs standard sample data based on all task instructions that need to be executed by the controller; if the main controller fails to execute the task instruction, the current task output process data is compared with the standard sample data. If the data is inconsistent, the main controller re-executes the task instruction. If the data is consistent, the current task execution mechanism process data is compared with the standard sample data. If the data is inconsistent, the main controller switches to the backup controller. If the data is consistent, it is determined that the task instruction is successfully executed; the backup controller continues to execute the task instruction that the main controller failed to execute. During normal operation, one and only one of the main and backup controllers is in operation. Without increasing the operating power of the equipment, the present application enhances the reliability and fault tolerance of the control system, improves the stability of the controller operation, and avoids the decision-making problem of multi-controller signal conflicts.

[0035] (2) The present application compares the current task output process data with the standard sample data. If the data are inconsistent, it is judged as a software execution failure, and the main controller re-executes the task instruction. The current task execution mechanism process data is compared with the standard sample data. If the data are inconsistent, it is judged as a controller hardware failure, and the main controller is switched to the backup controller. The method of the present application includes a fault judgment and positioning based on sample data and an exception handling mechanism, which can accurately locate the cause of the fault and perform corresponding exception handling, thereby improving the controllability and fault tolerance of the control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A core flow chart of a task-based controller cold backup control method provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the electrical interlocking structure of the main and standby controllers provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram for establishing a sample data set provided in an embodiment of the present application;

[0040] Figure 4 Exception handling flowchart provided for the embodiment of the present application;

[0041] Figure 5 A schematic diagram of the structure of the interlocking circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0043] The terms "first", "second" or "nth" in the specification, claims or the above-mentioned drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0044] As mentioned in the background technology section of the specification, the hot backup in the prior art is to enable multiple controllers at the same time, receive data input, perform logical operations, and output at the same time. In addition, there is a direct coupling between the input signal and the output signal of the same channel of the main and standby controllers. When the signals conflict, complex data decisions need to be made to determine which controller data is accurate. Therefore, the operation mode of the hot backup redundancy scheme in the prior art requires a large amount of computing power and operating power, and it is also easy to make mistakes, making it difficult to ensure the reliability and stability of the control system. In view of this technical status, the present application proposes a task-based controller cold backup control method, which can enhance the reliability and fault tolerance of the control system without increasing the operating power of the equipment, improve the stability of the controller operation, and avoid the decision-making problem of multi-controller signal conflicts.

[0045] refer to Figure 1-Figure 5 An embodiment of the present application proposes a task-based controller cold backup control method, which may include the following steps.

[0046] Step 1: Based on all the task instructions that need to be executed by the controller, standard sample data is constructed through waveform acquisition and feature extraction operations.

[0047] In one embodiment, specifically, all task instructions that need to be executed by the controller are counted, and the outputs used when each task instruction is normally executed are combined in order to construct an output process data sample set.

[0048] After the controller outputs, it will drive the motor to rotate, collect the current waveform of each motor when it rotates, and extract the characteristic quantity as the actuator process data sample set.

[0049] The output process data sample set and the actuator process data sample set constitute the standard sample data. The standard sample data will be written into the controller program as a part of the controller program.

[0050] refer to Figure 3 , the controller program can be considered as a task-based function block. Each task includes task instructions, namely input data, output data and actuator data, etc. The establishment of standard sample data is based on the input data, output data and / or actuator data of the controller. Input data includes input digital data, input analog data and / or input communication data, etc. The ordered combination of input data for normal execution of a single task is called a task input process data sample, and the set of input process data samples of all tasks is called an input process data sample set. Similarly, the ordered combination of all output data of all tasks is called an output process data sample set; the ordered combination of actuator data corresponding to all tasks forms an actuator process data sample set. The output process data sample set and the actuator process data sample set form a total set, which is called standard sample data.

[0051] It can also be said that the input data time series set of a single task is the input process data, the output data time series set is the output process data, and the actuator data time series set is the actuator process data. The input process data, output process data, and actuator process data set of multiple tasks are sample data sets. The data types contained in the data time series set include one or more of the signal type, signal quantity, signal occurrence order, signal time interval, signal duration, and waveform data of the actuator.

[0052] When a task is executed, the ordered combination of the input data of the current task is called the task input process data; the ordered combination of the output data of the current task is called the task output process data; and the execution mechanism data of the current task is called the task execution mechanism process data.

[0053] The main and standby controllers use a power-on and power-off interlocking control method to ensure that only one controller is in operation. The main controller starts running first. When it is determined that the main controller fails to execute a task, the standby controller will automatically power on and start, and the main controller will automatically power off and stop running.

[0054] refer to Figure 2 The interlocking circuit includes a power module, a main controller, a backup controller, an actuator 1 (the actuator can be a component such as a relay) and an actuator 2.

[0055] The main controller drives actuator 1, and the normally closed contact of actuator 1 controls the power input of the standby controller; the standby controller drives actuator 2, and the normally closed contact of actuator 2 controls the power input of the main controller. When the interlock circuit starts normally, the main and standby controllers are powered on and run at the same time. After a period of time, the main controller drives actuator 1, actuator 1 acts, its normally closed contact is disconnected, and the standby controller is powered off and shut down. When the main and standby controllers are switched, the main controller resets actuator 1, its normally closed contact is reset, and the standby controller is powered on and runs. The standby controller drives actuator 2, actuator 2 acts, its normally closed contact is disconnected, the main controller is powered off and shut down, and the standby controller runs alone.

[0056] More specifically, refer to Figure 5 In the interlock circuit power-on startup phase, the power module U starts working, and the power output terminal (+ and -) provides control power to the controllers A1 and A2 through the normally closed contacts of K1 and K2. The two controllers are powered on at the same time and enter the power-on startup phase.

[0057] After the two controllers are powered on at the same time and enter the power-on startup phase, after time T1, the main controller A1 controls the output q1 to be set (output high level), the relay K1 is activated, its normally closed contact is disconnected, and the standby controller A2 loses power and shuts down. The interlock circuit enters the normal operation state, at which time, the main controller A1 operates alone.

[0058] Step 2: The main controller receives the task instruction and generates the current task output process data and the current task execution mechanism process data.

[0059] In one embodiment, after receiving the task instruction, the main controller starts to record input data, output data and actuator data, and generates current task output process data and current task actuator process data.

[0060] Step 3: If the main controller fails to execute the task instruction, it enters the first judgment process and compares the current task output process data with the standard sample data. If the data are inconsistent, the main controller re-executes the task instruction. If the data are consistent, it enters the second judgment process.

[0061] refer to Figure 4In one embodiment, when the main controller receives a task instruction (when the main controller is running, the standby controller cannot receive the latest task instruction because it is in a power-off shutdown state.) and the task execution fails, the fault type is first determined. Enter the first judgment process, compare the output process data of the current task with the output process data sample set in the standard sample data written by the controller program inside the main controller. When the data is inconsistent, it can be determined that a software execution failure has occurred. At this time, the main controller re-executes the current task instruction. When the data is consistent, enter the second judgment process.

[0062] Step 4, enter the second judgment process, compare the current task execution mechanism process data with the standard sample data, if the data are inconsistent, the main controller switches to the backup controller, if the data are consistent, it is determined that the task instruction is executed successfully.

[0063] refer to Figure 4 In one embodiment, the second judgment process is entered to compare the current task execution mechanism process data with the execution mechanism process data sample set in the standard sample data. When the data are inconsistent, it can be determined that a controller hardware failure has occurred. At this time, the main controller is immediately switched to the backup controller; when the data are consistent, it can be considered that the task execution is successful and the controller input data is normal.

[0064] The method of the present application includes a fault judgment and location based on sample data and an exception handling mechanism, which can accurately locate the cause of the fault and perform corresponding exception handling, thereby improving the controllability and fault tolerance of the control system.

[0065] Step 5: The standby controller continues to execute the task instruction that failed to be executed by the active controller.

[0066] In one embodiment, after the switch between the primary and standby controllers is completed, within the first cycle of the standby controller startup, the standby controller requests the latest task instruction from the background, and re-executes the task instruction after receiving the task instruction issued by the background to continue executing the task instruction that failed to be executed by the primary controller in the previous round.

[0067] Without increasing the operating power of the equipment, the present application enhances the reliability and fault tolerance of the control system, improves the stability of the controller operation, and avoids the decision-making problem of multi-controller signal conflicts.

[0068] The flowchart and / or block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method or computer program product according to various embodiments of the present application. In this regard, each box in the flowchart and / or block diagram can represent a part of a module, program segment or code, and a part of the above-mentioned module, program segment or code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0069] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the technical features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope of the present application.

[0070] Although the present application has been shown and described with reference to specific exemplary embodiments of the present application, it should be understood by those skilled in the art that various changes in form and details may be made to the present application without departing from the spirit and scope of the present application as defined by the appended claims and their equivalents. Therefore, the scope of the present application should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A controller cold backup control method, It is characterized in that include: Based on all the task instructions that need to be executed by the controller, standard sample data is constructed through waveform acquisition and feature extraction operations; The main controller receives the task instruction and generates the current task output process data and the current task execution mechanism process data; If the main controller fails to execute the task instruction, the first judgment process is entered to compare the current task output process data with the standard sample data. If the data are inconsistent, the main controller re-executes the task instruction. If the data are consistent, the second judgment process is entered; Entering the second judgment process, comparing the process data of the current task execution mechanism with the standard sample data, if the data are inconsistent, the main controller is switched to the standby controller, if the data are consistent, it is determined that the task instruction is executed successfully; The standby controller continues to execute the task instruction that failed to be executed by the active controller; During normal operation, only one of the main controller and the standby controller is in operation.

2. The controller cold backup control method according to claim 1, It is characterized in that The construction of standard sample data based on all the task instructions that need to be executed by the controller through waveform acquisition and feature extraction operations includes: Count all the task instructions that need to be executed by the controller, combine the outputs used when each task instruction is executed normally in an orderly manner, and build an output process data sample set; The controller drives the motor to rotate after output, collects the current waveform when the motor rotates, extracts the characteristic quantity, and constructs the actuator process data sample set; The output process data sample set and the actuator process data sample set constitute the standard sample data.

3. The controller cold backup control method according to claim 2, It is characterized in that The output data time series set of a single task is the output process data, and the actuator data time series set of a single task is the actuator process data; The output process data of multiple tasks constitute the output process data sample set, and the actuator process data of multiple tasks constitute the actuator process data sample set; The data types included in the data timing set include one or more of signal type, signal quantity, signal occurrence sequence, signal time interval, signal duration, and waveform data of the actuator.

4. The controller cold backup control method according to claim 1, It is characterized in that In normal operation, the implementation method in which only one of the active controller and the standby controller is in operation includes: The main controller and the standby controller adopt an interlocking circuit.

5. The controller cold backup control method according to claim 2, It is characterized in that The current task output process data is compared with the standard sample data. If the data are inconsistent, it is determined to be a software execution failure, and the main controller re-executes the task instruction.

6. The controller cold backup control method according to claim 2, It is characterized in that Enter the second judgment process, compare the process data of the current task execution mechanism with the standard sample data, if the data are inconsistent, it is judged that the controller hardware fails, and the main controller is switched to the backup controller.

7. The controller cold backup control method according to claim 1, It is characterized in that The standby controller continues to execute the task instruction that the active controller fails to execute, including: The standby controller requests and executes the latest task instruction in the first cycle of power-on to achieve the execution effect of the task instruction that failed to be executed by the main controller.

8. The controller cold backup control method according to claim 4, It is characterized in that The operation mode of the interlock circuit includes: The main controller drives the first actuator, and the normally closed contact of the first actuator controls the power input of the standby controller; the standby controller drives the second actuator, and the normally closed contact of the second actuator controls the power input of the main controller; When the system starts normally, the main and standby controllers are powered on and run at the same time. After a preset time, the main controller drives the first actuator, the first actuator acts, its normally closed contact is disconnected, and the standby controller is powered off and shut down. When the main and standby controllers switch, the main controller resets the first actuator, its normally closed contact resets, the standby controller is powered on and runs, the standby controller drives the second actuator, the second actuator acts, its normally closed contact opens, the main controller is powered off and shuts down, and the standby controller runs alone.

9. The controller cold backup control method according to claim 2 or 5, It is characterized in that The specific steps of comparing the current task output process data with the standard sample data are as follows: The output process data of the current task is compared with the output process data sample set in the standard sample data.

10. The controller cold backup control method according to claim 2 or 6, It is characterized in that The specific steps of comparing the current task execution mechanism process data with the standard sample data are as follows: The current task execution mechanism process data is compared with the execution mechanism process data sample set in the standard sample data.