High-availability IO module redundancy control method and system for secure and reliable system
Through the independent template side and channel redundancy control method, the problem of insufficient availability of existing IO module redundancy technology is solved, high availability and cost reduction are achieved, and the system can operate stably in multiple failures.
Patent Information
- Application Number
- CN202411119833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The existing IO module redundancy technology is insufficient in multiple failure situations, resulting in uncontrollable systems and high hardware costs, requiring more manpower and spare parts for inspection and maintenance.
Using a combined control method of independent template side redundancy and channel redundancy, communicate with the controller through the system network SNet, and manage the status of the module and channel respectively. If a failure occurs, only the faulty part will be switched, and the other parts will continue to operate normally to avoid hardware increase. .
Improves the availability of modules, reduces the impact of failures, reduces hardware costs and labor requirements, and ensures the stable operation of the system in multiple failures.
Smart Images

Figure CN118689088B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial control technology, and in particular to a high-availability IO module redundancy control method and system for a safe and reliable system. Background Art
[0002] DCS control systems (Distributed Control System) are widely used in industries such as electricity, metallurgy, petroleum, and chemicals. In specific application scenarios, they have high requirements for safety, and the IO modules used need to have redundancy functions. DCS control systems are often used in process control systems for continuous operations. If an abnormal stop occurs, it will cause serious losses to the company. Therefore, module availability is also particularly important in actual use.
[0003] Module redundancy technology: Redundancy switching can only be based on the switching of the entire module. As long as there is a fault in the module, the full function cannot be used normally. For example, when the module detects a channel fault and a redundancy switch occurs, if another module fails again without replacing the faulty module in time, the current redundant module is in a faulty state.
[0004] Multiple redundancy technology: The hardware cost is high and an additional voting circuit is required. Like module redundancy technology, when a module fails, if it fails again without timely replacement, the current redundant module will be in a faulty state.
[0005] At present, the above two technologies have the problem of low availability. When multiple faults occur, the system may become uncontrollable. Therefore, when using modules of these two technologies, more manpower is needed to inspect the modules, and more spare parts need to be prepared.
[0006] In summary, a high-availability IO module redundancy control method and system for a safe and reliable system is needed to address the deficiencies in the prior art. Summary of the invention
[0007] In view of the deficiencies in the prior art, the present invention provides a high-availability IO module redundancy control method and system for a safe and reliable system, aiming to solve the above problems.
[0008] To achieve the above object, the present invention provides the following technical solution: a high-availability IO module redundancy control method and system for a safe and reliable system, comprising the following steps:
[0009] Step S1: After power-on, the two redundant modules enter the redundant state, and the channel control switch is disconnected;
[0010] Step S2: Determine whether the current template side address value is less than the template side address value of the redundant module;
[0011] Step S3: If the current template side address value is smaller than the template side address value of the redundant module, the channel control switch of the working module is closed to enter the working mode, and the working module operation steps are executed; if the current template side address value is greater than the template side address value of the redundant module, the channel control switch of the working module remains disconnected to enter the backup mode, and the backup module operation steps are executed.
[0012] Optionally, the module execution working module operation steps in step S3 are:
[0013] Step Sa1: Communicate with the controller and self-diagnose. The working module communicates with the controller through SNet, sends / receives data when acting as an input / output module, and performs self-diagnosis regularly. If an abnormality is found, the controller is alerted and the backup module is requested to exit the working mode.
[0014] Step Sa2: Channel management and switching: The module periodically polls the status of all channels. For channels in working mode, the module closes the corresponding channel control switch to connect external devices.
[0015] Step Sa3: Fault handling: If a channel or template fails, the working module notifies the backup module to take over, closes the faulty channel and activates the backup channel, or completely exits the working mode to switch the backup module to the working mode, otherwise continues normal acquisition or output control.
[0016] Optionally, the step Sa1 is specifically as follows:
[0017] Step S201: Communicate with the controller through SNet. When the module is used as an input module, the collected channel data is sent to the controller. When the module is used as an output module, the data sent by the controller is received and output.
[0018] Step S202: Determine whether the current module diagnosis is normal;
[0019] Step S203: Send a diagnostic data alarm to the controller, and send a module exit working mode request to the backup module, and the module exits the working mode. After exiting the working mode, the module executes the backup module operation steps.
[0020] Optionally, the step Sa2 is specifically as follows:
[0021] Step S204: polling all channels in the module;
[0022] Step S205: determining whether the current channel is in working mode;
[0023] Step S206: If the current channel is not in working mode, the channel control switch is turned off;
[0024] Step S207: If the current channel is in working mode, the channel control switch is closed to connect the external controlled and tested device.
[0025] Optionally, the step Sa3 is specifically as follows:
[0026] Step S208: Determine whether the current channel diagnosis is normal;
[0027] Step S209: If the channel does not fail, a channel exit working mode request is sent to the backup module, and the current channel exits working mode;
[0028] Step S210: If a channel fails, the channel is collected or output controlled according to the channel control data.
[0029] Optionally, in step S3, the module executes the backup module operation steps:
[0030] Step S31: The backup module interacts with the working module through redundant communication, sends channel data when acting as an input module, and receives data when acting as an output module; determines whether a command to exit the working mode is received, and switches to the working mode if received, otherwise polls all channels;
[0031] Step S32: Determine the working mode of the current channel, if it is not in the working mode, disconnect the channel control switch, if it is in the working mode, close the switch and connect the external device;
[0032] Step S33: Determine the channel diagnosis status. If it is abnormal, request to exit the working mode and close the channel. Otherwise, perform normal collection or output operations according to the control data.
[0033] Optionally, the step S31 is specifically as follows:
[0034] Step S301: Communicate with the working module through redundant communication. When the module is used as an input module, it sends the collected channel data to the working module. When the module is used as an output module, it receives the data sent by the working module for output.
[0035] Step S302: Determine whether a command to exit the working mode sent by the working module is currently received;
[0036] Step S303: If an exit working mode command is received, the mode is switched to working mode and the working module operation steps are executed.
[0037] Optionally, the step S32 is specifically:
[0038] Step S304: If no exit working mode command is received, all channels in the module are polled;
[0039] Step S305: determine whether the current channel is in working mode;
[0040] Step S306: If the channel is not in working mode, disconnect the channel control switch;
[0041] Step S307: If the channel is in working mode, the channel control switch is closed to connect the external controlled and tested device.
[0042] Optionally, the step S33 is specifically as follows:
[0043] Step S308: Determine whether the current channel diagnosis is normal;
[0044] Step S309: If a channel fails, a channel exit working mode request is sent to the working module, and the current channel exits the working mode;
[0045] Step S310: If the channel has no fault, the channel is collected or output controlled according to the channel control data.
[0046] A high-availability IO module redundant control system for a safe and reliable system, including a system network SNet and a communication module.
[0047] System network SNet, used to communicate with the controller;
[0048] IO module, when the module is used as an input module, it transmits the data collected by the module to the controller through SNet; when the module is used as an output module, it outputs the control data received through SNet;
[0049] Several input / output channels are set in the IO module, and channel control switches are set on the input / output channels to control the opening or closing of the channels.
[0050] Beneficial effects of the present invention:
[0051] In the present invention, the redundancy of the independent template side and the channel is controlled separately. In this way, the availability of the module can be greatly improved. When any part fails, the redundancy function of other parts is not affected.
[0052] Compared with the multiple redundancy technology, the present invention does not need to add hardware to reduce costs and reduce failure points;
[0053] In the present invention, the module is divided into two parts, the template side and the channel side. The template side is responsible for communication tasks, and the channel is responsible for channel control tasks. The two parts in a pair of redundant modules are separately redundant. If a channel failure occurs, only the failed channel is switched, and the other channels and communication parts still work in the original module. If a communication part fails, only the template side is switched, and the channel part still works in the original module. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic flow chart of the method of the present invention.
[0055] Figure 2 A flowchart diagram for the operation of a work module.
[0056] Figure 3 A flowchart of the backup module operation.
[0057] Figure 4 A redundant block diagram of the system of the present invention.
[0058] Figure 5 A data flow diagram for working modules and working channels in the same module.
[0059] Figure 6 A data flow diagram for working modules and working channels in different modules.
[0060] Figure 7 A data flow diagram for working modules and some working channels in different modules. DETAILED DESCRIPTION
[0061] In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0062] like Figure 1-Figure 3 As shown, a high-availability IO module redundancy control method for a safe and reliable system includes:
[0063] 1. Module power-on mode judgment:
[0064] Step S1: After power-on, the two redundant modules enter the redundant state, and the channel control switch is disconnected;
[0065] Step S2: Determine whether the current template side address value is less than the template side address value of the redundant module;
[0066] Step S3: If the current template side address value is less than the template side address value of the redundant module, the channel control switch of the working module is closed to enter the working mode, and the working module operation steps are executed; if the current template side address value is greater than the template side address value of the redundant module, the channel control switch of the working module remains disconnected to enter the backup mode, and the backup module operation steps are executed;
[0067] 2. Working module operation steps:
[0068] Step Sa1: Communicate with the controller and self-diagnose. The working module communicates with the controller through SNet, sends / receives data when acting as an input / output module, and performs self-diagnosis regularly. If an abnormality is found, the controller is alerted and the backup module is requested to exit the working mode.
[0069] Step Sa2: Channel management and switching: The module periodically polls the status of all channels. For channels in working mode, the module closes the corresponding channel control switch to connect external devices.
[0070] Step Sa3: Fault handling: If a channel or template fails, the working module notifies the backup module to take over, closes the faulty channel and activates the backup channel, or completely exits the working mode to switch the backup module to the working mode, otherwise continues normal acquisition or output control.
[0071] The specific steps include:
[0072] Step S201: Communicate with the controller through SNet. When the module is used as an input module, the collected channel data is sent to the controller. When the module is used as an output module, the data sent by the controller is received and output.
[0073] Step S202: Determine whether the current module diagnosis is normal;
[0074] Step S203: Sending diagnostic data alarm to the controller, and sends a request to the backup module to exit the working mode, and the module exits the working mode, after exiting the working mode, the module executes the backup module operation steps;
[0075] Step S204: polling all channels in the module;
[0076] Step S205: determining whether the current channel is in working mode;
[0077] Step S206: If the current channel is not in working mode, the channel control switch is turned off;
[0078] Step S207: If the current channel is in working mode, the channel control switch is closed to connect the external controlled and tested device;
[0079] Step S208: Determine whether the current channel diagnosis is normal;
[0080] Step S209: If the channel does not fail, a channel exit working mode request is sent to the backup module, and the current channel exits working mode;
[0081] Step S210: If a channel fails, the channel is collected or output controlled according to the channel control data.
[0082] 3. Backup module operation steps:
[0083] Step S31: The backup module interacts with the working module through redundant communication, sends channel data when acting as an input module, and receives data when acting as an output module; determines whether a command to exit the working mode is received, and switches to the working mode if received, otherwise polls all channels;
[0084] Step S32: Determine the working mode of the current channel, if it is not in the working mode, disconnect the channel control switch, if it is in the working mode, close the switch and connect the external device;
[0085] Step S33: Determine the channel diagnosis status. If it is abnormal, request to exit the working mode and close the channel. Otherwise, perform normal collection or output operations according to the control data.
[0086] The specific steps include:
[0087] Step S301: Communicate with the working module through redundant communication. When the module is used as an input module, it sends the collected channel data to the working module. When the module is used as an output module, it receives the data sent by the working module for output.
[0088] Step S302: Determine whether a command to exit the working mode sent by the working module is currently received;
[0089] Step S303: If an exit working mode command is received, the mode is switched to working mode and the working module operation steps are executed.
[0090] Step S304: If no exit working mode command is received, all channels in the module are polled;
[0091] Step S305: determine whether the current channel is in working mode;
[0092] Step S306: If the channel is not in working mode, disconnect the channel control switch;
[0093] Step S307: If the channel is in working mode, the channel control switch is closed to connect the external controlled and tested device.
[0094] Step S308: Determine whether the current channel diagnosis is normal;
[0095] Step S309: If a channel fails, a channel exit working mode request is sent to the working module, and the current channel exits the working mode;
[0096] Step S310: If the channel has no fault, the channel is collected or output controlled according to the channel control data.
[0097] like Figure 4-Figure 7,As shown, a high-availability IO module redundant control system for a safe and reliable system includes a system network SNet and a communication module,
[0098] System network SNet, used to communicate with the controller;
[0099] Communication module: when the module is used as an input module, it transmits the data collected by the module to the controller through SNet; when the module is used as an output module, it outputs the control data received through SNet;
[0100] Several communication channels are arranged in the communication module, and channel control switches are arranged on the communication channels to control the opening or closing of the channels.
[0101] Redundant communication: realize communication between two redundant modules;
[0102] S1~16: Channel control switch, used to control the opening or closing of the channel. It is not limited to switch elements, as long as the channel can be opened or closed;
[0103] Channel1~16: Specific channel control loop.
[0104] like Figure 4 Shown is the status of a pair of modules without any redundant switching. The left module template side is in working mode, and all channel control switches on the channel side are closed in working mode. The right module template side is in backup mode, and all channel control switches on the channel side are disconnected and in backup mode.
[0105] Redundancy switching instructions:
[0106] When a fault occurs, only the faulty part is switched. For example, when channel 1 fails, only channel 1 is switched to the backup channel 1 of another module, and the module and other channels remain in the current state. Or, when a module sends a fault, only the template side is switched, and the channel remains in the current state.
[0107] The switching of the master and standby modes on the template side and the master and standby modes on the channel side are controlled by the current module as the working mode module. The following uses the fault mode as an example:
[0108] Channel failure:
[0109] If a channel failure is detected, the module in working mode on the template side will perform channel switching control. The switching scenarios can be divided into two types.
[0110] Scenario 1: The working module and the current faulty channel are in the same module. The working module closes the current faulty channel and notifies the backup module to open the corresponding channel through redundant communication. For example, if channel 1 of the working module fails, the control switch of channel 1 of the backup module is closed after the control switch of channel 1 of the working module is disconnected, completing the channel switching.
[0111] Scenario 2: The working module and the current faulty channel are in different modules. The working module notifies the backup module to close the faulty channel through redundant communication. After the channel is closed, the corresponding channel of the working module is opened. For example, if channel 1 in the backup module fails, the working module notifies the backup module to close channel 1 through redundant communication. After the channel control switch of channel 1 is disconnected, the channel control switch of channel 1 of the module where the working module is located is closed to complete the channel switching.
[0112] Module failure:
[0113] If a fault is detected in the working module itself, the working module exits the working mode and sends a module switching command to the backup module through redundant communication. After receiving the command, the backup module switches to the working mode.
[0114] Data flow:
[0115] The internal data flow of the IO module is represented by a dotted line. The data transmission direction depends on the module type. When the module is an input module, the data transmission direction is from the channel side → the template side → the controller (SNet). When the module is an output module, the data transmission direction is from the controller (SNet) → the template side → the channel side.
[0116] like Figure 5 As shown, it shows the data flow when the working module and working channel are in the same module;
[0117] like Figure 6 As shown in the figure, the data flow of the working module and the working channel in different module situations is shown, and the control data of the backup module channel side is obtained from the working module through redundant communication;
[0118] like Figure 7 As shown, the data flow of the working module and some working channels in different modules is shown. The channel control data of the working channel and the working module in the same module is directly obtained from the working module, and the control data of some working channels in the backup module is obtained from the working module through redundant communication.
[0119] The working principle of the present invention is as follows: the module is divided into two parts: the template side and the channel. The template side is responsible for communication tasks, and the channel is responsible for channel control tasks. In a pair of redundant modules, the two parts are independently redundant. If a channel failure occurs, only the failed channel is switched, and the other channels and communication parts still work in the original module. If a communication part fails, only the template side is switched, and the channel part still works in the original module. Independent template side redundancy and channel redundancy, the two parts are independently controlled. In this way, the availability of the module can be greatly improved. When any part fails, it does not affect the redundant functions of other parts. Compared with the multiple redundancy technology, there is no need to increase hardware to reduce costs and reduce failure points.
[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A high-availability IO module redundancy control method for a safe and reliable system, characterized in that: The following steps are involved: Step S1: After power-on, the two redundant modules enter the redundant state, and the channel control switch is disconnected; Step S2: Determine whether the current template side address value is less than the template side address value of the redundant module; Step S3: If the current template side address value is less than the template side address value of the redundant module, the channel control switch of the working module is closed to enter the working mode, and the working module operation steps are executed; if the current template side address value is greater than the template side address value of the redundant module, the channel control switch of the working module remains disconnected to enter the backup mode, and the backup module operation steps are executed. The module is divided into two parts, the template side and the channel. The template side is responsible for communication tasks, and the channel is responsible for channel control tasks. If a channel failure occurs, only the faulty channel will be switched, and the other channels and communication parts will still work in the original module. If a communication part failure occurs, only the template side will be switched, and the channel part will still work in the original module. Independent template side redundancy and channel redundancy, the two parts of redundancy are controlled separately.
2. The high-availability IO module redundancy control method of the secure and reliable system according to claim 1, characterized in that: The module execution working module operation steps in step S3 are: Step Sa1: Communicate with the controller and self-diagnose. The working module communicates with the controller through SNet, sends / receives data when acting as an input / output module, and performs self-diagnosis regularly. If an abnormality is found, the controller is alerted and the backup module is requested to exit the working mode. Step Sa2: Channel management and switching: The module periodically polls the status of all channels. For channels in working mode, the module closes the corresponding channel control switch to connect external devices. Step Sa3: Fault handling: If a channel or template fails, the working module notifies the backup module to take over, closes the faulty channel and activates the backup channel, or completely exits the working mode to switch the backup module to the working mode, otherwise continues normal acquisition or output control.
3. The high-availability IO module redundancy control method of the secure and reliable system according to claim 2, characterized in that: The step Sa1 is specifically as follows: Step S201: Communicate with the controller through SNet. When the module is used as an input module, the collected channel data is sent to the controller. When the module is used as an output module, the data sent by the controller is received and output. Step S202: Determine whether the current module diagnosis is normal; Step S203: Send a diagnostic data alarm to the controller, and send a module exit working mode request to the backup module, and the module exits the working mode. After exiting the working mode, the module executes the backup module operation steps.
4. The high-availability IO module redundancy control method of the secure and reliable system according to claim 3, characterized in that: The step Sa2 is specifically as follows: Step S204: polling all channels in the module; Step S205: determining whether the current channel is in working mode; Step S206: If the current channel is not in working mode, the channel control switch is turned off; Step S207: If the current channel is in working mode, the channel control switch is closed to connect the external controlled and tested device.
5. The high-availability IO module redundancy control method of the safe and reliable system according to claim 4, characterized in that: The step Sa3 is specifically as follows: Step S208: Determine whether the current channel diagnosis is normal; Step S209: If the channel does not fail, a channel exit working mode request is sent to the backup module, and the current channel exits working mode; Step S210: If a channel fails, the channel is collected or output controlled according to the channel control data.
6. The high-availability IO module redundancy control method of the secure and reliable system according to claim 1, characterized in that: In step S3, the module executes the backup module operation steps: Step S31: The backup module interacts with the working module through redundant communication, sends channel data when acting as an input module, and receives data when acting as an output module; determines whether a command to exit the working mode is received, and switches to the working mode if received, otherwise polls all channels; Step S32: Determine the working mode of the current channel, if it is not in the working mode, disconnect the channel control switch, if it is in the working mode, close the switch and connect the external device; Step S33: Determine the channel diagnosis status. If it is abnormal, request to exit the working mode and close the channel. Otherwise, perform normal collection or output operations according to the control data.
7. The high-availability IO module redundancy control method of a secure and reliable system according to claim 6, characterized in that: The step S31 is specifically as follows: Step S301: Communicate with the working module through redundant communication. When the module is used as an input module, the collected channel data is sent to the working module. When the module is used as an output module, the data sent by the working module is received and outputted. Step S302: Determine whether a command to exit the working mode sent by the working module is currently received; Step S303: If an exit working mode command is received, the mode is switched to working mode and the working module operation steps are executed.
8. The high-availability IO module redundancy control method of the secure and reliable system according to claim 7, characterized in that: The step S32 is specifically as follows: Step S304: If no exit working mode command is received, all channels in the module are polled; Step S305: determine whether the current channel is in working mode; Step S306: If the channel is not in working mode, disconnect the channel control switch; Step S307: If the channel is in working mode, the channel control switch is closed to connect the external controlled and tested device.
9. The high-availability IO module redundancy control method of a secure and reliable system according to claim 8, characterized in that: The step S33 is specifically as follows: Step S308: Determine whether the current channel diagnosis is normal; Step S309: If a channel fails, a channel exit working mode request is sent to the working module, and the current channel exits the working mode; Step S310: If the channel has no fault, the channel is collected or output controlled according to the channel control data.
10. A high-availability IO module redundancy control system for a safe and reliable system, using the high-availability IO module redundancy control method for a safe and reliable system as claimed in claim 1, characterized in that: Including system network SNet and IO modules, System network SNet, used to communicate with the controller; IO module, when the module is used as an input module, it transmits the data collected by the module to the controller through SNet; when the module is used as an output module, it outputs the control data received through SNet; Several input / output channels are set in the IO module, and channel control switches are set on the input / output channels to control the opening or closing of the channels.
