Output card redundancy control method and device and electronic medium

By obtaining the redundant interaction information and work/backup information of the card parts in the industrial automation control system, control the output circuit of the redundant card parts, solve the dual work problem caused by the failure of the card parts due to failure, and improve the reliability of the system. And availability.

CN119376226APending Publication Date: 2025-01-28SUPCON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310932673.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the existing industrial automation control system, the card parts cannot complete the work/standby switch due to failure, resulting in the redundant card parts working, interfering with the normal operation of the equipment.

Method used

By obtaining the redundant interactive information of the redundant card, judge the work/backup information of the card parts, and control the output loop of the redundant card based on this information to ensure that only one card is in the working state to avoid the occurrence of dual work.

Benefits of technology

Effectively avoid the dual working status of the card, ensure the normal operation of the control system, and improve the reliability and availability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376226A_ABST
    Figure CN119376226A_ABST
Patent Text Reader

Abstract

The invention discloses an output card redundancy control method, an output card redundancy control device and an electronic medium based on a foreground and background scheduling method, through a redundancy interaction result between redundant cards, an output loop of the redundant cards is controlled, the situation of dual output of the cards caused by a failure of the cards and incapability of completing working / standby state switching is avoided, and the reliability of the system is improved. And the reliability and availability of the control system are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of industrial control technology, and specifically relates to a method, device and electronic medium for redundant control of output cards. Background Art

[0002] In order to avoid factory downtime, industrial sites often require industrial automation control systems to have high reliability and high availability. Existing industrial automation control systems generally use redundant cards to ensure the safe and stable operation of the system. The setting of redundant cards ensures the normal operation of production equipment at industrial sites when some cards fail.

[0003] In the existing hot standby redundancy technology, when a working card fails, the working card is switched to the standby card through redundancy switching, and the original standby card is quickly switched to the working card to achieve continuous control of the control system. However, when a card fails and the working / standby switching cannot be completed, when the standby card switches to the working state, the card will be in a dual working state, interfering with the normal operation of the equipment. Summary of the invention

[0004] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present application provides an output card redundancy control method, device and electronic medium to solve the problem of redundant cards working in double mode due to a card failure that fails to complete working / standby switching.

[0005] To achieve the above purpose, the present application adopts the following technical solution, a method for controlling redundant output cards, comprising: Obtain redundant interaction information of redundant cards; Based on the redundant interaction information, determine the working / standby information of the card component; Based on the working / standby information, the output circuit of the redundant card is controlled.

[0006] Furthermore, the output card also includes a collection circuit for collecting output information of the card, and the collection information collected by the collection circuit is fed back to the card MCU.

[0007] Furthermore, the method for determining the working / standby information of the card includes: Get the fault information of the card itself; Get the card recovery information; Determine the health of the card based on the fault information and the recovery information; The health degree is communicated redundantly, and a card with a high health degree is selected as a working card.

[0008] Furthermore, the output circuit is also provided with a test circuit for testing the output state of the card.

[0009] Furthermore, the test circuit is connected in parallel with the output circuit, and the test circuit and the output circuit are controlled by a control logic circuit.

[0010] Furthermore, the test information of the test loop is fed back to the card MCU through the feedback circuit.

[0011] Further, based on the working / standby information, the method for controlling the output circuit of the redundant card comprises: Get the working / standby information of your own card; If it is a working card, a switch signal is sent to the control logic circuit of the redundant card to disconnect the redundant card output circuit and close the test circuit; If it is a spare card, a switch signal is sent to the control logic circuit of the redundant card to close the redundant card output circuit and disconnect the test circuit.

[0012] Furthermore, the output card outputs AO and / or DO data.

[0013] The invention also provides an embodiment, an output card redundant control device, comprising: Redundancy module: used to receive redundant interaction information of the card and generate working / standby information of the card; Control logic module: controls the output circuit of redundant cards according to the working / standby information of the cards.

[0014] The present invention also provides another embodiment, a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of an output card redundant control method described in any one of claims 1 to 8 are implemented.

[0015] The beneficial effect of the present application is as follows: the present application discloses a method for redundant control of output card components, which controls the redundant card component output circuits through the working / standby status information between the redundant card components. When a working card component fails and the working / standby switching cannot be completed, the standby card component actively switches to the working card component and at the same time shuts off the output circuit of the original working card component to avoid dual working output of the card component and affect the normal operation of the control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present application is described with the aid of the following drawings: Figure 1 The prior art control cycle task scheduling flow chart is shown; Figure 2 The flowchart of the task scheduling method of the present application is shown; Figure 3 The flowchart of the scheduling task segmentation method of the present application is shown; Figure 4 A schematic diagram of dual-task foreground task scheduling in an embodiment of the present application is shown; Figure 5 A schematic diagram of a task scheduling device of the present application is shown. Implementation

[0017] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below in conjunction with the accompanying drawings through specific implementation methods. It is understood that the specific embodiments described below are only used to explain the relevant inventions, rather than to limit the invention. It should also be noted that the embodiments and features in the embodiments of this application can be combined with each other in the absence of conflict; for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0018] like Figure 1 As shown, the present invention discloses a method for controlling output card redundancy, comprising: Obtain redundant interaction information of redundant cards; Based on the redundant interaction information, determine the working / standby information of the card; Based on the working / standby information, the output circuit of the redundant card is controlled.

[0019] Among them, the redundant interaction information includes the self-diagnosis information of the card component. By diagnosing the working status of the card component, the card component with higher health is selected as the working card component, and the other card component is selected as the standby card component. At the same time, according to the working / standby information of the card component, the output circuit of the redundant card component is controlled to control the switch of the redundant card component output. When the card component is determined to be a working card component after redundant interaction, a disconnect signal is sent to the standby card component to disconnect the output of the standby card component. At this time, if the standby card component actively switches to a working card component due to a fault, since the output circuit of the standby card component is disconnected, after being mistakenly switched to a working card component, the external output is also in a disconnected state, which will not affect the normal operation of the card component.

[0020] At the same time, when a working card fails, after redundant interaction, the working / standby state of the card needs to be switched. If the failure of the working card causes the working card to be unable to switch to the standby state autonomously, the card has confirmed the need for redundant switching after a new round of redundant interaction. At this time, the control signal of the original working card to the output circuit of the original standby card is switched to a closed state, and the control signal of the original standby card to the output circuit of the original working card is switched to a disconnected state. At this time, even if the working card fails and cannot be switched to the standby card autonomously, the two cards are in a dual working state, and the output circuit of the original working card is disconnected and unable to output signals to the outside. Therefore, the output of the redundant card also has only one output signal, which ensures the normal operation of the system and avoids the dual working state of the card, which affects the normal operation of the system.

[0021] Furthermore, the output card also includes a collection circuit for collecting the card output information, and the collection information collected by the collection circuit is fed back to the card MCU. The card output status is fed back in real time through the collection circuit. When the card fails, the MCU can find the card abnormality at the first time through the collection circuit. At this time, for the abnormal state of the card, the redundant interaction is initiated again to obtain the health status of the redundant card and determine whether redundant switching is required.

[0022] like Figure 2 As shown, the method for determining working / standby information of redundant card components includes: Get the fault information of the card itself; Get the card recovery information; Determine the health of the card based on the fault information and the recovery information; The health degree is communicated redundantly, and a card with a high health degree is selected as a working card.

[0023] The output data of the card is collected through the sampling circuit, and the ADC is used to determine whether the data is normal. The result is fed back to the MCU of the card, and the health of the card is generated in combination with the fault information of the card itself, so that the card with better working status can be selected as the working card. Among them, the ADC sampling information includes the current and voltage of the output circuit. Through the diagnosis of the output current, the accuracy of the card output can be detected; through the diagnosis of the voltage, the disconnection detection of the card output can be realized to ensure that the card is in a stable and available state and improve the system availability. Therefore, after the output information of the card is collected, it can be used as one of the criteria for judging the working / standby information of the card, and the output status of the card can be determined at all times, ensuring that the card is in a stable working state and ensuring the stable operation of the system.

[0024] Further, such as Figure 3 As shown, the output circuit is also provided with a test circuit for testing the output state of the card, and the test circuit is connected in parallel with the output circuit, and the test circuit and the output circuit control switches through a control logic circuit.

[0025] Due to the redundancy of the output card, the standby card can only be in a non-working state for a long time. In order to check the working state of the standby card, a test loop is set on the output loop. When the card is in the standby state, the output loop is disconnected and the test loop is closed. The standby card is checked through the test loop. The test loop is dotted by the DAC, and then the ADC is collected to feed back the test information to the MCU of the card, which greatly increases the availability of the system. At the same time, the test loop and the output loop are controlled by the inverse logic of the control logic circuit, that is, when the output loop is closed, the test loop is in a disconnected state, and when the test loop is closed, the output loop is in a disconnected state, ensuring that the two switches can be switched at the same time, avoiding the signal fluctuation time during the redundant switching to be too long, which affects the system operation.

[0026] The test information of the test loop is fed back to the card MCU through the recovery circuit. When the card is in standby state, the test loop can be used to check whether the card output is normal in real time, and then the data is fed back to the MCU through the recovery circuit to ensure that the MCU can obtain the output status of the card in real time, and use the output status of the card as the evaluation standard of the health of the card, which can better ensure the health of the card and greatly improve the availability of the system.

[0027] Further, such as Figure 4 As shown, the method for controlling the output circuit of the redundant card component based on the working / standby information of the card component includes: Get the working / standby information of your own card; If it is a working card, a switch signal is sent to the control logic circuit of the redundant card to disconnect the redundant card output circuit and close the test circuit; If it is a spare card, a switch signal is sent to the control logic circuit of the redundant card to close the redundant card output circuit and disconnect the test circuit.

[0028] The card determines its own working / standby status based on the redundant interaction results, and sends a control signal to the control logic circuit of the redundant card according to its own working / standby status. Since the control logic circuit controls the output loop and the test loop through reverse logic, when the card is determined to be a working card, a control signal is sent to the control logic circuit of the redundant card to disconnect the output loop and close the test loop. At this time, the output loop of the standby card is disconnected, and the test loop used to check the output status of the card is closed. The ADC collects the output status of the card test loop and feeds back the result to the MCU to ensure that the standby card is always in a normal state. After confirming its own standby status, the standby card sends a control signal to the control loop circuit of the working card to close the output loop and disconnect the test loop. At this time, the data of the working card is normal. The ADC of the working card collects the data of the output loop in real time and feeds back to the MCU. By collecting the output data, it is further determined whether the output status of the card is normal.

[0029] When a card fails and a redundant switch is required, the redundant card determines that the working card and the standby card need to be switched through redundant information exchange. At this time, the original working card is switched to the standby card, and a control signal is sent to the control logic circuit of the original standby card to close the output loop and disconnect the test loop. The data of the original standby card can be output normally. The original standby card sends a control signal to the control logic circuit of the original working card to close the test loop and disconnect the output loop. At this time, if the original working card cannot be switched to the standby card due to a fault, the output loop of the card has also been disconnected and no data will be output, which greatly improves the availability and reliability of the system.

[0030] Furthermore, the output card outputs AO and / or DO data. For redundant data output of AO and DO, when dual output occurs, the output data will be mutually inconsistent, resulting in data interference and affecting the normal operation of the system. Therefore, it is even more necessary to ensure that there is no dual working between the cards.

[0031] The beneficial effects of the method of the present invention are as follows: the output circuit of the redundant card is controlled through the redundant interaction results between the redundant card components, so as to avoid the situation of double output of the card components caused by the inability to complete the working / standby state switching due to the card component failure, and greatly improve the reliability and availability of the control system. At the same time, by adding a test loop to the output loop, the output state of the standby card component is obtained at all times to ensure that the standby card component is in an available state, further ensuring the stable operation of the system.

[0032] Another embodiment of the present invention, as Figure 5 As shown, an output card redundant control device is provided, comprising: Redundancy module: used to receive redundant interaction information of the card and generate working / standby information of the card; Control logic module: controls the output circuit of redundant cards according to the working / standby information of the cards.

[0033] The output circuit of the card is controlled through the logic control module. When the card determines that it is in the working state, a control signal is sent to the control logic circuit of the redundant card to control the redundant card output circuit to disconnect, ensuring that the standby card does not output to the outside. Even if the working card cannot be switched to the standby state due to a fault, the standby card actively switches to the working state, and at the same time initiates a control signal to disconnect the output circuit of the working card output circuit, ensuring that the redundant card has one and only one output, greatly improving the reliability of the control system.

[0034] A third embodiment of the present invention provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of an output card redundant control method described in any one of claims 1 to 8 are implemented.

[0035] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several distinct components and by means of a suitably programmed computer. The use of the words first, second, third, etc., is for convenience of expression only and does not imply any order. These words may be understood as part of the component name.

[0036] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0037] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0038] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A method for controlling redundant output cards, characterized in that: Obtain redundant interaction information of redundant cards; Based on the redundant interaction information, determine the working / standby information of the card component; Based on the working / standby information, the output circuit of the redundant card is controlled.

2. The output card redundancy control method according to claim 1, characterized in that: The output card also includes a collection circuit for collecting output information of the card, and the collection information collected by the collection circuit is fed back to the card MCU.

3. The output card redundancy control method according to claim 2, characterized in that: Methods for determining the working / standby information of a card include: Get the fault information of the card itself; Get the card recovery information; Determine the health of the card based on the fault information and the recovery information; The health degree is communicated redundantly, and a card with a high health degree is selected as a working card.

4. The output card redundancy control method according to claim 1, characterized in that: The output circuit is also provided with a test circuit for testing the output state of the card.

5. The output card redundancy control method according to claim 4, characterized in that: The test circuit is connected in parallel with the output circuit, and the test circuit and the output circuit are controlled by switches through a control logic circuit.

6. The output card redundancy control method according to claim 5, characterized in that: The test information of the test loop is fed back to the card MCU through the feedback circuit.

7. The output card redundancy control method according to claim 6, characterized in that: Based on the working / standby information, the method for controlling the output circuit of the redundant card comprises: Get the working / standby information of your own card; If it is a working card, a switch signal is sent to the control logic circuit of the redundant card to disconnect the redundant card output circuit and close the test circuit; If it is a spare card, a switch signal is sent to the control logic circuit of the redundant card to close the redundant card output circuit and disconnect the test circuit.

8. The output card redundancy control method according to claim 1, characterized in that: The output card outputs AO and / or DO data.

9. An output card redundant control device, characterized in that: include: Redundancy module: used to receive redundant interaction information of the card and generate working / standby information of the card; Control logic module: controls the output circuit of redundant cards according to the working / standby information of the cards.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the output card redundancy control method according to any one of claims 1 to 8 are implemented.