Redundancy in Network Centric Process Control Systems
By using middleware services in a network-centric process control system to achieve communication and synchronization between control services, the problem of the lack of software redundancy and hardware redundancy combinations in the existing technology is solved, and flexible redundancy configuration is provided. Improved system reliability and availability.
Patent Information
- Application Number
- CN202010131307.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-03-01
- Filing Date
- 2020-02-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-02-28
AI Technical Summary
The lack of a combination of software redundancy and hardware redundancy in existing process control systems makes it difficult to achieve high availability, and engineers need to select system components with different availability levels from different suppliers, increasing hardware costs and engineering design complexity.
In a network-centric process control system, communication and synchronization between control services are achieved through middleware services, allowing active control services to be taken over by standby control services when a failure occurs, providing flexible hardware and software redundancy solutions, and supporting Different types of redundant configurations such as multiple hardware units, spare capacity and software redundancy.
It realizes flexible redundancy of controllers, gateways and devices, reduces hardware costs, supports configurations of different availability levels, improves system reliability and flexibility, and can synchronously control service status on the same node or between different nodes.
Smart Images

Figure CN111638970B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a network-centric process control system and a method and computer program for providing redundancy in a network-centric process control system. Background Art
[0002] Redundancy is an important aspect of process control systems to avoid unnecessary interruptions in the event of a fault.
[0003] Some process control systems have a redundancy concept based on multiple (duplicate, triple, etc.) hardware units. Other process control systems have a redundancy concept based on one hardware unit being redundant for multiple hardware units. Few or no process control systems provide software redundancy (multi-version fault tolerance) or a combination of software and hardware redundancy to achieve very high availability.
[0004] In order to have different availability levels for different system components in a process control system, engineers may need to select system components from different suppliers, which usually incurs cost expenses in terms of additional engineering design. Alternatively, engineers can select the same availability level for all system components, which usually increases the hardware cost of the process control system.
[0005] If a customer needs to increase the availability of certain components of a process control system, for example by adding software redundancy to some of the hardware redundant controllers, this is often not possible in today's process control systems. Summary of the invention
[0006] One object is to provide flexible redundancy for process control system nodes, such as controllers, gateways or devices that act as interfaces to controlled processes.
[0007] According to a first aspect, a method for providing redundancy in a network-centric process control system is proposed, wherein at least one node includes at least one control service and at least one middleware service for communicating in the process control system, wherein the control service and the middleware service are each separate executable files running in separate operating system processes provided by real-time operating systems of the control service and the middleware service, wherein a first control service in a first node that communicates via a first middleware service and implements a first control function is configured to act as an active control service for the first control function, and a second control service that communicates via a second middleware service and implements the first control function is configured to act as a standby control service for the first control function, the method comprising:
[0008] executing the first control function by the first control service by subscribing to input process data of the first control function via the first middleware service and publishing output process data of the first control function via the first middleware service;
[0009] synchronizing the first control service with the second control service, and
[0010] Based on a determination that a failure has occurred in the first node, taking over the role of the active control service by the second control service includes publishing output process data of the first control function by the second control service via the second middleware service based on a subscription of the second control service to the input process data.
[0011] According to a second aspect, a network-centric process control system is provided, comprising nodes, each node comprising a processor and a computer program product storing instructions, the instructions, when executed by the processor, causing the node to run at least one control service, wherein the system comprises at least one control service and at least one middleware service for communicating in the process control system, wherein the control service and the middleware service are each separate executable files running in separate operating system processes provided by its real-time operating system,
[0012] In the network-centric process control system,
[0013] a first control service in the first node that communicates via the first middleware service and implements the first control function is configured to act as an active control service for the first control function by: performing the first control function by subscribing to input process data of the first control function via the first middleware service and publishing output process data of the first control function via the first middleware service,
[0014] a second control service communicating via the second middleware service and implementing the first control function is arranged to act as a standby control service for the first control service,
[0015] wherein the first process control service and the second process control service are arranged to be synchronized with each other, and
[0016] The second control service is configured to take over the role of the active control service based on a determination that a failure has occurred in the first node, the taking over comprising: publishing output process data of the first control function by the second control service via the second middleware service based on a subscription of the second control service to the input process data.
[0017] According to a third aspect, a computer program for providing redundancy in a network-centric process control system is proposed, the network-centric process control system comprising at least one control service and at least one middleware service for communicating in the process control system, wherein the control service and the middleware service are each separate executable files running in separate operating system processes provided by its real-time operating system, wherein a first control service in a first node that communicates via a first middleware service and implements a first control function is configured to act as an active control service for the first control function, and a second control service that communicates via a second middleware service and implements the first control function is configured to act as a standby control service for the first control function, the computer program comprising computer program code, which, when running in the network-centric process control system:
[0018] causing the first middleware service to perform the first control function by subscribing to input process data of the first control function via the first middleware service and publishing output process data of the first control function via the first middleware service;
[0019] causing the first process control service and the second process control service to synchronize with each other; and
[0020] The second control service is caused to take over the role of the active control service based on the determination that a failure has occurred in the first node, the taking over comprising: publishing the output process data of the first control function by the second control service via the second middleware service based on the second control service's subscription to the input process data.
[0021] The proposed solution implements flexible redundancy of controllers, gateways and devices regarding hardware and / or software. Different system components can be configured for different availability levels based on criticality, cost, etc. Different types of hardware redundancy: hardware redundancy based on multiple hardware units, hardware redundancy based on one hardware unit being redundant for multiple hardware units, hardware redundancy based on spare capacity in other controllers, gateways and devices, and hardware redundancy based on edge and cloud resources.
[0022] The flexibility is achieved because all nodes (such as controllers, gateways, and devices) have a middleware service for signal exchange, which enables any control service to access any signal in any other control service without having to understand the network layout, control service deployment, or control service internals. The middleware service can enable signal publishers to move from one node to another without affecting subscribers and vice versa.
[0023] The first control service and the second control service may be provided in the same node. Alternatively, they may be provided in different nodes.
[0024] Publishing the data may include: copying to the middleware service through the control service; and publishing the data in the network-centric process control system through the middleware service and / or publishing the data to another control service executed in the same node.
[0025] Publishing data may include: grouping, by the middleware service, published process data in a data set, wherein each data set is assigned a multicast address. Therefore, publishing and subscription of process data may be bound by the multicast address.
[0026] Additionally, the published process data may include a unique identifier in the network-centric process control system, a data type for the process data, and the process data.
[0027] In one variant, the implementation of the first control function in the first control service is at least partially different from the implementation of the first control function in the second control service. For example, the source codes may be different.
[0028] In another variant, the implementation of the first control function in the first control service is the same as the implementation of the first control function in the second control service. In this case, the source code may be the same.
[0029] In one variant, the synchronization of the first control service with the second control service comprises: the first control service sending data required for the standby operation, and the second control service receiving data required for the standby operation.
[0030] In another variation of the first aspect, the method further comprises: before taking over the role of the active control service, the second control service subscribes to the process data of the first control function, and blocks the use of input process data in the second control service and blocks the publication of output process data; and after taking over the role of the active control service, removes the blockage.
[0031] In a corresponding variant of the second aspect, when the second control service is configured to act as a redundant control service, the use of input process data in the second control service is blocked before taking over the role of the active control service, and the second control service is configured to subscribe to the input process data of the first control function, wherein the blocking is removed after the second control service takes over the role of the active control service.
[0032] Additionally, the first node may include a first node manager configured to monitor the operation of the first node and trigger the second control service to take over the role as the active control service. Therefore, the method may additionally include: monitoring the operation of the first node by the first node manager; and triggering the second control service to take over the role as the active control service in the event of a failure by the first node manager. In this case, the triggering may include: the first node manager determining that there is a failure in the first node and instructing the second control service to take over.
[0033] The first node manager may control and possibly also perform communications in synchronization of the first control service and the second control service.
[0034] When the first control service and the second control service are provided in the same node (eg, the first node), the first node manager may additionally remove the blocking.
[0035] When the first control service and the second control service are provided in different nodes, the second control service can be provided in the second node. In this case, the second node can also include a second node manager, which removes the blocking. In this case, the second node manager can perform communication in the synchronization of the first control service and the second control service. In this case, the second node manager can also determine that a fault has occurred in the first node. In this case, the trigger may be caused by the first node stopping working. For this reason, the second node manager can monitor the first node. One way to achieve this is to monitor the keep-alive message sent by the first node manager through the second node manager. Therefore, the lack of a keep-alive message may trigger a takeover.
[0036] In another variant, synchronization of data required for standby operation includes synchronizing states in the first control function.
[0037] According to one variation, sending the data required for the standby operation in the synchronization state may include sending the state of the first control service to the second control service to be applied to the second control service.
[0038] According to another version, the synchronization of the state may include: sending process input data and a trigger, the trigger causing a state change in the second control service. In this case, the method may also include: executing the trigger causing the state change in the first control service and the second control service in parallel, and in the network-centric process control system, the first control service and the second control service may be configured to execute the trigger causing the state change in parallel.
[0039] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless otherwise explicitly defined herein. Unless otherwise explicitly stated, all references to "an / an / element, device, component, means, step, etc." should be broadly interpreted as referring to at least one instance of an element, device, component, means, step, etc. Unless explicitly stated otherwise, the steps of any method disclosed herein do not have to be performed in the exact order disclosed. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Various aspects and embodiments will now be described by way of example with reference to the accompanying drawings, in which:
[0041] Figure 1 A network-centric process control system is schematically illustrated;
[0042] Figure 2 schematically illustrates control services assigned to different nodes of a network-centric process control system;
[0043] Figure 3 Schematically illustrates the node architecture of controllers, gateways, and devices in a network-centric process control system;
[0044] Figure 4a A first redundancy alternative for such a node is schematically illustrated;
[0045] Figure 4b schematically illustrates a second redundancy alternative for a node;
[0046] Figure 4c A third redundancy alternative for nodes is schematically illustrated;
[0047] Figure 4d schematically illustrates a fourth redundancy alternative for nodes;
[0048] Figure 5 is a flow chart illustrating a method for providing redundancy in a network-centric process control system according to a first embodiment;
[0049] Figure 6 is a flow chart illustrating a method for providing redundancy in a network-centric process control system according to a second embodiment;
[0050] Figure 7a schematically illustrates synchronization of control service states in a first redundancy alternative;
[0051] Figure 7b schematically illustrates synchronization of control service states in a second redundancy alternative;
[0052] Figure 7cschematically illustrates synchronization of control service states in a third redundancy alternative;
[0053] Figure 7d schematically illustrates synchronization of control service states in a fourth redundancy alternative;
[0054] Figure 8a illustrates a more detailed synchronization of control service states in a fourth redundancy alternative for the warm synchronization concept;
[0055] Figure 8b illustrates a more detailed synchronization of control service states in a first redundancy alternative for the warm synchronization concept;
[0056] Fig. 9 Schematically illustrates the operation of the warm sync concept in two control services;
[0057] Fig.10 schematically illustrates the synchronization of input data in a first redundancy alternative for a hot synchronization concept;
[0058] Fig.11 schematically illustrates synchronization of execution in a first redundancy alternative for a hot synchronization concept;
[0059] Fig.12 Schematically illustrates the operation of the hot synchronization concept in two control services;
[0060] Fig.13 is a schematic diagram illustrating some components of the apparatus proposed herein; and
[0061] Fig.14 is a schematic diagram illustrating the functional modules of the device proposed in this article. DETAILED DESCRIPTION
[0062] Various aspects of the present disclosure will now be described more fully hereinafter with reference to the accompanying drawings, in which certain embodiments of the invention are shown.
[0063] However, these aspects can be embodied in many different forms and should not be interpreted as limiting; on the contrary, these embodiments are provided by way of example so that this disclosure will be thorough and complete and will fully convey the scope of all aspects of the invention to those skilled in the art. Throughout the specification, the same reference numerals represent the same elements.
[0064] Figure 1An example of a network-centric process control system 10 is shown, which includes an engineering terminal 12 and an operator terminal 14 connected to a network 16. A first controller 18, a second controller 20, a first IO / device 22, a second IO / device 24, and a third IO / device 26 are also connected to the network 16. Herein, it should be recognized that Figure 1 The number and type of devices shown in are examples only, and may be more or less. Other units may also exist in a network-centric control system. Additionally, devices may be provided at different hierarchical levels.
[0065] In a network-centric process control system 10, if Figure 1 As shown, in the logical topology, IO and devices 22, 24 and 26 are not "owned" or controlled by any controller 18 and 20, just like in the controller-centric architecture. For example, the engineering tools for IO and device configuration provided via the engineering terminal 12 can deploy configuration data to IO and devices without using a controller. Controllers 18 and 20 focus on the execution of control logic and can access IO signals from any IO or device. The network-centric process control system architecture provides convenient system-wide access to higher system-level IO and device information, such as operations 14 and engineering 12, without routing any information through the controller. IO and device information can be accessed without updating the control logic.
[0066] However, most IO and devices today and in the next few years are connected via fieldbus protocols. Therefore, gateways may be required to connect IO and field devices to network-centric process control systems. These gateways handle the configuration and scanning of IO and devices on the fieldbus. Special connections may also be required for other purposes, such as for connection with Internet of Things (IoT) devices.
[0067] Generally speaking, the process data exchange between control services is handled by middleware services. The data is then represented as signals. Control services represent the main services in controllers, gateways, and devices, such as the execution of control logic in controllers, scanning of I / O and field devices in fieldbus gateways, and device functions in management devices.
[0068] Control services are usually distributed among different nodes, with each node having one or more control services.
[0069] In general, a control service does not know where other control services are located that it interacts with. This is handled by the middleware service and is transparent to the control service.
[0070] Figure 2An example of some of the different nodes and control services that may be present in a network-centric process control system 10 is shown. In the figure, there are four control services 36, 38, 42, and 46 executing in three nodes (device 22, fieldbus gateway 28, and controller 18), with the controller 18 hosting two control services 36 and 38. All three nodes 28, 22, and 28 are connected to the network 16 and have a middleware service (MS) for communicating in the process control system 10. More specifically, the middleware service handles the signal exchange between control services in different nodes 18, 22, and 28, as well as between control services allocated in the same node (i.e., in this example, in the controller 18).
[0071] More specifically, in Figure 2 In the example of , there is an IoT Connectivity Control Service (ICCS) 36 and a Control Logic Control Service (CLCS) 38. The IoT Connectivity Control Service 36 includes functionality such as a communication protocol for communicating with IoT devices, of which one such IoT device 34 is shown. There is also a middleware service 40 in the controller node 18 for handling the communication of the control services 36 and 38 with the control services of other entities using the network 16. These other control services, which also employ middleware services, may be provided in other controllers, IO / devices, and fieldbus gateways. The device 22 also includes a control service, here in the form of a device control service (DCS) 42, and a middleware service (MS) 44, wherein the middleware service 44 handles the communication of the device control service 42 with the control services of other entities using the network 16. Finally, Figure 2A fieldbus gateway 28 is shown that includes a fieldbus connection control service (FCCS) 46 and a middleware service (MS) 48. In this case, the fieldbus connection control service 46 is also connected to the fieldbus (FB) 30 for communicating with a field device, which in this case is therefore a fieldbus device 32. The fieldbus connection control service 46 includes a fieldbus communication protocol for allowing communication with the fieldbus device 32. Here, the middleware service 48 is used to allow the fieldbus connection control service 46 to communicate with the control services of other entities using the network 16. Finally, the figure shows a signal S, dependencies in the form of solid straight arrows, and data flows in the form of dotted curved arrows. As an example, a first arrow A1 schematically shows that a signal S is provided from a control logic control service 38 to an IoT device 34 via a middleware service 40 and an IoT connection control service 36. A second arrow A2 schematically shows that a signal S is provided from a control logic control service 38 to a fieldbus connection control service 46 via a middleware service 40 and a middleware service 48. A third arrow A3 shows the provision of a signal S from the fieldbus connection control service 46 to the control logic control service 38 via the middleware service 48 and the middleware service 40. Finally, a fourth arrow A4 is shown providing a signal S from the control logic control service 38 to the device control service 42 via the middleware services 40 and 44.
[0072] like Figure 2 As shown, interactions with controllers, devices, etc. that do not use middleware services are handled by control services specific to the communication protocols required for the interaction. For example, the IoT connection control service 36 does operably connect the controller 18 to the IoT device 34, and the fieldbus connection control service 46 of the fieldbus gateway 28 operably connects the fieldbus gateway 28 to the fieldbus device 32, such as a Profibus device. Such control services can be executed in any node, for example, in the controller node 18 as the IoT connection control service 36, or in a separate node as the fieldbus connection control service 46. However, some control services (e.g., the Profibus connection control service) may require specific hardware support for their connection, such as for connection to a fieldbus.
[0073] It should be appreciated that it is possible for field devices to be implemented using control services and middleware services and to be directly connected to the network 16. It should also be appreciated that the process control system may include a wireless gateway for communicating with wireless field devices via a wireless network. In this case, wireless connection control services and middleware may be provided to the wireless gateway for communicating with other entities via the bus 16.
[0074] The middleware service and the control service can be provided as separate executable files running in separate operating system processes to protect memory and isolate faults. Additionally, the control service can interact with the middleware service through inter-process communication. This allows any control service to access any signal in any other control service without having to understand the network layout, control service deployment, or control service internals.
[0075] Control services are configured through a collection of engineering tools. For example, there may be one tool for each control service type, e.g., one engineering tool for control logic configuration and another tool for I / O entity configuration and device configuration. This isolates, e.g., control logic engineering from IO engineering, i.e., control logic can be designed completely without knowing where the control logic is executed or how / where the I / O entities and devices are connected.
[0076] The middleware service can be configured by a middleware configuration component that uses the signal definitions provided by the engineering tool to create the middleware service configuration. The middleware service configuration is sent along with the control service configuration and forwarded to the middleware by the control service.
[0077] Various aspects described herein are directed to using published signals and subscribed signals. In general, a signal defines a contract / interface between a publisher and a subscriber for process data to be exchanged. A signal may include one or more of the following attributes: a system unique signal identifier (ID); a data type of a signal value, such as a Boolean for a digital signal or a float for an analog signal; a range or interval of signal values and engineering units (for analog signals only); an override value, which is used by a signal subscriber in the case of poor signal quality, for example, if the subscriber does not get any signal from the publisher, for example, due to a network error; and an alternative value, which is used by a signal publisher in the case of poor signal quality, for example, if an IO scanner detects an error on an input channel of a fieldbus device. In an engineering tool for control logic and I / O engineering, signals can be configured and connected to control logic variables and I / O channels, and downloaded to nodes. The middleware configuration component is responsible for ensuring that the signal ID is unique within the system.
[0078] Figure 3The node architecture of a general node 50 for allowing the aforementioned interaction of a control service with a middleware service is schematically shown. Therefore, the node architecture of the general node 50 can be implemented in any of the aforementioned nodes (such as a controller node, a device node, and a fieldbus gateway node). It can be seen that the general node 50 includes two control services (CS) 52 and 54, wherein the control service 52 implements a control function A, and the control service 54 implements a control function B, which functions can be process control functions. It can be understood from the description above that there can be only one control service in a node.
[0079] The node 50 has one or more control services or control service components 52 and 54 running on a platform 68. The platform 68 may include the following components: a middleware service (MS) 70, a node manager (NM) 72, and a communication interface (CI) 74, which may also be referred to as a vertical communication component because it is used for vertical communication in the hierarchy of the process control system.
[0080] In order to simplify the implementation of the control service and coordinate the behavior of the control service, the control service is provided with three subcomponents to be used for interacting with the control service of the platform 68: the middleware application programming interface (MW API), the node manager API (NM API) and the address space (AS). Figure 3 As shown, control service A 52 includes MW API 56, NM API 58 and AS 60, while control service B 54 includes MW API 62, NM API 64 and AS 66. These subcomponents can also be copied as part of the platform component. That is, in some examples, the control service component includes a middleware API, a node manager API and an address space.
[0081] Each component has its own database for runtime data and configuration data, that is, no single component acts as a central database used by all components. The component runtime database can be optimized for the most frequent data access (e.g., for control logic execution) and allows the control service to have a specific information model, such as an IEC 61131-3 information model with program organization units (POUs), variables, etc. Information that is not needed by other components can be hidden inside the control service. In this regard, the database can be provided as anything configured to store data, such as a traditional database, a class, a table, or any other type of suitable data structure.
[0082] In general, a control service that needs process data or runtime data (sometimes referred to as input process data or input runtime data) for its operation can be set to subscribe to process data, which may include control signals, state data and / or process measurements. A control service that delivers process data (sometimes referred to as output process data or output runtime data) can instead publish process data, which may also include control signals, state data and / or process measurements. The process data being published can be grouped into data sets. Each data set can be additionally assigned to a multicast address, such as IPV4 or IPV6. The binding of signal subscribers and signal publishers can be based on the OPC-based open platform communication unified architecture (OPC UA) standard, OPC UA PubSub with dynamic multicast filtering in the network, and publish / subscribe multicast addresses. The middleware service subscribes to a data set multicast address on the network, and when the middleware service publishes a data set on one of these multicast addresses, the dynamic multicast filtering in the network ensures that the data set is only distributed to nodes that have subscribed to the multicast address, such as through a switch. Other protocols and mechanisms than OPC UA PubSub with dynamic multicast filtering may be used for publisher and subscriber bindings, for example, OPC UA Client / Server with additional discovery services.
[0083] It can be seen that, using the publishing of process data and the subscription of process data, all control services of a node are communicating with other control services via the middleware service of the node. By using multicast, the publishing and subscription of process data are bound by the multicast address.
[0084] Alarm signals and event data may generally be processed by a communication interface 74 for vertical communications.
[0085] Node manager 72 may be configured to start all components in node 50 and may additionally be configured to supervise runtime behavior, health, etc. of the components.
[0086] As can be seen above, the node architecture described above provides control logic regardless of where the control logic is executed and implemented, without knowing how the I / O entities and devices are connected. This may be of interest in several special cases, especially regarding redundancy where one entity is active and the parallel entity is in standby.
[0087] Redundancy can advantageously be handled by the aforementioned node manager 72 in the node 50. When handling redundancy, the runtime data of interest can additionally be divided into two categories: runtime data containing states that must be synchronized between two redundant components, and runtime data that can be recalculated after a redundant failover. An alarm condition state is an example of runtime data that must be synchronized, while control logic variables that are recalculated in each task cycle do not need to be synchronized.
[0088] Redundancy can be configured in the engineering tool for controllers, gateways, and devices. As an example, engineers can be allowed to choose between five main configuration alternatives.
[0089] 1) Hardware redundancy based on multiple hardware units;
[0090] 2) Hardware redundancy based on one hardware unit being redundant for multiple hardware units;
[0091] 3) Hardware redundancy based on spare capacity in other controllers, gateways, and devices;
[0092] 4) Software redundancy (multi-version fault tolerance); and
[0093] 5) Hardware redundancy based on edge and cloud resources
[0094] All configuration alternatives can be based on redundant control services. Each control service can have one or more redundant control services running in the same node or (multiple) different nodes. The control service states in the active control service and the redundant control service can be synchronized. The synchronization can be based on the warm standby concept or the hot standby concept. In the warm standby concept, the redundant control service states are synchronized using the states collected in the active control service and transmitted to the redundant control service. In the hot standby concept, the redundant control service states are synchronized by transmitting all input process data from the active control service to the redundant control service, and then synchronously executed in parallel in the active control service and the redundant control service. The platform has no states that need to be synchronized.
[0095] Figures 4a to 4dConfiguration alternatives 1-4 discussed above are illustrated, (alternative 5 is not illustrated in these figures). In the first alternative shown in FIG. 4A , a node is replicated. More specifically, there is a first node 50, which includes a first control service 52 providing a first control function A and a third control service 54 providing a second control function B, wherein both control services 52 and 54 are connected to the network 16 via a first platform 68, and the first platform 68 includes at least a middleware service. There is also a second node 76, which provides a second control service 78 implementing the first control function A and a fourth control service 80 providing the second control function B, wherein both control services 78 and 80 use a second platform 82, wherein both include middleware services and optionally also include a communication interface and / or a node manager. In this case, the implementation of the first control function A in the first control service 52 can be the same as the implementation of the first control function A in the second control service 78, such as by having the same source code. The implementation of the second control function can also be the same. As an example, the first control service 52 and the third control service 54 in the first node 50 and the first platform 68 are in an active state, while the second control service 78 and the fourth control service 80 and the second platform 82 in the second node 76 are in a standby state. As mentioned above, the platform includes middleware services. The platform may also optionally include a node manager and / or a communication interface for vertical communication.
[0096] In the second alternative, if Figure 4b As shown, there is a node that is redundant for the other two nodes. In this case, there is a first node 50, which includes a first control service 52 providing a first control function A and a third control service 54 providing a second control function B, wherein both control services 52 and 54 are connected to the network 16 via a first platform 68. There is also a third node 84, which includes a fifth control service 86 providing a third control function C and a seventh control service 88 providing a fourth control function D, wherein both control services use a corresponding third platform 90 in the third node 84. Finally, there is a second node 76, which includes a second control service 78 providing a first control function A and a fourth control service 80 providing a second control function B. In this alternative, the second node 76 additionally includes a sixth control service 92 providing a third control service C and an eighth control service 94 providing a fourth control function D, wherein all four control services use the second platform 82 of the second node 76. In this case, the first node 50 and the third node 84 are in an active state, while the second node 76 is in a standby state.
[0097] In the third alternative, if Figure 4cAs shown, the two nodes are redundant to each other (no additional hardware). In this case, the first node 50 includes a first control service 52 and a third control service 54 providing a first control function A and a second control function B, and a sixth control service 92 and an eighth control service 94 providing a third control function C and a fourth control function D. All of these control services 52, 54, 92 and 94 thus use the first platform 68. In this case, the second node 76 includes a second control service 78 and a fourth control service 80 providing a first control function A and a second control function B, and a fifth control service 86 and a seventh control service 88 providing a third control function and a fourth control function. All of these control services 78, 80, 86 and 88 therefore use the second platform 82. In the first node 50, the first control service 52 and the third control service 54 are in an active state, while the sixth control service 92 and the eighth control service 94 are in a standby state. In the second node 76, the fifth control service 86 and the seventh control service 88 are in an active state, while the second control service 78 and the fourth control service 80 are in a standby state. Platforms 68 and 82 are also active.
[0098] In the last alternative, if Figure 4dAs shown, all software components are developed in different forms. Therefore, the configurations are different from each other. It can be seen that the first node 50 includes a first control service 52 providing a first control function and a third control service 54 providing a second control function, wherein the control services 52 and 54 both use the first platform 68 again. However, the first node 50 also includes a second control service 78 providing a first control function and a fourth control service 80 providing a second control function, and a second platform 82 provided for its communication. In order to achieve software redundancy, the first control function implemented in the first control service and the second control service has been developed in different ways, for example, by different developer groups. The source code may therefore be different. In order to distinguish versions, the first control function in the first control service 52 is represented as A, and the first control function in the second control service 78 is represented as A'. Thus, the implementation of the first control function A provided by the first control service 52 is at least partially different from the implementation of the first control function A' provided by the second control service 78 or is at least partially different from the implementation of the first control function A' provided by the second control service 78. In addition, similarly, the second control functions B and B' provided by the third control service 54 and the fourth control service 80 may be different from each other. Therefore, in this case, there is only the first node 50, which includes the first control service 52 and the third control service 54 providing the first control function A and the second control function B in an active state, and the second control service 78 and the fourth control service 80 providing the first control function A' and the second control function B' in a standby state. It should be understood herein that when software functions are provided in different nodes, different software implementations of the same function may also be used. It may also be applied to the third control function and the fourth control function.
[0099] Depending on the type of controller / gateway / device, some of the alternatives may not be available. For example, for devices and gateways based on non-Ethernet protocols, alternatives 2) and 3) may not be applicable.
[0100] In a first configuration alternative, the engineer can choose between duplex hardware units, triplex hardware units, etc., depending on what is supported by a particular controller, gateway, or device type. The node addresses of the redundant node(s) may have to be configured.
[0101] In a second configuration alternative, the engineer may specify the node address of a redundant node that is redundant for the node group.
[0102] In a third alternative, engineers can specify the node addresses on which the redundant control service(s) should run.For example, the redundant control service execution engines can be assigned to controllers, gateways, or device nodes that have spare execution resources.
[0103] In a fourth alternative, the engineer can specify where the software redundancy control service should execute, either in the same node or in a different node.
[0104] In the last alternative, redundant nodes can be run at the edge or in the cloud. Only edge or cloud nodes are used until the failed embedded node has been replaced. Depending on the type of controller / gateway / device, this alternative may or may not be an option.
[0105] As an alternative to node addresses, one could consider node names which are resolved to node ids at runtime via discovery.
[0106] Software redundancy (option 4) and hardware redundancy can be combined to obtain a highly reliable process control system.
[0107] Before sending the configuration to the node, the engineering tool can check whether the node is able to run the control and platform services required for the redundant setup. If not, the firmware may need to be upgraded. The configuration tool can then send the configuration data and configuration commands to the active node in the redundant setup. It is possible that thereafter the active node is responsible for coordinating the configuration of the redundant nodes by sending configuration data and configuration commands to the redundant nodes. The node manager in the active node can forward the platform configuration to its (multiple) redundant nodes, and forward the control service configuration to the node where the redundant control services should be executed. As an alternative, the configuration data and configuration commands for the redundant nodes can be sent directly from the configuration tool to the redundant nodes.
[0108] A redundancy configuration (eg, a list of active and redundant nodes and control services) may be part of the platform configuration.
[0109] As can be seen above, there are many ways to achieve redundancy. Figure 5 Describes the operations to change the active entity (node, control service or both). Figure 5 Several activities in a method for providing redundancy in a network-centric process control system and performed for a first control service and a second control service according to a first embodiment are shown, wherein the first control service 52 implements a first control function A and is configured to act as an active control service, and the second control service 78 also implements the first control function A and is configured to act as a standby control service for the first control function.
[0110] A network-centric process control system in which the method is implemented has been previously described in detail. In the system, a first control service 52 in a first node 50 that implements a first control function A is configured to act as an active control service for the first control function. It also communicates using a first middleware service present in a first platform 68. A second control service 78 also implements the first control function A, is configured to act as a standby control service for the first control function, and communicates using a second middleware service present in a second platform 82. Processing block S102 shows that the first control service 52 performs the first control function A. As can be seen from processing block S102, the execution of the first control function by the first control service 52 includes two activities depicted in processing blocks 102a and 102b. In processing block S102a, the first control service 52 subscribes to the input process data of the first control service 52 via the first middleware service, and in processing block S102b, the first control service 52 publishes the output process data of the first control function via the first middleware service. Thus, the first control service 52 operating the first control function A is the active control function, while the second control service 78 providing the same first control function A is the passive control service or is in a standby state.
[0111] In order to achieve a smooth change of the active control service, the first control service and the second control service are synchronized with each other. In processing block S104, the first control service 52 is synchronized with the second control service 78. The synchronization may be warm synchronization or hot synchronization, the details of which will be described in more detail below.
[0112] As shown in processing block S108, the second control service 78 takes over the role of the active control service based on a determination that a failure has occurred in the first node 50. The failure may have occurred in the first control service 52 or in any of the other components of the first node 50. As can be seen from processing block S108b, taking over the role of the active control service includes the second control service 78 publishing the output process data of the first control function via the second middleware service based on the second control service 78's subscription to the input process data. This subscription may be performed prior to taking over as the active control service and has advantages in terms of configuration. Alternatively, the subscription may be performed directly after taking over.
[0113] This approach achieves a smooth and seamless takeover of the role as the active control service.
[0114] The determination that a fault is present may be performed in the first node 50, for example, by the node manager 72 of the first node 50. However, advantageously, the determination that a fault is present may also be performed in the second node by the node manager of the second node.
[0115] As long as no fault is determined, the first control service 52 repeatedly publishes the output process data. The publishing of the output process data and the synchronization of the control service are repeated periodically. As an example, the publishing can be repeated every 100 milliseconds. Moreover, the determination of whether there is a fault can be performed during the entire process of such publishing and synchronization, wherein the determination of the fault can be performed in the first platform or in the second platform. It should be appreciated here that the subscription of the second control service to the input process data can be started after the fault is determined.
[0116] Now, refer to Figure 6 , a second embodiment of the method is described, the Figure 6 Compare Figure 5 Slightly more detailed. Figure 6 , the left side shows activities related to a first control service, and the right side shows activities related to a second control service.
[0117] Processing block S102a shows that the first control service 52 subscribes to the input process data of the first control function via the middleware service of the first platform 68, and processing block S102b shows that the first control service 52 publishes the output process data of the first control function via the middleware service of the first platform 68. Figure 5 The functionality described is the same.
[0118] In this embodiment, the second control service 78 obtains a subscription to the input process data when configured. Therefore, as shown in processing block S103a, the second control service 78 subscribes to the input process data of the first control function. However, as shown in processing block S103b, the output process data from the second control service 78 is also blocked.
[0119] Processing block S104 shows that the first control service is synchronized with the second control service. As can be seen from processing block S104a, synchronization can include: the first control service 52 sends data required for synchronization to the second control service 78. This sending can be performed, for example, via at least the first node manager of the first platform 68. As can be seen from processing block S104b, the second control service 78 receives the data required for synchronization.
[0120] Processing block S108 shows the second control service 78 taking over the role of the active control service based on the determination that a failure has occurred in the first node 50. Since the second control service 78 has subscribed to the input process data of the first control function, as shown in processing block S108a, taking over includes: removing the blocking of the second control service 78. Processing block S108b shows that when this removal is completed, the second control service 78 publishes the output process data, which is again completed using the middleware service of the second platform 82.
[0121] In this way, by implementing the subscription in the second controlling service, the takeover can be accelerated.
[0122] As indicated above, during configuration of the active control service and the redundant control service, the redundant control service, here exemplified by the second control service 78, may subscribe to input process data and register its output signal in the second middleware service 108 in preparation for failover from the active control service (here exemplified by the first control service 52). However, in this case, the redundant control service 78 will not use the received signals during execution and will not publish its signals in the second middleware service. The signal may be blocked in the redundant control service. Thus, it can be seen that during configuration before taking over the role as the active control service, the second control service 78 subscribes to the input process data of the first control function, and blocks the second control service 78 from using the input process data and blocks the second control service 78 from publishing the output process data.
[0123] The node manager in the first platform 68 may monitor the operation of the first node 50 and trigger the second control service 78 to take over the role as the active control service.
[0124] One way to trigger the second control service 78 to take over the role as the active control service is to send a keep-alive message to the redundant node through the node manager in the first node. Then, the lack of a keep-alive message may trigger the redundant node to switch to the active role. If there are multiple redundant hardware nodes (configuration alternative 1), the redundant nodes may need to have an algorithm to determine which node becomes the active node. The same algorithm can also be used to determine which node is active after a power failure. For software redundant control services executed in the same node, the keep-alive processing and role selection between redundant control services can be handled by the node manager component supervision mechanism.
[0125] The active control service and the redundant control service synchronize regularly during control logic task execution, IO scanning task execution, etc. Control services using the warm standby concept synchronize at the end of task execution. In this case, the control service state is transferred from the active control service(s) to the redundant control service(s). Before task execution, control services using the hot standby concept synchronize by transferring input process data from the active control service(s) to the redundant control service(s) and by synchronizing task execution.
[0126] Figures 7a to 7d The diagram shows Figures 4a to 4dThe same alternative is shown with synchronization of control service states using the first warm standby concept. In the figure, the state synchronization data flow is shown with curved arrows, while the dependencies are again shown with straight solid arrows. As can be understood from the direction of the data flow, the states are collected in the active control service and transmitted to the redundant control service. The platform has no states that need to be synchronized.
[0127] exist Figure 7a In the first alternative, the fifth arrow A5 indicates synchronization S104 by state transfer from the first control service 52 in the first node 50 to the second control service 78 in the second node 76, and the sixth arrow A6 indicates state transfer from the third control service 54 in the first node 50 to the fourth control service 80 in the second node 76. In the second alternative, as Figure 7b As shown, a fifth arrow A5 indicates synchronization S104 by state transmission from the first control service 52 in the first node 50 to the second control service 78 in the second node 76, a sixth arrow A6 indicates state transmission from the third control service 54 in the first node 50 to the fourth control service 80 in the second node 76, a seventh arrow A7 indicates state transmission from the fifth control service 86 in the third node 84 to the sixth control service 92 in the second node 76, and an eighth arrow A8 indicates state transmission from the seventh control service 88 in the third node 84 to the eighth control service 940 in the second node 76. In the third alternative, as Figure 7c As shown, the fifth arrow A5 indicates synchronization S104 by state transfer from the first control service 52 in the first node 50 to the second control service 78 in the second node 76, and the sixth arrow A6 indicates state transfer from the third control service 54 in the first node 50 to the fourth control service 80 in the second node 76. The ninth arrow A9 indicates state transfer from the fifth control service 86 in the second node 76 to the sixth control service 92 in the first node 50, and the tenth arrow A10 indicates state transfer from the seventh control service 88 in the second node 76 to the eighth control service 94 in the first node 50. Finally, as shown in FIG. Figure 7d As shown, in the fourth alternative, the fifth arrow A5 indicates synchronization S104 by state transfer from the first control service 52 to the second control service 78 , and the sixth arrow A6 indicates state transfer from the third control service 54 to the fourth control service 80 , which is performed within the first node 50 .
[0128] Figure 8a and Figure 8b A more detailed view of the synchronization of control service states for the warm standby concept is shown. Figure 8a The diagram illustrates a redundant configuration alternative in which the active control service and the redundant control service are executed in the same node, namely the fourth alternative described previously, while Figure 8b FIG. 1 shows a redundant configuration according to a first alternative. Figure 8a and Figure 8b It can be seen that the first control service 52 includes a first MW API 56, a first NM API 58 and a first AS 60, the second control service 78 includes a second MW API 96, a second NM API 98 and a second AS 100, the third control service 54 includes a third MW API 62, a third NM API 64 and a third AS 66, and the fourth control service 80 includes a fourth MW API 102, a fourth NM API 104 and a fourth AS 106. The first platform 68 for the first control service 52 and the third control service 54 in the first node 50 includes a first MS 70, a first NM 72 and a first CI 74, and the second platform 82 set for the second control service 78 and the fourth control service 80 includes a second MS 108, a second NM 110 and a second CI 112. Figure 8a In the example, the second platform 82 is placed in the first node 50, and in Figure 8b , the second platform 82 is placed in the second node 76. In the figure, dependencies are again shown as solid straight arrows, while state synchronization data flows are shown as dashed arrows. In the figure, it can also be seen that the first control service 52 has four internal states St and one state St in the first MW API 56. In a similar manner, the second control service 78 has four internal states St and one state St in the second MW API 96. All these states are synchronized.
[0129] In order to send the data required for synchronization, S104a, all control logic variables of the active control service including the state that may need to be retained are collected and submitted to the NM API subcomponent, which can package them into a container and forward them to the NM. This takes the first control service 52 as an example, where the eleventh arrow A11, the twelfth arrow A12, the thirteenth arrow A13 and the fourteenth arrow A14 indicate the transmission of four states St from the inside of the first control service 52 to the first NM API 58, and the fifteenth arrow A15 indicates that the state St in the first MW API 56 is provided to the first NM API 58. As shown by the sixteenth arrow A16, the NM API 58 then forwards the collected state to the first NM 72. As indicated by the seventeenth arrow A17, the first NM 72 thereafter sends the data required for synchronization (i.e., the collected states) to the NM API in the redundant control service, wherein these data are used to update the control service states, which means that the first NM 72 sends S104a the states St to the second NM API 98 of the second control service 78, which therefore receives S104b these states and then updates the states in the second MW API 96 as can be seen by the eighteenth arrow A18, and the four states St are updated internally in the second control service 78 as can be seen from the arrows A19, A20, A21 and A22.
[0130] Figure 8b The diagram illustrates a redundant configuration alternative in which the active control service and the redundant control service are executed in different nodes. The state St is collected in the same manner in the first control service 52 and submitted to the first NM 72. Again, here, the first NM 72 packages and forwards the S104a state. However, as indicated by the twenty-third arrow A23, in this case, the packaged state is forwarded to the second NM 110 in the redundant node 76, which thereby receives the S104b state. As indicated by the twenty-fourth arrow A24, the second NM 110 then forwards the state to another redundant control service (here the second control service 78) to update the control service state. More specifically, it forwards the state St to the second NM API 98, which in turn updates the state in the second MW API 96 and the state inside the second control service 78. This is similar to Figure 8a In order to simplify the drawings, the collection and update of the status is shown only for one control function (the first control function A implemented by the first control service 52 and the second control service 78). Naturally, the same principle can also be applied to the third control service 54 and the fourth control service 80.
[0131] The collected status may be transferred in a format that is independent of firmware (FW) and hardware (HW) to enable the use of redundant hardware units with different firmware versions and different HW architectures.
[0132] Fig. 9 The operation of the warm standby concept is also schematically indicated in . It can be seen that the first control service S102A subscribes to input process data including the signal S, like the second control service S103a.
[0133] The first control service 52 then operates on the input data, which may include: copying in the input data, executing on the input data, and copying out the output data. This is followed by publishing the output signal S102b, collecting the status, and sending the status to the second control service S104a. This cycle is repeated, with n such cycles indicated in FIG8. For each such cycle, the second control service receives the status S104b and applies it, which is thus repeated n times.
[0134] In the hot standby concept, the active and redundant control services run in parallel, the states are synchronized by transferring all process data from the active control service(s) to the redundant control service(s), followed by a parallel execution of synchronization in the active and redundant control services. The outputs are controlled only by the active control service.
[0135] In a similar manner as the NM and NM API handle synchronization of control service states, the NM and NM API handle synchronization of control service input process data and synchronization of control service execution.
[0136] To simplify the following description of synchronization, only one active control service with one redundant control service is described. The synchronization of multiple control services is similar; the only difference is the number of control services that are synchronized. The active control service and the redundant control service are executed in different nodes. The synchronization of control services executed in the same node is very similar to the synchronization of control services executed in different nodes, so it will not be described again. Reference will be made to Fig.10 Describe the synchronization. Fig.10 Shown with Fig. 9 , where dependencies are again shown with solid straight arrows, and additionally, input data flows are shown with dashed arrows, and input synchronization data flows are shown with solid curved arrows. In the figure, there are also signals S, control logic / scanner variables V, and vertical communication entities E.
[0137] During the configuration of the active control service and the redundant control service, the active control service, here the first control service 52 as an example, subscribes 102a to input process data in the form of input signal S. In addition, the redundant control service, here the second control service 78 as an example, can subscribe S103a to input process data in the form of input signal S. Additionally, the redundant control service 78 can register its output signals in the MS 108 (using the MW API 96) in preparation for failover from the active control service 52. However, the redundant control service 78 will not use the received signals during execution, nor will it publish its signals in the MS 108. The MW API 96 blocks these signals. It can be seen that the second control service 78 has a subscription to the input process data of the first control function, which is performed during configuration, which configuration is before taking over the role of the active control service. Moreover, when the second control service is in standby state, S103b is blocked from using the input process data in the second control service 78 and blocking the publishing of output process data in the second control service 78. The redundant control service 78 will use the input signal S received S104b from the active control service 52 instead of using the input process data to which it subscribes.
[0138] As shown by the twenty-fifth arrow A25, the active control service 52 receives input data in the form of signals S according to its subscription; as shown by the twenty-sixth arrow A26, the signals are forwarded to the MW API 56 in the active control service 52. As shown by the twenty-seventh arrow A27, the MW API 56 also forwards all received inputs to the NM API 58, which packages them into version-independent containers and submits them to the NM 72 as shown by the twenty-eighth arrow A28. As shown by the twenty-ninth arrow A29, the NM 72 in turn forwards the package to the NM 110 in the redundant node 76. Then, as shown by the thirtieth arrow A30, the NM 110 forwards these signals to the NM API 98 in the redundant control service 78; as shown by the thirty-first arrow A31, the NM API 98 makes these signals available to the MW API 96. Then, the MW API 96 applies these signals to the control service, for example, as variables V in the control service. Fig.10 The diagram shows the synchronization of input process data. If the redundant control process becomes active, the block is removed.
[0139] Other types of input process data (e.g., from communications with upper-level system components, from IO scanners, or from communication stacks) may also be synchronized. As shown by the thirty-second arrow A32, CI 74 receives input process data E from upper-level system components; as shown by the thirty-third arrow A33, the CI 74 forwards these input process data E to the AS 60 in the active control service 52. As shown by the thirty-fourth arrow A34, the AS 60 sends the input process data E to the NM API 58; as shown by arrows A28, A29, and A30, the NM API 58 forwards the input process data E to the NM API 98 (via NM 72 and 110) of the redundant control service 78. Therefore, the active control service 52 uses the NM API 58 to send other input process data received from, for example, an IO scanner in the control service to the redundant control service 78. If the redundant control service 78 is an IO scanner or something similar, it may not be desirable to set any outputs on the IO and devices during the evaluation. This can be handled by the active control service 52.
[0140] After the input data has been transmitted, the control service execution is synchronized. Fig.11 This synchronization is schematically shown in Fig.11 Shown as Fig.10 . In the figure, dependencies are again shown as solid straight arrows and synchronization data flows are shown as solid curved arrows. There are also signals S and control logic / scanner variables V, as well as input / output data flows as shown by dashed arrows. The figure also discloses input synchronization 1, copy-in synchronization 2, task execution synchronization 3 and copy-out synchronization 4.
[0141] As an example, the first control service subscribes to S102a and the received signal S shown by arrows A25 and A26 is used as a variable in the first control function. Therefore, as shown by the thirty-fourth arrow A34, the signal S can be copied in (2) as a variable V of the first control service 52. The first control function can also be performed (3) by the first control service 52, and as shown by the thirty-fifth arrow A35, the output variable V can therefore be copied out 4 to the first MW API 56, and then as shown by the thirty-sixth arrow A36, submitted to the first MS 70; then, as shown by the thirty-seventh arrow A37, the first MS 70 publishes the data S102b on the network 16. The control service performs synchronization including: synchronization of input data as described above, copying signal values to internal variables, executing control or scanner logic, and copying internal variable values to signals. The MW API 56 submits synchronization information (e.g., copy in 2, execute 3, copy out 4, or data synchronization (1)) to the NM API 58, which forwards the input data and synchronization commands using the infrastructure described above for synchronization of the input. As inferred from the thirty-eighth arrow A38, the input data can be synchronized (1). Various trigger signals can be transmitted from the first control service to the second control service for synchronization of activities such as copy in, execute, copy out, and synchronization. These trigger signals can be provided to the first NM API 58, which can then, as shown by the thirty-ninth arrow A39, send these trigger signals to the first NM 72. As shown by the fortieth arrow A40, the first NM 72 in turn sends the trigger signal to the second NM 110 of the second control service 78; as shown by the forty-first arrow A41, these trigger signals are forwarded to the second NM API 98. Here, the trigger signal triggers the same activity to be performed in the second control service 78. As shown by the 42nd arrow A42, the sync 1 of the second control service 78 is synchronized with the sync (1) in the first control service 52; as shown by the 43rd arrow A43, the copy in (2) in the second control service 78 is synchronized with the copy in (2) executed in the first control service 42; as shown by the 44th arrow A44, the copy out 4 executed by the second control service 78 is synchronized with the copy out A35 of the first control service 52, just as the execution 3 is synchronized to the second NM API 96 like the trigger signal of the activity 1, 2, 3, 4, that is, synchronized with the transmission of the signal (1) from the second NM API 98 to the second MW API 96. Therefore, the operation triggered by the trigger is executed in parallel in the first control service 52 and the second control service 78. As can be seen from the figure, the output signal is only issued by the active control service 52 S102b. However, although only the first control service 52 is shown as receiving the input signal S, it should be recognized that the second control service 78 also receives these input signals.
[0142] Fig.12 An example of how synchronization may occur is schematically shown in FIG. The first control service subscribes to the input signal S102a again, and the second control service subscribes to the same input signal S103a. Then, the first control service 52 sends the input data to the second control service, and sends a trigger for the copy-in operation, which is received by the second control service 78. The sending of the input data and the copy-in trigger is the sending of the data required for the standby operation S104a, and the reception thereof by the second control service 78 is the reception of the data required for the standby operation S104b. Thereafter, the first control service 52 and the second control service 78 synchronously perform the copy-in of the input data. Thereafter, the first control service 52 may send a trigger for the execution operation, which is received by the second control service 78. The sending of the execution trigger is the sending of the data required for the standby operation S104a, and the reception thereof by the second control service 78 is the reception of the data required for the standby operation S104b. Thereafter, the first control service 52 and the second control service 78 synchronously perform the execution of the first control function A. Thereafter, the first control service 52 may send a trigger for a copy-out operation, which is received by the second control service 78. The sending of the copy-out trigger is the sending of data required for the standby operation S104a, and the receiving of it by the second control service 78 is the receiving of data required for the standby operation S104b. Thereafter, the copy-out is performed together with the publishing of output data synchronized by the first control service 52 and the second control service 78, wherein the publishing S102b performed by the first control service 52 is the output of the first control function A. However, the publishing performed by the second control service 78 is blocked. This cycle is repeated, wherein Figure 2 n such cycles are indicated in .
[0143] The described concept of hot standby can be extended by a voting mechanism. Such a mechanism makes sense only in case of multiple hardware units with more than one additional hardware unit (configuration alternative 1). Negotiation is required between the NM API subcomponents to decide which of the control services controls the output. After each task execution, the execution result can be transferred from the redundant control service to the active control service, which selects the output value that has been calculated by the majority of the control services.
[0144] If a component supervision mechanism in the NM 72 detects an error in one of the components of a node, different actions may be taken depending on the redundancy configuration. If the failed component has been configured for software redundancy and the redundant component is running in the same node, the NM 72 may switch to the redundant component. If the failed component has been configured for software redundancy but the redundant component is running in a different node or only hardware redundancy is configured, the NM 72 may shut down the node and the redundant node will take over.
[0145] As described above, a control service is not aware of where its control service communication partner is assigned. Thus, an active control service publishing a data set (signal group) can be replaced by a redundant control service in the same node or in a different node without affecting the (multiple) subscribers of the data set, and an active control service subscribing to a data set can be replaced by a redundant control service in the same node or in a different node without affecting the publisher of the data set. Thus, the changes are seamless.
[0146] Other types of communication (e.g., access to runtime data from operations and engineering) may require different actions depending on the type of communication. If the communication is based on a publish / subscribe multicast address, no action is required. If the communication is based on a client-server model and a failover to another node occurs, some processing is required. An alternative is that the client must discover / browse to find the new node.
[0147] The previously described variant has several advantages:
[0148] A flexible redundancy concept for controllers, gateways and devices in a network-centric process control system is provided, wherein different system components can be configured for different availability levels based on criticality, cost, etc. Different types of hardware redundancy can also be provided, such as hardware redundancy based on multiple hardware units, hardware redundancy based on one hardware unit being redundant for multiple hardware units, hardware redundancy based on spare capacity in other controllers. In addition, software redundancy (multi-version fault tolerance) is possible. By combining hardware redundancy and software redundancy, high availability can be achieved. Furthermore, redundant hardware units of different hardware types, different software versions and different operating systems can be combined.
[0149] The described advantages are possible due to one or more of the following:
[0150] Controllers, gateways, and devices have a middleware service for signal exchange that enables any control service to access any signal in any other control service without knowing the network layout, control service deployment, or control service internals.
[0151] The middleware binding mechanism makes it possible to move signal publishers from one node to another without affecting subscribers and vice versa.
[0152] Each component is a separate executable file that runs in a separate operating system process.
[0153] Each component has its own "database" for runtime data and configuration data, ie, there is no single component that acts as a central database used by all components.
[0154] Three platform subcomponents (Middleware API, Node Manager API, and Address Synchronization) control service state, input process data, and control logic / IO scanner execution between the active and redundant control service versions.
[0155] The node manager can synchronize the active control service and the redundant control service even if they are running in different nodes.
[0156] All synchronous data (ie, status, inputs, etc.) is transferred in a FW and HW independent format.
[0157] Fig.13 The components of the node 50 according to an embodiment are schematically illustrated in terms of several functional units. The processing circuit 116 uses a computer program product 122 (eg, a storage medium 120) capable of executing Fig.12 The processing circuit 116 may be provided as any combination of one or more of the following items of software instructions in the embodiment shown in the figure: a suitable central processing unit (CPU), a multiprocessor, a microcontroller, a digital signal processor (DSP), etc. The processing circuit 116 may also be provided as at least one application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0158] Specifically, as disclosed above, the processing circuit 116 is configured to cause the node to perform a set of operations. For example, the storage medium 120 may store the set of operations, and the processing circuit system 116 may be configured to retrieve the set of operations from the storage medium 120 to cause the node to perform the set of operations. The set of operations may be provided as a set of executable instructions.
[0159] Therefore, the processing circuit 116 is thus arranged to perform the operations defined for the node. The storage medium 120 may also include a permanent storage device, which may be, for example, any single item or combination of the following: a magnetic memory, an optical memory, a solid-state memory, or even a remotely mounted memory. The node 50 may also include a communication interface 118, which is at least configured to communicate with other components of the node. In this way, the communication interface 118 may include one or more transmitters and receivers, including analog and digital components. The processing circuit 116 controls the general operation of the node, for example, by sending data and control signals to the communication interface 118 and the storage medium 120, receiving data and reports from the communication interface 118, and retrieving data and instructions from the storage medium 230. Other components and related functions of the node are omitted to avoid blurring the concepts proposed herein.
[0160] Fig.14An example of a computer program product 122 is shown that includes a computer-readable storage medium 126. On the computer-readable storage medium 126, a computer program 124 may be stored that may cause the processing circuit 116 and entities and devices operatively coupled thereto (such as the communication interface 118 and the storage medium 120) to perform operations defined herein for a node. Thus, the computer program 124 and / or computer program product 122 may provide means for performing any operations of one or more nodes as disclosed herein.
[0161] exist Fig.14 In the example of , computer program product 122 is illustrated as an optical disc such as a CD (compact disc) or a DVD (digital versatile disc) or a Blu-ray disc. Computer program product 122 may also be embodied as a memory such as a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or an electrically erasable programmable read-only memory (EEPROM), and more specifically as a non-volatile storage medium of a device in an external memory such as a USB (universal serial bus) memory or a flash memory such as a compact flash. Thus, although computer program 124 is schematically shown here as a track on the depicted optical disc, computer program 124 may be stored in any manner suitable for computer program product 122.
[0162] The inventive concept has mainly been described above with reference to some embodiments. However, as readily appreciated by a person skilled in the art, other embodiments than the ones disclosed above are equally possible within the scope of the inventive concept as defined by the appended claims.
Claims
1. A method for providing redundancy in a network-centric process control system (10), wherein at least one node comprises at least one control service (36, 38, 42) and at least one middleware service (40, 44) for communicating in the process control system, wherein the control service and the middleware service (40, 44) are each separate executable files running in separate operating system processes provided by real-time operating systems of the control service and the middleware service, wherein a first control service (52) in a first node (50) that communicates via a first middleware service (70) and implements a first control function (A) is configured to act as an active control service for the first control function (A), and communicates via a second middleware service (108) and implements the first control function (A); A') is arranged to act as a standby control service for the first control function, the method comprising: The first control function (A) is executed (S102) by the first control service by subscribing (S102a) to input process data of the first control function via the first middleware service (70) and publishing (S102b) output process data of the first control function (A) via the first middleware service (70); synchronizing (S104) the first control service (52) with the second control service (78), and Based on the determination that a failure has occurred in the first node (50), the second control service (78) takes over (S108) the role of the active control service, the taking over comprising: based on the second control service (78) subscribing to the input process data, the second control service (78) publishing (S108b) the output process data of the first control function via the second middleware service (108), The publishing of data includes: copying by the control service (52) to the middleware service (70), and grouping the published process data in the data set by the middleware service (70), publishing the data in the network-centric process control system by the middleware service (70) and / or publishing the data to another control service (78) executed in the same node, wherein each data set is assigned a multicast address.
2. The method according to claim 1, wherein the synchronization (S104) of the first control service (52) and the second control service (78) comprises: The first control service (52) sends (S104a) data required for standby operation, and the second control service (78) receives (S104b) the data required for standby operation.
3. The method according to claim 2, further comprising: Before taking over the role of the active control service, the second control service (78) subscribes (S103a) to the input process data of the first control function (A), blocks (S103b) the use of the input process data in the second control service (78), and blocks (S103b) the publication of output process data; and after taking over the role of the active control service, removes (S108a) the blocking.
4. The method according to any preceding claim, wherein the synchronization (S104) of data required for standby operation comprises: Synchronizing states in the first control function.
5. The method according to claim 4 when dependent on claim 2 or 3, wherein the sending (S104a) of data required for standby operation comprises: The state (St) of the first control service (52) is sent to the second control service (78) to be applied to the second control service (78).
6. A method according to claim 4 when dependent on claim 2 or 3, wherein the sending of data required for standby operation comprises: sending process input data (S) and a trigger (1, 2, 3, 4), the trigger causing a state change in the second control service; And executing the trigger in the first control service and the second control service in parallel.
7. A network-centric process control system (10) comprising nodes (18, 20, 22, 24, 26; 50, 76, 84), each node comprising a processor (116) and a computer program product (120) storing instructions, the instructions, when executed by the processor (116), causing the node to run at least one control service (36, 38, 42), wherein the system comprises at least one control service (36, 38, 42) and at least one middleware service (40, 44) for communicating in the process control system, wherein the control service and the middleware service (40, 44) are each separate executable files running in separate operating system processes provided by real-time operating systems of the control service and the middleware service, Wherein in the network-centric process control system (10), A first control service (52) in a first node (50) communicating via a first middleware service (70) and implementing a first control function (A) is arranged to act as an active control service for the first control function (A) by: executing the first control function by subscribing to input process data of the first control function via the first middleware service (70) and publishing output process data of the first control function (A) via the first middleware service (70); a second control service (78) communicating via a second middleware service (108) and implementing said first control function (A, A') being arranged to act as a standby control service for said first control service (52); wherein the first control service (52) and the second control service (78) are arranged to be synchronized with each other, and The second control service (78) is configured to take over the role of the active control service based on a determination that a failure has occurred in the first node, the taking over comprising: Based on the subscription of the second control service (78) to the input process data, the output process data of the first control function is published by the second control service (78) via the second middleware service (108), The publishing of data includes: copying by the control service (52) to the middleware service (70), and grouping the published process data in the data set by the middleware service (70), publishing the data in the network-centric process control system by the middleware service (70) and / or publishing the data to another control service (78) executed in the same node, wherein each data set is assigned a multicast address.
8. The network-centric process control system (10) of claim 7, wherein the first control service (52) and the second control service (78) are provided in the same node (50).
9. The network-centric process control system (10) of claim 7, wherein the first control service (52) and the second control service (78) are provided in different nodes (50, 76).
10. A network-centric process control system (10) according to any one of claims 7 to 9, wherein an implementation of the first control function (A) in the first control service (52) is at least partially different from an implementation of the first control function (A') in the second control service (78).
11. A network-centric process control system (10) according to any one of claims 7 to 9, wherein the implementation of the first control function (A) in the first control service (52) is the same as the implementation of the first control function (A) in the second control service (78).
12. A network-centric process control system (10) according to any one of claims 7 to 9, wherein the first node (50) further includes a node manager (72), which is configured to monitor the operation of the first node (50) and trigger the takeover of the role of the active control service by the second control service (78).
13. A computer program product (124) for providing redundancy in a network-centric process control system (10), the network-centric process control system comprising at least one control service (36, 38, 42) and at least one middleware service (40, 44) for communicating in the process control system, wherein the control service and the middleware service (40, 44) are each separate executable files running in separate operating system processes provided by real-time operating systems of the control service and the middleware service, wherein a first control service (52) in a first node (50) communicating via a first middleware service (70) and implementing a first control function (A) is configured to act as an active control service for the first control function (A), and a second control service (78) communicating via a second middleware service (108) and implementing the first control function (A; A') is configured to act as a standby control service for the first control function, the computer program product comprising computer program code, which when executed in the network-centric process control system: enabling the first control service (52) to execute the first control function by subscribing to input process data of the first control function via the first middleware service (70) and publishing output process data of the first control function (A) via the first middleware service (70); causing the first control service (52) and the second control service (78) to synchronize with each other; as well as causing the second control service to take over the role of the active control service based on the determination that a failure has occurred in the first node, the taking over comprising: publishing the output process data of the first control function by the second control service (78) via a second middleware service (108) provided for the second control service (78) based on the subscription of the second control service (78) to the input process data, The publishing of data includes: copying by the control service (52) to the middleware service (70), and grouping the published process data in the data set by the middleware service (70), publishing the data in the network-centric process control system by the middleware service (70) and / or publishing the data to another control service (78) executed in the same node, wherein each data set is assigned a multicast address.
