CN118885338A - Controller cold backup control method - Google Patents
Controller cold backup control method Download PDFInfo
- Publication number
- CN118885338A CN118885338A CN202410912296.8A CN202410912296A CN118885338A CN 118885338 A CN118885338 A CN 118885338A CN 202410912296 A CN202410912296 A CN 202410912296A CN 118885338 A CN118885338 A CN 118885338A
- Authority
- CN
- China
- Prior art keywords
- controller
- data
- task
- process data
- actuator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 125
- 230000008569 process Effects 0.000 claims abstract description 97
- 230000007246 mechanism Effects 0.000 claims abstract description 23
- 238000000605 extraction Methods 0.000 claims description 5
- 239000000284 extract Substances 0.000 claims description 3
- 108010076504 Protein Sorting Signals Proteins 0.000 claims description 2
- 230000000694 effects Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Safety Devices In Control Systems (AREA)
Abstract
本申请公开了一种控制器冷备份控制方法,该方法基于控制器所有需要执行的任务指令构建了标准样本数据;若主用控制器执行任务指令失败,则将当前任务输出过程数据与标准样本数据进行比对,若数据不一致,则主用控制器重新执行任务指令,若数据一致,则将当前任务执行机构过程数据与标准样本数据进行比对,若数据不一致,则由主用控制器切换至备用控制器,若数据一致,则判定任务指令执行成功;备用控制器继续执行主用控制器执行失败的任务指令。在正常运行时,主备用控制器有且仅有一个处于运行状态。本申请在不增加设备运行功率的前提下,增强了控制系统的可靠性和容错率,提高了控制器运行的稳定性,避免了多控制器信号冲突的决策问题。
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.
Description
技术领域Technical Field
本申请涉及电气控制技术领域,更具体地,涉及一种控制器冷备份控制方法。The present application relates to the field of electrical control technology, and more specifically, to a controller cold backup control method.
背景技术Background Art
在控制系统中,控制器是一种基于任务的控制单元。首先后台向控制器发送任务指令,控制器接收并执行任务指令。在实际任务执行的过程中,当控制器发生故障时,会导致无法顺利执行任务指令。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.
为了任务的可靠执行,一般采取多控制器冗余的方案,现有技术中的热备份为多个控制器同时启用,同时接收数据输入,进行逻辑运算,并同时输出。还有,主备用控制器相同通道输入信号和输出信号存在直接耦合,在信号冲突时,需要进行复杂的数据决策,以此来判断哪个控制器的数据是准确的。因此,该种运行方式需要消耗较大的算力及运行功率,且也容易出差错致使控制系统的可靠性和稳定性难以得到保证。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
针对现有技术的至少一个缺陷或改进需求,本申请提供了一种控制器冷备份控制方法,用以实现在不增加设备运行功率的前提下,增强控制系统的可靠性和容错率,提高控制器运行的稳定性,避免多控制器信号冲突的决策问题。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.
为实现上述目的,本申请提供了一种控制器冷备份控制方法,包括:To achieve the above object, the present application provides a controller cold backup control method, comprising:
基于控制器所有需要执行的任务指令,通过波形采集和特征量提取操作,构建标准样本数据;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.
进一步地,所述基于控制器所有需要执行的任务指令,通过波形采集和特征量提取操作,构建标准样本数据包括: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:
统计控制器所有需要执行的任务指令,将各个任务指令正常执行时用到的输出进行有序组合,构建输出过程数据样本集合;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.
进一步地,单一任务的输出数据时序集合为输出过程数据,单一任务的执行机构数据时序集合为执行机构过程数据;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;
多项任务的输出过程数据构成所述输出过程数据样本集合,多项任务的执行机构过程数据构成所述执行机构过程数据样本集合;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.
进一步地,在正常运行时,所述主用控制器和备用控制器有且仅有一个处于运行状态的实现方式包括:Furthermore, during 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.
进一步地,将当前任务输出过程数据与标准样本数据进行比对,若数据不一致,则判断为软件执行故障,所述主用控制器重新执行所述任务指令。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.
进一步地,进入所述第二判断流程,将当前任务执行机构过程数据与标准样本数据进行比对,若数据不一致,则判断为控制器硬件故障,由所述主用控制器切换至备用控制器。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.
进一步地,所述备用控制器继续执行所述主用控制器执行失败的任务指令包括:Furthermore, the standby controller continues to execute the task instruction that failed to be executed by the active controller, 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.
进一步地,所述互锁电路的运行方式包括:Furthermore, the operation mode of the interlocking 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.
进一步地,所述将当前任务输出过程数据与标准样本数据进行比对具体为:Furthermore, the comparison of the current task output process data with the standard sample data is specifically as follows:
将当前任务输出过程数据与标准样本数据中的所述输出过程数据样本集合进行比对。The output process data of the current task is compared with the output process data sample set in the standard sample data.
进一步地,所述将当前任务执行机构过程数据与标准样本数据进行比对具体为:Furthermore, the comparison of the current task execution mechanism process data with the standard sample data is specifically as follows:
将当前任务执行机构过程数据与标准样本数据中的所述执行机构过程数据样本集合进行比对。The current task execution mechanism process data is compared with the execution mechanism process data sample set in the standard sample data.
总体而言,通过本申请所构思的以上技术方案与现有技术相比,能够取得下列有益效果:In general, the above technical solutions conceived by the present application can achieve the following beneficial effects compared with the prior art:
(1)本申请公开了一种控制器冷备份控制方法,该方法基于控制器所有需要执行的任务指令构建了标准样本数据;若主用控制器执行任务指令失败,则将当前任务输出过程数据与标准样本数据进行比对,若数据不一致,则主用控制器重新执行任务指令,若数据一致,则将当前任务执行机构过程数据与标准样本数据进行比对,若数据不一致,则由主用控制器切换至备用控制器,若数据一致,则判定任务指令执行成功;备用控制器继续执行主用控制器执行失败的任务指令。在正常运行时,主备用控制器有且仅有一个处于运行状态。本申请在不增加设备运行功率的前提下,增强了控制系统的可靠性和容错率,提高了控制器运行的稳定性,避免了多控制器信号冲突的决策问题。(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.
(2)本申请将当前任务输出过程数据与标准样本数据进行比对,若数据不一致,则判断为软件执行故障,主用控制器重新执行任务指令。将当前任务执行机构过程数据与标准样本数据进行比对,若数据不一致,则判断为控制器硬件故障,由主用控制器切换至备用控制器。本申请的方法包含了基于样本数据的故障判断定位以及异常处理机制,能够精准地定位故障原因并进行相应的异常处理,从而提高了控制系统的可控性和容错率。(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
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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.
图1为本申请实施例提供的一种基于任务的控制器冷备份控制方法的核心流程图;FIG1 is a core flow chart of a task-based controller cold backup control method provided in an embodiment of the present application;
图2为本申请实施例提供的主备用控制器电气互锁结构示意图;FIG2 is a schematic diagram of the electrical interlocking structure of the main standby controller provided in an embodiment of the present application;
图3为本申请实施例提供的样本数据集合建立示意图;FIG3 is a schematic diagram of establishing a sample data set provided in an embodiment of the present application;
图4为本申请实施例提供的异常处理流程图;FIG4 is a flowchart of an exception handling method provided in an embodiment of the present application;
图5为本申请实施例提供的互锁电路的结构示意图。FIG5 is a schematic diagram of the structure of the interlocking circuit provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细地说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。此外,下面所描述的本申请各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。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.
本申请的说明书、权利要求书或上述附图中的术语“第一”、“第二”或“第n”等是用于区别不同对象,而不是用于描述特定顺序的。此外,术语“包括”或“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备并没有限定于已列出的步骤或单元,而是可选地还可以包括没有列出的步骤或单元,或可选地还可以包括对于这些过程、方法、产品或设备固有的其他步骤或单元。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.
正如说明书背景技术部分提及的,现有技术中的热备份为多个控制器同时启用,同时接收数据输入,进行逻辑运算,并同时输出。还有,主备用控制器相同通道输入信号和输出信号存在直接耦合,在信号冲突时,需要进行复杂的数据决策,以此来判断哪个控制器数据是准确的。因此,现有技术中的热备份冗余方案的运行方式需要消耗较大的算力及运行功率,且也容易出差错致使控制系统的可靠性和稳定性难以得到保证。鉴于此种技术现状,本申请提出了一种基于任务的控制器冷备份控制方法,该控制方法可在不增加设备运行功率的前提下,增强控制系统的可靠性和容错率,提高控制器运行的稳定性,避免多控制器信号冲突的决策问题。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.
参考图1-图5,本申请的一个实施例提出了一种基于任务的控制器冷备份控制方法,该控制方法可以包括如下一些步骤。With reference to FIG. 1 to FIG. 5 , an embodiment of the present application proposes a task-based controller cold backup control method, which may include the following steps.
步骤1、基于控制器所有需要执行的任务指令,通过波形采集和特征量提取操作,构建标准样本数据。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.
在一个实施例中,具体的,统计控制器所有需要执行的任务指令,将各个任务指令正常执行时用到的输出进行有序组合,构建输出过程数据样本集合。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.
控制器输出后,会驱动电机转动,采集此时各个电机转动时的电流波形,提取特征量,以此作为执行机构过程数据样本集合。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.
输出过程数据样本集合和执行机构过程数据样本集合组成所述标准样本数据。标准样本数据作为控制器程序的一部分会写进控制器程序中。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.
参考图3,控制器程序可以认为是一个个基于任务的功能块,每一项任务包括任务指令,即输入数据、输出数据和执行机构数据等,标准样本数据的建立以控制器的输入数据、输出数据和/或执行机构数据为基础。输入数据包括输入数字量数据、输入模拟量数据和/或输入通讯数据等,单个任务正常执行的输入数据的有序组合称为一个任务输入过程数据样本,所有任务的输入过程数据样本的集合称为输入过程数据样本集合。同理,将所有任务所有输出数据的有序组合称为输出过程数据样本集合;所有任务对应执行机构数据的有序组合,形成执行机构过程数据样本集合。输出过程数据样本集合和执行机构过程数据样本集合形成一个总的集合,称为标准样本数据。Referring 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.
也可以说,单一任务的输入数据时序集合为输入过程数据,输出数据时序集合为输出过程数据,执行机构数据时序集合为执行机构过程数据。多项任务的输入过程数据、输出过程数据、执行机构过程数据集合为样本数据集合。数据时序集合中包含的数据类型包括信号类型、信号数量、信号发生顺序、信号时间间隔、信号持续时间以及执行机构的波形数据中的一种或多种。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.
某一任务执行时,当前任务的输入数据有序组合称为任务输入过程数据;当前任务的输出数据有序组合称为任务输出过程数据;当前任务的执行机构数据称为任务执行机构过程数据。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.
主备用控制器采用了上下电互锁的控制方法,以确保有且仅有一个控制器处于运行状态。主用控制器先启动运行,在判断主用控制器任务执行失败时,备用控制器才自行上电启动,主用控制器自行下电停止运行。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, and when it is determined that the main controller task execution fails, the standby controller automatically powers on and starts, and the main controller automatically powers off and stops running.
参考图2,互锁电路包括电源模块、主用控制器、备用控制器、执行元件1(执行元件可采用例如继电器等元器件)和执行元件2。2 , the interlocking circuit includes a power module, a main controller, a backup controller, an actuator 1 (the actuator may be a component such as a relay) and an actuator 2.
主用控制器驱动执行元件1,执行元件1常闭触点控制备用控制器电源输入;备用控制器驱动执行元件2,执行元件2常闭触点控制主用控制器电源输入。互锁电路正常启动时,主备用控制器同时得电运行,一段时间后,主用控制器驱动执行元件1,执行元件1动作,其常闭触点断开,备用控制器断电停机。主备用控制器切换时,主用控制器复归执行元件1,其常闭触点复归,备用控制器得电运行,备用控制器驱动执行元件2,执行元件2动作,其常闭触点断开,主用控制器断电停机,备用控制器单独运行。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.
更具体的,参考图5,在互锁电路上电启动阶段,电源模块U启动工作,电源输出端(+和﹣)通过K1、K2的常闭触点给控制器A1、A2提供控制电源,两个控制器同时得电进入上电启动阶段。More specifically, referring to Figure 5, during the power-on startup phase of the interlock circuit, the power module U starts working, and the power output terminals (+ and -) provide control power to 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.
两个控制器同时得电进入上电启动阶段后,经过时间T1后,主用控制器A1控制输出q1置位(输出高电平),继电器K1动作,其常闭触点断开,备用控制器A2失电停机。互锁电路进入正常运行状态,此时,主用控制器A1单独运行。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.
步骤2、主用控制器接收任务指令,生成当前任务输出过程数据和当前任务执行机构过程数据。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.
在一个实施例中,当主用控制器收到任务指令后,开始记录输入数据、输出数据和执行机构数据,并生成当前任务输出过程数据和当前任务执行机构过程数据。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.
步骤3、若所述主用控制器执行任务指令失败,则进入第一判断流程,将当前任务输出过程数据与标准样本数据进行比对,若数据不一致,则所述主用控制器重新执行所述任务指令,若数据一致,则进入第二判断流程。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.
参考图4,在一个实施例中,当主用控制器收到任务指令(当主用控制器运行时,由于备用控制器处于断电停机状态,备用控制器无法接收到最新的任务指令。)且任务执行不成功时,先进行故障类型判断。进入第一判断流程,将当前任务输出过程数据与主用控制器内部的控制器程序所写入的标准样本数据中的输出过程数据样本集合进行比对,当数据不一致时,则可判定为发生了软件执行故障,此时,主用控制器重新执行一次当前的任务指令。当数据一致时,则进入到第二判断流程。Referring to FIG4 , in 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 the standby controller is in a power-off shutdown state.) and the task execution is unsuccessful, 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.
步骤4、进入所述第二判断流程,将当前任务执行机构过程数据与标准样本数据进行比对,若数据不一致,则由所述主用控制器切换至备用控制器,若数据一致,则判定任务指令执行成功。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.
参考图4,在一个实施例中,进入所述第二判断流程,将当前任务执行机构过程数据与标准样本数据中的执行机构过程数据样本集合进行比对,当数据不一致时,则可判定为发生了控制器硬件故障,此时,即刻由主用控制器切换至备用控制器;当数据一致时,则可认为任务执行成功,控制器输入数据正常。Referring 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.
本申请的方法包含了基于样本数据的故障判断定位以及异常处理机制,能够精准地定位故障原因并进行相应的异常处理,从而提高了控制系统的可控性和容错率。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.
步骤5、所述备用控制器继续执行所述主用控制器执行失败的任务指令。Step 5: The standby controller continues to execute the task instruction that failed to be executed by the active controller.
在一个实施例中,主备用控制器切换完成后,在备用控制器启动的第一个周期内,备用控制器向后台请求最新的一次任务指令,接收到后台下发的任务指令后重新执行任务指令,以延续执行上一轮主用控制器执行失败的任务指令。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.
本申请在不增加设备运行功率的前提下,增强了控制系统的可靠性和容错率,提高了控制器运行的稳定性,避免了多控制器信号冲突的决策问题。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.
附图中的流程图和/或框图,图示了按照本申请各种实施例的系统、方法或计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图和/或框图中的每个方框可以代表一个模块、程序段或代码的一部分,上述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。还要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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.
本领域技术人员可以理解,本申请的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本申请中。特别的,在不脱离本申请精神和教导的情况下,本申请的各个实施例和/或权利要求中记载的技术特征可以进行多种组合和/或结合,所有这些组合和/或结合均落入本申请的范围。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.
尽管已经参照本申请的特定示例性实施例示出并描述了本申请,但是本领域技术人员应该理解,在不背离所附权利要求及其等同物限定的本申请的精神和范围的情况下,可以对本申请进行形式和细节上的多种改变。因此,本申请的范围不应该限于上述实施例,而是应该不仅由所附权利要求来进行确定,还应由所附权利要求的等同物来进行限定。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 (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410912296.8A CN118885338A (en) | 2024-07-09 | 2024-07-09 | Controller cold backup control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410912296.8A CN118885338A (en) | 2024-07-09 | 2024-07-09 | Controller cold backup control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118885338A true CN118885338A (en) | 2024-11-01 |
Family
ID=93223714
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410912296.8A Pending CN118885338A (en) | 2024-07-09 | 2024-07-09 | Controller cold backup control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118885338A (en) |
-
2024
- 2024-07-09 CN CN202410912296.8A patent/CN118885338A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111221800B (en) | Database migration method and device, electronic equipment and storage medium | |
JPH04649A (en) | Fault information transfer system for remote channel device | |
JPH05298134A (en) | Method and mechanism for processing of processing error in computer system | |
CN109358893A (en) | A kind of the online upgrading method, apparatus and system of FPGA program | |
CN102750206A (en) | Multiple-basic input/ output system (BIOS) circuit and multiple-BIOS switching method | |
CN101876910A (en) | Double-controller disk memory array, firmware upgrading method and controller thereof | |
CN115237644B (en) | System fault processing method, central operation unit and vehicle | |
CN103890713B (en) | Device and method for managing the register information in processing system | |
CN103713925A (en) | Method and device for avoiding service interruption of storage array in upgrading process | |
WO2025097670A1 (en) | Main and backup bios automatic switching method and apparatus and computer | |
CN118885338A (en) | Controller cold backup control method | |
JP2001290758A (en) | Computer system | |
CN114115962B (en) | Control parameter processing method, device, storage medium and controller | |
CN116610430A (en) | Method for realizing electrified operation and maintenance of processor and server system | |
KR20000016777A (en) | Data loading process | |
CN116541201A (en) | Configuration verification method and device for register, vehicle and storage medium | |
US11579673B2 (en) | Systems and methods for storing FSM state data for a power control system | |
JPH02132529A (en) | Automatic monitoring switching control device | |
CN110995061A (en) | Linkage control method for realizing automatic starting of power-off and power-on of motor equipment | |
CN117434824B (en) | Redundant control board power-on main and standby determination method | |
CN112260297B (en) | Double-bus grid-connected energy storage system management method, device, equipment and medium | |
JPH06250733A (en) | Plant controller | |
JPS60171561A (en) | Abnormality monitor method for control computer system | |
JPS6235945A (en) | Trouble processing system | |
CN118394044A (en) | Vehicle fault electrical appliance repair method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |