A method and device for safety protection of PLC controllers based on real-time process data

By introducing a dual-core structure and output prediction model into the PLC controller, the safety status can be judged in real time and protection instructions can be generated, which solves the problem of lag in the safety protection response of the PLC controller and achieves more efficient safety protection.

CN117724387BActive Publication Date: 2026-11-17NINGBO HOLLYSHI INFORMATION SECURITY RES INST CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311472765.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2026-11-17
Estimated Expiration
2043-11-07

AI Technical Summary

Technical Problem

Existing PLC controller security measures have a delayed response time and cannot effectively protect industrial control systems from cyberattacks, leading to equipment malfunctions or shutdowns.

Method used

A dual-core PLC controller based on real-time process data is adopted. The first control module acquires the operation and management data of the process equipment, uses a pre-trained output prediction model to determine the safety status of the PLC controller, and generates safety protection instructions in the unsafe state.

Benefits of technology

It improves the security protection capabilities of the PLC controller, increases the difficulty of network attacks, ensures the accuracy of output data, and prevents equipment from malfunctioning or shutting down.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117724387B_ABST
    Figure CN117724387B_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for safety protection of a PLC controller based on real-time process data. The method includes: a second control module acquiring real-time business logic data of the PLC controller, the business logic data including process equipment operation data, process equipment control data, and first process equipment logic processing data obtained by the first control module based on the process equipment operation data and process equipment control data; inputting the process equipment operation data and control data into a pre-trained output prediction model to obtain second process equipment logic processing data; determining whether the PLC controller is in a safe state based on the first and second process equipment logic processing data; and generating a safety protection command in response to an unsafe state, the safety protection command being used to perform safety protection on the PLC controller. This invention improves the safety protection of the PLC controller through the above technical solution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial control technology, and specifically relates to a safety protection method and device for a PLC controller based on real-time process data. Background Technology

[0002] With the popularization of automation in manufacturing, more and more manufacturing enterprises are choosing to use industrial control systems for automated management of industrial sites. Among them, PLC system is a typical industrial control system. The core of PLC system is PLC controller. Based on the editable engineering program, PLC controller executes user-oriented instructions such as logic operation, sequential control, timing, counting and arithmetic operation, and controls various types of machinery or production processes through digital or analog input or output.

[0003] Currently, PLC controller programming tools follow open international standards. While these standards provide standardization and convenience for programming, they also provide opportunities for attackers to tamper with the settings of the industrial control system through legitimate industrial control protocols, issue control commands to the industrial control system, and forge responses to trick operators into making mistakes. Therefore, given the high real-time nature of industrial control systems (their command execution time is usually in the tens of milliseconds), the conventional approach of handing over anomalies to the industrial control security protection system or transmitting threat alarms to relevant technical personnel through an interface before taking protective measures typically has a response time in the seconds or minutes, which is quite lagging and cannot effectively protect field equipment. Summary of the Invention

[0004] In view of this, the present invention provides a PLC controller safety protection method and device based on real-time process data, the main purpose of which is to improve the safety protection of PLC controllers.

[0005] According to a first aspect of the present invention, a safety protection method for a PLC controller based on real-time process data is provided, wherein the PLC controller has a first control module and a second control module, and the method includes:

[0006] The second control module acquires real-time business logic data from the PLC controller, including process equipment operation data, process equipment operation data, and first process equipment logic processing data.

[0007] The process equipment operation data and process equipment operation data are input into the pre-trained output prediction model in the second control module to obtain the second process equipment logic processing data. The output prediction model is trained based on the historical business logic data of the field process equipment.

[0008] Based on the logic processing data of the first process equipment and the logic processing data of the second process equipment, determine whether the PLC controller is in a safe state;

[0009] In response to an unsafe state, a safety protection command is generated, which is used to perform safety protection on the PLC controller;

[0010] The first process equipment logic processing data is obtained by the first control module based on the process equipment operation data and process equipment control data.

[0011] According to a second aspect of the present invention, a safety protection device for a PLC controller based on real-time process data is provided. The PLC controller has a first control module and a second control module, and the safety protection device is the second control module, comprising:

[0012] The data acquisition module is used to acquire real-time business logic data of the PLC controller, including process equipment operation data, process equipment operation data, and first process equipment logic processing data.

[0013] The prediction module is used to input the process equipment operation data and the process equipment operation data into a pre-trained output prediction model to obtain the second process equipment logic processing data. The output prediction model is trained based on the business logic data of the field equipment process.

[0014] The judgment module is used to determine whether the PLC controller is in a safe state based on the logic processing data of the first process equipment and the logic processing data of the second process equipment.

[0015] A protection module is used to issue a safety protection command in response to an unsafe state, the safety protection command being used to provide safety protection for the PLC controller;

[0016] The first process equipment logic processing data is obtained by the first control module based on the process equipment operation data and process equipment control data.

[0017] According to a third aspect of the present invention, a PLC controller is provided, comprising: a first control module and a second control module;

[0018] The first control module acquires the real-time process equipment operation data and process equipment control data of the PLC controller, and obtains the first process equipment logic processing data based on the process equipment operation data and process equipment control data.

[0019] The second control module acquires business logic data sent by the first control module, the business logic including: process equipment operation data, process equipment operation data, and first process equipment logic processing data;

[0020] The second control module inputs the process equipment operation data and the process equipment operation data into the pre-trained output prediction model in the second control module to obtain the second process equipment logic processing data. The output prediction model is trained based on the historical business logic data of the field process equipment.

[0021] The second control module determines whether the PLC controller is in a safe state based on the logic processing data of the first process equipment and the logic processing data of the second process equipment.

[0022] In response to an unsafe state, a safety protection command is issued, which is used to provide safety protection for the PLC controller.

[0023] According to a fourth aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.

[0024] According to a fifth aspect of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described above.

[0025] By employing the above-described technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:

[0026] By equipping the PLC controller with a first control module and a second control module, the second control module acquires real-time business logic data from the PLC controller. This business logic data includes process equipment operation data, process equipment control data, and first process equipment logic processing data obtained by the first control module based on the process equipment operation data and process equipment control data. The process equipment operation data and process equipment control data are input into a pre-trained output prediction model within the second control module to obtain second process equipment logic processing data. The output prediction model is trained based on historical business logic data of the field process equipment. Based on the first and second process equipment logic processing data, the PLC controller is determined to be in a safe state. In response to an unsafe state, a security protection command is generated to protect the PLC controller, thereby increasing the difficulty of network attacks or intrusions into the PLC controller. This ensures that the output data does not output erroneous data, thus improving security protection and preventing the field process equipment from malfunctioning or stopping due to abnormal attacks. Simultaneously, the second control module acquires business logic data from the first control module within the PLC controller, reflecting the true and real-time status of the data. Attached Figure Description

[0027] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0028] Figure 1 A flowchart illustrating a PLC controller safety protection method based on real-time process data provided by an embodiment of the present invention is shown.

[0029] Figure 2 A flowchart illustrating another PLC controller safety protection method based on real-time process data provided by an embodiment of the present invention is shown.

[0030] Figure 3 This paper illustrates a flowchart of another PLC controller safety protection method based on real-time process data provided by an embodiment of the present invention.

[0031] Figure 4 This diagram illustrates a process flow chart of a PLC controller safety protection device based on real-time process data, provided by an embodiment of the present invention.

[0032] Figure 5 This is a block diagram of an electronic device used to implement the methods of embodiments of the present invention. Detailed Implementation

[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0035] See Figure 1 A PLC controller safety protection method based on real-time process data according to some embodiments of this disclosure includes the following steps:

[0036] S201. Obtain real-time business logic data from the PLC controller.

[0037] In this step, the business logic data includes process equipment operation data, process equipment management data, and first process equipment logic processing data.

[0038] It should be noted that the PLC controller has a first control module and a second control module, both of which are modules with independent operating cores (processing units). The first control module is the main module of the PLC controller and is used to complete the functions of the PLC controller, such as interactive communication with engineer stations and operator stations in the local network. In other words, the PLC controller of this application includes at least one dual-core processor, which includes a first core and a second core. The first core is used to run the business logic data of the PLC processor, and the second core is used to run heterogeneous control logic algorithm data. The real-time business logic data in this application is obtained from the first core. Process equipment operation data includes, but is not limited to, process input data and instruction operation data. Process equipment running data includes, but is not limited to, alarm trend data and process output data. Here, process input data refers to signals input to the process equipment in the field, including digital input data and / or analog input data. Digital input data is the input data corresponding to the state of a switch or button; generally, the state of a switch or button includes both on and off states. Analog input data includes at least one of voltage signal data, current signal data, temperature signal data, and pressure signal data. Here, analog input data is converted to digital signal data via an AD converter. The digital signal data generally corresponds to a value between 0 and 65535, and corresponds to the zero and full-scale values ​​of the corresponding signal range. For example, if the temperature selectable range of a power plant boiler is 0–1000℃, then its corresponding analog input data is 0. For example, the pressure range of a power plant boiler is 0-30 MPa, so the corresponding analog input data is 0-30. Similarly, the temperature range of a chemical reactor is 0-500℃, so the corresponding analog input data is 0-500. The pressure range of a chemical reactor is 0-10 MPa, so the corresponding analog input data is 0-10. The instruction operation data can be the operation data corresponding to instructions issued by the host computer. This operation data includes the operation data for opening or closing a certain working device or valve. For example, the analog input data for the status of the power plant boiler's blower is 0 or 1, and the analog input data for the status of the power plant boiler's coal feeder is 0 or 1. Here, 0 represents on, and 1 represents off. The analog input data for boiler interlock protection is 0 or 1, where 0 represents no protection and 1 represents protection. Similarly, the analog input data for reactor interlock protection is 0 or 1, where 0 represents no protection and 1 represents protection.In this embodiment, the process output data corresponds to the process input data. Therefore, the process output data includes digital output data and analog output data. The digital output data can be the output data of a relay, which is digital data that is 0 and 1 in the controller. The analog output data can be 4-20mA current signal data, which can be a value corresponding to 0-65535, and it corresponds to the zero and full value of the corresponding signal range. For example, if the selectable range of the valve of the power plant boiler is 0-100%, then its corresponding analog output data is 0-100. The output state of the boiler protection system is 1 or 1, where 0 represents no action and 1 represents action. The alarm trend data are the abnormal values ​​corresponding to the above-mentioned voltage signal, current signal, temperature signal, and pressure signal when signal abnormalities occur, such as analog signal over-range and digital signal jitter.

[0039] Furthermore, the logical data operations between process equipment operation data and process equipment control data in this embodiment can be obtained based on simple logical operations such as AND, OR, and NOT, or they can be obtained based on timing logic, or they can be obtained through complex logic such as PID.

[0040] The implementation of this embodiment is described using the second control module as the execution subject.

[0041] S202. Input the process equipment operation data and process equipment control data into the pre-trained output prediction model to obtain the second process equipment logic processing data.

[0042] In this step, the output prediction model is trained based on historical business logic data of the field equipment process.

[0043] It should be noted that in this embodiment, the output prediction model is located in the second core. Specifically, after the output prediction model is trained on the server, the trained output prediction model is then implanted into the second core.

[0044] Here, the business logic data of the field equipment process is the historical business logic data corresponding to each process equipment obtained by the first core.

[0045] For example, the real-time business logic data of the PLC controller is the gate control logic data. Here, the historical input signal corresponding to the gate in core 0 is output 1, and the historical input signal corresponding to the gate is input 1 and input 2. Here, the signals corresponding to input 1 are 0, 0, 1, 1 in sequence, the signals corresponding to input 2 are 0, 1, 0, 1 in sequence, and the signals corresponding to output 1 are 0, 0, 0, 1 in sequence. Then, machine learning training is performed based on the data corresponding to the above signals to obtain the output prediction model.

[0046] For example, the real-time input signals corresponding to the gate are input 1 and input 2. The signals corresponding to input 1 and input 2 are respectively input into the output prediction model in this application to obtain the predicted operating state information corresponding to the gate as output 2.

[0047] S203. Based on the logic processing data of the first process equipment and the logic processing data of the second process equipment, determine whether the PLC controller is in a safe state.

[0048] Here, by comparing the logic processing data of the first process equipment and the logic processing data of the second process equipment, it is determined whether the logic of the PLC controller has been tampered with. If a significant difference is found between the logic processing data of the first process equipment and the logic processing data of the second process equipment, it is considered that the logic of the PLC controller has been tampered with, and the real-time operating state of the PLC controller logic is determined to be an unsafe state. If no significant difference is found between the logic processing data of the first process equipment (or real-time operating state information) and the logic processing data of the second process equipment (or predicted operating state information) within a preset range, it is considered that the logic of the PLC controller has not been tampered with, and the real-time operating state of the PLC controller logic is determined to be a safe state.

[0049] S204. In response to an unsafe state, a safety protection instruction is generated. The safety protection instruction is used to provide safety protection for the PLC controller.

[0050] Here, safety protection instructions are instructions for protecting the business logic programming of the PLC controller. They may include alarm instructions and stop instructions, which are used to characterize the PLC controller's output of control signals to various process equipment.

[0051] This application provides a PLC controller security protection method based on real-time process data. The method involves equipping the PLC controller with a first control module and a second control module. The second control module acquires real-time business logic data from the PLC controller, including process equipment operation data, process equipment control data, and first process equipment logic processing data obtained by the first control module based on the process equipment operation data and control data. The process equipment operation data and control data are input into a pre-trained output prediction model within the second control module to obtain second process equipment logic processing data. The output prediction model is trained based on historical business logic data of the field process equipment. Based on the first and second process equipment logic processing data, the method determines whether the PLC controller is in a secure state. In response to an unsecured state, a security protection command is generated to protect the PLC controller, thereby increasing the difficulty of network attacks or intrusions into the PLC controller and ensuring that the output data does not output erroneous data. This improves security protection and prevents the field process equipment from malfunctioning or shutting down due to abnormal attacks. Simultaneously, the second control module, within the PLC controller, acquires business logic data from the first control module, reflecting the true and real-time status of the data.

[0052] Figure 2 A flowchart illustrating a PLC controller safety protection method based on real-time process data, as provided in another embodiment of the present invention. Figure 2 As shown, before S201 above, it may also include:

[0053] S301. Obtain the historical business logic data corresponding to each process equipment.

[0054] Here, process equipment includes, but is not limited to, heating furnaces, reaction vessels, and other process equipment.

[0055] S302. Use the historical business logic data corresponding to each process equipment to train the initialized prediction model and obtain the output prediction model.

[0056] By constructing an output prediction model and then inputting it into the second core of the PLC controller, the control logic of the PLC controller is reconstructed. This enables real-time monitoring of the operational status of the logic in the first core of the PLC controller and outputs predicted operational status information corresponding to the real-time business logic data. The training method can be machine learning.

[0057] Figure 3 A flowchart illustrating a safety protection method for a PLC controller according to another embodiment of the present invention. Figure 3As shown, based on the historical business logic data corresponding to each process equipment, an output prediction model is obtained. Step S302 may include:

[0058] S3021. Based on the preset feature extraction rules, feature extraction is performed on each historical business logic data to obtain the first feature data corresponding to each historical business logic data.

[0059] S3022. Normalize each first feature data according to the preset normalization rule to obtain the first normalized feature data.

[0060] S3023. Based on the training of the first normalized feature data, the output prediction model is obtained.

[0061] It should be noted that the normalization process performed on each first feature data according to the preset normalization rule in this embodiment not only preserves all features of the first feature data, but also eliminates the influence of the dimensions between the indicators in each first feature data, so as to solve the comparability between the indicators of each first feature data.

[0062] Here, historical business logic data undergoes feature extraction according to preset feature extraction rules. This standardization process ensures that the various indicators of the historical business logic data are on the same order of magnitude, making them suitable for comprehensive comparative evaluation. Then, the obtained first feature data is normalized according to preset normalization rules to ensure numerical comparability between features of different dimensions. Therefore, the output prediction model trained on the first normalized feature data can accurately output the predicted operational status information corresponding to the real-time business logic data. Preferably, the preset normalization rules include, but are not limited to, min-max normalization rules and Z-score normalization rules.

[0063] In some implementations, real-time business logic data is input into a pre-trained output prediction model to obtain prediction runtime information. Step S202 may include:

[0064] S2021. Based on the preset feature extraction rules, feature extraction is performed on each real-time business logic data to obtain the second feature data corresponding to each real-time business logic data.

[0065] S2022. Normalize each second feature data according to the preset normalization rules to obtain the second normalized feature data.

[0066] S2023. Input the second normalized feature data into the pre-trained output prediction model to obtain the prediction running status information.

[0067] Since the training samples used in the output prediction model in this embodiment are obtained by sequentially extracting and normalizing historical business logic data, in order to accurately obtain the prediction running status information corresponding to the real-time business logic data, the second feature data is obtained by extracting features from the real-time business logic data according to the preset feature extraction rules in step S3021. Then, the second feature data is normalized according to the preset normalization rules in step S3022 to obtain the second normalized feature data corresponding to the training samples of the output prediction model. Therefore, by inputting the second normalized feature data into the pre-trained output prediction model, relatively accurate prediction running status information can be obtained.

[0068] In some implementations, based on the real-time operating status information and predicted operating status information of the PLC controller, it is determined whether the real-time operating status of the PLC controller logic is a safe state. Step S203 may include:

[0069] S2031. Compare the logic processing data of the first process equipment and the logic processing data of the second process equipment to obtain the comparison result information.

[0070] S2032. Determine whether the comparison result information is within the preset range.

[0071] S2033. If yes, then the real-time operating state of the PLC controller logic is determined to be a safe state.

[0072] That is, in response to a preset range, determining that the PLC controller is in a safe state.

[0073] S2034. If not, then the real-time operating state of the PLC controller logic is determined to be an unsafe state.

[0074] In other words, if the PLC controller is not within the preset range, it is determined that the PLC controller is in an unsafe state.

[0075] Since there is often a certain gap between the comparison results of real-time operating status information and predicted operating status information, this method determines whether the real-time operating status of the PLC controller logic is in a safe state by judging whether the comparison results are within a preset range, thereby ensuring the accuracy of the judgment of the real-time operating status of the PLC controller logic.

[0076] In some implementations, if the system is in an unsafe state, an instruction is issued to execute the business logic programming for the protection PLC controller. Step S204 may include:

[0077] S2041. Send the judgment result of the real-time operating status of the PLC controller logic as a safe state to the safety event database;

[0078] S2042. Based on the judgment result and the historical protection policies in the security event database, determine the instructions used to protect the business logic programming of the PLC controller.

[0079] Here, the safety event database records alarm logs when the real-time operating status information and the predicted operating status information of the PLC controller are inconsistent within a preset range, so as to optimize the offline training of the output prediction model. In other words, safety protection rules are preset, and safety protection instructions are generated based on unsafe states and safety protection rules.

[0080] It should be noted that the safety event database in this embodiment is used for the optimization of the prediction model during subsequent offline training, and is not activated when the real-time operating state of the PLC controller logic is in a safe state.

[0081] Furthermore, as a response to the above Figure 1 The implementation of the method shown in this invention provides a safety protection device for a PLC controller based on real-time process data. The PLC controller has a first control module and a second control module, and the safety protection device is the second control module, such as... Figure 4 As shown, the device includes:

[0082] The data acquisition module 51 is used to acquire real-time business logic data of the PLC controller. The business logic data includes process equipment operation data, process equipment operation data, and first process equipment logic processing data.

[0083] Prediction module 52 is used to input process equipment operation data and process equipment operation data into a pre-trained output prediction model to obtain second process equipment logic processing data. The output prediction model is trained based on the business logic data of the field equipment process.

[0084] Judgment module 53 is used to determine whether the PLC controller is in a safe state based on the logic processing data of the first process equipment and the logic processing data of the second process equipment.

[0085] The protection module 54 is used to issue a safety protection command in response to an unsafe state. The safety protection command is used to protect the PLC controller.

[0086] In some possible implementations, the apparatus also includes:

[0087] The historical business logic data acquisition module is used to acquire the historical business logic data corresponding to each process equipment.

[0088] The output prediction model training module is used to train the initialized prediction model using the historical business logic data corresponding to each process equipment, and obtain the output prediction model.

[0089] In some implementations, the output prediction model training module includes:

[0090] The first feature data acquisition unit is used to extract features from each historical business logic data according to the preset feature extraction rules, and obtain the first feature data corresponding to each historical business logic data.

[0091] The first normalization processing unit is used to normalize each first feature data according to a preset normalization rule to obtain the first normalized feature data.

[0092] The output prediction model training unit is used to obtain the output prediction model based on the training of the first normalized feature data.

[0093] In some implementations, the prediction module 52 includes:

[0094] The second feature data acquisition unit is used to extract features from each real-time business logic data according to the preset feature extraction rules, and obtain the second feature data corresponding to each real-time business logic data.

[0095] The second normalization processing unit is used to normalize each second feature data according to a preset normalization rule to obtain the second normalized feature data.

[0096] The prediction unit is used to input the second normalized feature data into the pre-trained output prediction model to obtain prediction running status information.

[0097] In some implementations, the decision module 53 includes:

[0098] The comparison unit is used to compare the logic processing data of the first process equipment and the logic processing data of the second process equipment to obtain comparison result information;

[0099] The judgment unit is used to determine whether the comparison result information is within a preset range;

[0100] The first state determination unit is used to determine that the PLC controller is in a safe state in response to a preset range;

[0101] The second state determination unit is used to determine that the PLC controller is in an unsafe state in response to the condition that it is outside the preset range.

[0102] In some implementations, the protection module 54 includes:

[0103] The sending unit is used to send the judgment result that the real-time operating status of the PLC controller logic is a safe state to the safety event database;

[0104] The instruction determination unit is used to determine the instructions for protecting the business logic programming of the PLC controller based on the judgment result and the historical protection policies in the security event database.

[0105] This invention provides a PLC controller safety protection device based on real-time process data. It acquires real-time business logic data from the PLC controller and inputs this data into a pre-trained output prediction model to obtain predicted operating status information. Based on the real-time operating status information and the predicted operating status information, it determines whether the real-time operating status of the PLC controller logic is safe, thereby increasing the execution of protection logic for the PLC controller. Finally, when the real-time operating status of the PLC controller logic is determined to be unsafe, an instruction is issued to execute the business logic programming that protects the PLC controller. This increases the difficulty of network attacks or intrusions into the PLC controller, ensuring that the output data does not contain erroneous data, thus preventing the process equipment in the field from malfunctioning or shutting down due to abnormal attacks.

[0106] It should be noted that the safety protection device for PLC controllers based on real-time process data provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the equipment can be divided into different functional modules to complete all or part of the functions described above. In addition, the safety protection device for PLC controllers based on real-time process data provided in the above embodiments and the safety protection method embodiment for PLC controllers based on real-time process data belong to the same concept. The specific implementation process is detailed in the method embodiment, and will not be repeated here.

[0107] According to another aspect of this disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the method described according to this disclosure.

[0108] According to another aspect of this disclosure, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method according to this disclosure.

[0109] refer to Figure 5The present invention describes a structural block diagram of an electronic device 600 that can serve as a server or client of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0110] like Figure 5 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. The RAM 603 may also store various programs and data required for the operation of the electronic device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0111] Multiple components in electronic device 600 are connected to I / O interface 605, including: input unit 606, output unit 607, storage unit 608, and communication unit 609. Input unit 606 can be any type of device capable of inputting information to electronic device 600. Input unit 606 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device, and can include, but is not limited to, a mouse, keyboard, touchscreen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 607 can be any type of device capable of presenting information, and can include, but is not limited to, a monitor, speaker, object / audio output terminal, vibrator, and / or printer. Storage unit 608 can include, but is not limited to, a hard disk and an optical disk. Communication unit 609 allows electronic device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and can include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth™ devices, 602.11 devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.

[0112] The computing unit 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as method 200. For example, in some embodiments, method 200 may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform method 200 by any other suitable means (e.g., by means of firmware).

[0113] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0114] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0115] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0117] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0118] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0119] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0120] While embodiments or examples of this disclosure have been described with reference to the accompanying drawings, it should be understood that the methods, systems, and devices described above are merely exemplary embodiments or examples, and the scope of the invention is not limited by these embodiments or examples, but only by the granted claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. Furthermore, the steps may be performed in a different order than that described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, as the technology evolves, many elements described herein can be replaced by equivalents that appear after this disclosure.

Claims

1. A PLC controller security protection method based on real-time process data, characterized in that, The PLC controller has a first control module and a second control module, both of which are modules with independent computing cores, including: The second control module acquires real-time business logic data from the PLC controller, including process equipment operation data, process equipment operation data, and first process equipment logic processing data. The process equipment operation data and process equipment operation data are input into the pre-trained output prediction model in the second control module to obtain the second process equipment logic processing data. The output prediction model is trained based on the historical business logic data of the field process equipment. Based on the logic processing data of the first process equipment and the logic processing data of the second process equipment, determine whether the PLC controller is in a safe state; In response to an unsafe state, a safety protection command is generated, which is used to perform safety protection on the PLC controller; The first process equipment logic processing data is obtained by the first control module based on the process equipment operation data and process equipment control data.

2. The method of claim 1, wherein, The step of determining whether the PLC controller is in a safe state based on the logic processing data of the first process equipment and the logic processing data of the second process equipment includes: The logic processing data of the first process equipment and the logic processing data of the second process equipment are compared to obtain the comparison result information; Determine whether the comparison result information is within a preset range; In response to the PLC controller being in a safe state within a preset range; In response to a situation outside the preset range, the PLC controller is determined to be in an unsafe state.

3. The method of claim 1, wherein, The response to an insecure state, issuing a security protection command, includes: Pre-set security protection rules; Based on the unsafe state and the security protection rules, generate security protection instructions.

4. The method of claim 1, wherein, Before inputting the process equipment operation data and the process equipment control data into the pre-trained output prediction model in the second control module to obtain the second process equipment logic processing data, the method further includes: Obtain the historical business logic data corresponding to each of the aforementioned process equipment; The initial prediction model is trained using the historical business logic data corresponding to each of the aforementioned process equipment to obtain the output prediction model.

5. A safety guard for a PLC controller based on real-time process data, characterized by, The PLC controller has a first control module and a second control module, both of which are modules with independent processing cores. The safety protection device is the second control module, comprising: The data acquisition module is used to acquire real-time business logic data of the PLC controller, including process equipment operation data, process equipment operation data, and first process equipment logic processing data. The prediction module is used to input the process equipment operation data and the process equipment operation data into a pre-trained output prediction model to obtain the second process equipment logic processing data. The output prediction model is trained based on the business logic data of the field equipment process. The judgment module is used to determine whether the PLC controller is in a safe state based on the logic processing data of the first process equipment and the logic processing data of the second process equipment. A protection module is used to issue a safety protection command in response to an unsafe state, and the safety protection command is used to perform safety protection on the PLC controller; The first process equipment logic processing data is obtained by the first control module based on the process equipment operation data and process equipment control data.

6. A PLC controller characterized by comprising: include: The first control module and the second control module are both modules with independent computing cores; The first control module acquires the real-time process equipment operation data and process equipment control data of the PLC controller, and obtains the first process equipment logic processing data based on the process equipment operation data and process equipment control data. The second control module acquires business logic data sent by the first control module, the business logic including: process equipment operation data, process equipment operation data, and first process equipment logic processing data; The second control module inputs the process equipment operation data and the process equipment operation data into the pre-trained output prediction model in the second control module to obtain the second process equipment logic processing data. The output prediction model is trained based on the historical business logic data of the field process equipment. The second control module determines whether the PLC controller is in a safe state based on the logic processing data of the first process equipment and the logic processing data of the second process equipment. In response to an unsafe state, the second control module issues a safety protection command, which is used to provide safety protection for the PLC controller.

7. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

8. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • PLC centralized monitoring method and system

    CN113325795A

  • Soft error aggregation method for detecting and reporting risks in safety instrumented systems

    CN116257018A