Method and device for managing logic blocks in industrial controller

By acquiring and configuring custom logic blocks in industrial controllers, the problems of difficulty in developing custom logic blocks and logic confidentiality are solved, efficient development and confidentiality encapsulation are achieved, and the risk of file expansion is reduced.

CN113534682BActive Publication Date: 2024-09-03BEIJING GUODIAN ZHISHEN CONTROL TONGDY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010301768.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-16
Publication Date
2024-09-03
Estimated Expiration
2040-04-16

AI Technical Summary

Technical Problem

In industrial control, the development of custom logic blocks is difficult, and the confidentiality of internal logic is difficult to achieve.

Method used

By obtaining custom logic blocks whose internal logic meets the preset confidentiality judgment conditions in the industrial controller, determine the target logic block from the pre-stored logic blocks, and perform configuration operations in the pre-set logic page to generate a complete target file. , realizing custom logic block encapsulation in graphical configuration mode.

Benefits of technology

It reduces the difficulty of developing custom logic blocks, improves development efficiency, achieves confidentiality within the logic, avoids the expansion of logical page target files, and ensures the accurate calling of custom logic blocks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113534682B
    Figure CN113534682B
Patent Text Reader

Abstract

This application discloses a method and apparatus for managing logic blocks in an industrial controller. The method includes: acquiring custom logic blocks in the industrial controller whose internal logic meets preset confidentiality judgment conditions; determining at least one target logic block from pre-stored logic blocks to implement the function of the custom logic blocks; and performing configuration operations on the at least one target logic block in a pre-set logic page to obtain the custom logic blocks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of information processing, and more particularly to a method and device for managing logic blocks in an industrial controller. Background Art

[0002] In industrial control, engineering implementation personnel use function block diagrams to combine specific logic blocks, configure them into multiple logic pages, and then download them to the controller. The controller executes specific code to implement the logic according to the function blocks in the logic page.

[0003] For the internal logic in industrial controllers, some control logics are expected to be provided to others as a whole, but the internal logic is not exposed. Therefore, a custom logic block is proposed. As an independently developed function block, the custom logic block can realize specific functions as a whole. Since it is an independent function block, its internal logic is invisible.

[0004] In the related art, the development difficulty of the custom logic block is relatively high. Therefore, how to reduce the development difficulty of the custom logic block is an issue that needs to be solved urgently. Summary of the invention

[0005] In order to solve any of the above technical problems, an embodiment of the present application provides a method and device for managing logic blocks in an industrial controller.

[0006] In order to achieve the purpose of the embodiment of the present application, the embodiment of the present application provides a method for managing logic blocks in an industrial controller, including:

[0007] Obtain a custom logic block in the industrial controller whose internal logic meets the preset confidentiality judgment conditions;

[0008] Determining at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks;

[0009] A configuration operation is performed on at least one target logic block in a preset logic page to obtain a custom logic block.

[0010] In an exemplary embodiment, after performing a configuration operation on at least one logic block in a preset logic page to obtain a custom logic block, the method further includes:

[0011] Performing configuration operations using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller;

[0012] The complete object file is executed in the industrial controller.

[0013] In an exemplary embodiment, after performing a configuration operation on at least one target logic block in a preset logic page to obtain a custom logic block, the method further includes:

[0014] Obtaining a target file corresponding to the custom logic block and storing it in the industrial controller;

[0015] generating control information for calling the custom logic block from the industrial controller;

[0016] The configuration operation is performed using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller, including:

[0017] Obtaining the target file corresponding to the logic block and the control information of the custom logic block;

[0018] A completed target file of the internal logic of the industrial controller is generated by using the target file corresponding to the logic block and the control information of the custom logic block.

[0019] In an exemplary embodiment, the generating control information for calling the custom logic block from the industrial controller includes:

[0020] Configuring the target file corresponding to the custom logic block to be a function of a preset calling library in the industrial controller;

[0021] Control information for calling the function from the industrial controller is generated.

[0022] In an exemplary embodiment, executing the complete target file in the industrial controller includes:

[0023] When parsing the complete target file, if it is detected that the complete target file does not include the target file of the logic block to be executed, then obtaining control information of the logic block to be executed;

[0024] According to the control information, obtaining the target file of the logic block to be executed from the industrial controller;

[0025] On the logic page for executing the complete target file, creating a new logic page corresponding to the target file of the logic block to be executed;

[0026] On the newly created logic page, the target file of the logic block to be executed is processed.

[0027] A device for managing logic blocks in an industrial controller, comprising:

[0028] An acquisition module, used to acquire a custom logic block in an industrial controller whose internal logic meets a preset confidentiality judgment condition;

[0029] A determination module, configured to determine at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks;

[0030] The management module is used to perform configuration operations on at least one target logic block in a preset logic page to obtain a custom logic block.

[0031] In an exemplary embodiment, the apparatus further comprises:

[0032] A configuration module, which is used to perform configuration operations using the custom logic block and the pre-acquired logic block after obtaining the custom logic block, so as to obtain a complete target file of the internal logic of the industrial controller;

[0033] An execution module is used to execute the complete target file in the industrial controller.

[0034] In an exemplary embodiment, the apparatus further comprises:

[0035] A storage module, used for obtaining a target file corresponding to the custom logic block after obtaining the custom logic block, and storing the target file in the industrial controller;

[0036] A generating module, used for generating control information for calling the custom logic block from the industrial controller;

[0037] The configuration module comprises:

[0038] A first acquisition unit, used to acquire a target file corresponding to the logic block and control information of the custom logic block;

[0039] The first generating unit is used to generate a completed target file of the internal logic of the industrial controller by using the target file corresponding to the logic block and the control information of the custom logic block.

[0040] In an exemplary embodiment, the execution module includes:

[0041] a second acquisition unit, configured to acquire control information of the logic block to be executed if it is detected that the complete target file does not include the target file of the logic block to be executed when parsing the complete target file;

[0042] A third acquisition unit, configured to acquire a target file of the logic block to be executed from the industrial controller according to the control information;

[0043] A creating unit, used for creating a new logical page corresponding to the target file of the logical block to be executed on the logical page for executing the complete target file;

[0044] The processing unit is used to process the target file of the to-be-executed logic block on the newly created logic page.

[0045] A computer storage medium comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to call the computer program to implement any of the methods described above.

[0046] The embodiment provided in the embodiment of the present application obtains a custom logic block in an industrial controller whose internal logic meets preset confidentiality judgment conditions, determines at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks, and performs configuration operations on at least one target logic block in a pre-set logic page to obtain a custom logic block, thereby completing the encapsulation of the custom logic block using a graphical configuration method, reducing the development difficulty of the custom logic block and improving development efficiency.

[0047] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by implementing the embodiments of the present application. The purpose and other advantages of the embodiments of the present application can be achieved and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to provide further understanding of the technical solutions of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the embodiments of the present application, they are used to explain the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0049] Figure 1 A flowchart of a method for managing logic blocks in an industrial controller provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of generating a custom logic block provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of the configuration operation of the custom logic and existing logic blocks provided for this application;

[0052] Figure 4 A structural diagram of a device for managing logic blocks in an industrial controller provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application more clear, the embodiments of the present application will be described in detail in conjunction with the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily.

[0054] Figure 1 A flowchart of a method for managing logic blocks in an industrial controller provided in an embodiment of the present application.

[0055] Figure 1 The method shown comprises:

[0056] Step 101, obtaining a custom logic block in the industrial controller whose internal logic meets the preset confidentiality judgment condition;

[0057] In an exemplary embodiment, part of the control logic in industrial control is provided as a whole to others for use. For confidentiality considerations, part of the internal logic cannot be exposed. Therefore, confidentiality considerations can be obtained based on the design, and confidentiality judgment conditions can be set for the internal logic. By knowing the preset confidentiality judgment conditions, the logic for keeping the internal logic confidential is analyzed and determined, and it is used as a custom logic block.

[0058] Step 102: Determine at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks;

[0059] In the related art, the custom logic block is implemented through programming language, and then a dynamic link library is directly generated and called by the controller. This solution has high requirements for logic designers, who need to have programming skills, and has high development difficulty. Different from the related art, the composition of the functions of the custom module is determined, and matched with the functions of the existing logic blocks, and the functions of the custom function module can be realized by which logic blocks are combined, that is, at least one target logic block is determined to realize the functions of the custom logic block. With the help of the functions of the existing logic blocks, the development difficulty of the custom logic block is reduced, and the existing logic blocks are fully utilized.

[0060] Step 103: Perform a configuration operation on at least one target logic block in a preset logic page to obtain a custom logic block.

[0061] In an exemplary embodiment, with the help of a graphical management mechanism in a logic page, the functions of a target logic block are deployed, the input operation and output operation are controlled, the functions of a custom logic block are realized, and the requirements for logic designers are reduced.

[0062] The method provided in the embodiment of the present application obtains a custom logic block in an industrial controller whose internal logic meets preset confidentiality judgment conditions, determines at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks, and performs configuration operations on at least one target logic block in a pre-set logic page to obtain a custom logic block, thereby completing the encapsulation of the custom logic block using a graphical configuration method, reducing the development difficulty of the custom logic block, and improving development efficiency.

[0063] The method provided in the embodiment of the present application is described below:

[0064] In an exemplary embodiment, after performing a configuration operation on at least one logic block in a preset logic page to obtain a custom logic block, the method further includes:

[0065] Performing configuration operations using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller;

[0066] The complete object file is executed in the industrial controller.

[0067] The custom logic block is configured together with the common logic block to generate a complete logic page; the target file of the logic page is downloaded to the industrial controller and the required functions are realized by executing the target file.

[0068] In an exemplary embodiment, after performing a configuration operation on at least one target logic block in a preset logic page to obtain a custom logic block, the method further includes:

[0069] Obtaining a target file corresponding to the custom logic block and storing it in the industrial controller;

[0070] generating control information for calling the custom logic block from the industrial controller;

[0071] The configuration operation is performed using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller, including:

[0072] Obtaining the target file corresponding to the logic block and the control information of the custom logic block;

[0073] A completed target file of the internal logic of the industrial controller is generated by using the target file corresponding to the logic block and the control information of the custom logic block.

[0074] In the related art, the source file of the encapsulated logic block is directly in the target file of the compiled logic page. When a page of logic diagram contains multiple repeated custom function blocks, the logic page target file will become very large, affecting the execution efficiency. The difference from the related art is that the present application generates a target file from the custom function block, downloads it to the controller, and uses it as a callable library. Only the identifier of the custom function block is saved in the ordinary logic diagram to call the target file of the custom logic block from the library, which can avoid the problem of ordinary logic diagram target file expansion. At the same time, since the use of custom function blocks only requires the target file, the confidentiality requirements of the internal implementation of the logic are achieved.

[0075] When generating the target file of the complete logic page of the industrial controller, the complete target file only includes the target file of the common logic block, but does not include the target file of the custom logic block, thereby effectively reducing the data volume of the complete target file corresponding to the complete logic page and reducing the probability of file expansion. In addition, with the help of control information, the accurate calling of the custom logic block can be guaranteed when the custom logic block is executed, thereby ensuring the execution of the target file of the custom logic.

[0076] In an exemplary embodiment, the generating control information for calling the custom logic block from the industrial controller includes:

[0077] Configuring the target file corresponding to the custom logic block to be a function of a preset calling library in the industrial controller;

[0078] Control information for calling the function from the industrial controller is generated.

[0079] The calling library can use a link calling library to realize the calling of the target file of the custom logic block, and realize the purpose of calling the target file of the custom logic block by using the identification information by setting the corresponding relationship between the target file of the custom logic block and the preset identification information.

[0080] In an exemplary embodiment, executing the complete target file in the industrial controller includes:

[0081] When parsing the complete target file, if it is detected that the complete target file does not include the target file of the logic block to be executed, then obtaining control information of the logic block to be executed;

[0082] According to the control information, obtaining the target file of the logic block to be executed from the industrial controller;

[0083] On the logic page for executing the complete target file, creating a new logic page corresponding to the target file of the logic block to be executed;

[0084] On the newly created logic page, the target file of the logic block to be executed is processed.

[0085] The target files of the logic page and the custom logic block are downloaded to the controller at the same time. When the controller executes the custom logic block in the logic page, the target file of the custom logic block is called, a virtual logic page is generated in the memory, and executed.

[0086] The method provided in the embodiment of the present application is described below:

[0087] The method for managing logic blocks in an industrial controller provided by an embodiment of the present application includes:

[0088] Step A01, configuring the pre-acquired logic block to obtain a custom logic block;

[0089] The logic block is pre-stored and packaged as a custom logic block by configuring using logic blocks.

[0090] Figure 2 A schematic diagram of generating a custom logic block provided in an embodiment of the present application. Figure 2 In the schematic diagram shown, logic block 1 for implementing function 1, logic block 2 for implementing function 2, logic block 3 for implementing function 3, and logic block 4 for implementing function 4 are called, and the connection relationship between the logic blocks is that logic block 1, logic block 2, and logic block 3 are all connected to logic block 4, wherein the input data of logic block 1 is input 1, the input data of logic block 2 is input 1 and input 2, the input data of logic block 3 is input 2, and the input data of logic block 4 is the output data of logic block 1, logic block 2, and logic block 3. The output data of the logic block is the output of the custom logic module, and the output data is output 1.

[0091] Depend on Figure 2 It can be seen that with the help of graphical management of logic blocks in the logic page, the generation operation of custom logic blocks can be completed efficiently, the development efficiency of custom logic blocks can be improved, and the development difficulty can be reduced.

[0092] Step A02, obtaining the target file of the custom logic block;

[0093] Encapsulate the configured custom logic block into a logic block, realize that the custom logic block can realize the logic block of custom function 1, and obtain data for realizing the custom function 1;

[0094] Step A03: Generate the required functions in the industrial controller by using the custom logic block and the pre-acquired logic block.

[0095] Use custom logic blocks to configure with existing logic blocks to generate a complete logic page target file.

[0096] Figure 3 A schematic diagram of the configuration operation of the custom logic and existing logic blocks provided by this application. Figure 3 As shown, custom logic block 1, logic block 5 for implementing function 5, and logic block 6 for implementing function 6 are configured, wherein logic block 5 and logic block 6 are both existing logic blocks; in actual applications, custom logic block 1 can also be configured with other custom logic blocks, such as custom logic block 2.

[0097] After completing the arrangement and deployment operations of the logic blocks and the configuration operations of the input and output data, the settings of the functional blocks of the logic page can be obtained, and the target files of the logic page and the custom logic block can be downloaded to the controller at the same time. When the controller executes the custom logic block in the logic page, the target file of the custom logic block is called, a virtual logic page is generated in the memory, and executed.

[0098] The method provided in the embodiment of the present application configures the existing logic blocks to form new relatively independent function blocks, and then encapsulates the new logic blocks to generate target files of the function blocks, which appear externally as a new custom logic block and can be used in ordinary logic diagrams. When downloading the logic diagram to the controller, the function block target file is also downloaded to the controller as a library file called by the logic block to implement the execution of the target file of the custom logic block.

[0099] Figure 4 A structural diagram of a device for managing logic blocks in an industrial controller provided in an embodiment of the present application.

[0100] Figure 4 The device shown comprises:

[0101] The acquisition module 401 is used to acquire a custom logic block in the industrial controller whose internal logic meets the preset confidentiality judgment condition;

[0102] A determination module 402 is used to determine at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks;

[0103] The management module 403 is used to perform a configuration operation on at least one target logic block in a preset logic page to obtain a custom logic block.

[0104] In an exemplary embodiment, the apparatus further comprises:

[0105] A configuration module, which is used to perform configuration operations using the custom logic block and the pre-acquired logic block after obtaining the custom logic block, so as to obtain a complete target file of the internal logic of the industrial controller;

[0106] An execution module is used to execute the complete target file in the industrial controller.

[0107] In an exemplary embodiment, the apparatus further comprises:

[0108] A storage module, used for obtaining a target file corresponding to the custom logic block after obtaining the custom logic block, and storing the target file in the industrial controller;

[0109] A generating module, used for generating control information for calling the custom logic block from the industrial controller;

[0110] The configuration module comprises:

[0111] A first acquisition unit, used to acquire a target file corresponding to the logic block and control information of the custom logic block;

[0112] The first generating unit is used to generate a completed target file of the internal logic of the industrial controller by using the target file corresponding to the logic block and the control information of the custom logic block.

[0113] In an exemplary embodiment, the generating module comprises:

[0114] A configuration unit, used to configure the target file corresponding to the custom logic block to be a function of a preset call library in the industrial controller;

[0115] The second generating unit is used to generate control information for calling the function from the industrial controller.

[0116] In an exemplary embodiment, the execution module includes:

[0117] a second acquisition unit, configured to acquire control information of the logic block to be executed if it is detected that the complete target file does not include the target file of the logic block to be executed when parsing the complete target file;

[0118] A third acquisition unit, configured to acquire a target file of the logic block to be executed from the industrial controller according to the control information;

[0119] A creating unit, used for creating a new logical page corresponding to the target file of the logical block to be executed on the logical page for executing the complete target file;

[0120] The processing unit is used to process the target file of the to-be-executed logic block on the newly created logic page.

[0121] The device provided in the embodiment of the present application obtains a custom logic block in an industrial controller whose internal logic meets preset confidentiality judgment conditions, determines at least one target logic block for implementing the function of the custom logic block from pre-stored logic blocks, and performs configuration operations on at least one target logic block in a pre-set logic page to obtain a custom logic block, thereby completing the encapsulation of the custom logic block using a graphical configuration method, reducing the development difficulty of the custom logic block, and improving development efficiency.

[0122] A computer storage medium comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to call the computer program to implement any of the methods described above.

[0123] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A method for managing logic blocks in an industrial controller, characterized in that: include: Obtain a custom logic block in the industrial controller whose internal logic meets the preset confidentiality judgment conditions; Determining at least two target logic blocks for implementing the function of the custom logic block from pre-stored logic blocks, comprising: determining the function of the custom logic block, and matching the function of the custom logic block with the function of the stored logic block to obtain at least two target logic blocks, wherein the combined function of the at least two target logic blocks can implement the function of the custom logic block; Performing configuration operations on at least two target logic blocks in a preset logic page to obtain a custom logic block; wherein the configuration operation includes: in the logic page, according to the connection relationship between the target logic blocks, completing the arrangement and deployment of the logic blocks, and setting the input data and output data of each target logic block, wherein the logic page includes a graph of each target logic block, wherein each graph is used to call the corresponding target logic block; Wherein, after performing a configuration operation on at least one target logic block in a preset logic page to obtain a custom logic block, the method further includes: Retaining the identifier of the custom logic block in the logic page, and storing the target file corresponding to the custom logic block in the industrial controller, wherein the target file encapsulates the source file of the logic block corresponding to the custom logic block; Generate control information for calling the custom logic block from the industrial controller, wherein the control information is used to call a target file corresponding to the custom logic block from the industrial controller using an identifier of the custom logic block in a logic page; Performing configuration operations using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller; The configuration operation is performed using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller, including: Obtaining the target file corresponding to the logic block and the control information of the custom logic block; When the target file corresponding to the logic block and the control information of the custom logic block are used to generate the target file of the complete logic page of the industrial controller, the target file of the complete logic page only includes the source file of the logic block.

2. The method according to claim 1, characterized in that After performing configuration operation using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller, the method further includes: The complete object file is executed in the industrial controller.

3. The method according to claim 1, characterized in that The generating control information for calling the custom logic block from the industrial controller includes: Configuring the target file corresponding to the custom logic block to be a function of a preset calling library in the industrial controller; Control information for calling the function from the industrial controller is generated.

4. The method according to claim 2, characterized in that: The executing the complete target file in the industrial controller comprises: When parsing the complete target file, if it is detected that the complete target file does not include the target file of the logic block to be executed, then obtaining control information of the logic block to be executed; According to the control information, obtaining a target file of the logic block to be executed from the industrial controller; On the logic page for executing the complete target file, creating a new logic page corresponding to the target file of the logic block to be executed; On the newly created logic page, the target file of the logic block to be executed is processed.

5. A device for managing logic blocks in an industrial controller, characterized in that: include: An acquisition module, used to acquire a custom logic block in an industrial controller whose internal logic meets a preset confidentiality judgment condition; A determination module, used to determine at least two target logic blocks for implementing the function of the custom logic block from pre-stored logic blocks, including: determining the function of the custom logic block, and matching the function of the custom logic block with the function of the stored logic block to obtain at least two target logic blocks, wherein the combined function of the at least two target logic blocks can implement the function of the custom logic block; A management module, configured to perform configuration operations on at least two target logic blocks in a preset logic page to obtain a custom logic block; wherein the configuration operation includes: in the logic page, according to the connection relationship between the target logic blocks, completing the arrangement and deployment of the logic blocks, and setting the input data and output data of each target logic block, wherein the logic page includes a graph of each target logic block, wherein each graph is used to call the corresponding target logic block; The device also includes: A storage module, used to retain the identifier of the custom logic block in a logic page, and store a target file corresponding to the custom logic block in the industrial controller, wherein the target file encapsulates a source file of the logic block corresponding to the custom logic block; A generating module, used for generating control information for calling the custom logic block from the industrial controller, wherein the control information is used for calling a target file corresponding to the custom logic block from the industrial controller using an identifier of the custom logic block in a logic page; A configuration module, used to perform configuration operations using the custom logic block and the pre-acquired logic block to obtain a complete target file of the internal logic of the industrial controller; Wherein, the configuration module includes: A first acquisition unit, used to acquire a target file corresponding to the logic block and control information of the custom logic block; The first generating unit is used to generate a target file of a complete logic page of the industrial controller by using the target file corresponding to the logic block and the control information of the custom logic block, wherein the target file of the complete logic page only includes the source file of the logic block.

6. The device according to claim 5, characterized in that The device also includes: An execution module is used to execute the complete target file in the industrial controller.

7. The device according to claim 6, characterized in that The execution module includes: a second acquisition unit, configured to acquire control information of the logic block to be executed if it is detected that the complete target file does not include the target file of the logic block to be executed when parsing the complete target file; A third acquisition unit, configured to acquire a target file of the logic block to be executed from the industrial controller according to the control information; A creating unit, used for creating a new logical page corresponding to the target file of the logical block to be executed on the logical page for executing the complete target file; The processing unit is used to process the target file of the to-be-executed logic block on the newly created logic page.

8. A computer storage medium, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to call the computer program to implement the method according to any one of claims 1 to 4.