Method and system for generating and optimizing engineering programs for technical facilities

The processing unit receives requests and applies natural language processing and machine learning algorithms to analyze and optimize engineering programs, solving the automation problem of generating and optimizing engineering programs in the existing technology, and achieving efficient code development and compatibility improvement.

CN118633077APending Publication Date: 2024-09-10SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280083166.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-10-15
Filing Date
2022-10-14
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

There is a lack of automated methods in existing technical facilities to generate engineering programs with given specifications, resulting in code developers needing to code manually, which is time-consuming and labor-intensive, and makes it difficult to optimize and detect code errors.

Method used

The processing unit receives requests to generate engineering programs with given specifications, applies natural language processing algorithms and machine learning models, analyzes and optimizes engineering programs, and automatically modifies code statements to generate compatible engineering programs.

Benefits of technology

Significantly reduces code development time and labor, improves engineering program compatibility and optimization efficiency, and reduces the need for manual inspection and modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118633077A
    Figure CN118633077A
Patent Text Reader

Abstract

A method and system for generating and optimizing an engineering program with a given specification from another engineering program is provided. The method includes receiving, by a processing unit (202), a request to generate a first engineering program having a first specification from a second engineering program having a second specification. The method further includes generating, by the processing unit (202), a first ontology pattern including information associated with a plurality of data flow and control flow interrelationships between the plurality of code statements in the second engineering program. The method further includes generating, by the processing unit (202), a second ontology pattern based on applying a machine learning algorithm on the first sequence representation of the first ontology pattern. The method includes generating, by the processing unit (202), the first engineering program from the second engineering program based on the analysis of the second ontology pattern.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of engineering of computer-aided programs, and more particularly to a method and a system for generating an engineering program with given specifications for a technical facility. Background Art

[0002] Technical facilities such as factories include one or more devices controlled by one or more engineering objects. Examples of one or more engineering objects may include, for example, programmable logic controllers, one or more field devices, or any other automation equipment. Examples of one or more devices include, but are not limited to, control valves, motors, pumps, and actuators. One or more engineering objects control one or more devices by executing an engineering program that can be stored in a memory. The engineering program may include multiple machine-readable instructions to control one or more devices.

[0004] Typically, engineering programs are manually coded by code developers by considering multiple parameters associated with one or more devices, one or more engineering objects, and technical facilities. Examples of multiple parameters include, but are not limited to, processing speed and storage capacity of one or more engineering objects. Therefore, engineering programs are coded to minimize the storage capacity and processing power requirements of the engineering program.

[0005] Typically, a code developer generates an engineering program in an engineering system configured to handle graphic programming blocks. In order to generate an engineering program for a technical facility, a code developer may have to manually encode several graphic programs for each of one or more engineering objects based on multiple parameter values. In one example, a code developer generates an engineering program by dragging and dropping one or more desired graphic program blocks from an element library into an engineering system. In another example, a code developer uses an input device such as a computer keyboard to input text-based code. Afterwards, the engineering program is compiled and downloaded to one or more engineering objects (such as a programmable logic controller (PLC) for industrial control applications).

[0006] Traditional engineering systems use functions and other resources to provide assistance to code developers to design and implement engineering programs related to technical facilities. However, these traditional engineering systems lack the automated engineering methods that automatically generate engineering programs with given specifications for technical facilities. The specification of the engineering program represents information about one or more constraints, and these constraints will be imposed on the engineering program to make the engineering program compatible with one or more engineering objects. For example, if the engineering program has a huge code length that may not be suitable for the memory space of the engineering object, the engineering program may not be compatible with the engineering object. In this case, the traditional engineering system may not notify the code developer that the generated engineering program may be incompatible with the engineering object.

[0007] In another example, conventional engineering systems fail to provide automated programming assistance by providing guidance or suggestions to optimize the quality of code written by code developers.

[0008] In yet another example, if a code developer must correct an erroneous code, the code developer may have to analyze the erroneous code line by line, which may consume a lot of time. Conventional engineering systems fail to automatically determine one or more errors in the erroneous code. Therefore, there is no mechanism to automate the engineering involved in generating an engineering program.

[0009] At present, the engineering program used in technical facilities includes a large number of programming blocks, each of which is huge in code length. Code developers may find it impossible to manually check such huge code blocks in order to predict errors and optimize code. Therefore, if there is no automated assistance provided to code developers to optimize code, detect errors in code, and optimize engineering programs, a large amount of labor and time will be wasted. In addition, code developers may find it impossible to complete code development in time.

[0010] In addition, engineering program can have a large amount of programming elements, such as variables, classes and functions that can be defined in the first programming block of engineering program.Programming elements can be quoted in other programming blocks in a plurality of programming blocks.Therefore, any modification to the first programming block that causes the modification in the definition of a plurality of programming elements may cause a plurality of errors in other programming blocks in these a plurality of programming blocks.In existing systems, before optimizing engineering program, code developers may have to study countless such definitions and quotations of these a plurality of programming elements.For code developers, it is impossible to manually check a large amount of programming elements and identify the mutual relationship between the programming elements in the engineering program.

[0011] In view of the above, there is a need for an efficient method and system for generating an engineering program with given specifications for a technical facility. Summary of the invention

[0012] Therefore, the object of the present invention is to provide a method and a system for generating an engineering program with given specifications for a technical installation.

[0013] The object of the present invention is achieved by a method for generating an engineering program for a technical facility. The method includes receiving a request by a processing unit to generate a first engineering program with a first specification from a second engineering program with a second specification. The request includes information about the first specification of the first engineering program. The first and second specifications respectively include information associated with coding languages, coding conventions, software configurations, processing speed limitations, memory limitations, and key process indicators associated with the first and second engineering programs. The request generates the first engineering program for the technical facility. The second engineering program is stored in a memory storage device of the technical facility.

[0014] A technical facility is at least one of an industrial manufacturing plant, an industrial processing plant, or an industrial power plant. A technical facility includes one or more engineering objects. One or more engineering objects are devices that work together in a technical facility to achieve one or more goals of the technical facility. Examples of one or more engineering objects include servers, robots, switches, automation equipment, programmable logic controllers (PLCs), human-machine interfaces (HMIs), motors, valves, pumps, actuators, sensors, and (one or more) other industrial equipment. One or more engineering objects include a processing unit and a memory. The memory is configured to store one or more engineering programs. In one example, the memory is configured to store a second engineering program. The processing unit of one or more engineering objects is configured to execute one or more engineering programs to achieve one or more key performance indicators associated with one or more engineering programs. Examples of one or more key performance indicators include processing speed, memory requirements, and processing efficiency of one or more engineering programs when one or more engineering programs are executed by the processing unit of one or more engineering objects. One or more engineering objects in a technical facility can be connected to each other via one or more physical connections. One or more physical connections can include physical links (such as wires or cables). In an alternative embodiment, the connection can also be a virtual link. In addition, the functions of one or more engineering objects can be defined based on multiple parameter values. The multiple parameter values ​​include motor configuration parameters, network and communication parameters, valve control, temperature or pressure values ​​of sensors, speed, torque, etc.

[0015] In a preferred embodiment, the method includes applying a natural language processing algorithm by a processing unit on a second engineering program having a second specification. Examples of natural language processing algorithms include, but are not limited to, a Bayesian network algorithm and a conditional random field algorithm. The natural language processing algorithm is applied to the second engineering program to extract a plurality of code statements from the second engineering program. The plurality of code statements can be encoded in the second engineering program as at least one of machine-readable instructions written in a natural language, a high-level programming language, an assembly language, or a compiled code. The plurality of code statements include a plurality of data items and a plurality of metadata items associated with the second engineering program. The plurality of data items include a plurality of variables, a plurality of functions, and a plurality of code statements of the second engineering program. The plurality of metadata items include a creation date, an author's name, and a domain of an industrial environment in which the second engineering program is deployed. Each of the plurality of data items and the plurality of metadata items of the second engineering program can have a data flow and a control flow relationship with other data items and metadata items of the second engineering program.

[0016] In a preferred embodiment, the method further includes determining, by a processing unit, a plurality of data items and a plurality of metadata items associated with the second engineering program based on the application of a natural language processing algorithm. In addition, the method includes generating a first ontology schema by a processing unit, the first ontology schema including information associated with a plurality of data flows and control flow relationships between a plurality of data items and a plurality of metadata items in the second engineering program. The first ontology schema is generated by analyzing the second engineering program. The first ontology schema further includes information about the relationship between a variable set corresponding to each programming block in the second engineering program and a plurality of code statements in the second engineering program. The variable set includes a plurality of data and pointer variables defined and used in the second engineering program. The first ontology schema is an abstraction of a programming domain that captures the semantics of a plurality of programming concepts (such as a class hierarchy, a command line, a data variable, and a data structure of a programming block set), and one or more relationships between a plurality of programming concepts and a plurality of program attributes (such as a class hierarchy of the second engineering program, a declared member variable, a data type of a variable, a memory segment used, a system function and a resource used, a link to other industrial domain objects, etc.). In one example, the first ontology schema is implemented as a knowledge graph. In this case, the knowledge graph is obtained by applying a parser on the second engineering program and thereby capturing a plurality of data flows and a plurality of control flow interrelationships between a plurality of data items and a plurality of metadata items.

[0017] In a preferred embodiment, the method further includes generating a first sequence representation of the first ontology schema based on an analysis of the first ontology schema by a processing unit. In order to generate the first sequence representation, a plurality of nodes of the knowledge graph of the first ontology schema are serialized by the processing unit. In one example, the first sequence representation is a natural language sentence including information represented by the first ontology schema. In another example, the first sequence representation is a representation based on object notation (JSON) of the first ontology schema.

[0018] In a preferred embodiment, the method further includes training a machine learning model by a processing unit to convert a first sequence representation of a first ontology pattern into a second sequence representation of a second ontology pattern associated with a first engineering program. The second ontology pattern includes information associated with a plurality of data flows and control flows of a first engineering program having a first specification. The machine learning model is trained based on an analysis of a plurality of engineering programs. In one example, a plurality of engineering programs may include an unoptimized version and an optimized version of an engineering program. In this case, the machine learning model is trained on the unoptimized version and the optimized version of the engineering program so that the machine learning model is trained to convert the sequence representation of the unoptimized version of the engineering program into the sequence representation of the optimized version of the engineering program. In another example, a plurality of engineering programs include at least two engineering programs, which are functionally identical but differ in encoding parameters (such as encoding language, encoding length or encoding convention). In this case, the machine learning model is trained to convert the sequence representation of an engineering program having a first encoding parameter into the sequence representation of an engineering program having a second encoding parameter.

[0019] In a preferred embodiment, the method further includes converting, by the processing unit, the first sequence representation into a second sequence representation by applying a machine learning algorithm on the first sequence representation. The method further includes determining, by the processing unit, a plurality of differences between the first sequence representation and the second sequence representation by comparing the first sequence representation and the second sequence representation. The method further includes generating, by the processing unit, a second ontology schema from the first ontology schema based on the determined plurality of differences between the first sequence representation and the second sequence representation.

[0020] The method further includes mapping each of the determined multiple differences between the first sequence representation and the second sequence representation to one or more code statements in the multiple code statements of the second engineering program by the processing unit based on the analysis of the first ontology pattern. The method further includes generating the first engineering program from the second engineering program by the processing unit by modifying the determined one or more code statements of the second engineering program. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in one or more code statements. Since the second engineering program is modified based on the analysis of the first ontology pattern, one or more code statements are modified based on the relationship between the variable sets corresponding to the second engineering program.

[0021] Advantageously, the code development time and labor required to generate the first engineering program for the technical facility are significantly reduced. In one example, the first engineering program is an optimized version of the second engineering program. Advantageously, the time and labor required to optimize the second engineering program for the technical facility are significantly reduced.

[0022] The purpose of the present invention is achieved by a method for optimizing an engineering program for a technical facility. The method includes receiving a request for optimizing an engineering program by a processing unit. The request includes information about one or more parameters of the engineering program to be optimized. The one or more parameters include coding language, coding conventions, software configuration, code size, memory requirements, processing power requirements, and key performance indicators associated with the engineering program. In one example, the request received is to optimize the code length of the engineering program. The request optimizes the engineering program for a technical facility. The engineering program is stored in a memory storage device of the technical facility. The engineering program includes a plurality of code statements, which are encoded as at least one of machine-readable instructions written in a natural language, a high-level programming language, an assembly language, or a compiled code.

[0023] In a preferred embodiment, the method includes applying, by the processing unit, a natural language processing algorithm on the unoptimized engineering program. Examples of natural language processing algorithms include, but are not limited to, Bayesian network algorithms and conditional random field algorithms.

[0024] In a preferred embodiment, the method further includes determining, by the processing unit, a plurality of data items and a plurality of metadata items associated with the engineering program based on the application of a natural language processing algorithm. The plurality of data items include a plurality of variables, a plurality of functions, and a plurality of code statements of the engineering program. The plurality of metadata items include a creation date, an author's name, a domain of an industrial environment in which the second engineering program is deployed. Each of the plurality of data items and the plurality of metadata items of the second engineering program may have data flow and control flow interrelationships with other data items and metadata items of the engineering program.

[0025] In a preferred embodiment, the method includes generating, by a processing unit, an ontology pattern including information associated with a plurality of data flow and control flow interrelationships between a plurality of code statements in an engineering program. The ontology pattern is generated by analyzing the engineering program. The method further includes generating, by the processing unit, a sequence representation of the ontology pattern based on the analysis of the ontology pattern.

[0026] The method further includes converting the sequence representation into an optimized sequence representation by the processing unit by applying a machine learning algorithm on the sequence representation. The machine learning algorithm is trained to convert the sequence representation into an optimized sequence representation of an optimized ontology pattern. The machine learning algorithm is trained based on an analysis of a plurality of unoptimized engineering programs and a plurality of optimized engineering programs. The optimized ontology pattern includes information associated with a plurality of data flow and control flow interrelationships, the plurality of data flow and control flow interrelationships are associated with a plurality of data items and metadata items, the plurality of data items and metadata items are associated with an optimized version of the engineering program.

[0027] The method further includes determining, by the processing unit, a plurality of differences between the sequence representation and the optimized sequence representation by comparing the sequence representation with the optimized sequence representation. The method further includes generating, by the processing unit, an optimized ontology schema from the ontology schema based on the determined plurality of differences between the sequence representation and the optimized sequence representation.

[0028] The method further includes mapping each of the determined multiple differences to one or more code statements of the engineering program by the processing unit based on the analysis of the ontology pattern. The method further includes generating an optimized engineering program from the engineering program by modifying the determined one or more code statements of the engineering program by the processing unit. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in one or more code statements. Since the engineering program is modified based on the analysis of the ontology pattern, one or more code statements are modified based on the relationship between the variable sets corresponding to the engineering program. In other words, the engineering program is optimized based on the ontology pattern to generate an optimized engineering program for technical facilities. Advantageously, the code development time and labor required for optimizing the engineering program to be compatible with technical facilities are significantly reduced.

[0029] In a preferred embodiment, the method further includes receiving, by the processing unit, a request to modify a code statement in a plurality of code statements of the engineering program. The request is at least one of a text-based user instruction, a voice-based user instruction, and a gesture-based user instruction. In one example, a user such as a code developer can modify the code statement by entering one or more programming lines into the code statement of the engineering program using a data input device such as a keyboard. The method further includes modifying the code statement of the engineering program based on the received request by the processing unit. The method further includes training a machine learning algorithm based on the modification of the code statement in a plurality of code statements of the engineering program by the processing unit.

[0030] In a preferred embodiment, the method further includes generating a simulation instance of an engineering program for optimization by a processing unit. In one example, the simulation instance is a digital twin of one or more engineering objects in a technical facility. The method further includes simulating the execution of the generated engineering program by one or more engineering objects of the technical facility in a simulation environment by executing the engineering program on the generated simulation instance by the processing unit. The method further includes determining that the generated engineering program is valid based on the result of the simulation execution of the generated second programming block set by the processing unit. In addition, the method includes deploying the generated engineering program to one or more engineering objects in real time based on the determination that the generated engineering program is valid by the processing unit. Advantageously, the generated engineering program is deployed to one or more engineering objects only after determining that the generated engineering program is valid. In addition, the method includes displaying the generated engineering program on a display device by the processing unit. Advantageously, the user is enabled to document the generated engineering program.

[0031] The object of the present invention is also achieved by an engineering system for generating and optimizing engineering programs for technical facilities. The engineering system includes one or more processing units and a memory coupled to the processing unit. The memory includes an automation module stored in the form of machine-readable instructions that can be executed by the processing unit. The automation module is configured to perform the method as described above.

[0032] The object of the present invention is also achieved by an industrial environment. The industrial environment includes an engineering system, a technical facility including one or more physical components, and one or more client devices communicatively coupled to the engineering system and the technical facility. The engineering system is configured to perform the above method steps.

[0033] The object of the present invention is also achieved by a computer program product having machine-readable instructions stored therein, which, when executed by one or more processing units, cause the one or more processing units to perform the method steps described above.

[0034] The above and other features of the present invention will now be discussed with reference to the accompanying drawings of the present invention.The illustrated embodiments are intended to illustrate rather than limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In the following, the invention is further described with reference to the illustrated embodiments shown in the accompanying drawings, in which: Figure 1 is a block diagram of an industrial environment capable of generating and optimizing engineering programs for technical facilities according to an embodiment of the present invention; Figure 2 An engineering system (such as Figure 1 A block diagram of the engineering system shown; Figure 3 is an automation module (such as Figure 2 A block diagram of the automation module shown; Figure 4A-4B is a process flow diagram illustrating an exemplary method of generating an engineering program in an engineering system according to an embodiment of the present invention; and Figure 5A-5C is a process flow diagram illustrating an exemplary method of generating an object behavior model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] Various embodiments are described with reference to the accompanying drawings, wherein like reference numerals are used to refer to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for the purpose of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be apparent that such embodiments may be practiced without these specific details.

[0037] Figure 1 is a block diagram of an industrial environment 100 capable of generating engineering programs according to an embodiment of the present invention. Figure 1 , an industrial environment 100 includes an engineering system 102, a technical facility 106, and one or more client devices 120A-N. As used herein, an "industrial environment" refers to a processing environment that includes configurable computing physical and logical resources (e.g., networks, servers, storage, applications, services, etc.), and data distributed on a platform such as a cloud computing platform. The industrial environment 100 provides on-demand network access to a shared pool of configurable computing physical and logical resources. The engineering system 102 is communicatively connected to the technical facility 106 via a network 104 (such as a local area network (LAN), a wide area network (WAN), Wi-Fi, the Internet, any short-range or wide-range communication). The engineering system 102 is also connected to one or more client devices 120A-N via the network 104.

[0038] The engineering system 102 is connected to one or more engineering objects 108A-N in the technical facility 106 via the network 104. The one or more engineering objects 108A-N may include servers, robots, switches, automation equipment, programmable logic controllers (PLCs), human-machine interfaces (HMIs), motors, valves, pumps, actuators, sensors, and (one or more) other industrial equipment. The one or more engineering objects 108A-N may be connected to each other or to several other components ( Figure 1(not shown). The physical connection may be through wiring between one or more engineering objects 108A-N. Alternatively, one or more engineering objects 108A-N may also be connected via a non-physical connection (such as the Internet of Things (IoT)) and a 5G network. Figure 1 The engineering system 102 is illustrated as being connected to one technical facility 106 , but those skilled in the art may imagine that the engineering system 102 may be connected to several technical facilities 106 located at different geographical locations via the network 104 .

[0039] The one or more client devices 120A-N may be a desktop computer, a laptop computer, a tablet computer, a smart phone, etc. Each of the one or more client devices 120A-N is provided with an engineering tool 122A-N for generating and / or editing an engineering program, respectively. The one or more client devices 120A-N may access the engineering system 102 to automatically generate an engineering program. The one or more client devices 120A-N may access a cloud application (such as providing performance visualization of one or more engineering objects 108A-N via a web browser). Throughout this specification, the terms "client device" and "user device" are used interchangeably.

[0040] The engineering system 102 may be a stand-alone server deployed at a control station, or may be a remote server on a cloud computing platform. In a preferred embodiment, the engineering system 102 may be a cloud-based engineering system. The engineering system 102 is capable of delivering applications (such as cloud applications) for managing a technical facility 106 including one or more engineering objects 108A-N. The engineering system 102 may include a platform 110 (such as a cloud computing platform), an automation module 112, a server 114 including hardware resources and an operating system (OS), a network interface 116, and a database 118. The network interface 116 enables communication between the engineering system 102, the technical facility 106, and one or more client devices 120A-N. Interface (such as a cloud interface) ( Figure 1The platform 110 may include an integrated development environment (IDE) including a program editor and a compiler, which allows users of one or more client devices 120A-N to access engineering project files stored at the engineering system 102 and perform one or more actions on the engineering project files as the same instance. The server 114 may include one or more servers on which an OS is installed. The server 114 may include one or more processing units, one or more storage devices (such as memory units for storing data and machine-readable instructions (such as applications and application programming interfaces (APIs))), and other peripheral devices required for providing computing (such as cloud computing) functions. The platform 110 uses the hardware resources and OS of the server 114 to implement functions such as data reception, data processing, data presentation, data communication, etc., and uses the application programming interfaces deployed therein to deliver the above services. The platform 110 may include a combination of dedicated hardware and software built on hardware and OS. In an exemplary embodiment, the platform 110 may correspond to an integrated development environment (IDE) including a program editor and a compiler, which allows users of one or more client devices 120A-N to generate engineering programs. The platform 110 may further include an automation module 112 configured to generate engineering programs. Figure 3 Details of the automation module 112 are explained in .

[0041] The database 118 stores information related to the technical facility 106 and (one or more) client devices 120A-N. The database 118 is, for example, a structured query language (SQL) data repository, or a NoSQL data repository. In an exemplary embodiment, the database 118 can be configured as a cloud-based database implemented in the industrial environment 100, where computing resources are delivered as a service on the platform 110. According to another embodiment of the present invention, the database 118 is a location on a file system directly accessible by the automation module 112. The database 118 is configured to store engineering project files, engineering programs, object behavior models, parameter values ​​associated with one or more engineering objects 108A-N, test results, simulation results, status messages, one or more simulation instances, graphical programs, program logic, program logic patterns, engineering objects 108A-N and engineering object attributes, one or more engineering object blocks, relationship information between engineering objects, requirements, program update messages, etc.

[0042] Figure 2 An engineering system 102 (such as Figure 1 A block diagram of an engineering system 102 is shown. Figure 2 , the engineering system 102 includes a processing unit 202 , an accessible memory 204 , a storage unit 206 , a communication interface 208 , an input-output unit 210 , a network interface 212 , and a bus 214 .

[0043] As used herein, processing unit 202 means any type of computing circuit, such as but not limited to a microprocessor unit, a microcontroller, a complex instruction set computing microprocessor unit, a reduced instruction set computing microprocessor unit, a very long instruction word microprocessor unit, an explicitly parallel instruction computing microprocessor unit, a graphics processing unit, a digital signal processing unit, or any other type of processing circuit. Processing unit 202 may also include an embedded controller, such as a general or programmable logic device or array, an application specific integrated circuit, a single chip computer, etc.

[0044] The accessible memory 204 may be a non-transitory volatile memory and a non-volatile memory. The accessible memory 204 may be coupled for communication with the processing unit 202, such as as a computer-readable storage medium. The processing unit 202 may execute machine-readable instructions and / or source code stored in the accessible memory 204. Various machine-readable instructions may be stored in and accessed from the accessible memory 204. The accessible memory 204 may include any suitable element for storing data and machine-readable instructions, such as a read-only memory, a random access memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a hard drive, a removable media drive for handling compact disks, digital video disks, magnetic disks, cassettes, memory cards, etc. In the present embodiment, the accessible memory 204 includes an integrated development environment (IDE) 216. The IDE 216 includes the automation module 112 stored in the form of machine-readable instructions on any of the above-mentioned storage media, and may communicate with and be executed by the processing unit 202.

[0045] When executed by the processing unit 202, the automation module 112 causes the processing unit 202 to generate an engineering program in the engineering system 102. In one embodiment, the automation module 112 causes the processing unit 202 to receive a request to generate a first engineering program with a first specification from a second engineering program with a second specification. The request includes information about the first specification of the first engineering program. The first and second specifications include information associated with coding languages, coding conventions, software configurations, processing speed limitations, memory limitations, and key process indicators associated with the first and second engineering programs, respectively. The request generates the first engineering program for the technical facility 106. The second engineering program is stored in a memory storage device of the technical facility 106.

[0046] In one example, the accessible memory 204 is configured to store the second engineering program. The automation module 112 further enables the processing unit 202 to apply a natural language processing algorithm on the second engineering program with the second specification. Examples of natural language processing algorithms include, but are not limited to, Bayesian network algorithms and conditional random field algorithms. The natural language processing algorithm is applied to the second engineering program to extract multiple code statements from the second engineering program. Multiple code statements can be encoded in the second engineering program as at least one of machine-readable instructions written in natural language, high-level programming language, assembly language, or compiled code. Multiple code statements include multiple data items and multiple metadata items associated with the second engineering program. Multiple data items include multiple variables, multiple functions, and multiple code statements of the second engineering program. Multiple metadata items include a creation date, an author's name, and a domain of the industrial environment 100 in which the second engineering program is deployed. Each of the multiple data items and multiple metadata items of the second engineering program can have a data flow and control flow relationship with other data items and metadata items of the second engineering program.

[0047] The automation module 112 further causes the processing unit 202 to determine multiple data items and multiple metadata items associated with the second engineering program based on the application of a natural language processing algorithm. The automation module 112 further causes the processing unit 202 to generate a first ontology model, which includes information associated with multiple data flows and control flow relationships between multiple data items and multiple metadata items in the second engineering program. The first ontology model is generated by analyzing the second engineering program. The first ontology model further includes information about the relationship between a variable set corresponding to each programming block in the second engineering program and multiple code statements in the second engineering program. The variable set includes multiple data and pointer variables defined and used in the second engineering program. The first ontology model is an abstraction of the programming domain, which captures the semantics of multiple programming concepts (such as class hierarchies, command lines, data variables, and data structures of programming block sets), and one or more relationships between multiple programming concepts and multiple program attributes (such as the class hierarchy of the second engineering program, declared member variables, data types of variables, memory segments used, system functions and resources used, links to other industrial domain objects, etc.). In one example, the first ontology model is implemented as a knowledge graph. In this case, the knowledge graph is obtained by applying a parser on the second engineering program and thereby capturing a plurality of data flows and a plurality of control flow interrelationships between a plurality of data items and a plurality of metadata items.

[0048] The automation module 112 further enables the processing unit 202 to generate a first sequence representation of the first ontology schema based on the analysis of the first ontology schema. In order to generate the first sequence representation, multiple nodes of the knowledge graph of the first ontology schema are serialized by the processing unit 202. In one example, the first sequence representation is a natural language sentence including information represented by the first ontology schema. In another example, the first sequence representation is a representation based on JavaScript Object Notation (JSON) of the first ontology schema.

[0049] The automation module 112 further enables the processing unit 202 to train the machine learning model to convert the first sequence representation of the first ontology pattern into the second sequence representation of the second ontology pattern associated with the first engineering program. The second ontology pattern includes information associated with multiple data flows and control flows of the first engineering program with the first specification. The machine learning model is trained based on the analysis of multiple engineering programs. In one example, multiple engineering programs may include an unoptimized version and an optimized version of the engineering program. In this case, the machine learning model is trained on the unoptimized version and the optimized version of the engineering program, so that the machine learning model is trained to convert the sequence representation of the unoptimized version of the engineering program into the sequence representation of the optimized version of the engineering program. In another example, multiple engineering programs include at least two engineering programs, which are functionally identical but different in encoding parameters (such as encoding language, encoding length or encoding convention). In this case, the machine learning model is trained to convert the sequence representation of the engineering program with the first encoding parameter into the sequence representation of the engineering program with the second encoding parameter.

[0050] The automation module 112 further causes the processing unit 202 to convert the first sequence representation into a second sequence representation by applying a machine learning algorithm on the first sequence representation. The automation module 112 further causes the processing unit 202 to determine a plurality of differences between the first sequence representation and the second sequence representation by comparing the first sequence representation and the second sequence representation. The automation module 112 further causes the processing unit 202 to generate a second ontology schema from the first ontology schema based on the determined plurality of differences between the first sequence representation and the second sequence representation.

[0051] The automation module 112 further causes the processing unit 202 to map each of the determined plurality of differences between the first sequence representation and the second sequence representation to one or more code statements of the plurality of code statements of the second engineering program based on the analysis of the first ontology schema.

[0052] The automation module 112 further enables the processing unit 202 to generate the first engineering program from the second engineering program by modifying the determined one or more code statements of the second engineering program. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in the one or more code statements. Since the second engineering program is modified based on the analysis of the first ontology pattern, the one or more code statements are modified based on the relationship between the variable sets corresponding to the second engineering program.

[0053] Advantageously, the code development time and labor required to generate the first engineering program for the technical facility 106 is significantly reduced. In one example, the first engineering program is an optimized version of the second engineering program. Advantageously, the time and labor required to optimize the second engineering program for the technical facility 106 is significantly reduced.

[0054] In one example, the automation module 112 further causes the processing unit 202 to receive a request to optimize an engineering program. The request includes information about one or more parameters of the engineering program to be optimized. The one or more parameters include coding language, coding conventions, software configuration, code size, memory requirements, processing power requirements, and key performance indicators associated with the engineering program. In one example, the received request is to optimize the code length of the engineering program. The request optimizes the engineering program for the technical facility 106. The engineering program is stored in a memory storage device of the technical facility 106. The engineering program includes a plurality of code statements, which are encoded as at least one of machine-readable instructions written in a natural language, a high-level programming language, an assembly language, or a compiled code.

[0055] The automation module 112 further causes the processing unit 202 to apply a natural language processing algorithm on the unoptimized engineering program. Examples of natural language processing algorithms include, but are not limited to, a Bayesian network algorithm and a conditional random field algorithm.

[0056] The automation module 112 further causes the processing unit 202 to determine a plurality of data items and a plurality of metadata items associated with the engineering program based on the application of a natural language processing algorithm. The plurality of data items include a plurality of variables, a plurality of functions, and a plurality of code statements of the engineering program. The plurality of metadata items include a creation date, an author's name, and a domain of the industrial environment 100 in which the second engineering program is deployed. Each of the plurality of data items and the plurality of metadata items of the second engineering program may have data flow and control flow interrelationships with other data items and metadata items of the engineering program.

[0057] The automation module 112 further causes the processing unit 202 to generate an ontology pattern including information associated with a plurality of data flow and control flow relationships between a plurality of code statements in the engineering program. The ontology pattern is generated by analyzing the engineering program. The automation module 112 further causes the processing unit 202 to generate a sequence representation of the ontology pattern based on the analysis of the ontology pattern.

[0058] The automation module 112 further causes the processing unit 202 to convert the sequence representation into an optimized sequence representation by applying a machine learning algorithm on the sequence representation. The machine learning algorithm is trained to convert the sequence representation into an optimized sequence representation of an optimized ontology pattern. The machine learning algorithm is trained based on an analysis of a plurality of unoptimized engineering programs and a plurality of optimized engineering programs. The optimized ontology pattern includes information associated with a plurality of data flows and control flow interrelationships, the plurality of data flows and control flow interrelationships are associated with a plurality of data items and metadata items, the plurality of data items and metadata items are associated with an optimized version of the engineering program.

[0059] The automation module 112 further causes the processing unit 202 to generate a plurality of differences between the sequence representation and the optimized sequence representation by comparing the sequence representation with the optimized sequence representation. The automation module 112 further causes the processing unit 202 to generate an optimized ontology schema from the ontology schema based on the determined plurality of differences between the sequence representation and the optimized sequence representation.

[0060] The automation module 112 further causes the processing unit 202 to map each of the determined plurality of differences to one or more code statements of the engineering program based on the analysis of the ontology schema.

[0061] The automation module 112 further enables the processing unit 202 to generate an optimized engineering program from the engineering program by modifying one or more code statements determined by the engineering program. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in one or more code statements. Since the engineering program is modified based on the analysis of the ontology pattern, one or more code statements are modified based on the relationship between the variable sets corresponding to the engineering program. In other words, the engineering program is optimized based on the ontology pattern to generate an optimized engineering program for the technical facility 106. Advantageously, the code development time and labor required for optimizing the engineering program to be compatible with the technical facility 106 are significantly reduced.

[0062] The automation module 112 further causes the processing unit 202 to receive a request to modify a code statement in a plurality of code statements of the engineering program. The request is at least one of a text-based user instruction, a voice-based user instruction, and a gesture-based user instruction. In one example, a user (such as a code developer) can modify a code statement by entering one or more programming lines into a code statement of the engineering program using a data input device (such as a keyboard). The automation module 112 further causes the processing unit 202 to modify the code statement of the engineering program based on the received request. The automation module 112 further causes the processing unit 202 to train a machine learning algorithm based on the modification of the code statement in a plurality of code statements of the engineering program.

[0063] The automation module 112 further causes the processing unit 202 to generate a simulation instance of the engineering procedure for optimization. In one example, the simulation instance is a digital twin of one or more engineering objects 108A-N in the technical facility 106 .

[0064] The automation module 112 further causes the processing unit 202 to simulate execution of the generated engineering program by one or more engineering objects of the technical facility 106 in the simulation environment by executing the engineering program on the generated simulation instance.

[0065] The automation module 112 further enables the processing unit 202 to determine that the generated engineering program is valid based on the result of the simulation execution of the generated second programming block set. The automation module 112 further enables the processing unit 202 to deploy the generated engineering program to one or more engineering objects 108A-N in real time based on the determination that the generated engineering program is valid. Advantageously, the generated engineering program is deployed to one or more engineering objects 108A-N only after determining that the generated engineering program is valid. In addition, the method includes displaying the generated engineering program on a display device by the processing unit 202. Advantageously, the user is enabled to document the generated engineering program.

[0066] The storage unit 206 may be a non-transitory storage medium configured to store a database, such as the database 118 , including server versions of a plurality of engineering programs.

[0067] The communication interface 208 is configured to establish a communication session between one or more client devices 120A-N and the engineering system 102. The communication interface 208 allows one or more engineering applications running on the client devices 120A-N to import / export engineering project files into the engineering system 102. In one embodiment, the communication interface 208 interacts with an interface at one or more client devices 120A-N to allow an engineer to access an engineering program associated with the engineering project file and perform one or more actions on the engineering program stored in the engineering system 102.

[0068] Input-output unit 210 can include input devices, keyboards, touch-sensitive displays, cameras (such as cameras receiving input based on gestures) that can receive one or more input signals (such as user commands for processing engineering project files). In addition, input-output unit 210 can be a display unit for displaying a graphical user interface, which visualizes the behavior model associated with the modified engineering program, and also displays the state information associated with each action set performed on the graphical user interface. The action set can include executing predefined tests, downloading, compiling and deploying graphic programs. Bus 214 serves as the interconnection between processing unit 202, accessible memory 204 and input-output unit 210.

[0069] The network interface 212 may be configured to handle network connections, bandwidth, and network traffic between the engineering system 102 , the client devices 120A-N, and the technical facilities 106 .

[0070] One of ordinary skill in the art will appreciate that Figure 2 The hardware depicted in the can vary for a particular implementation. For example, other peripherals, such as optical drives, local area networks (LANs), wide area networks (WANs), wireless (e.g., Wi-Fi) adapters, graphics adapters, disk controllers, input / output (I / O) adapters, etc., can be used in addition to or in place of the hardware depicted. The depicted examples are provided for purposes of explanation only and are not meant to imply architectural limitations with respect to the present disclosure.

[0071] Those skilled in the art will recognize that, for simplicity and clarity, the complete structure and operation of all data processing systems applicable to the present disclosure are not depicted or described herein. Instead, only those of the engineering system 102 that are unique to the present disclosure or necessary for understanding the present disclosure are depicted or described. The remainder of the construction and operation of the engineering system 102 may conform to any of the various current implementations and practices known in the prior art.

[0072] Figure 3 An automation module 112 (such as Figure 2 A block diagram of the automation module 112 shown in FIG. Figure 3 , the automation module 112 includes a request handler module 302 , an object behavior model generation module 304 , an analysis module 306 , a modifier module 308 , an engineering object database 310 , a validation module 312 , and a deployment module 314 . Figure 3 It is a combination Figure 1 and Figure 2 To explain.

[0073] The request handler module 302 is configured to receive a request to generate an engineering program associated with an industrial domain of the technical facility 106. For example, the request is received via a network from one of the one or more users outside the industrial environment 100. In an alternative embodiment, the request is received via a network from one or more client devices 120A-N. The request handler module 302 is further configured to determine a set of programming blocks associated with the industrial domain from a plurality of programming blocks associated with the set of industrial domains.

[0074] The object behavior model generation module 304 is configured to generate an ontology schema for a plurality of engineering programs in the memory 204. In a preferred embodiment, the generated ontology schema includes information related to the relationship between a set of variables corresponding to each of the plurality of engineering programs. The set of variables includes a plurality of data and pointer variables defined and used in the plurality of engineering programs. In one example, the ontology schema is a knowledge graph-based representation of the plurality of engineering programs.

[0075] The analysis module 306 is configured to analyze the ontology patterns associated with the plurality of engineering programs. Specifically, the analysis module 306 is configured to retrieve data and control parameters associated with each programming block of the plurality of engineering programs. The data and control parameters are key performance indicators, which include information related to a set of programming blocks associated with the industrial domain of the technical facility 106, such as sensor data, actuator data, environmental data, network data, any automation data, etc.

[0076] Modifier module 308 is configured to modify one or more code statements of multiple engineering programs based on the results of the analysis of the ontology pattern. One or more code statements are modified based on the analysis of the ontology pattern. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in the programming block set.

[0077] The engineering object database 310 is configured to generate an engineering object library, which includes the generated engineering program, one or more engineering objects 108A-N, physical connections between the one or more engineering objects 108A-N, and multiple parameter values ​​associated with the one or more engineering objects 108A-N and the physical connections. The engineering object database 310 is configured to continuously update the engineering object library with updated versions of the engineering program. In addition, the engineering object database 310 is configured to maintain the engineering object library in an ontology mode.

[0078] The verification module 312 is configured to generate a simulation instance of one or more engineering objects 108A-N of the technical facility 106. In one example, the simulation instance is a digital twin of one or more engineering objects 108A-N. The verification module 312 is configured to simulate the execution of the generated engineering program by one or more engineering objects 108A-N of the technical facility 106 in a simulation environment by executing a programming block set on the generated simulation instance. The verification module 312 is configured to determine that the generated engineering program is valid based on the result of the simulation execution of the generated second programming block set. In addition, the verification module 312 is configured to simulate the behavior of the programming block set in the simulation environment by executing the programming block set on the generated simulation instance. The simulation environment simulates an actual technical facility 106, such as the technical facility 106. In addition, the simulation environment can be a virtual setting of the actual technical facility 106. In addition, the verification module 312 is configured to verify the behavior of the programming block set based on the result of the simulation. The result of the simulation can indicate the success or failure of the engineering program or the programming block set (if deployed in the technical facility 106).

[0079] Deployment module 314 is configured to deploy the engineering procedure in real time based on the validation to one or more engineering objects 108A-N installed in technical facility 106. Advantageously, the generated engineering procedure is deployed to one or more engineering objects 108A-N only after determining that the generated engineering procedure is valid.

[0080] Figure 4A-4B is a process flow diagram illustrating an exemplary method 400 of generating an engineering program in the engineering system 102 according to an embodiment of the present invention.

[0081] In step 402, a request is received by processing unit 202. The request is to generate a first engineering program with a first specification from a second engineering program with a second specification. The request includes information about the first specification of the first engineering program. The first and second specifications respectively include information associated with coding languages, coding conventions, software configurations, processing speed limits, memory limits, and key process indicators associated with the first and second engineering programs. The request generates the first engineering program for technical facility 106. The second engineering program is stored in a memory storage device of technical facility 106. In one example, memory 204 is configured to store the second engineering program.

[0082] In step 404, the second engineering program is analyzed by the processing unit 202 by applying a natural language processing algorithm on the second engineering program with the second specification. Examples of natural language processing algorithms include, but are not limited to, Bayesian network algorithms and conditional random field algorithms. The natural language processing algorithm is applied to the second engineering program to extract multiple code statements from the second engineering program. Multiple code statements can be encoded in the second engineering program as at least one of machine-readable instructions written in natural language, high-level programming language, assembly language, or compiled code. Multiple code statements include multiple data items and multiple metadata items associated with the second engineering program. Multiple data items include multiple variables, multiple functions, and multiple code statements of the second engineering program. Multiple metadata items include a creation date, an author's name, and a domain of an industrial environment in which the second engineering program is deployed. Each of the multiple data items and multiple metadata items of the second engineering program can have data flow and control flow relationships with other data items and metadata items of the second engineering program.

[0083] At step 406 , a plurality of data items and a plurality of metadata items associated with the second engineering procedure are determined by the processing unit 202 based on the application of a natural language processing algorithm.

[0084] In step 408, a first ontology pattern is generated by the processing unit 202, and the first ontology pattern includes information associated with multiple data flows and control flow relationships between multiple data items and multiple metadata items in the second engineering program. The first ontology pattern is generated by analyzing the second engineering program. The first ontology pattern further includes information about the relationship between the variable set corresponding to each programming block in the second engineering program and multiple code statements in the second engineering program. The variable set includes multiple data and pointer variables defined and used in the second engineering program. The first ontology pattern is an abstraction of the programming domain, which captures the semantics of multiple programming concepts (such as class hierarchies, command lines, data variables, and data structures of programming block sets), and one or more relationships between multiple programming concepts and multiple program attributes (such as the class hierarchy of the second engineering program, declared member variables, data types of variables, memory segments used, system functions and resources used, links to other industrial domain objects, etc.). In one example, the first ontology pattern is implemented as a knowledge graph. In this case, the knowledge graph is obtained by applying a parser on the second engineering program and thereby capturing multiple data flows and multiple control flow relationships between multiple data items and multiple metadata items.

[0085] In step 410, a first sequence representation of the first ontology schema is generated by the processing unit 202 based on the analysis of the first ontology schema. In order to generate the first sequence representation, a plurality of nodes of the knowledge graph of the first ontology schema are serialized by the processing unit 202. In one example, the first sequence representation is a natural language sentence including information represented by the first ontology schema. In another example, the first sequence representation is a JavaScript Object Notation (JSON)-based representation of the first ontology schema.

[0086] In step 412, the machine learning model is trained by the processing unit 202 to convert the first sequence representation of the first ontology pattern into the second sequence representation of the second ontology pattern associated with the first engineering program. The second ontology pattern includes information associated with multiple data flows and control flows of the first engineering program with the first specification. The machine learning model is trained based on the analysis of multiple engineering programs. In one example, multiple engineering programs may include an unoptimized version and an optimized version of the engineering program. In this case, the machine learning model is trained on the unoptimized version and the optimized version of the engineering program, so that the machine learning model is trained to convert the sequence representation of the unoptimized version of the engineering program into the sequence representation of the optimized version of the engineering program. In another example, the multiple engineering programs include at least two engineering programs, which are functionally the same, but different in encoding parameters (such as encoding language, encoding length or encoding convention). In this case, the machine learning model is trained to convert the sequence representation of the engineering program with the first encoding parameter into the sequence representation of the engineering program with the second encoding parameter.

[0087] At step 414 , the processing unit 202 converts the first sequence representation into a second sequence representation by applying a machine learning algorithm on the first sequence representation.

[0088] At step 416 , a plurality of differences between the first sequence representation and the second sequence representation are determined by the processing unit 202 by comparing the first sequence representation and the second sequence representation.

[0089] At step 418 , a second ontology schema is generated by the processing unit 202 from the first ontology schema based on the determined plurality of differences between the first sequence representation and the second sequence representation.

[0090] At step 420 , the processing unit 202 maps each of the determined plurality of differences between the first sequence representation and the second sequence representation to one or more code statements of the plurality of code statements of the second engineering program based on the analysis of the first ontology schema.

[0091] In step 422, the first engineering program is generated from the second engineering program by the processing unit 202 by modifying the determined one or more code statements of the second engineering program. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in one or more code statements. Since the second engineering program is modified based on the analysis of the first ontology pattern, the one or more code statements are modified based on the relationship between the variable sets corresponding to the second engineering program.

[0092] Advantageously, the code development time and labor required to generate the first engineering program for the technical facility 106 is significantly reduced. In one example, the first engineering program is an optimized version of the second engineering program. Advantageously, the time and labor required to optimize the second engineering program for the technical facility 106 is significantly reduced.

[0093] Figure 5A-5C is a process flow diagram illustrating an exemplary method 500 of optimizing an engineering process in the engineering system 102 according to an embodiment of the present invention.

[0094] In step 502, a request to optimize an engineering program is received by processing unit 202. The request includes information about one or more parameters of the engineering program to be optimized. The one or more parameters include coding language, coding conventions, software configuration, code size, memory requirements, processing power requirements, and key performance indicators associated with the engineering program. In one example, the request received is to optimize the code length of the engineering program. The request is to optimize the engineering program for technical facility 106. The engineering program is stored in a memory storage device of technical facility 106. The engineering program includes a plurality of code statements encoded as at least one of machine-readable instructions written in a natural language, a high-level programming language, an assembly language, or a compiled code.

[0095] At step 504, the engineering program is analyzed by the processing unit 202 by applying a natural language processing algorithm on the unoptimized engineering program. Examples of natural language processing algorithms include, but are not limited to, Bayesian network algorithms and conditional random field algorithms.

[0096] At step 506, a plurality of data items and a plurality of metadata items associated with the engineering program are determined by the processing unit 202 based on the application of a natural language processing algorithm. The plurality of data items include a plurality of variables, a plurality of functions, and a plurality of code statements of the engineering program. The plurality of metadata items include a creation date, an author's name, and a domain of an industrial environment in which the second engineering program is deployed. Each of the plurality of data items and the plurality of metadata items of the second engineering program may have data flow and control flow interrelationships with other data items and metadata items of the engineering program.

[0097] At step 508, the processing unit 202 determines an ontology pattern. The ontology pattern includes information associated with multiple data flow and control flow relationships between multiple code statements in the engineering program. The ontology pattern is generated by analyzing the engineering program. The automation module 112 further causes the processing unit 202 to generate a sequence representation of the ontology pattern based on the analysis of the ontology pattern.

[0098] At step 510, the processing unit 202 generates the sequence representation to an optimized sequence representation by applying a machine learning algorithm on the sequence representation. The machine learning algorithm is trained to convert the sequence representation into an optimized sequence representation of an optimized ontology pattern. The machine learning algorithm is trained based on an analysis of a plurality of unoptimized engineering programs and a plurality of optimized engineering programs. The optimized ontology pattern includes information associated with a plurality of data flows and control flow interrelationships, the plurality of data flows and control flow interrelationships are associated with a plurality of data items and metadata items, the plurality of data items and metadata items are associated with an optimized version of the engineering program.

[0099] At step 512 , a plurality of differences between the sequence representation and the optimized sequence representation are generated by the processing unit 202 by comparing the sequence representation with the optimized sequence representation.

[0100] At step 514 , an optimized ontology schema is generated from the ontology schema by the processing unit 202 based on the determined plurality of differences between the sequence representation and the optimized sequence representation.

[0101] At step 516 , each of the determined plurality of differences is mapped to one or more code statements of the engineering program by the processing unit 202 based on the analysis of the ontology schema.

[0102] In step 518, an optimized engineering program is generated from the engineering program by the processing unit 202 by modifying the determined one or more code statements of the engineering program. The modification includes any change, such as the addition, deletion, update, replacement or revision of one or more variables, lines of code, classes, functions or comments in one or more code statements. Since the engineering program is modified based on the analysis of the ontology pattern, one or more code statements are modified based on the relationship between the variable sets corresponding to the engineering program. In other words, the engineering program is optimized based on the ontology pattern to generate an optimized engineering program for the technical facility 106. Advantageously, the code development time and labor required to optimize the engineering program so as to be compatible with the technical facility 106 are significantly reduced.

[0103] At step 520, a request to modify a code statement in a plurality of code statements of an engineering program is received by the processing unit 202. The request is at least one of a text-based user instruction, a voice-based user instruction, and a gesture-based user instruction. In one example, a user such as a code developer can modify a code statement by entering one or more programming lines into a code statement of the engineering program using a data input device such as a keyboard. The automation module 112 further causes the processing unit 202 to modify the code statement of the engineering program based on the received request.

[0104] At step 522 , the machine learning algorithm is trained by the processing unit 202 based on the modification of the code statement among the plurality of code statements of the engineering program.

[0105] At step 524 , a simulation instance of the engineering procedure for optimization is generated by the processing unit 202 . In one example, the simulation instance is a digital twin of one or more engineering objects 108A-N in the technical facility 106 .

[0106] At step 526 , the processing unit 202 simulates the execution of the generated engineering program by one or more engineering objects of the technical facility 106 in the simulation environment by executing the engineering program on the generated simulation instance.

[0107] At step 528 , the processing unit 202 determines whether the generated engineering program is valid based on the result of the simulation execution of the generated second programming block set.

[0108] At step 530, the generated engineering program is deployed to one or more engineering objects in real time by the processing unit 202 based on the determination that the generated engineering program is valid. Advantageously, the generated engineering program is deployed to the one or more engineering objects only after determining that the generated engineering program is valid. In addition, the method includes displaying the generated engineering program on a display device by the processing unit. Advantageously, the generated engineering program is enabled to be documented by the user.

[0109] The present invention can take the form of a computer program product, which includes a program module accessible from a computer-available or computer-readable medium storing program code, which is used by one or more computers, processing units or instruction execution systems or used in combination with them. For the purpose of this description, a computer-available or computer-readable medium can be any device that can contain, store, transmit, propagate or transmit a program used by an instruction execution system, device or equipment or used in combination with it. The medium can be an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system (or device or equipment), or a propagation medium therein and the propagation medium itself, because the signal carrier is not included in the definition of a physical computer-readable medium, which includes semiconductor or solid-state memory, magnetic tape, removable computer disk, random access memory (RAM), read-only memory (ROM), rigid disk and optical disk, such as compact disk read-only memory (CD-ROM), compact disk read / write, and DVD. As known to those skilled in the art, both the processing unit and the program code for implementing each aspect of the technology can be centralized or distributed (or a combination thereof).

[0110] Although the present invention has been described in detail with reference to certain embodiments, it will be appreciated that the present invention is not limited to these embodiments. In view of this disclosure, many modifications and variations will occur to those skilled in the art without departing from the scope of the various embodiments of the present invention as described herein. Therefore, the scope of the present invention is indicated by the following claims rather than the foregoing description. All changes, modifications and variations within the equivalent meaning and scope of the claims are considered to be within the scope of the claims. All advantageous embodiments claimed in the method claims may also be applied to the system / device claims.

Claims

1. A method for generating an engineering program for a technical facility (106), the method comprising: A request is received by a processing unit (202) to generate a first engineering program having a first specification from a second engineering program having a second specification; Analyzing the second engineering program by the processing unit (202); Generating, by a processing unit (202), a first ontology pattern, the first ontology pattern comprising information associated with a plurality of data flow and control flow interrelationships between a plurality of code statements in a second engineering program, wherein the first ontology pattern is generated by analyzing the second engineering program; A processing unit (202) generates a first sequence representation of the first ontology schema based on an analysis of the first ontology schema; Converting the first sequence representation into a second sequence representation by applying a machine learning algorithm on the first sequence representation by a processing unit (202); determining, by a processing unit (202), a plurality of differences between the first sequence representation and the second sequence representation by comparing the first sequence representation and the second sequence representation; generating, by a processing unit (202), a second ontology schema from the first ontology schema based on the determined plurality of differences between the first sequence representation and the second sequence representation; wherein the second ontology schema includes information associated with a plurality of data flows and control flow interrelationships of a first engineering program having a first specification; as well as A first engineering program is generated from a second engineering program by a processing unit (202) based on an analysis of a second body model.

2. The method of claim 1, wherein the machine learning algorithm is trained to convert a first sequence representation of a first ontology schema into a second sequence representation of a second ontology schema, and the machine learning algorithm is trained based on an analysis of multiple engineering programs.

3. The method of claim 2, wherein generating a second ontology schema from the first ontology schema based on the determined plurality of differences between the first sequence representation and the second sequence representation comprises: Mapping, by a processing unit (202), each of the determined plurality of differences between the first sequence representation and the second sequence representation to one or more code statements of a plurality of code statements of a second engineering program based on an analysis of the first ontology pattern; as well as The first engineering program is generated from the second engineering program by the processing unit (202) by modifying the determined one or more code statements of the second engineering program.

4. The method of claim 1, wherein the first engineering program is an optimized version of the second engineering program.

5. A method for optimizing an engineering process, the method comprising: A request for optimizing an engineering program is received by a processing unit (202); Analyzing the engineering program by the processing unit (202); generating, by a processing unit (202), an ontology pattern including information associated with a plurality of data flow and control flow interrelationships between a plurality of code statements in an engineering program, wherein the ontology pattern is generated by analyzing the engineering program; The processing unit (202) generates a sequence representation of the ontology pattern based on the analysis of the ontology pattern; Converting the sequence representation into an optimized sequence representation by applying a machine learning algorithm on the sequence representation by a processing unit (202); Determining, by a processing unit (202), a plurality of differences between the sequence representation and the optimized sequence representation by comparing the sequence representation to the optimized sequence representation; generating, by a processing unit (202), an optimized ontology schema from the ontology schema based on the determined plurality of differences between the sequence representation and the optimized sequence representation, wherein the optimized ontology schema includes information associated with a plurality of data flow and control flow interrelationships of the optimized engineering program; as well as An optimized engineering program is generated from the engineering program by the processing unit (202) based on the analysis of the optimized ontological pattern.

6. The method of claim 5, wherein the machine learning algorithm is trained to convert the sequence representation into an optimized sequence representation of an optimized ontology pattern, and the machine learning algorithm is trained based on an analysis of a plurality of unoptimized engineering programs and a plurality of optimized engineering programs.

7. The method according to any one of claims 5 to 6, wherein generating an optimized ontology schema from the ontology schema based on the determined plurality of differences between the sequence representation and the optimized sequence representation comprises: Mapping, by a processing unit (202), each of the determined plurality of differences to one or more code statements of an engineering program based on an analysis of the ontology schema; as well as An optimized engineering program is generated from the engineering program by the processing unit (202) by modifying the determined one or more code statements of the engineering program.

8. The method according to claim 7, further comprising: A processing unit (202) receives a request to modify a code statement among a plurality of code statements of an engineering program; The processing unit (202) modifies the code statement of the engineering program based on the received request; as well as The machine learning algorithm is trained by the processing unit (202) based on modifications of the code statements in a plurality of code statements of an engineering program.

9. The method according to any one of claims 5 to 8, further comprising: Generating, by the processing unit (202), a simulation instance of the engineering program for optimization; as well as The processing unit (202) executes the optimized engineering program to simulate execution of the generated optimized engineering program by one or more engineering objects (108A-N) of the technical facility (106) in a simulation environment.

10. The method according to claim 9, further comprising: Determining by the processing unit (202) whether the optimized engineering procedure is effective based on the result of the simulation execution; Deploying the optimized engineering program to one or more engineering objects (108A-N) in real time by the processing unit (202) based on the generated engineering program effectiveness determination; as well as The processing unit displays the generated engineering program on the display device.

11. An engineering system for generating and optimizing engineering procedures for a technical facility (106), wherein the engineering system comprises: one or more processing units (202); as well as A memory (204) coupled to the one or more processing units, wherein the memory includes an automation module stored in the form of machine-readable instructions executable by the one or more processing units, wherein the automation module (112) is capable of performing the method according to any one of claims 1-10.

12. An industrial environment (100), comprising: The engineering system (102) according to claim 11; A technical facility (106) comprising one or more physical components; as well as One or more client devices (120A-N) communicatively coupled to the engineering system (102) via a network (104), wherein the engineering system (102) is configured to perform the method according to any one of claims 1 to 10.

13. A computer program product having machine-readable instructions stored therein, which, when executed by one or more processing units (202), cause the processing units to perform the method according to any one of claims 1-10.