Safety protection method based on control system of refining and chemical production equipment

By using heartbeat information to detect the communication status and preset rules to determine the switch status in the control system of the refining and chemical production equipment, switching when the advanced control system fails is realized, which solves the problem of equipment operation failure caused by communication disconnection and ensures that the equipment Safe and stable operation and fast switching efficiency.

CN114995344BActive Publication Date: 2024-10-01BEIJING GUOKONG TIANCHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210656080.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-11
Publication Date
2024-10-01
Estimated Expiration
2042-06-11

AI Technical Summary

Technical Problem

When using the advanced control system (APC), communication disconnection or artificial disconnection leads to malfunctions in the operation of the refining and chemical production equipment. The lack of effective protection logic results in the inability of the equipment to operate safely and stably.

Method used

By establishing a communication connection between the distributed control system and the advanced control system, the heartbeat information is used to detect the communication status, and the status of the main control switch and the advanced switch is judged according to the preset rules. If an abnormality occurs, the system switches to the distributed control system or the first loop. Perform work on behalf of the second circuit to ensure safe and stable operation of the device.

Benefits of technology

It realizes that when the advanced control system fails, the distributed control system and the first loop can take over the work, ensuring the safe and stable operation of the refining and chemical production equipment, and improves the efficiency of rapid switching between systems and reduces the computational complexity, improving practicability. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995344B_ABST
    Figure CN114995344B_ABST
Patent Text Reader

Abstract

The present application relates to a safety protection method based on a control system of a petrochemical production device, which belongs to the field of industrial control technology. The control system includes a distributed control system and an advanced control system. The distributed control system includes multiple distributed subsystems. The distributed subsystem includes multiple first loops, and one first loop is controlled by a distributed switch; the advanced control system includes advanced subsystems corresponding to the distributed subsystems one by one, an advanced subsystem is controlled by a control subswitch, the advanced subsystem includes multiple second loops, and one second loop is controlled by an advanced switch. One advanced switch corresponds to a distributed switch, and multiple advanced switches located in the same advanced subsystem are controlled by a control subswitch. The distributed control system is configured as follows: when the communication with the advanced control system is normal and the main control switch and the control subswitch are both in a closed state, the distributed switch corresponding to the advanced switch in an open state is closed, thereby ensuring the stable operation of the petrochemical production device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial control technology, and in particular to a security protection method based on a control system of a refining and chemical production device. Background Art

[0002] Refining and chemical production units are a general term for refining and chemical units such as reforming units, atmospheric pressure reducing units, and catalytic units. Refining and chemical production units are equipped with a control system, which is composed of a distributed control system (DCS) and an advanced control system (APC). Among them, the advanced control system is a system that is superior to the classic PID control effect on the basic control of the distributed control system. The APC system usually adopts predictive control, inference control, statistical process control, fuzzy control, neural network control, nonlinear control, robust control, and soft measurement technologies, with process control scheme analysis and mathematical model calculation as the core, to achieve process optimization control and process card edge operation, and improve the level of automation and economic benefits.

[0003] During the use of the APC system, due to the problem of disconnection of the APC system communication or manual disconnection of the APC system, the APC system cannot operate normally, which in turn causes failures in the operation of the refining and chemical production equipment. Therefore, when introducing advanced control systems, a complete set of protection logic is required to protect the safe and stable operation of the refining and chemical production equipment. Summary of the invention

[0004] The present application provides a safety protection method for an advanced control system of a refining and chemical production device, which has the effect of ensuring that the refining and chemical production device can operate safely and stably.

[0005] A safety protection method based on a control system of a refinery production device, wherein the control system comprises a distributed control system and an advanced control system, wherein the distributed control system is communicatively connected with the advanced control system, wherein the distributed control system comprises a plurality of distributed subsystems, wherein the distributed subsystem comprises a plurality of first loops, wherein one of the first loops is controlled by a distributed switch; wherein the advanced control system comprises an advanced subsystem corresponding to the distributed subsystems one by one, wherein one of the advanced subsystems is controlled by a control subswitch, and a plurality of the control subswitches are controlled by a master control switch; wherein the advanced subsystem comprises a plurality of second loops, wherein one of the second loops is controlled by an advanced switch, wherein one of the advanced switches corresponds to one of the distributed switches, and a plurality of the advanced switches in the same advanced subsystem are controlled by one control subswitch; wherein during information interaction between the distributed control system and the advanced control system:

[0006] Sending heartbeat information to the advanced control system according to a preset sending rule, and receiving response information returned by the advanced control system within a preset time length thereafter;

[0007] If a response message is received within a preset time length, determining whether the main control switch is in a closed state;

[0008] If yes, determining whether the control sub-switch is in a closed state;

[0009] If so, it is determined whether the advanced switch is in a closed state according to a preset judgment rule, and the collector-distributor switch corresponding to the advanced switch in an open state is controlled to be closed.

[0010] By adopting the above technical scheme, when the communication between the distributed control system and the advanced control system is normal, the main control switch is closed, and the control sub-switch is closed, it is determined whether all the second circuits contained in the advanced control system are abnormal. When operating normally (the advanced switch is in a closed state), the existing working state is maintained; when an abnormality occurs (the advanced switch is in an open state), the distributed switch corresponding to the advanced switch with the abnormality is closed, and the first circuit replaces the second circuit to perform the work, thereby achieving that when all or part of the advanced control system fails, the corresponding distributed control system or part of the distributed control system replaces the work, thereby ensuring the safe and stable operation of the refining production equipment.

[0011] Optionally, the step of determining whether the master control switch is in a closed state further comprises: if it is in an open state, closing all collecting and distributing switches.

[0012] By adopting the above technical solution, since the main control switch controls all advanced switches, when the main control switch is in the disconnected state, the entire advanced control system is not started, that is, it does not work. Therefore, it is necessary to close all distributed switches and let the distributed control system replace the advanced control system to perform the work.

[0013] Optionally, the step of judging whether the advanced switch is in a closed state according to a preset judgment rule comprises:

[0014] Each advanced subsystem uses a thread for polling;

[0015] Each advanced subsystem uses a thread to poll the following steps:

[0016] Determine whether the data preparation period of the advanced subsystem is completed, and if so, proceed to the next step;

[0017] Determine whether the operating variables and controlled variables of the advanced subsystem are within the preset range, and if so, proceed to the next step;

[0018] Obtain the polling start point and determine whether j=1; wherein the polling start point is an advanced switch on a second circuit, and j is the advanced switch currently polled;

[0019] Determine whether the jth advanced switch is in a closed state. If so, switch the jth advanced switch into the advanced control system and proceed to the next step;

[0020] Determine whether the polling of all advanced switches included in the advanced subsystem is completed. If so, end the polling and generate result information.

[0021] By adopting the above technical solution, on the one hand, during the polling process, the distributed control subsystem replaces the abnormal advanced subsystem to perform work, and the first circuit replaces the abnormal second circuit to perform work, thereby ensuring the safe and stable operation of the refining production device. On the other hand, since each advanced subsystem uses a separate thread for polling, the polling efficiency can be improved, thereby realizing rapid switching between the advanced control system and the distributed control system.

[0022] Optionally, the step of determining whether the data preparation period of each advanced subsystem is completed further includes: if not, maintaining the current state until the data preparation period is completed.

[0023] Optionally, the step of determining whether the operating variables and controlled variables of each advanced subsystem are within a preset range also includes: if not, generating adjustment information until the operating variables and controlled variables are both within a preset range; wherein the operating variables and the controlled variables are factors affecting the refining production equipment.

[0024] By adopting the above technical solution, after the operator checks the adjustment information, it is convenient to adjust the operating variable and the controlled variable according to the adjustment information so that the operating variable and the controlled variable both meet the conditions.

[0025] Optionally, the step of determining whether the j-th advanced switch is in a closed state further comprises: if not, closing a collector-distributor switch corresponding to the j-th advanced switch.

[0026] By adopting the above technical solution, it is possible to use a distributed control system to replace an abnormal advanced control system to perform work, thereby improving the practicality of the solution.

[0027] Optionally, the step of judging whether the advanced switch is in a closed state according to a preset judgment rule comprises:

[0028] Use one thread to poll all advanced subsystems;

[0029] The steps to use one thread to poll all advanced subsystems include:

[0030] Retrieving a sequence table, wherein the sequence table is obtained by arranging all advanced subsystems included in the advanced control system in a preset order; determining a polling start point of the sequence table, taking the advanced subsystem ranked first in the sequence table as the polling start point, and executing the next step;

[0031] Determine whether the i-th control sub-switch is in a closed state, and if so, proceed to the next step; wherein i is the control sub-switch currently being polled;

[0032] Determine whether the data preparation period is completed, if so, proceed to the next step;

[0033] Determine whether the manipulated variables and controlled variables are within the preset range;

[0034] If yes, then retrieve the sequence sub-table, which is obtained by arranging all the second loops in the same advanced sub-system in a preset order;

[0035] Determine the polling starting point of the sequential sub-table, take the second loop ranked first in the sequential sub-table as the polling starting point, and execute the next step;

[0036] Determine whether the jth advanced switch is in a closed state. If so, switch the jth advanced switch into the advanced control system and proceed to the next step;

[0037] Determine whether the polling of all advanced switches included in the sequential sub-table is completed, if so, proceed to the next step;

[0038] It is determined whether the polling of all control sub-switches included in the sequence table is completed. If so, the polling is terminated and result information is generated.

[0039] By adopting the above technical solution, on the one hand, in the polling process, the distribution subsystem is used to replace the abnormal advanced subsystem to perform work, and the first loop is used to replace the abnormal second loop to perform work, thereby ensuring that the refining production device can operate safely and stably. On the other hand, since one thread is used, the calculation complexity of the security protection method can be reduced, thereby improving the practicality of this solution.

[0040] Optionally, the step of determining whether polling of all advanced switches included in the sequential sub-table is completed further includes: if not, j=j+1, and returning to the step of determining whether the jth advanced switch is in a closed state to determine whether the j=j+1th advanced switch is in a closed state.

[0041] In summary, the present application includes at least one of the following beneficial technical effects:

[0042] 1. Each advanced subsystem uses a thread for polling: On the one hand, during the polling process, the distributed subsystem is used to replace the abnormal advanced subsystem to perform work, and the first loop is used to replace the abnormal second loop to perform work, so as to ensure the safe and stable operation of the refining and chemical production equipment. On the other hand, since each advanced subsystem uses a separate thread for polling, the polling efficiency can be improved, thereby realizing rapid switching between the advanced control system and the distributed control system; 2. Use one thread to poll all advanced subsystems: On the one hand, during the polling process, the distributed subsystem is used to replace the abnormal advanced subsystem to perform work, and the first loop is used to replace the abnormal second loop to perform work, so as to ensure the safe and stable operation of the refining and chemical production equipment. On the other hand, since one thread is used, the computational complexity of the security protection method can be reduced, thereby improving the practicality of this solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is a flowchart of each advanced subsystem of the first embodiment of the present application using a thread polling.

[0044] Figure 2 This is a flowchart of the second embodiment of the present application using one thread to poll all advanced subsystems.

[0045] Figure 3 This is an advanced subsystem polling flow chart of Example 2 of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0048] The present application is applied to a refining production device, specifically, to control the stable execution of the control system of the refining production device, thereby ensuring the safe and stable operation of the refining production device. Among them, the control system includes a distributed control system and an advanced control system, and the distributed control system and the advanced control are connected in communication. The distributed subsystem includes multiple first loops, and one first loop is controlled by a distributed switch. The advanced control system includes an advanced subsystem corresponding to the distributed subsystem one by one, one advanced subsystem is controlled by a control subswitch, and multiple control subswitches are controlled by a control master switch; the advanced subsystem includes multiple second loops, one second loop is controlled by an advanced switch, one advanced switch has and only has one corresponding distributed switch, and multiple advanced switches located in the same advanced subsystem are controlled by a control subswitch. It should be noted that the first loop and the second loop are both control loops in the control system, and the use of the first loop to name the control loop located in the distributed control system and the use of the second loop to name the control loop located in the advanced control system are only used as examples and cannot be used as conditions for limiting the control loop.

[0049] In the actual application process, on the one hand, the advanced control system itself may have a deadlock or line problem, resulting in abnormal communication of the advanced control system; on the other hand, the refining production device is controlled by external factors. For example, when the refining production device is a reforming device, since the reforming device is used to supply raw materials and catalysts to react under high temperature conditions to generate aromatics, it is necessary to monitor the feed amount of raw materials and catalysts, and it is also necessary to monitor the temperature in the reforming device. When the feed amount of raw materials and catalysts and the temperature in the reforming device do not meet the conditions for generating aromatics, the advanced switch will be manually turned off manually. The above two aspects will cause the control system of the refining production device to be completely paralyzed or partially paralyzed, and thus it is impossible to ensure the safe and stable operation of the refining production device. Therefore, it is necessary to adopt the technical solution provided by this application to periodically detect whether the advanced control system is abnormal, and in the case of abnormality of the advanced control system, the distributed control system is based on the set value of the refining production device and the output value of the advanced control system for tracking and recording, to ensure that the refining production device can switch between the advanced control system and the distributed control system without disturbance.

[0050] The present application provides a safety protection method based on a control system of a refinery production device, and the safety protection method is located in a distributed control system. Figure 1 ,The main process of the security protection method is described as follows:

[0051] Embodiment 1:

[0052] Step S10: Determine whether the distributed control system and the advanced control system communicate normally. If so, proceed to the next step; otherwise, use the distributed control system to replace the advanced control system to perform the work.

[0053] There are two ways to judge whether the communication between the distributed control system and the advanced control system is normal. Among them, the first judgment method is that the distributed control system sends heartbeat information to the advanced control system at a preset time interval. If the response information returned by the advanced control system is not received within the preset time length, it is considered that the communication is abnormal. Another judgment method is that the advanced control system sends heartbeat information to the distributed control system at a preset time interval, and the distributed control system returns the response information. If the advanced control system does not receive the response information returned by the distributed control system within the preset time length, it is considered that the communication is abnormal. In actual applications, which specific judgment method is used is not limited here.

[0054] In the present application, the purpose of ensuring that the distributed control system and the advanced control system maintain a communication connection is to: when the advanced control system is abnormal, the advanced control system switches to the distributed control system. Therefore, when the distributed control system and the advanced control system lose the communication connection, the distributed control system cannot perform the switching work in the event of a failure of the advanced control system. Therefore, it is necessary to determine whether the communication connection between the distributed control system and the advanced control system is normal.

[0055] Step S20: Determine whether the main control switch is in a closed state. If it is in a closed state, proceed to the next step; otherwise, use the distributed control system instead of the advanced control system to perform the work.

[0056] The method for judging whether the master control switch is in the closed state can be manual observation or electronic equipment capable of detecting the state of the master control switch, such as a current detection sensor or a voltage detection sensor. When manual observation is used, the observation result is manually entered into the distributed control system, and when electronic equipment is used for detection, the distributed control state directly retrieves the detection result from the electronic equipment.

[0057] Since the main control switch controls all control sub-switches, and one control sub-switch controls all advanced switches in the same advanced subsystem, when the main control switch is in the disconnected state, it means that the advanced control system is not started, and it can also be considered that the advanced control system is in a completely paralyzed state. Therefore, when the main control switch is in the disconnected state, the advanced control system is switched to the distributed control system, and the distributed control system performs the work to ensure the safe and stable operation of the refining production equipment.

[0058] Step S30: Determine whether the control sub-switch is in a closed state. If it is in a closed state, proceed to the next step; otherwise, use the distributed subsystem to replace the advanced subsystem to perform the work.

[0059] In this embodiment, each advanced subsystem uses a thread polling, that is, each thread is responsible for the security protection of an advanced subsystem. In the polling process, first determine whether the control sub-switch is in a closed state. For a control sub-switch that is not in a closed state, the distributed control system replaces the advanced sub-system corresponding to the control sub-switch to perform work, and for a control sub-switch that is in a closed state, it is necessary to continue polling. For the sake of convenience, the following takes an advanced sub-system corresponding to a control sub-switch in a closed state as an example:

[0060] Step S311: Determine whether the data preparation period has been completed. If completed, proceed to the next step; otherwise, maintain the current state until the data preparation period is completed.

[0061] The data preparation period is when all factors affecting the refining production unit have been prepared. For example, when the refining production unit is a catalytic unit, the completion of the preparation period means that all catalysts that need to be added to the catalytic unit have been prepared accordingly, and the temperature in the catalytic unit has reached the catalytic condition. Therefore, judging whether the data preparation period is completed is a condition for determining whether to switch the advanced subsystem into the advanced control system. When the advanced subsystem has been switched into the advanced control system, the existing connection state is maintained.

[0062] Step S312: determine whether the manipulated variable and the controlled variable are within a preset range, if so, proceed to the next step; otherwise, generate adjustment information until both the manipulated variable and the controlled variable are within the preset range.

[0063] The operating variables and controlled variables are added manually, and a preset operating variable range and a preset controlled variable range are stored in the distributed control system. When any one of the following conditions is met: the manually added operating variable exceeds the preset operating variable range, the manually added controlled variable exceeds the preset controlled variable range, or both conditions are met, the distributed control system outputs adjustment information, and after the operator checks the adjustment information, the operator adjusts the operating variables and / or controlled variables according to the adjustment information so that all factors affecting the refining production unit meet the conditions.

[0064] Step S313: Get the polling start point and determine whether j=1; wherein the polling start point is the advanced switch in a second loop, and j is the advanced switch currently polled.

[0065] In this embodiment, the polling starting point may be determined by a randomly selected advanced switch or a pre-set advanced switch. When polling is performed, polling starts from the polling starting point each time.

[0066] Step S314: Determine whether the jth advanced switch is in a closed state. If so, the second circuit corresponding to the jth advanced switch is cut into the advanced control system and enters the next step; otherwise, the first circuit is used to replace the second circuit corresponding to the jth advanced switch to perform the work and enter the next polling.

[0067] By executing step S314, the second loop that meets the conditions can be cut into the advanced control system, so that after polling all advanced subsystems, the second loop with an abnormality can be replaced by the corresponding first loop to perform work, so that the refining production equipment can operate safely and stably.

[0068] Step S315: Determine whether all advanced switches in the same advanced subsystem have been polled. If so, end the polling and generate result information; otherwise, j=j+1, and return to step S314 to determine whether the j=j+1th advanced switch is in a closed state, and repeat steps S314-S315 until all advanced switches in the same advanced subsystem have been polled.

[0069] The above steps S311 to S315 are the polling process of an advanced subsystem. The polling process of the remaining advanced subsystems is the same as the polling process of the advanced subsystems listed above, so it will not be repeated here. In the advanced control system, each advanced subsystem can traverse all the advanced switches contained in its respective advanced subsystem by executing the above steps S311-S315 at the same time, and in the traversal process, it can use the distributed subsystem to replace the advanced subsystem to perform work and / or use the first loop to replace the abnormal second loop to perform work, thereby ensuring the safe and stable operation of the refining production equipment. At the same time, since each advanced subsystem uses a separate thread for polling, the polling efficiency can be improved, thereby realizing rapid switching between the advanced control system and the distributed control system.

[0070] Embodiment 2:

[0071] The difference between the second embodiment and the first embodiment is that when determining whether the control sub-switch is in the closed state, one thread is used to poll all the control sub-switches. The polling process is as follows: Figure 2 As shown. Figure 2 In order to fully demonstrate the process of the second embodiment, the two steps of determining whether the distributed control system and the advanced control system are communicating normally and determining whether the main control switch is in a closed state are both shown in FIG. Figure 2 However, since the two steps of determining whether the distributed control system and the advanced control system are communicating normally and determining whether the main control switch is in a closed state are the same as those in the first embodiment, they will not be repeated here. The specific steps of polling the control sub-switches in the second embodiment are as follows:

[0072] Before polling the control sub-switch, it is necessary to first establish a sequence table, determine the polling starting point based on the sequence table, and start polling from the polling starting point. Specifically, the sequence table is obtained by arranging all the advanced subsystems contained in the advanced control system in a preset order. In this embodiment, the preset order can be sorted from the most to the least according to the number of second loops in the advanced subsystems, or it can be sorted from the least to the most according to the number of second loops in the advanced subsystems, or it can be sorted according to the order in which the advanced subsystems are started. In practical applications, there is no restriction on which specific sorting is used, and it is subject to the ability to include all advanced subsystems in the sequence table. After the sequence table is generated, the advanced subsystem ranked first in the sequence table to the advanced subsystem ranked last is used as the polling order.

[0073] Step S40: Determine whether the ith control sub-switch is in a closed state, if so, proceed to the next step; otherwise, use the distributed sub-system to replace the advanced sub-system corresponding to the ith control sub-switch to perform the work, where i is the currently polled control sub-switch.

[0074] Step S41: Determine whether the data preparation period has been completed, if so proceed to the next step; otherwise, maintain the current state until the data preparation period is completed.

[0075] Step S42: determine whether the manipulated variable and the controlled variable are within a preset range, if so, proceed to the next step; otherwise, generate adjustment information until both the manipulated variable and the controlled variable are within the preset range.

[0076] The process of step S41 is analogous to the process of step S311, and the process of step S42 is analogous to the process of step S312, so they are not described in detail here.

[0077] When the advanced subsystem corresponding to the i-th control subswitch satisfies steps S41 and S42, it is necessary to determine whether the second circuit located in the advanced subsystem meets the cut-in condition. Before determining whether the second circuit in the advanced subsystem meets the cut-in condition, it is necessary to first establish a sequential subtable, and determine the polling starting point when polling the advanced subsystem according to the sequential subtable. Specifically, the sequential subtable is obtained by arranging all the second circuits located in the same advanced subsystem in a preset order. The generation process of the sequential subtable can be compared to the generation process of the sequential table, so it will not be repeated here. After obtaining the sequential subtable, the second circuit ranked first to the second circuit ranked last in the sequential subtable is used as the polling order, and the second circuit is polled according to the polling order.

[0078] Step S43: Determine whether the jth advanced switch is in a closed state. If so, the second circuit corresponding to the jth advanced switch is switched into the advanced control system and the next step is entered; otherwise, the first circuit is used to replace the second circuit corresponding to the jth advanced switch to perform the work and the next polling is entered. Wherein, j is the second circuit of the current polling.

[0079] Step S44: Determine whether the second loop in the sequential sub-table has been polled. If so, proceed to the next step; if not, j=j+1, and return to step S43 to determine whether the j=j+1th advanced switch is in a closed state, and repeat steps S43 and S44 until all the second loops in the sequential sub-table have been polled.

[0080] Step S45: Determine whether all the advanced subsystems in the sequence list have been polled. If so, end the polling and generate result information. If not, i=i+1, and return to step S40 to determine whether the advanced subsystem corresponding to the i=i+1th control subswitch is in a closed state, and repeat the process from step S40 to step S45 until all the advanced subsystems in the sequence list have been polled.

[0081] By executing the above steps S40 to S45, the entire advanced control system can be traversed through one thread, and during the traversal process, the distributed subsystem can be used to replace the advanced subsystem to perform work and / or the first loop can be used to replace the abnormal second loop to perform work, thereby ensuring that the refining production device can operate safely and stably. At the same time, since one thread is used, the calculation complexity of the safety protection method can be reduced, and the practicality of the solution can be improved.

[0082] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A safety protection method based on a control system of a refining and chemical production device, characterized in that: The control system includes a distributed control system and an advanced control system. The distributed control system is communicatively connected with the advanced control system. The distributed control system includes a plurality of distributed subsystems. The distributed subsystem includes a plurality of first loops, and one of the first loops is controlled by a distributed switch. The advanced control system includes advanced subsystems corresponding to the distributed subsystems one by one. One of the advanced subsystems is controlled by a control subswitch, and a plurality of the control subswitches are controlled by a master control switch. The advanced subsystem includes a plurality of second loops, and one of the second loops is controlled by an advanced switch. One of the advanced switches corresponds to one of the distributed switches, and a plurality of the advanced switches in the same advanced subsystem are controlled by a control subswitch. In the process of information interaction between the distributed control system and the advanced control system: Sending heartbeat information to the advanced control system according to a preset sending rule, and receiving response information returned by the advanced control system within a preset time length thereafter; If a response message is received within a preset time length, determining whether the main control switch is in a closed state; If yes, determining whether the control sub-switch is in a closed state; If so, it is determined whether the advanced switch is in a closed state according to a preset judgment rule, and the collector-distributor switch corresponding to the advanced switch in an open state is controlled to be closed.

2. The safety protection method based on the control system of a refining and chemical production device according to claim 1 is characterized in that: The step of judging whether the master control switch is in a closed state also includes: if it is in an open state, closing all the collecting and distributing switches.

3. The safety protection method based on the control system of a refinery production device according to claim 1 is characterized in that: The step of judging whether the advanced switch is in a closed state according to a preset judgment rule comprises: each advanced subsystem adopts a thread polling; Each advanced subsystem uses a thread to poll the following steps: Determine whether the data preparation period of the advanced subsystem is completed, and if so, proceed to the next step; Determine whether the operating variables and controlled variables of the advanced subsystem are within the preset range, and if so, proceed to the next step; Obtain the polling start point and determine whether j=1; wherein the polling start point is an advanced switch on a second circuit, and j is the advanced switch currently polled; Determine whether the jth advanced switch is in a closed state. If so, switch the jth advanced switch into the advanced control system and proceed to the next step; Determine whether the polling of all advanced switches included in the advanced subsystem is completed. If so, end the polling and generate result information.

4. The safety protection method based on the control system of a refinery production device according to claim 3 is characterized in that: The step of determining whether the data preparation period of each advanced subsystem is completed also includes: if not, maintaining the current state until the data preparation period is completed.

5. The safety protection method based on the control system of a refinery production device according to claim 3 is characterized in that: The step of determining whether the operating variables and controlled variables of each advanced subsystem are within a preset range also includes: if not, generating adjustment information until the operating variables and controlled variables are both within the preset range; wherein the operating variables and controlled variables are both factors affecting the refining production equipment.

6. The safety protection method based on the control system of a refinery production device according to claim 3 is characterized in that: The step of determining whether the jth advanced switch is in a closed state further includes: if not, closing the collector-distributor switch corresponding to the jth advanced switch.

7. The safety protection method based on the control system of a refinery production device according to claim 1 is characterized in that: The step of judging whether the advanced switch is in a closed state according to a preset judgment rule comprises: using a thread to poll all advanced subsystems; The steps to use one thread to poll all advanced subsystems include: Retrieving a sequence table, wherein the sequence table is obtained by arranging all advanced subsystems included in the advanced control system in a preset sequence; Determine the polling start point of the sequence list, take the most advanced subsystem ranked first in the sequence list as the polling start point, and execute the next step; Determine whether the i-th control sub-switch is in a closed state, and if so, proceed to the next step; wherein i is the control sub-switch currently being polled; Determine whether the data preparation period is completed, if so, proceed to the next step; Determine whether the manipulated variables and controlled variables are within the preset range; If yes, then retrieve the sequence sub-table, which is obtained by arranging all the second loops in the same advanced sub-system in a preset order; Determine the polling starting point of the sequential sub-table, take the second loop ranked first in the sequential sub-table as the polling starting point, and execute the next step; Determine whether the jth advanced switch is in a closed state. If so, switch the jth advanced switch into the advanced control system and proceed to the next step; Determine whether the polling of all advanced switches included in the sequential sub-table is completed, if so, proceed to the next step; It is determined whether the polling of all control sub-switches included in the sequence table is completed. If so, the polling is terminated and result information is generated.

8. The safety protection method based on the control system of a refinery production device according to claim 7 is characterized in that: The step of determining whether polling of all advanced switches included in the sequential sub-table is completed also includes: if not, j=j+1, and returning to the step of determining whether the jth advanced switch is in a closed state to determine whether the j=j+1th advanced switch is in a closed state.