[go: up one dir, main page]

CN103425530B - For the method running redundant automation system - Google Patents

For the method running redundant automation system Download PDF

Info

Publication number
CN103425530B
CN103425530B CN201310201484.1A CN201310201484A CN103425530B CN 103425530 B CN103425530 B CN 103425530B CN 201310201484 A CN201310201484 A CN 201310201484A CN 103425530 B CN103425530 B CN 103425530B
Authority
CN
China
Prior art keywords
subsystem
control program
time
release
processing
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.)
Active
Application number
CN201310201484.1A
Other languages
Chinese (zh)
Other versions
CN103425530A (en
Inventor
托马斯·格罗施
于尔根·拉福斯
阿尔伯特·伦施勒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Siemens Corp
Original Assignee
Siemens Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Priority claimed from EP12169553.0A external-priority patent/EP2667269B1/en
Application filed by Siemens Corp filed Critical Siemens Corp
Publication of CN103425530A publication Critical patent/CN103425530A/en
Application granted granted Critical
Publication of CN103425530B publication Critical patent/CN103425530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

本发明涉及一种用于运行具有至少两个子系统(M,S)的自动化系统的方法,该子系统分别具有控制程序(P5,P6),其中,为了将其中一个子系统(M)的单机模式的过程控制转换为具有另一个子系统(S)的冗余控制模式,在自动化系统的更新阶段的范围中将其中一个子系统(M)的相关数据传输给另一个子系统(S)。还提出了一种用于简化更新的措施。

The invention relates to a method for operating an automation system having at least two subsystems (M, S), each with a control program (P5, P6), wherein, in order to integrate a single machine of one of the subsystems (M) The process control of the mode is converted into a redundant control mode with another subsystem (S), the relevant data of one of the subsystems (M) are transferred to the other subsystem (S) within the scope of the update phase of the automation system. A measure for simplifying the update is also proposed.

Description

用于运行冗余自动化系统的方法Method for operating redundant automation systems

技术领域technical field

本发明涉及一种用于运行具有至少两个子系统的自动化系统的方法,该子系统分别具有控制程序,其中,为了将其中一个子系统的单机模式的过程控制转换为具有另一个子系统的冗余控制模式,在自动化系统的更新阶段的范围中将其中一个子系统的相关数据传输给另一个子系统。另外,本发明还涉及一种适用于执行该方法的冗余自动化系统。The invention relates to a method for operating an automation system with at least two subsystems, each of which has a control program, wherein in order to convert the process control from stand-alone mode of one of the subsystems to redundant with the other subsystem Residual control mode, in which the relevant data of one of the subsystems is transferred to the other within the scope of the update phase of the automation system. Furthermore, the invention relates to a redundant automation system suitable for carrying out the method.

背景技术Background technique

在自动化领域中,越来越需要可支配性高的、适用于将设备的可能出现的停止状态时间减小到最小的解决方法(H-系统)。这种可支配性高的解决方法的研发的费用非常高昂,其中,通常使用在自动化领域中的H-系统的特征在于,两个或多个自动化设备或计算机系统形式的子系统通过同步连接相互连接在一起。这两个子系统原则上能够读取地和/或写入地访问连接在这个H-系统上的外围设备单元。两个子系统中的一个子系统在连接在系统上的外围设备方面是主要的。这指的是:到达外围设备单元的输出内容或用于这些外围设备单元的输出信息仅仅由这两个子系统中的一个子系统来执行,这个子系统作为主机进行工作或承担着主机功能。这两个子系统通过同步连接在规定的间隔下进行同步,以使得这两个子系统可以同步地运行。在同步的频率和同步的范围方面,可以区分出不同的模式(暖备份,热备份)。In the field of automation, there is an increasing need for highly available solutions (H-systems) which are suitable for minimizing possible standstill times of plants. The development of such highly available solutions is very costly, wherein H-systems, which are usually used in the field of automation, are characterized in that two or more subsystems in the form of automation devices or computer systems are connected to each other by a synchronous connection connected. The two subsystems can basically have read and/or write access to peripheral units connected to the H-system. One of the two subsystems is the primary in terms of peripherals connected to the system. This means that the output to the peripheral units or the output information for these peripheral units is carried out by only one of the two subsystems, which subsystem works as master or assumes the master function. The two subsystems are synchronized at regular intervals via the synchronization link, so that the two subsystems can operate synchronously. In terms of frequency of synchronization and extent of synchronization, different modes can be distinguished (warm backup, hot backup).

一旦子系统中的一个出现故障并且必须转换到另一个子系统上时,H系统通常需要一个平稳的“失效备援(Failover)”,由此,该另一个子系统在所谓的单机模式或非冗余模式中承担过程控制任务。这意味着:尽管在从一个子系统到另一个子系统的这种非计划的转换或这种非计划的切换的情况下,这种转换或这种切换并不会对待控制的技术过程或过程控制产生干扰。在此,允许在被连接的外围设备的输出端上出现(短暂的)停机时间,在该停机时间期间,该输出端保持在其上一个有效的过程输出值上。然而,并不期望并且由此应该避免在这个输出端上由于转换而出现值的跳跃(突发情况)。没有突发情况由此也被理解成过程输出值的曲线变化的连续性。Once one of the subsystems fails and must be switched to another subsystem, the H system usually requires a smooth "failover (Failover)", thus, the other subsystem is in the so-called stand-alone mode or Assumes process control tasks in redundant mode. This means: Although in the case of such an unplanned switchover from one subsystem to another or such an unplanned switchover, this switchover or this switchover does not affect the technical process or processes to be controlled Control interferes. In this case, a (brief) downtime is allowed at the output of the connected peripheral device, during which the output remains at its last valid process output value. However, value jumps at this output due to transitions (bursts) are not desired and should therefore be avoided. The absence of sudden events is thus also to be understood as the continuity of the curve change of the process output value.

为了实现上述设置,两个子程序在出现故障的时间点时必须具有相同的系统状态。这通过适合的同步方法来确保。当两个子系统对过程的输入信息(输入)进行处理时,那么当两个系统(在相同的过程输入数据或过程输入信息的情况下)以相同的方式改变其各自的“线程全局(thread-globalen)”数据(程序的、尤其是不同优先级的程序的共用的数据)时,这两个系统则处在相同的系统状态下。为了实现这个设置,同步方法要确保以相同的方法和方式中断或处理两个子系统的各自单独的线程。由此获得了相同的“线程山(Threadgebirge)”。In order to achieve the above setup, both subroutines must have the same system state at the point in time of the failure. This is ensured by suitable synchronization methods. When two subsystems process input information (input) to a process, then when both systems (in the case of the same process input data or process input information) change their respective "thread-global" in the same way globalen)" data (data shared by programs, especially programs of different priorities), the two systems are in the same system state. To achieve this setup, the synchronization method ensures that the individual threads of the two subsystems are interrupted or handled in the same way and in the same way. The same "Threadgebirge" is thus obtained.

另外,还必须确保在从单机的或非冗余的模式中将过程控制转换为冗余模式的过程中,例如,在更换完发生故障的子系统之后,要设法平稳地实现这种转换或者说这种过渡。在这种传输的范围中,需要将相关数据从迄今为止主导过程的子系统传输到新的或额外地连接的或接通的子系统上。在这个被称为连接和更新的传输的过程中,在所谓的连接阶段和更新阶段(AuA阶段)中不允许对待控制的技术过程或者说过程控制产生干扰影响,过程控制在这个AuA阶段(在下文中出于简明的原因称为更新阶段)期间不受干扰地继续进行。Also, it must be ensured that the transition of process control from stand-alone or non-redundant mode to redundant mode, for example after replacing a failed subsystem, is managed smoothly or this transition. In the context of such a transfer, it is necessary to transfer relevant data from the subsystems that previously dominated the process to new or additionally connected or switched-on subsystems. In this so-called connection and update transmission process, in the so-called connection phase and update phase (AuA phase), no disturbing influence on the technical process to be controlled or process control is allowed in this AuA phase (in the following This process continues undisturbed during the period referred to herein as the update phase for reasons of brevity.

在2011版的西门子目录的第六章节的ST 70中公知了一种由两个子系统构成的冗余自动化系统,该系统被设置用于,提高受控制的设备的可支配性。通过以下方法和方式设法实现更新,即,逐步地传输数据,其中,首先检测在单机模式下运行的子系统的、存储在数据区域中的值是否不同于新的待写入的值。一旦这些值不相同的话,那么将设置所谓的“脏位(Dirty-Bit)”,这表明,这个数据区域的数据应被传输给另一个子系统。如果所有数据均被传输的话,那么自动化系统在冗余模式下工作。其缺点在于:这个数据区域的数据代表的是高动态数据,在更新阶段结束时无法没有突发情况地实现转变(“更新突发情况(Aufdatstoβ)”),这是因为在单机模式下工作的子系统必须被中止并且过程控制必须被短暂地停止。In the 2011 edition of the Siemens catalog, chapter 6, ST 70, a redundant automation system consisting of two subsystems is known, which is provided for increasing the availability of controlled plants. The update is achieved by transferring the data step by step, wherein it is first checked whether the value stored in the data area of the subsystem operating in stand-alone mode differs from the new value to be written. As soon as these values are different, a so-called "dirty bit" is set, which indicates that the data in this data area should be transferred to another subsystem. If all data is transferred, the automation system works in redundant mode. Its disadvantage is that the data in this data area represent highly dynamic data, which cannot be changed without bursts at the end of the update phase ("Update bursts (Aufdatstoβ)"), because the Subsystems must be halted and process control must be stopped briefly.

发明内容Contents of the invention

本发明由此基于以下目的,即,提供一种如开头所述类型的方法,借助该方法简化更新。另外,实现一种适用于执行该方法的冗余自动化系统。The invention is therefore based on the object of providing a method of the type mentioned at the outset, by means of which updating is simplified. In addition, a redundant automation system suitable for carrying out the method is realized.

有利的是:能够放弃费用高昂的“脏位机构(Dirty-Bit-Mecha-nismus)”。在更新阶段开始时,在单机模式下工作的子系统(下文中称为主机)创建其相关数据的副本,该相关数据代表的是在这个更新阶段开始时主机的内部状态,其中,这些数据被以分段的方式传输给“待更新的”或新接入的子系统(下文中称为辅机或备用系统)。这种内部状态主要通过静态的和动态的数据、数据模块、过程输入值和过程输出值、以及配置数据来确定或者说预先给定。最后,辅机将通过释放信息(Freigaben)逐步地并且与实际的由主机进行的控制程序的处理时间同步地接近主机的内部状态,其中,辅机只有在它完全获得副本时才开始处理该释放信息。辅机在设定完释放信息之后利用相关数据在时间上延迟地经过主机已经过的相同的程序路径。这意味着:在程序处理或运行方面,主机在时间上先于辅机运行或者说辅机在时间上晚于主机运行。“晚于运行(Nachlauf)”或“先于运行(Vorauslauf)”在此理解为通过主机进行的处理段的处理开始和通过辅机进行的相应的处理段的处理开始之间的时间差,这相应于释放信息或者说释放信号出现的时间点。另外需要指出:程序既被理解成那样的程序,也被理解成子程序、程序部分、任务、线程、组织模块、功能模块或其它的适用于实现自动化功能的程序码,其中,自动化系统的程序通常被划分为多个优先级并且根据其被分配的优先性来运行或者说实施。The advantage is that the expensive "dirty bit mechanism" can be dispensed with. At the beginning of the update phase, the subsystem working in stand-alone mode (hereafter referred to as the host) creates a copy of its associated data representing the internal state of the host at the start of this update phase, where these data are It is transmitted to the "to-be-updated" or newly accessed subsystem (hereinafter referred to as auxiliary or standby system) in a segmented manner. This internal state is primarily determined or predetermined by static and dynamic data, data modules, process input values and process output values, and configuration data. Finally, the slave will approach the internal state of the master step by step and synchronously with the processing time of the actual control program by the master by means of release messages (Freigaben), wherein the slave only starts processing the release when it has fully acquired the copy information. After setting the release information, the slave uses the relevant data to traverse the same program path that the master has already traversed with a time delay. This means: in terms of program processing or operation, the master runs ahead of the slave in time or the slave runs later than the master in time. "Later than operation (Nachlauf)" or "before operation (Vorauslauf)" is understood here as the time difference between the start of the processing of a processing segment by the master and the start of processing of the corresponding processing segment by the slave, which corresponds to At the point in time when the release information or release signal appears. In addition, it should be pointed out that the program is not only understood as such a program, but also as a subroutine, program part, task, thread, organization module, function module or other program codes suitable for realizing automation functions. Among them, the program of the automation system is usually It is divided into a plurality of priorities and operates or implements according to its assigned priority.

在辅机弥补了该延后或延迟或这个延迟超过待预先给定的或已预先给定的且被视作为非极限的时间周期或可容忍的值的时间点时,更新阶段结束并且自动化系统自该时间点起在冗余运行模式下进行工作。在过程控制方面,主机由此从单机模式转换到带有辅机或备用系统的冗余模式中,其中,自这个时间点开始,主机和辅机基于例如过程警报形式的事件而优选地时间同步地经过相同的程序路径。When the delay or delay is compensated by the auxiliary machine or at the point in time when this delay exceeds a time period or a tolerable value to be predetermined or already predetermined and considered to be non-limiting, the update phase ends and the automation system From this point in time, work is carried out in redundant mode. In terms of process control, the master thus switches from a stand-alone mode into a redundant mode with a slave or backup system, wherein from this point onwards the master and slave are preferably time-synchronized based on events such as process alarms go through the same program path.

在以这种方式时间同步地经过的程序路径方面,参考在先的欧洲专利申请12166006.2,其整个公开内容应作为本申请的组成部分。With regard to the program paths traversed time-synchronously in this way, reference is made to the earlier European patent application 12166006.2, the entire disclosure content of which is incorporated into the present application.

当然也可以这样设计自动化系统,即,在更新阶段之后或者说在更新之后实现程序路径的时间同步的处理。Of course, the automation system can also be designed in such a way that a time-synchronized processing of the program paths takes place after the update phase or after the update.

基于在主机和辅机之间的时间同步的通信,在更新阶段期间也能够使用缓慢的通信连接。这意味着也可以设置一个本身在传输带宽或应答时间方面不好的通信连接,或设置一个也被其它通信参与者所使用并且由此不专门地提供给连接和更新过程使用的通信连接。由此可以放弃独立的同步连接。另外,还能够在不通过高信号传输时间或高恢复时间过分地恶化系统功率的情况下克服两个子系统之间的大的间距。Due to the time-synchronized communication between master and slave, slow communication links can also be used during the update phase. This means that it is also possible to set up a communication link which is not inherently good in terms of transmission bandwidth or response time, or to set up a communication link which is also used by other communication participants and is therefore not exclusively available for connection and update processes. A separate synchronous connection can thus be dispensed with. In addition, large distances between two subsystems can also be overcome without unduly degrading the system power due to high signal transit times or high recovery times.

在本发明的一个设计方案中提出,将过程输入值与释放信息一起传输给另一个子系统。用于另一个子系统的相关的信息首先被概括或集中并且最后被传输给另一个子系统。由此减小了两个子系统的“管理费用”。In one refinement of the invention, it is provided that the process input values are transmitted to another subsystem together with the release information. Relevant information for another subsystem is first summarized or concentrated and finally transmitted to the other subsystem. This reduces the "overhead" of the two subsystems.

附图说明Description of drawings

下面根据示出了本发明的一个实施例的视图来进一步阐述本发明、其设计方案以及优点。The invention, its configurations and advantages are explained in greater detail below on the basis of a view showing an exemplary embodiment of the invention.

图中示出:The figure shows:

图1示出了两个子系统的时间同步连接的过程;Figure 1 shows the process of time synchronization connection of two subsystems;

图2示出了更新过程;以及Figure 2 shows the update process; and

图3示出了冗余自动化系统。Figure 3 shows a redundant automation system.

在图1至图3中的相同的部分以相同的参考标号示出。The same parts in FIGS. 1 to 3 are shown with the same reference numerals.

具体实施方式detailed description

首先参考图3,其中示出了公知的、包括两个子系统的冗余自动化系统。第一子系统Ta和第二子系统Tb通过现场总线Fb与外围设备Pe相连接。在此,现场总线Fb例如符合PROFIBUS-DP-标准。原则上,其它总线系统,例如以太网、现场总线,modbus协议,ProfiNet IO或还有并行总线系统也都适用。外围设备单元Pe通过输入导线Es从用于检测过程状态的测量变换器或测量值传感器中获得信号,并且通过输出导线As将信号提供给用于影响过程的控制元件。出于清楚的原因,该图中没有示出过程以及测量变换器、测量值传感器和控制元件。两个子系统Ta,Tb周期性地和同步地运行相同的控制程序。为了它们的同步设置了同步连接Sv,其中,通过这个同步连接Sv实现了冗余功能和监控功能。Referring first to Figure 3, there is shown a known redundant automation system comprising two subsystems. The first subsystem Ta and the second subsystem Tb are connected to the peripheral equipment Pe through the field bus Fb. In this case, the field bus Fb conforms, for example, to the PROFIBUS-DP standard. In principle, other bus systems such as Ethernet, fieldbus, modbus protocol, ProfiNet IO or also parallel bus systems are also suitable. The peripheral unit Pe receives a signal via an input line Es from a measuring transducer or a measured value sensor for detecting the process state and supplies the signal via an output line As to a control element for influencing the process. For reasons of clarity, the process as well as measuring transducers, measured value sensors and control elements are not shown in this figure. The two subsystems Ta, Tb run the same control program periodically and synchronously. A synchronization link Sv is provided for their synchronization, wherein redundancy and monitoring functions are implemented via this synchronization link Sv.

如所描述的那样,从更新阶段结束的那个时间点开始,自动化系统在冗余运行模式下工作,并且在过程控制方面,一个子系统从单机模式转换为具有另一个子系统的冗余模式。从这个时间点开始,例如,基于过程报警形式的突发事件,两个子系统突发事件同步地经过相同的程序路径,其中,借助主机进行的过程(Durchlauf)和借助辅机进行的过程优选地时间上不同步地进行。As described, from the point in time at the end of the update phase, the automation system works in redundant operating mode and, in terms of process control, one subsystem is switched from stand-alone mode to redundant mode with another subsystem. From this point in time, e.g. on the basis of an emergency in the form of a process alarm, both subsystem emergencies run synchronously through the same program path, wherein the process with the master (Durchlauf) and the process with the slave are preferably Asynchronously in time.

为了阐述控制程序的事件同步处理以及为了更好地理解本发明,下面将参考图1,其中示出了在先的欧洲专利申请12166006.2中所提出的、时间上不同步地连接两个子程序的过程。“事件同步的处理”在此指的是无论是主机还是辅机都基于一个事件经过各个控制程序的相同的程序路径,其中,在时间上不同步地实现该过程。In order to illustrate the event-synchronized processing of the control program and for a better understanding of the invention, reference is now made to Figure 1, which shows the process of connecting two subroutines asynchronously in time as proposed in the earlier European patent application 12166006.2 . “Event-synchronized processing” here means that both the master and the slave follow the same program path through the individual control programs based on an event, the process being carried out asynchronously in time.

假设一个子系统作为主机M而另一个子系统作为辅机S或作为备用系统运行。主机M由此在控制技术过程方面是主要的并且承担过程控制任务,其中,主机从外围设备单元Pe(图3)中读取过程输入信息或者说过程输入值并且时间上不同步地提供给辅机S。只有一旦主机M基于干扰出现故障的时辅机S才承担主机功能或者说主控权(Masterschaft)。Assume one subsystem operates as master M and the other as slave S or as a backup system. The master M is thus master in controlling the technical process and assumes process control tasks, wherein the master reads process input information or process input values from the peripheral unit Pe ( FIG. 3 ) and makes them available to the slave asynchronously in time. Machine S. The slave S assumes the master function or mastership only if the master M fails due to disturbances.

主机M对用于控制技术过程的程序P1进行处理,其中,辅机S也对这个与控制程序P1相应的程序P2进行处理。两个控制程序P1,P2具有持续时间不同的多个处理段(Va),其中,控制程序P1,P2在每个处理段Va每次开始和每次结束时被中断。通常包括多个程序码的每个处理段Va的开始和结束由此代表了可中断的程序点或中断点0,1,2,…y。在这些点0,1,2,…y上,可以在需要时借助主机M和辅机S中断各个控制程序P1,P2,以便在出现事件或过程警报之后能够作出适合的应对。另外,在这些中断点0,1,2,…y上可以中断每个控制程序P1,P2,由此使得主机M和辅机S可以通过现场总线Fb或通过同步连接Sv交换释放信息、应答信息或其它信息。在经过各个待预先给定的或已被预先给定的时间间隔Zi,i=1,2,…之后并且在到达经过各个时间间隔Zi之后出现中断点(优选的是紧接着各个时间间隔Zi的第一个中断点)的每个时间点时,主机M将释放信息或释放信息信号传输给辅机S,该释放信息信号告知辅机S直到哪个处理段Va才允许辅机S对控制程序P2进行处理。控制程序P2的这些处理段Va相应于主机M在处理控制程序P1的过程中已经处理过的那些处理段。在本实施例中假设:在经过时间间隔Z1到达时间点t1和到达时间点t2(在该时间点上第一中断点P1_6(中断点6)出现在时间间隔Z1之后)时,主机M向辅机S传输释放信息F1。这个释放信息F1包括用于辅机S的信息,即允许该辅机处理它的待处理的控制程序P2直至到达中断点P2_6(中断点6)为止,其中,控制程序P1的中断点P2_6与控制程序P1的中断点P1_6相应。这意味着:基于该释放信息,辅机S能够对控制程序P2的处理段Va进行处理,这些处理段相应于控制程序P1的、直至到达产生释放信息或释放信息信号的时间点处的处理段Va,其中,在该实例中出于简明性的原因而假设:产生释放信息的时间点相应于向辅机S传输释放信息的时间点。也就是说,借助辅机S实现的这个处理段Va的处理在时间上不与借助主机M对相应的处理段Va进行的处理同步,其中,在通过辅机S处理完控制程序P2的处理段Va之后,当主机M向辅机S传输另一个释放信息时,才能利用辅机S处理下一个处理段Va。出现这种中断点P1_6,P2_6(中断点6)的时间点代表的是在时间间隔Z1之后的时间间隔Z2的开始。The master M processes a program P1 for controlling the technical process, wherein the slave S also processes this program P2 corresponding to the control program P1. The two control programs P1 , P2 have a plurality of processing sections (Va) of different durations, wherein the control programs P1 , P2 are interrupted at each start and each end of each processing section Va. The start and end of each processing segment Va, usually comprising a plurality of program codes, thus represents an interruptible program point or interruption point 0, 1, 2, . . . y. At these points 0, 1, 2, . In addition, each control program P1, P2 can be interrupted at these interruption points 0, 1, 2, ... y, so that the master M and the slave S can exchange release information, response information through the field bus Fb or through the synchronous connection Sv or other information. After the respective to-be-predetermined or prespecified time intervals Zi, i=1, 2, . . . At each time point of the first interruption point), the master M transmits the release information or the release information signal to the slave machine S, and the release information signal informs the slave machine S until which processing segment Va just allows the slave machine S to control the program P2 to process. These processing segments Va of the control program P2 correspond to those processing segments that the host M has processed during processing of the control program P1. It is assumed in this embodiment that: when the time interval Z1 reaches the time point t1 and the time point t2 (the first interruption point P1_6 (interruption point 6) appears after the time interval Z1 at this time point), the master M sends a message to the slave The machine S transmits the release message F1. This release information F1 includes information for the auxiliary machine S, that is, to allow the auxiliary machine to process its pending control program P2 until it reaches the interruption point P2_6 (interruption point 6), wherein the interruption point P2_6 of the control program P1 is the same as the control program P2. Interrupt point P1_6 of program P1 corresponds accordingly. This means that, based on this release information, the slave machine S is able to process the processing sections Va of the control program P2 corresponding to the processing sections of the control program P1 up to the point in time when the release information or release information signal is generated Va, where it is assumed in this example for reasons of simplicity that the point in time at which the release message is generated corresponds to the point in time at which the release message is transmitted to the slave S. That is to say, the processing of this processing segment Va by means of the auxiliary machine S is not synchronized in time with the processing of the corresponding processing segment Va by means of the master M, wherein, after the processing segment of the control program P2 has been processed by the auxiliary machine S After Va, when the master M transmits another release message to the slave S, the slave S can be used to process the next processing segment Va. The point in time at which such interruption points P1_6 , P2_6 (interruption point 6 ) occurs represents the beginning of the time interval Z2 after the time interval Z1 .

在所描述的方法和方式中,进一步在时间上不同步地处理控制程序P1,P2。在经过时间间隔Z2之后在到达出现第一中断点P1_A的时间点t3时,主机M向辅机M传输了另一个释放信息F2,该释放信息告知辅机S能够处理其它处理段Va直至到达中断点P2_A为止。这些处理段Va又相应于主机M从时间点t2直至时间点t3,也就是说直至到达中断点P1_A为止已经处理过的处理段。这意味着:辅机S处理的是从上次的释放信息F1的时间点t2到当前的释放信息F2的时间点t3为止的处理段。在经过时间间隔Z2之后出现第一中断点P1_A的时间点t3是时间间隔Z2之后的时间间隔Z3的开始。In the described method and approach, the control programs P1 , P2 are further processed asynchronously in time. When the time point t3 at which the first interrupt point P1_A occurs after the time interval Z2 has elapsed, the master M transmits another release message F2 to the slave M, which informs the slave S that it can process other processing segments Va until reaching the interrupt Point P2_A till. These processing segments Va in turn correspond to the processing segments that the host M has already processed from time t2 to time t3 , that is to say until interruption point P1_A is reached. This means that the slave machine S processes the processing segment from the time point t2 of the previous release information F1 to the time point t3 of the current release information F2. The point in time t3 at which the first interruption point P1_A occurs after the time interval Z2 has elapsed is the start of the time interval Z3 following the time interval Z2.

现在可以发现:在时间间隔中出现了事件,例如过程警报形式的事件。在实施例中,以E来代表这种事件,根据该事件,主机M在时间间隔Z3到时间点t4的过程中必须合适地根据控制程序P1的规定作出反应。在这个情况下,主机M并不在时间间隔Z3之后的、在时间间隔Z3之后出现中断点的时间点上,而是在事件E出现之后出现中断点P1_C(中断点C)的时间点t5上向辅机S传输释放信息F3。这意味着:由于事件E而使得时间间隔Z3被缩短,其中,时间点t5是下一个时间间隔Z4的开始。基于传输给辅机S的释放信息F3,辅机S对控制程序P2的处理段Va进行处理,这些处理段相应于控制程序P1的、在时间点t3和t5之间已经被主机M处理过的处理段Va。It can now be found that events occur in the time interval, for example in the form of process alarms. In the exemplary embodiment, denoted by E is the event according to which the master M must react appropriately during the time interval Z3 to the point in time t4 as specified by the control program P1. In this case, the host M is not at the time point at which the interruption point occurs after the time interval Z3, but at the time point t5 at which the interruption point P1_C (interruption point C) occurs after the event E occurs. The slave machine S transmits release information F3. This means that the time interval Z3 is shortened due to the event E, the time point t5 being the start of the next time interval Z4. Based on the release information F3 transmitted to the slave machine S, the slave machine S processes the processing sections Va of the control program P2 corresponding to the processing sections of the control program P1 that have been processed by the master M between the time points t3 and t5 Processing section Va.

由于该事件E,主机M在时间间隔Z4中对更高优先级的处理段Va进行处理,例如,主机M在时间点t5上执行线程切换,并且在经过时间间隔Z4后到达时间点t6,在到达时间点t7时重新传输释放信息F4,在该时间点上出现了在时间间隔Z4之后的第一个中断点P1_12(中断点12)。根据这个释放信息,辅机S同样对处理段Va进行处理直至到达控制程序P2的中断点P2_12(中断点12)为止,其中,这些处理段Va相应于控制程序P1在时间点t5和t7之间的处理段Va,并且其中,辅机S同样执行了线程切换。Due to this event E, the host M processes the higher priority processing segment Va in the time interval Z4, for example, the host M performs a thread switch at the time point t5 and reaches the time point t6 after the time interval Z4 elapses, at The release message F4 is retransmitted at the point in time t7 at which the first interruption point P1_12 (interruption point 12 ) after the time interval Z4 occurs. Based on this release information, the slave S also processes the processing segments Va until reaching the interruption point P2_12 (interruption point 12) of the control program P2, wherein these processing segments Va correspond to the control program P1 between the time points t5 and t7 The processing segment Va, and wherein, the auxiliary machine S also performs thread switching.

如阐述的那样,主机M的释放信息在辅机S经过与主机M相同的“线程山”,也就是说,辅机S在控制程序P2中的与控制程序P1中的位置相应的位置处执行“线程切换”。只有当主机M通过释放信息对辅机提出要求时辅机S才继续进行它的操作。在对处理段进行处理方面,主机M正如在单独的或非冗余的模式中那样实时地处理这些处理段并且将其给予到有规律的时间间隔中以及在出现事件之后给予释放信息以便通过辅机S处理相应的处理段,其中,主机M继续处理它的控制程序P1并且不主动地等待辅机S的应答。在对相应的处理段进行处理方面,辅机S晚于主机M并且基于被给予的主机释放信息来对这些处理段进行处理。As explained, the release information of the master M is executed in the slave S through the same "thread mountain" as the master M, that is, the slave S is executed at the position in the control program P2 corresponding to the position in the control program P1 "Thread switching". The slave S continues its operation only when the master M makes a request to the slave by means of a release message. In terms of processing the processing segments, the host M processes these processing segments in real-time as in a single or non-redundant mode and gives them in regular time intervals and release messages after events to pass through the secondary The machine S executes the corresponding processing phase, in which the master M continues to process its control program P1 and does not actively wait for a reply from the slave S. The slave S is later than the master M in processing the corresponding processing segments and processes these processing segments based on the master release information given.

下面假设:主机M的单机模式的过程控制转换为具有辅机S的冗余的控制模式。例如,当辅机S在修复之后重新连接到主机M上时才需要这种类型的转换。为此参考了图2,在该附图中示出了自动化系统的更新过程。It is assumed below that the process control of the master M in stand-alone mode is switched to a redundant control mode with the slave S. For example, this type of conversion is only required when the slave S is reconnected to the master M after repair. For this purpose, reference is made to FIG. 2 , in which the updating process of the automation system is shown.

这种转换在直到主机M发现辅机S连接到现场总线Fb(图3)上的时间点t11开始,其中,从这个时间点t11开始,无论是主机M还是辅机S的更新阶段均开始。主机M从这个时间点t11开始创建所有相关数据的本地副本K,这些数据代表了主机直至到达这个时间点t11的内部状态,其中,主机继续在单机模式中对控制程序P5的技术过程进行控制并且对控制程序的处理段Va进行处理。从时间点t12开始直到主机M的更新阶段结束的时间点t13为止,主机M将这个副本K以分段的方式传输给辅机S(这在图中借助箭头Kf来表示),直到时间点t14,辅机S才完全地接收完该副本。在这个时间点t14时,辅机S现在具有与时间点t11时的主机相同的内部状态。另外,从时间点t12开始,主机M的所有释放信息以及被主机M、由外围设备单元Pe(图3)读取的、所有的主机M上的过程输入值均被缓冲存储在辅机S或自动化系统的另一个子系统上,其中,在副本K被完全接收之后才激活这些通过辅机S处理的释放信息。在本实施例中假设:在从时间点t11开始到副本K的传输结束的时间点t13的时间段中在单机模式中运行的主机M产生了释放信息F13,F14,F15,F16并且另外读取过程输入值Ew3,Ew4。这些释放信息F13至F16和这些过程输入值Ew3,Ew4在辅机S中从时间点t14、即主机M的内部状态被完全提供给辅机S使用的时间点开始才被激活,这在图中通过箭头Fs和通过摆动的线L3,L4来表示。在通过主机M进行的这个激活之后,辅机S通过辅机S根据释放信息F13至F16的规则而处理副本K的数据的方式来转变成主机Ms的内部状态。在此,辅机S对其控制程序S6的处理段Va进行处理,这些处理段相应于直至时间点t13为止主机M的控制程序P5的处理段Va,其中,辅机S在控制程序P6的处理方面将过程输入值Ew3,Ew4纳入到了考虑范围内。This switchover starts at time t11 until master M discovers that slave S is connected to fieldbus Fb ( FIG. 3 ), wherein from this time t11 the update phase of both master M and slave S begins. From this point in time t11, the host M creates a local copy K of all relevant data representing the internal state of the host up to this point in time t11, wherein the host continues to control the technical process of the control program P5 in stand-alone mode and The processing section Va of the control program is processed. From the time point t12 until the time point t13 at the end of the update phase of the master M, the master M transmits this copy K to the slave S in segments (this is indicated in the figure by means of the arrow Kf) until the time point t14 , the auxiliary machine S completely receives the copy. At this time t14, the slave S now has the same internal state as the master at time t11. In addition, starting from time point t12, all release information of the master M and all process input values on the master M read by the master M and by the peripheral unit Pe (Fig. 3) are buffered and stored in the slave S or On another subsystem of the automation system, these release messages processed by the slave machine S are activated only after the copy K has been completely received. It is assumed in this embodiment that the master M operating in stand-alone mode generates release information F13, F14, F15, F16 and additionally reads Process input values Ew3, Ew4. These release messages F13 to F16 and these process input values Ew3, Ew4 are only activated in the slave machine S from the time point t14, that is, the time point when the internal state of the master M is fully available for use by the slave machine S, which is shown in the figure This is indicated by the arrow Fs and by the oscillating lines L3, L4. After this activation by the master M, the slave S transitions into the internal state of the master Ms by processing the data of the replica K by the slave S according to the rules of the release messages F13 to F16. Here, the slave machine S processes the processing sections Va of its control program S6, which correspond to the processing section Va of the control program P5 of the master M up to time t13, wherein the processing of the slave machine S in the control program P6 The aspect takes the process input values Ew3, Ew4 into consideration.

由于辅机S在时间上不同步地接近主机M的内部状态,所以在对控制程序P6相应的处理段Va进行处理的方面,辅机S晚于主机M,其中,这种时间上的延迟必须被减小到可容忍的范围,因为过高的时滞可能会导致出现冗余损失。为了减少这种时滞而设计为,辅机S的处理速度相对于主机M的处理速度而言更高,这在图中以控制程序P6中的“缩短”形式表示的处理段Va来表示。辅机S的处理速度的这种相对的提高可以例如,通过使得辅机S更快地处理它的程序P6的处理段Va或使得主机M更慢地处理它的程序P5的处理段Va的方式来实现。只有当延迟被弥补上或被减小到可容忍的范围或预先给定的值时,辅机S以及由此自动化系统的在时间点t12时开始的更新阶段才会结束。在本实施例中假设,将在时间点t15时的延迟减小的可容忍的范围。这样选择或预先给定这个范围,即,在主机M出现故障的情况下,辅机S能够没有突发情况地承担主控权。在图中,在时间点t16和时间点t15之间的时间差代表了该可容忍的范围,在本发明的实际的实施例中该范围大概是20毫秒。在辅机S的更新阶段的范围内,辅机S从时间点t14开始直至时间点t15为止既对在传输副本K的过程中所缓冲存储的释放信息F13至F16进行处理,又对主机M在这个传输之后传输给辅机S的释放信息F17,F18,F19进行处理。这些释放信息F17至F19告知辅机S,控制程序P6的哪些处理段Va可以另外通过该辅机S进行处理,其中,这些处理段Va相应于控制程序P5的、从时间点t14开始已被主机M所处理的那些处理段Va。换言之:在主机M将副本完全传输给辅机S或辅机S完全地接收这个副本K之后,辅机S从时间点t14开始直至时间点t16为止对它的控制程序P6的所有释放的处理段Va进行处理,这些释放的处理段相应于主机M从时间点t11开始直至时间点t15为止已经处理的处理段。Since the slave machine S approaches the internal state of the master M asynchronously in time, the slave machine S is later than the master M in processing the corresponding processing segment Va of the control program P6, wherein this time delay must is reduced to a tolerable range, since excessive time lag may lead to redundancy losses. In order to reduce this time lag, it is designed that the processing speed of the slave machine S is higher than that of the master machine M, which is represented by the "shortened" processing section Va in the control program P6 in the figure. This relative increase in the processing speed of the slave S can be achieved, for example, by making the slave S process the processing segment Va of its program P6 faster or the master M process the processing segment Va of its program P5 more slowly. to realise. The update phase of the slave machine S and thus of the automation system, which started at time t12 , ends only when the delay has been compensated or reduced to a tolerable range or a predetermined value. In the present exemplary embodiment, it is assumed that the delay at time t15 is reduced to a tolerable range. This range is selected or predetermined in such a way that, in the event of a failure of the master M, the slave S can assume the master control without an emergency. In the figure, the time difference between time point t16 and time point t15 represents the tolerable range, which is approximately 20 milliseconds in a practical embodiment of the invention. Within the scope of the update phase of the slave machine S, the slave machine S not only processes the release information F13 to F16 buffered during the transmission of the copy K from time point t14 until time point t15, but also processes the This transmission is then transmitted to the release information F17, F18, F19 of the slave machine S for processing. These release messages F17 to F19 inform the slave machine S which processing sections Va of the control program P6 can additionally be processed by the slave machine S, wherein these processing sections Va correspond to the processing sections Va of the control program P5 which have been processed by the master since time t14 Those processing segments Va that are processed by M. In other words: after the master M has completely transmitted the copy to the slave S or the slave S has completely received this copy K, the slave S has processed all the released processing segments of its control program P6 from the time point t14 until the time point t16 Va performs processing, and these released processing segments correspond to the processing segments that the host M has processed from the time point t11 until the time point t15.

从时间点t15开始,更新阶段已结束并且自动化系统转换为冗余模式。过程控制被主机M的单机模式所忽略且被辅机S的冗余模式所忽略,其中,从时间点t16开始能以所描述的方法和方式在时间上不同步地或以公知的方法和方式在时间上同步地在主机M和辅机S上进一步经过相应的程序路径。From time t15 onwards, the update phase has ended and the automation system switches to redundant mode. The process control is ignored in the stand-alone mode of the master M and in the redundant mode of the slave S, wherein from the point in time t16 can be asynchronously in time in the described way or in a known way Time-synchronously, the corresponding program paths are traversed further on the master M and the slave S.

Claims (4)

1. the method for operation with the automated system of at least two subsystem (M, S), Described subsystem is respectively provided with control program (P5, P6), wherein, in order to by described subsystem In the process control of single cpu mode of the first subsystem (M) be converted to that there is described subsystem The Redundant Control pattern of the second subsystem (S) in system, in the renewal of described automated system The related data of described first subsystem (M) is transferred to described second by the scope in stage Subsystem (S), described related data represent described in the first subsystem described in time more the new stage starts The internal state of system, it is characterised in that:
-described more the new stage starts time, described first subsystem (M) be described The described related data of one subsystem creates local replica (K),
-during the described more new stage, described copy by described first subsystem (M) with The mode of segmentation is transferred to described second subsystem (S), and the first son described in buffer-stored The process input value (Ew3, Ew4) of system (M) and release information (F13 to F16), Wherein, described release information is pointed out, which of the control program (P5) of described first subsystem A little processing sections (Va) were processed by described first subsystem (M),
-after transferring described copy (K), with described first subsystem (M) Processed processing section (Va) second subsystem corresponding, described of control program (P5) (S) processing section (Va) of the release of control program (P6) is considering buffer-stored Described process input value (Ew3, Ew4) in the case of by described second subsystem (S) Process with time lag, wherein, in order to the described time lag of described process is reduced to previously given Value, than the processed institute of the described control program (P5) processing described first subsystem State processing section (Va) and process the described control program (P6) of described second subsystem quickly The described processing section (Va) of release.
Method the most according to claim 1, it is characterised in that by described process input value (Ew3, Ew4) described second subsystem (S) it is transferred to together with described release information.
3. there is the redundant automation system of at least two subsystem (M, S), described subsystem It is respectively provided with control program (P5, P6), wherein, in order to by the first son in described subsystem The process control of the single cpu mode of system (M) is converted to have second in described subsystem The Redundant Control pattern of subsystem (S), in the scope of more new stage, described first subsystem System (M) transmits relevant data to described second subsystem (S), described related data generation The internal state of the first subsystem described in when more the new stage starts described in table, it is characterised in that:
-described first subsystem (M) is designed for, described more the new stage starts time, Described related data for described first subsystem creates local replica (K);
-described first subsystem (M) is also designed for, during the described more new stage, In segmented fashion described copy (K) is transferred to described second subsystem (S);
-described first subsystem (M), described second subsystem (S) are designed for, slow Punching stores process input value (Ew3, Ew4) and the release of described first subsystem (M) Information (F13 to F16), wherein, described release information is pointed out, described first subsystem Which processing section (Va) of control program (P5) is by described first subsystem (M) place Managed;
-described second subsystem (S) is also designed for, and is receiving described copy (K) Afterwards, in the situation of the described process input value (Ew3, Ew4) considering buffer-stored Under, process the described control program (P5) with described first subsystem (M) with time lag The described control program of processed processing section (Va) the second subsystem corresponding, described (P6) processing section (Va) of release, wherein, described automation Design is used for, for The described time lag of described process is reduced to previously given value, described first son than processing The processed described processing section (Va) of the described control program (P5) of system is faster located in Manage the described processing section (Va) of the release of the described control program (P6) of described second subsystem.
Redundant automation system the most according to claim 3, it is characterised in that described first son System (M) is designed for, by described process input value (Ew1, Ew2) and described release Information is transferred to described second subsystem together.
CN201310201484.1A 2012-05-25 2013-05-27 For the method running redundant automation system Active CN103425530B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
EP12169553.0A EP2667269B1 (en) 2012-05-25 2012-05-25 Method for operating a redundant automation system
EP12169553.0 2012-05-25

Publications (2)

Publication Number Publication Date
CN103425530A CN103425530A (en) 2013-12-04
CN103425530B true CN103425530B (en) 2016-11-30

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2434229A (en) * 2006-01-13 2007-07-18 Emerson Process Management Redundant controller synchronization for smooth failover during normal and mismatch conditions
CN102124450A (en) * 2008-08-20 2011-07-13 通用电气智能平台有限公司 Method and systems for synchronization of process control servers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2434229A (en) * 2006-01-13 2007-07-18 Emerson Process Management Redundant controller synchronization for smooth failover during normal and mismatch conditions
CN102124450A (en) * 2008-08-20 2011-07-13 通用电气智能平台有限公司 Method and systems for synchronization of process control servers

Similar Documents

Publication Publication Date Title
US9323823B2 (en) Method for operating a redundant automation system
CN103377083B (en) For the method for the automated system for running redundancy
CN104516306B (en) The automated system of redundancy
US11977362B2 (en) Control device and distributed control system
US9934111B2 (en) Control and data transmission system, process device, and method for redundant process control with decentralized redundancy
CN104137008B (en) Method for fail-safe operation of a process control system with redundant control devices
CN110879565A (en) Dual-computer redundancy control system and redundancy control/fault monitoring method and device thereof
CA2668835C (en) Duplexed operation processor control system, and duplexed operation processor control method
CN119239707A (en) Method, system, device and medium for redundancy and smooth switching of locomotive control equipment
CN104571078B (en) Method for running automated system
CN109306875A (en) A kind of synchronous hot backup redundancy switching device of steam turbine DEH dual controller and method
US8005357B2 (en) Optical transmission apparatus
CN102402212B (en) For method and the network of operational network
CN103425530B (en) For the method running redundant automation system
CN116373945B (en) Main and standby vehicle control unit synchronous operation method and vehicle control unit
CN116490829A (en) Method for controlling an automation system with control redundancy and automation system
JP4788597B2 (en) Programmable controller redundant system
US20250028293A1 (en) Redundant Automation System and Method for Operation
US12298744B2 (en) High-availability cloud-based automation solution with optimized transmission times
JPH0462081B2 (en)
US20240427740A1 (en) Redundant Automation System and Method for Operation
CN102932132A (en) Time synchronization system based on multiple groups of redundancy controllers
JP2007018026A (en) controller
JP6641991B2 (en) Node and communication method
JP2025088204A (en) MOBILE TRAFFIC CONTROL SYSTEM AND PROCESSING TAKEOVER METHOD THEREIN

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant