High-reliability redundant control system and network redundancy implementation method thereof

By introducing VRRP, UDP, TCP, and Modbus TCP protocols, a highly reliable redundant control system is constructed, which solves the problems of high cost and complex configuration of existing redundant control systems. It realizes a low-cost, highly reliable, and easy-to-deploy redundant control system, which is suitable for small and medium-sized equipment and various industrial control scenarios.

CN123156709APending Publication Date: 2026-11-24BEIJING PUWEI VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611329824.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing redundant control systems are costly, complex to configure, and lack versatility, making it difficult to meet the high cost-performance requirements of small and medium-sized control equipment.

Method used

A highly reliable redundant control system is constructed by combining Virtual Router Redundancy Protocol (VRRP), User Datagram Protocol (UDP), Transmission Control Protocol (TCP), and Socket communication with Modbus TCP protocol. This enables automatic discovery, election, and data synchronization of the primary and backup controllers, simplifying configuration and reducing hardware and maintenance costs.

Benefits of technology

It significantly reduces system costs, improves cost-effectiveness, simplifies configuration processes, enhances deployment flexibility and scenario adaptability, achieves seamless switching and high reliability, and is suitable for a variety of industrial control scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156709A_ABST
    Figure CN123156709A_ABST
Patent Text Reader

Abstract

This invention discloses a high-reliability redundant control system and its network redundancy implementation method, belonging to the field of industrial automation control. Addressing the shortcomings of existing redundant control systems, such as high cost and complex configuration, this invention proposes a system and method that organically integrates a virtual routing redundancy protocol, a user datagram protocol for dynamic discovery, a transmission control protocol for master-slave election, socket data synchronization, and the Modbus TCP industrial protocol. The master and backup controllers are connected via a general network, achieving seamless switching of external communication using VRRP virtual addresses, mutual device detection via UDP heartbeat, master controller uniqueness through TCP negotiation, data consistency through Socket communication, and standardized interaction with the host computer and underlying devices through the Modbus TCP interface. Compared to dedicated direct-connection solutions, this invention significantly reduces system construction and maintenance costs, simplifies deployment processes, and possesses high flexibility, high compatibility, and high reliability, making it suitable for various industrial control scenarios with high requirements for continuity and fault tolerance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial automation control technology, and in particular to a high-reliability redundant control system and its network redundancy implementation method. Background Technology

[0002] In modern industrial production, especially in continuous production processes such as petrochemicals, power generation, metallurgy, and water treatment, the downtime of control systems is extremely sensitive. As a core control device, the reliability and availability of programmable logic controllers (PLCs) directly affect production safety and economic efficiency.

[0003] Currently, most existing redundant systems based on programmable logic controllers (PLCs) employ two central processing unit (CPU) modules: one as the master processor and the other as a slave processor. The master processor executes programs and controls I / O devices, while the slave processor monitors the master processor's status via a direct connection network. If the master processor fails, the slave processor immediately takes over control. Such solutions typically rely on dedicated direct connection networks (such as heartbeat networks) and customized hardware platforms, resulting in high system costs and demanding technical expertise from programmers and maintenance personnel. Furthermore, existing technologies are complex to configure and have limited scalability, making it difficult to meet the demand for cost-effective redundancy solutions in rapidly evolving small and medium-sized control devices.

[0004] Therefore, there is an urgent need for a redundant control system that is lower in cost, easier to configure, more flexible in deployment, and more reliable, in order to adapt to a wider range of industrial automation application scenarios. Summary of the Invention

[0005] This invention aims to solve the technical problems of high cost, complex configuration, and poor versatility of existing redundant control systems, and provides a high-reliability redundant control system and its network redundancy implementation method.

[0006] To achieve the above objectives, the present invention provides a highly reliable redundant control system, comprising: a first programmable controller configured as a master controller; and a second programmable controller configured as a backup controller. Both the master controller and the backup controller are connected to the same network and achieve redundancy control through the following modules:

[0007] The Virtual Router Redundancy Protocol (VRRP) module is used to establish a VRRP protocol between the primary controller and the backup controller, and provides a virtual address as a unified entry point for external communication. The primary controller holds and responds to communication requests for the virtual address.

[0008] The dynamic discovery module is used to periodically exchange heartbeat signals and status information between the main controller and the backup controller via User Datagram Protocol (UDP) to monitor the online status of the other party in real time.

[0009] The master-slave election module is used to establish a Transmission Control Protocol (TCP) connection between the master controller and the backup controller when the system starts up or the master controller fails, and to exchange priority information through the TCP connection in order to negotiate and elect a new master controller.

[0010] The data synchronization module is used to package and transmit the key memory data of the main controller to the mirror memory area of ​​the backup controller in real time via socket communication, so as to maintain data consistency between the main and backup controllers.

[0011] The external communication module is used to publish control data corresponding to the virtual address to the host computer system via the Modbus TCP protocol, and to communicate with the underlying physical programmable controller's central processing unit to send control commands and obtain status feedback.

[0012] The present invention also provides a method for implementing network redundancy in a high-reliability redundant control system applied to the above-mentioned system, comprising:

[0013] Step 1: The main controller and the backup controller cooperate to establish a virtual address through the VRRP protocol, and use the virtual address as a unified entry point for communication with the external network;

[0014] Step 2: The main controller holds and responds to communication requests for the virtual address, providing services to the outside world;

[0015] Step 3: The main controller and the backup controller periodically exchange heartbeat signals and status information via UDP broadcast to monitor each other's online status in real time;

[0016] Step 4: When the system starts up or the main controller fails, the main controller and the backup controller establish a TCP connection and negotiate and elect the main controller role by exchanging priority information;

[0017] Step 5: The main controller packages its own key memory data in real time and transmits it to the mirror memory area of ​​the backup controller through Socket communication to achieve data synchronization;

[0018] Step 6: The main controller or the new main controller after switching communicates with the host computer system and the underlying physical programmable controller central processing unit via the Modbus TCP protocol.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] 1. Significantly Reduced Costs and Improved Cost-Effectiveness: This invention eliminates the reliance of traditional redundant systems on customized dedicated hardware and direct-connect networks, building upon common network protocols (such as VRRP, UDP, and TCP) and standard industrial interfaces (such as Modbus TCP). This allows the system to be deployed on lower-cost, more versatile standard programmable controllers, greatly reducing hardware and development / maintenance costs.

[0021] 2. Simplified configuration and lowered usage threshold: This invention achieves "plug-and-play" deployment by introducing automatic device discovery, automatic master-slave election, and automatic failover mechanisms. Users do not need to master complex underlying synchronization protocol configuration knowledge to quickly build redundant control systems, significantly reducing the technical threshold for operation and maintenance and making it suitable for a wider range of engineering and technical personnel.

[0022] 3. Enhanced Deployment Flexibility and Scenario Adaptability: This invention adopts an open network communication architecture, which can be flexibly deployed in various standard industrial Ethernet environments without being limited by specific network topologies. Its excellent scalability and platform compatibility enable it to be widely used in various control scenarios such as small and medium-sized equipment, remote control units, and edge computing nodes, thus broadening the application boundaries of redundancy technology. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only for this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a topological diagram of the overall architecture of the high-reliability redundant control system described in an embodiment of the present invention.

[0025] Figure 2 This is a flowchart illustrating the state switching process of the primary and backup controllers according to an embodiment of the present invention.

[0026] Figure 3 This is the overall topology diagram of the redundant PLC control system described in the embodiment of the present invention.

[0027] Figure 4 This is a topology diagram of an automatic control system for a specific application example of the present invention. Detailed Implementation

[0028] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. It should also be noted that, to make the embodiments more comprehensive, the following embodiments are the best and preferred embodiments, and those skilled in the art can use other alternative methods to implement some well-known technologies; moreover, the accompanying drawings are only for more specific description of the embodiments and are not intended to specifically limit the present invention.

[0029] Example 1: System Architecture

[0030] like Figure 1-3 As shown, this embodiment provides a highly reliable redundant control system. The system includes: a first programmable controller configured as a primary PLC and a second programmable controller configured as a backup PLC. Both are connected to the same industrial control network via a standard Ethernet switch.

[0031] The core modules of the system include:

[0032] 1. VRRP Module: Runs the VRRP protocol on both the primary and backup PLCs. Both share a single virtual IP address. Initially, the primary PLC holds this virtual IP address and is responsible for responding to all requests sent to that address (such as requests from the HMI or SCADA system).

[0033] 2. UDP Dynamic Discovery Module: The primary and backup PLCs periodically send heartbeat messages to a specific multicast or broadcast address via the UDP protocol. The message content includes the device ID, operating status (primary / backup / initialization), timestamp, etc. By listening to each other's heartbeats, each PLC can perceive the existence and health status of the other end in real time, avoiding device silos.

[0034] 3. TCP Master-Slave Election Module: Upon system startup or upon detecting a loss of the master device's heartbeat, an election process is triggered. A reliable TCP connection is established between the two PLCs, and their respective priorities are exchanged through this connection (priorities can be preset, such as based on device MAC addresses, user-defined values, etc.). The device with the higher priority becomes the master controller, and the device with the lower priority becomes the standby. This mechanism effectively prevents the "split-brain" phenomenon and ensures consistency in system decision-making.

[0035] 4. Socket Data Synchronization Module: At the end of each program cycle or when critical data (such as output image tables or important intermediate variables) changes, the main PLC packages data from a specified memory area into a custom data frame and sends it to the standby PLC via a dedicated socket connection. Upon receiving the data, the standby PLC writes it to its corresponding local mirror memory area. This process ensures that the standby PLC always has nearly identical status data to the main PLC.

[0036] 5. Modbus TCP External Communication Module: This module provides a bidirectional interface. Externally, the main PLC (or the new main PLC after a fault switch) acts as a Modbus TCP server, providing standard register / coil addresses to the host computer system for reading system status. Internally, the main PLC acts as a Modbus TCP client, communicating with the CPUs of underlying execution devices (such as frequency converters and instruments) or extended I / O modules to complete instruction issuance and data acquisition.

[0037] Example 2: Method Flow

[0038] Combination Figure 2 The flowchart shown illustrates the implementation method of redundancy control in this embodiment.

[0039] Step 1 (Virtual Address Establishment): After the system is powered on, both the main PLC and the standby PLC load the VRRP configuration and jointly create a virtual IP address V_IP.

[0040] Step 2 (Normal Service): The VRRP protocol elects PLC-A as the master controller based on preset priorities (e.g., PLC-A priority is 150, PLC-B priority is 100). PLC-A begins responding to V_IP. The host computer communicates with PLC-A via V_IP.

[0041] Step 3 (Status Monitoring): PLC-A and PLC-B each start a UDP heartbeat sending thread. Both send a UDP heartbeat packet to each other every 50ms.

[0042] Step 4 (Fault and Election): If PLC-B does not receive a heartbeat from PLC-A within three consecutive heartbeat cycles, it determines that the main controller has failed. PLC-B immediately triggers the TCP election process. Since PLC-A is unresponsive, PLC-B automatically becomes the main controller and begins responding to V_IP.

[0043] Step 5 (Data Synchronization): When PLC-A is the master controller, whenever its output image table is updated, the updated data is pushed to the mirror area of ​​PLC-B via a Socket connection. If, during the switchover, PLC-B immediately uses the latest mirror data to continue executing the control logic after taking over, a seamless switchover is achieved.

[0044] Step 6 (External Interaction): After the switch, the new master controller (original PLC-B) immediately establishes a new session with the host computer through its Modbus TCP interface (or utilizes the fast retransmission mechanism of the original connection) and continues to periodically exchange data with the underlying IO devices.

[0045] Example 3: Specific Application Case

[0046] The technical solution of this invention has been deployed and verified in a heat exchange station of Qingdao Energy Group. The topology of the station's on-site automatic control system is as follows: Figure 4 As shown.

[0047] The system configuration includes: two redundant CPUs (connected via standard Ethernet cables to form a redundant controller), I / O modules (consisting of one 32DI module, one 32DO module, nine 8AI modules, and three 8AO modules, connected to the ring network via Ethernet interfaces), and field instrumentation equipment (12 temperature transmitters, 18 pressure transmitters, 13 electric control valves, 7 variable frequency water pumps, and 12 meters, totaling 21DI / 14DO / 62AI / 20AO). Field data monitoring is achieved via a touchscreen, and the redundant controller is connected to the group's intranet via an internal switch to interact with the upper-level SCADA software.

[0048] The system operated stably during the 2024-2025 heating season. A three-day performance test was conducted on the redundancy function, and the results are as follows:

[0049] Test Items operate result Switching / Resumption Time Software-triggered primary / backup switchover Execute "Switch" through debugging software. The backup station was promoted to the master station, and there was no communication interruption with the HMI. ≤60ms Hardware restart main site Disconnect the main CPU power supply The backup station automatically takes over, with no change in IO status. 55ms CPU hardware failure Remove the main station CPU The backup station immediately takes over control, and the HMI alarm records are updated. 72ms Synchronous link interruption Disconnect the synchronous cable The two machines operate independently and automatically synchronize after recovery (without data loss). Synchronization delay <1s Network ring network breakpoint Cut off single-point links in the ring network Communication continues uninterrupted, and I / O devices remain uninterrupted. 0ms

[0050] The performance test results are as follows: synchronization latency ≤15ms, program synchronization bandwidth 12 MB / s, IO retention rate after handover 100%, and HMI screen recovery time 1.2s. All fault handover times are <100ms, which is better than the industry standard requirement (200ms), verifying the extremely high reliability and seamless handover capability of the system and method proposed in this invention.

[0051] In summary, this invention creatively combines mature network protocols such as VRRP, UDP dynamic discovery, TCP election, Socket synchronization, and Modbus TCP, and applies them to the field of PLC redundancy control, constructing a low-cost, highly reliable, and easily deployable redundant control system. This system effectively solves the pain points of existing technologies and has significant industrial application value. This invention covers any substitutions, modifications, equivalent methods, and solutions made within the essence and scope of this invention. To provide the public with a thorough understanding of this invention, specific details are described in detail in the following preferred embodiments; however, those skilled in the art can fully understand this invention even without these details. Furthermore, to avoid unnecessary confusion regarding the essence of this invention, well-known methods, processes, flows, components, and circuits are not described in detail.

[0052] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A high-reliability redundant control system, characterized by, include: The first programmable controller is configured as the main controller. The second programmable controller is configured as a backup controller. Both the main controller and the backup controller are connected to the same network and achieve redundancy control through the following modules: The virtual routing redundancy protocol module is used to establish a virtual routing redundancy protocol between the main controller and the backup controller, and to provide a virtual address as a unified entry point for external communication, wherein the main controller holds and responds to communication requests for the virtual address; The dynamic discovery module is used to periodically exchange heartbeat signals and status information between the main controller and the backup controller via user datagram protocol broadcast, so as to monitor the online status of the other party in real time. The master-slave election module is used to establish a transmission control protocol connection between the master controller and the backup controller when the system starts up or the master controller fails, and to exchange priority information through the transmission control protocol connection in order to negotiate and elect a new master controller. A data synchronization module is used to package and transmit critical memory data of the primary controller to the mirror memory area of ​​the backup controller in real time via socket communication, so as to maintain data consistency between the primary and backup controllers; and The external communication module is used to publish control data corresponding to the virtual address to the host computer system via the Modbus TCP protocol, and to communicate with the underlying physical programmable controller's central processing unit to send control commands and obtain status feedback.

2. The high-reliability redundant control system of claim 1, wherein, The virtual routing redundancy protocol module is also configured to: based on the heartbeat detection result, when it is determined that the main controller has failed or is operating abnormally, automatically release the virtual address according to a preset priority and transfer the virtual address to the backup controller, thereby realizing device-level hot backup and seamless switching.

3. The high-reliability redundant control system of claim 1, wherein, The master-slave election module is also configured to prevent split-brain problems, ensuring that only one master controller exists in the system at any given time.

4. A network redundancy implementation method of a high-reliability redundant control system, applied to the high-reliability redundant control system of any one of claims 1 to 3, characterized in that, include: Step 1: The main controller and the backup controller cooperate to establish a virtual address through a virtual routing redundancy protocol, and use the virtual address as a unified entry point for communication with the external network; Step 2: The main controller holds and responds to communication requests for the virtual address, providing services to the outside world; Step 3: The main controller and the backup controller periodically exchange heartbeat signals and status information via User Datagram Protocol (UDP) to monitor each other's online status in real time; Step 4: When the system starts up or the main controller fails, the main controller and the backup controller establish a transmission control protocol connection and negotiate and elect the role of the main controller by exchanging priority information; Step 5: The main controller packages its own key memory data in real time and transmits it to the mirror memory area of ​​the backup controller through socket communication to achieve data synchronization; Step 6: The main controller or the new main controller after switching communicates with the host computer system and the underlying physical programmable controller central processing unit via the Modbus TCP protocol.

5. The network redundancy implementation method of a high-reliability redundant control system according to claim 4, characterized in that, The process of negotiating and electing the main controller role in step 4 is completed through a stable transmission control protocol channel based on preset priority and status flag information, so as to maintain the uniqueness of the main controller role.

6. The network redundancy implementation method of a high-reliability redundant control system according to claim 4, wherein, Step 1 further includes: when the main controller fails, the virtual routing redundancy protocol automatically releases the virtual address and transfers it to the backup controller according to a preset priority and heartbeat detection mechanism, and the backup controller takes over as the new main controller and continues to respond to the virtual address.

7. The network redundancy implementation method of a high-reliability redundant control system according to claim 4, characterized in that, The key memory data synchronized in step 5 includes at least: input image table data, output image table data, and intermediate variable states generated during controller runtime.

8. The network redundancy implementation method of a high-reliability redundant control system according to claim 4, characterized in that, Step 6 specifically includes: Step 61: The main controller or the new main controller after switching provides a control data interface to the host computer system or monitoring platform through the Modbus TCP protocol, so that external devices can read the running data corresponding to the virtual address; Step 62: The main controller or the new main controller after switching establishes a communication channel with the underlying physical programmable controller central processing unit through the Modbus TCP protocol, issues industrial field control commands and receives status feedback.

9. The network redundancy implementation method of a high-reliability redundant control system according to claim 4, wherein, If the backup controller does not receive a heartbeat signal from the master controller within a preset time, it determines that the master controller is faulty and automatically triggers the master-slave election process in step 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 4 to 9.