The following relates to a field of engineering of computer assisted programming, and more particularly a method and system for generating engineering programs which are compatible with a specific engineering environment.
Typically, an engineering project comprises a plurality of engineering programs. The engineering project is configured to control operation of a plurality of devices in a technical installation. Examples of the plurality of devices include but are not limited to, programmable logic controllers, computers, motor drivers, control units, microcontrollers, human machine interfaces, edge servers, and industrial control systems. Each of the plurality of engineering programs are configured to control operation of one or more devices of the plurality of devices in the technical installation. For efficient control of the plurality of devices, the plurality of engineering programs may have to be coded based on specific conventions and constraints that are aligned with one or more requirements of the plurality of devices of the technical installation.
Thus, the plurality of engineering programs of the engineering project may be designed to be compatible with a first engineering environment associated with the technical installation. The first engineering environment comprises information about conventions and constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered to, by the plurality of engineering programs in the engineering project. In a case where a program of the plurality of engineering program does not adhere to the constraints dictated by the first engineering environment, then the engineering project becomes incompatible with the first engineering environment.
In a case where the engineering project is not compatible with the first engineering environment, the engineering project may not function in the technical installation associated with the first engineering environment. Thus, prior to deploying the engineering project on the technical installation, a code developer may have to manually modify the engineering project, to make it compatible with constraints of the first engineering environment.
Typically, the code developer manually modifies the engineering project to make the engineering project compatible with the first engineering environment. In order to modify the engineering project, the code developer may have to modify several thousand lines of code in the plurality of engineering programs in the engineering project. Thus, it becomes very difficult and time consuming to deploy the engineering project in the first engineering environment.
Further, to determine an erroneous code that is causing the engineering project to be incompatible with the first engineering environment, the code developer may have to analyze a huge portion of the engineering project, line by line. Such an endeavor may consume a huge amount of time for the code developer. Conventional engineering systems fail to automatically determine the erroneous code that is causing the engineering project to be incompatible with the second engineering environment. Hence, there are no mechanisms to automate engineering involved in generating engineering projects.
Currently, the engineering projects comprise a huge number of engineering programs, each of which are enormous in code length. Each of the plurality of engineering programs may have data and control flow interrelationships with other engineering programs of the plurality of engineering programs. Any modification of any program of the plurality of engineering program may result in a disruption in the data flow and the control flow interrelationships between the plurality of engineering programs of the engineering project. Further, the plurality of engineering programs may not be readable and understandable. To make the plurality of engineering programs readable, the code developer may have to manually enter comments, annotations, and modularize the plurality of engineering programs. It is almost humanly impossible to go through millions of codes present in the plurality of engineering programs to modularize the plurality of engineering programs.
Further, the engineering project may have a huge number of programming elements such as variables, classes, and functions which may be defined in the engineering project. In existing systems, the code developer may have to study a gigantic number of such definitions and references of the plurality of programming elements and also the control and data flow interrelationships between the plurality of engineering programs, before modifying any one of the plurality of engineering programs. It is difficult for the code developer to manually go through the huge number of engineering programs and the huge number of programming elements, as well as identify the interrelationships between the plurality of programming elements and the plurality of engineering programs in the engineering project. Furthermore, it is very difficult for the code developer to migrate the engineering program from the first engineering environment to a second engineering environment for the aforementioned reasons.
An aspect relates to an efficient method and system for generating engineering projects which are compatible with a specific engineering environment.
Therefore, it is an aspect of embodiments of the present disclosure to provide a method and system for generating engineering projects which are compatible with specific engineering environment.
An aspect of embodiments of the invention is achieved by a method of generating engineering projects compatible with a specific engineering environment. In embodiments, the method comprises receiving by a processing unit, a request to convert a first engineering project which is compatible with a first engineering environment, to a second engineering project which is compatible with a second engineering environment. The first engineering project and the second engineering project comprise a plurality of engineering programs designed to control operation of a plurality of devices in a technical installation. Examples of the plurality of devices include but are not limited to, programmable logic controllers, computers, motor drivers, control units, microcontrollers, human machine interfaces, edge servers, and industrial control systems. The first engineering environment and the second engineering environment comprises information associated with a plurality of constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered by the plurality of engineering programs in the engineering project. The plurality of constraints enable the plurality of engineering programs to efficiently operate the plurality of devices of the technical installation. The technical installation is at least one of an industrial manufacturing plant, an industrial processing plant, or an industrial power plant.
In an embodiment, the plurality of devices function together in the technical installation to achieve one or more objectives of the technical installation. Each of the plurality of devices comprises a processor and a memory. The memory is configured to store one or more engineering programs of the plurality of engineering programs. The processor of the plurality of devices is configured to execute the one or more engineering programs to achieve one or more key performance indicators associated with the one or more engineering programs. Examples of the one or more key performance indicators includes a processing speed, a memory requirement, and a process efficiency of the one or more engineering programs, when the one or more engineering programs are executed by the processor of the one or more engineering objects. The one or more engineering programs may be compatible with one engineering environment and incompatible with other engineering environments. In other words, the plurality of constraints associated with the first engineering environment may be mutually exclusive with the plurality of constraints associated with the second engineering environment. Thus, the received request comprises an instruction to convert the first engineering project which is compatible to the engineering program to the second engineering project which is compatible with the second engineering environment. In one example, the first engineering environment is a single-user engineering environment, and the second engineering environment is a multi-user engineering environment.
In an embodiment, the plurality of devices in the technical installation may be connected to each other via one or more physical connections. The one or more physical connections may comprise a physical link (such as wirings or cables). Further, functioning of the plurality of devices may be defined based on a plurality of parameter values. The plurality of parameter values comprises motor configuration parameters, network and communication parameter, valve controls, temperature or pressure values of a sensor, speed, torque and the like.
In an embodiment, the method further comprises determining, by the processing unit, a plurality of code statements from a plurality of engineering projects based on an analysis of the plurality of engineering projects. The plurality of engineering projects is stored in a central database. The plurality of engineering projects comprises engineering projects which are designed for controlling a plurality of technical installations. Each of the plurality of technical installations operates in a specific engineering environment of the plurality of engineering environments. Each of the plurality of engineering projects are compatible with a specific engineering environment of the plurality of engineering environments. Each of the plurality of engineering environments comprise information that dictate a plurality of constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered to, by the plurality of engineering programs in the specific engineering project of the plurality of engineering projects. The plurality of code statements comprises assignment statements, program element definition statements, and operation statements. The processing unit is configured to determine the plurality of code statements by application of a natural language processing algorithm on the plurality of engineering programs of the plurality of engineering projects.
In an embodiment, the method further comprises determining, by the processing unit, a dataflow and a control flow between each of the determined plurality of code statements, based on an analysis of the plurality of code statements. The data flow indicates a transformation of values of a plurality of data variables in the plurality of engineering programs. The control flow comprises information about a sequence in which the plurality of code statements are executed by the processing unit. For example, the control flow comprises information about statements which will be repeatedly executed by the processing unit, because of the presence of looped and recursive statements in the plurality of engineering programs.
In an embodiment, the method further comprises determining, by the processing unit, a plurality of logical blocks from the plurality of engineering projects by grouping the plurality of statements into the plurality of logical blocks. The plurality of code statements are grouped based on analysis of the determined data flow and the determined control flow between each of the determined plurality of statements. In other words, the method further comprises determining, by the processing unit, the plurality of logical blocks from the plurality of engineering projects. The plurality of engineering projects are automatically split into meaningful and logical blocks based on the data flow and the control flow between the plurality of code statements in the plurality of engineering projects. Thus, the plurality of engineering projects are thereby modularized into the plurality of logical blocks. The readability and maintainability of the plurality of engineering project is improved. The amount of manual labor and time involved in modularizing the plurality of engineering projects is reduced.
In an embodiment, the method further comprises generating, by the processing unit, a knowledge graph for each of the determined plurality of logical blocks. The knowledge graph generated for a specific logical block comprises information about the data flow and the control flow between a set of statements within the specific logical block. In embodiments, the method further comprises generating, by the processing unit, the ontology schema for the plurality of engineering projects by merging a plurality of knowledge graphs generated for the plurality of logical blocks. The ontology schema comprises information about relationships between the determined plurality of logical blocks, and information about data flow and control flow between each of the plurality of logical blocks of the plurality of engineering projects. In one example, the ontology schema comprises information about a correspondence between a logical block of a first engineering project of the plurality of engineering projects, and a logical block of a second engineering project of the plurality of engineering project. The ontology schema further comprises information about functions performed by each of the plurality of logical blocks in the plurality of engineering projects. The ontology schema further comprises information about compatibility of each of the plurality of logical blocks with each of the plurality of engineering environments. The ontology schema further comprises information associated with interrelationships between the plurality of logical blocks, the plurality of engineering environments, and one or more key performance indicators of the plurality of engineering programs of the plurality of engineering projects. Advantageously, interrelationships and dependencies between the plurality of logical blocks in the plurality of engineering programs are integrated into the ontology schema.
In an embodiment, the method further comprises determining, by the processing unit, from the plurality of logical blocks, a set of logical blocks which are compatible with the second engineering environment based on an analysis of the generated ontology schema and the first engineering project. In embodiments, the method further comprises generating, by the processing unit, the second engineering project which is compatible with the second engineering environment, by merging of the determined set of logical blocks based on the generated ontology schema. Advantageously, the first engineering project, which is compatible with the first engineering environment, is automatically converted into the second engineering project which is compatible with the second engineering environment. Advantageously, the manual labor and time involved in making the first engineering project compatible with the second engineering environment is reduced. Advantageously, migration of the first engineering project from a first technical installation which operates in the first engineering environment, to a second technical installation which operates in the second engineering environment, is simplified.
In an embodiment, the method further comprises receiving, by the processing unit, a request to integrate a code snippet into the generated second engineering project. In embodiments, the method further comprises generating, by the processing unit, an ontological representation for the code snippet, based on an analysis of the code snippet. In embodiments, the method further comprises determining, by the processing unit, a portion of the generated ontology schema, which is similar to the generated ontological representation of the code snippet. In embodiments, the method further comprises modifying, by the processing unit, the second engineering project by integration of the code snippet into the second engineering project based on an analysis of the determined portion of the ontology schema. Advantageously, the code snippet is integrated into the second engineering project such that the integrated code snippet is compatible with the second engineering environment.
In an embodiment, the method further comprises analyzing, by the processing unit the generated ontology schema and the second engineering project to determine one or more errors in a first logical block of the determined set of logical blocks. In one example, the one or more errors correspond to one or more portions of the first logical block that is causing incompatibility of the first logical block with the second engineering environment. In embodiments, the method further comprises modifying, by the processing unit, the first logical block of the set of logical blocks, to eradicate the determined one or more errors in the first logical block of the set of logical blocks. In one example, the one or more portions of the first logical block are deleted or modified to make the first logical block compatible with the second engineering environment. In embodiments, the method is further configured to predict an occurrence of a variation the one or more key performance indicators associated with the second engineering project based on the analysis of the ontology schema. The variation is predicted to occur as a result of the modification of the first logical block. In embodiments, the method further comprises modifying, by the processing unit, one or more programming blocks of the set of logical blocks, based on the analysis of the ontology schema, to prevent the occurrence of the variation in the one or more key performance indicators associated with the second engineering project. Advantageously, any variation in the one or more key performance indicators, caused as a result of conversion of the first engineering project to the second engineering project, is eradicated.
In an embodiment, the method further comprises generating, by the processing unit, a simulation instance for a third engineering environment. In embodiments, the method further comprises simulating, by the processing unit, execution of the generated second engineering project in the third engineering environment by executing the second engineering project on the generated simulation instance.
In an embodiment, the method further comprises determining, by the processing unit, whether the generated second engineering project is compatible with a third engineering environment, based on a result of the simulated execution of the generated second engineering project. In embodiments, the method further comprises deploying, by the processing unit, the generated second engineering project in real-time onto the third engineering environment, based on a determination that the generated second engineering project is compatible with the third engineering environment. In embodiments, the method further comprises displaying, by the processing unit, the generated second engineering project on a display device. The second engineering project is tested for compatibility with the second engineering environment.
In an embodiment, the method comprises notifying, by the processing unit, about an incompatibility of the generated second engineering project, based on a determination that the generated second engineering project is incompatible. In embodiments, the method further comprises generating, by the processing unit, a plurality of error log files associated with the generated second engineering project, based on the determination that the generated engineering program is incompatible. In embodiments, the method further comprises displaying, by the processing unit, the generated plurality of error log files on a display device. A user is enabled to analyze the plurality of error log files and remedy the incompatibility of the generated second engineering project, with the second engineering environment.
In an embodiment, the method comprises analyzing, by the processing unit, the second engineering project and the ontology schema associated with the plurality of engineering projects. In embodiments, the method further comprises mapping, by the processing unit, one or more logical blocks of the second engineering project, with one or more logical blocks of the plurality of logical blocks, based on the analysis. In embodiments, the method further comprises generating, by the processing unit, a plurality of program modules from the second engineering project, based on the mapping, wherein each of the plurality of program modules corresponds to a specific subroutine in the second engineering project.
In an embodiment, the method comprises determining, by the processing unit, two or more logical blocks in the set of logical blocks, which correspond to different portions of a common subroutine. In embodiments, the method further comprises generating, by the processing unit, a combined logical block by merging the determined two or more logical blocks of the set of logical blocks.
In an embodiment, the method further comprises mapping, by the processing unit, the set of logical blocks to a plurality of subroutines in the second engineering project. In embodiments, the method further comprises grouping, by the processing unit, into a plurality of groups based on the mapping of the set of logical blocks to the plurality of subroutines, wherein each group of the plurality of groups contains one or more logical blocks, of the set of logical blocks, which are mapped to a specific subroutine of the plurality of subroutines.
The aspect of embodiments of the present disclosure is also achieved by an engineering system for generating engineering projects compatible with a specific engineering environment. The engineering system comprises one or more processor(s) and a memory coupled to the processor. The memory comprises an automation module stored in the form of machine-readable instructions executable by the processor. The automation module is configured for performing the method as described above.
The aspect of embodiments of the present disclosure is also achieved by an industrial environment. The industrial environment comprising an engineering system, a technical installation comprising one or more physical components and one or more client devices communicatively coupled to the engineering system and the technical installation. The engineering system is configured to perform the above-described method steps.
The aspect of embodiments of the present disclosure is also achieved by a computer program product (non-transitory computer readable storage medium having instructions, which when executed by a processor, perform actions) having machine-readable instructions stored therein, that when executed by one or more processor(s), cause the one or more processor(s) to perform method steps as described above.
The above-mentioned and other features of embodiments of the invention disclosure will now be addressed with reference to the accompanying drawings of the present invention disclosure. The illustrated embodiments are intended to illustrate, but not limit the invention disclosure.
Some of the embodiments will be described in detail, with reference to the following figures, wherein like designations denote like membranes, wherein:
In the following description, for the purpose of explanation, numerous specific details are set forth in order to provide thorough understanding of one or more embodiments. It may be evident that such embodiments may be practiced without these specific details.
The engineering system 102 is connected to one or more engineering objects 108A-N. The one or more engineering objects 108A-N are devices in the technical installation 106 connected to each other via the network 104. The one or more engineering objects 108A-N may include servers, robots, switches, automation devices, programmable logic controllers (PLC)s, human machine interfaces (HMIs), motors, valves, pumps, actuators, sensors and other industrial equipment(s). The one or more engineering objects 108A-N may be connected to each other or several other components (not shown in
The client devices 120A-N may be a desktop computer, laptop computer, tablet, smart phone and the like. Each of the client devices 120A-N is provided with an engineering tool 122A-N for generating and/or editing a plurality of engineering projects respectively. The plurality of engineering projects comprises engineering projects which are designed for controlling the technical installation 106. The technical installation 106 operates in a specific engineering environment of the plurality of engineering environments. Each of the plurality of engineering projects are compatible with a specific engineering environment of the plurality of engineering environments. Each of the plurality of engineering environments comprise information that dictate a plurality of constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered to, by the plurality of engineering programs in the specific engineering project of the plurality of engineering projects.
The client devices 120A-N can access the engineering system 102 for automatically generating engineering projects. The client devices 120A-N can access cloud applications (such as providing performance visualization of the one or more engineering objects 108A-N via a web browser). Throughout the specification, the terms “client device” and “user device” are used interchangeably.
The engineering system 102 may be a standalone server deployed at a control station or may be a remote server on a cloud computing platform. In an 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 installation 106 comprising the one or more engineering objects 108A-N. The engineering system 102 may comprise 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 installation 106, and the client device(s) 120A-N. The interface (such as cloud interface) (not shown in
The database 118 stores the information relating to the technical installation 106 and the client device(s) 120A-N. The database 118 is, for example, a structured query language (SQL) data store or a not only SQL (NoSQL) data store. In an exemplary embodiment, the database 118 may be configured as cloud-based database implemented in the industrial environment 100, where computing resources are delivered as a service over the platform 110. The database 118, according to another embodiment of the present disclosure, 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 model, parameter values associated with the one or more engineering objects 108A-N, test results, simulation results, status messages, one or more simulation instances, graphical programs, program logics, program logic patterns, engineering objects 108A-N and engineering object properties, one or more engineering object blocks, relationship information between the engineering objects, requirements, program update messages and the like.
The processing unit 202, as used herein, means any type of computational circuit, such as, but not limited to, a microprocessor unit, microcontroller, complex instruction set computing microprocessor unit, reduced instruction set computing microprocessor unit, very long instruction word microprocessor unit, explicitly parallel instruction computing microprocessor unit, graphics processing unit, digital signal processing unit, or any other type of processing circuit. The processing unit 202 may also include embedded controllers, such as generic or programmable logic devices or arrays, application specific integrated circuits, single-chip computers, and the like.
The memory 204 may be non-transitory volatile memory and non-volatile memory. The memory 204 may be coupled for communication with the processing unit 202, such as being a computer-readable storage medium. The processing unit 202 may execute machine-readable instructions and/or source code stored in the memory 204. A variety of machine-readable instructions may be stored in and accessed from the memory 204. The memory 204 may include any suitable elements for storing data and machine-readable instructions, such as read only memory, random access memory, erasable programmable read only memory, electrically erasable programmable read only memory, a hard drive, a removable media drive for handling compact disks, digital video disks, diskettes, magnetic tape cartridges, memory cards, and the like. In the present embodiment, the memory 204 includes an integrated development environment (IDE) 216. The IDE 216 includes an automation module 112 stored in the form of machine-readable instructions on any of the above-mentioned storage media and may be in communication with and executed by the processing unit 202.
When executed by the processing unit 202, the automation module 112 causes the processing unit 202 to generate engineering projects which are compatible with a specific engineering environment in the engineering system 102. In an embodiment, the automation module 112 causes the processing unit 202 to receive a request to convert a first engineering project which is compatible with a first engineering environment, to a second engineering project which is compatible with a second engineering environment. The first engineering project and the second engineering project comprises the plurality of engineering programs designed to control operation of a plurality of devices, such as the one or more engineering objects 108A-N in the technical installation 106. The first engineering environment and the second engineering environment comprises information associated with a plurality of constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered by the plurality of engineering programs in the engineering project. The plurality of constraints enable the plurality of engineering programs to efficiently operate the plurality of devices of the technical installation.
The automation module 112 further causes the processing unit 202 to determine a plurality of code statements from a plurality of engineering projects based on an analysis of the plurality of engineering projects. The automation module 112 further causes the processing unit 202 to determine a plurality of code statements in the plurality of engineering projects, by application of a natural language processing algorithm on the plurality of engineering programs of the plurality of engineering projects.
The automation module 112 further causes the processing unit 202 to determine a dataflow and a control flow between each of the determined plurality of code statements, based on an analysis of the plurality of code statements. The data flow indicates a transformation of values of a plurality of data variables in the plurality of engineering programs. The control flow comprises information about a sequence in which the plurality of code statements are executed by the processing unit. For example, the control flow comprises information about statements which will be repeatedly executed by the processing unit 202, because of the presence of looped and recursive statements in the plurality of engineering programs.
The automation module 112 further causes the processing unit 202 to determine a plurality of logical blocks from the plurality of engineering projects by grouping the plurality of statements into the plurality of logical blocks. The plurality of code statements are grouped based on analysis of the determined data flow and the determined control flow between each of the determined plurality of statements. The automation module 112 causes the processing unit 202 to determine the plurality of logical blocks from the plurality of engineering projects. The plurality of engineering projects are automatically split into meaningful and logical blocks based on the data flow and the control flow between the plurality of code statements in the plurality of engineering projects. Thus, the plurality of engineering projects are thereby modularized into the plurality of logical blocks. The readability and maintainability of the plurality of engineering project is improved. The amount of manual labor and time involved in modularizing the plurality of engineering projects is reduced.
The automation module 112 further causes the processing unit 202 to generate a knowledge graph for each of the determined plurality of logical blocks. The knowledge graph generated for a specific logical block comprises information about the data flow and the control flow between a set of statements within the specific logical block. The automation module 112 further causes the processing unit 202 to generate the ontology schema for the plurality of engineering projects by merging a plurality of knowledge graphs generated for the plurality of logical blocks. The ontology schema comprises information about relationships between the determined plurality of logical blocks, and information about data flow and control flow between each of the plurality of logical blocks of the plurality of engineering projects. In one example, the ontology schema comprises information about a correspondence between a logical block of a first engineering project of the plurality of engineering projects, and a logical block of a second engineering project of the plurality of engineering project. The ontology schema further comprises information about functions performed by each of the plurality of logical blocks in the plurality of engineering projects. The ontology schema further comprises information about compatibility of each of the plurality of logical blocks with each of the plurality of engineering environments. The ontology schema further comprises information associated with interrelationships between the plurality of logical blocks, the plurality of engineering environments, and one or more key performance indicators of the plurality of engineering programs of the plurality of engineering projects. Interrelationships and dependencies between the plurality of logical blocks in the plurality of engineering programs are integrated into the ontology schema.
The storage unit 206 may be a non-transitory storage medium configured for storing a database (such as database 118) which comprises server version of the plurality of programming blocks associated with the set of industrial domains.
The communication interface 208 is configured for establishing communication sessions between the one or more client devices 120A-N and the engineering system 102. The communication interface 208 allows the one or more engineering applications running on the client devices 120A-N to import/export engineering project files into the engineering system 102. In an embodiment, the communication interface 208 interacts with the interface at the one or more client devices 120A-N for allowing the engineers to access the engineering programs associated with an engineering project file and perform one or more actions on the engineering programs stored in the engineering system 102.
The input-output unit 210 may include input devices a keypad, touch-sensitive display, camera (such as a camera receiving gesture-based inputs), etc. capable of receiving one or more input signals, such as user commands to process engineering project file. Also, the input-output unit 210 may be a display unit for displaying a graphical user interface which visualizes the behavior model associated with the modified engineering programs and also displays the status information associated with each set of actions performed on the graphical user interface. The set of actions may include execution of predefined tests, download, compile and deploy of graphical programs. The bus 214 acts as interconnect between the processor 202, the memory 204, and the input-output unit 210.
The network interface 212 may be configured to handle network connectivity, bandwidth and network traffic between the engineering system 102, client devices 120A-N and the technical installation 106.
Those of ordinary skilled in the conventional art will appreciate that the hardware depicted in
Those skilled in the conventional art will recognize that, for simplicity and clarity, the full structure and operation of all data processing systems suitable for use with the present disclosure is not being depicted or described herein. Instead, only so much of an engineering system 102 as is unique to the present disclosure or necessary for an understanding of the present disclosure is depicted and described. The remainder of the construction and operation of the engineering system 102 may conform to any of the various current implementation and practices known in the conventional art.
The request handler module 302 is configured for receiving the request to convert the first engineering project to the second engineering project of the technical installation 106. For example, the request is received from one of the one or more users external to the industrial environment 100 via a network. In an alternative embodiment, the request is received from the one or the one or more client devices 120A-N via the network.
The object behavior model generation module 304 is configured for generating the ontology schema of the plurality of engineering projects. In an embodiment, the generated ontology schema comprises information about relationships between the set of variables corresponding to each logical block of the plurality of logical blocks of the plurality of engineering projects and a set of Key performance indicators associated with the set of programming blocks. The set of variables comprises a plurality of data and pointer variables defined and used in the plurality of logical blocks. The set of key performance indicators associated with the plurality of logical blocks are key performance indicators achieved by the one or more engineering objects 108A-N, when the one or more engineering objects 108A-N executes the plurality of logical blocks of the plurality of engineering projects. In one example, the ontology schema is a knowledge graph-based representation comprising a plurality of layers. The plurality of layers comprises a first, a second, a third, and a fourth knowledge graph layers. The first knowledge graph layer comprises knowledge associated with compatibility between the plurality of engineering projects with each of the plurality of engineering environments. The second knowledge graph layer comprises information about a compatibility of each of the plurality of logical blocks with the plurality of engineering environments. The third knowledge graph layer comprises information about a plurality of data flow and a plurality of control flow paths between the plurality of logical blocks of the plurality of engineering projects. Further, the third knowledge graph layer comprises information about a mapping between two or more logical blocks of the plurality of logical blocks, based on a functionality of the plurality of logical blocks. For example, if a first logical block and a second logical block of the plurality of logical blocks perform a same functionality, then third knowledge graph layer comprises information which indicates that the first logical block is mapped to the second logical block. The fourth knowledge graph layer comprises information associated with the plurality of data flow paths and control flow paths between the plurality of code statements in the plurality of engineering projects.
The fourth knowledge graph layer further comprises information which indicates an object behavior model associated with a relationship between the plurality of logical blocks and the one or more engineering objects 108A-N in the technical installation 106. Further, the ontology schema comprises one or more rules associated with one or more relationships between the one or more engineering objects 108A-N and the plurality of logical blocks.
Further, the object behavior model generation module 304 is configured for determining one or more engineering object properties associated with each of the classified one or more engineering objects 108A-N. The object properties are object's domain context, association and relationship with other engineering objects, object size, object identifier, type of engineering object, and the like. Such object properties are determined for each of the one or more engineering objects. Such determination using ontology enables engineering object elicitation & generalization, defines property & relationship between the engineering objects.
When once the object properties are determined, the object behavior model generation module 304 is configured for determining relationship between each of the one or more classified engineering objects 108A-N and the plurality of logical blocks based on the determined relationships between each of the one or more classified engineering objects 108A-N. The object behavior model generation module 304 is further configured for generating the object behavior model of the one or more engineering objects 108A-N.
In an embodiment, the object behavior model generation module 304 is also configured for managing the plurality of logical blocks corresponding to each of the one or more engineering objects 108A-N, physical connections between the one or more engineering objects 108A-N, and a plurality of parameter values associated with the one or more engineering objects 108A-N and the physical connections. Each of the plurality of logical blocks comprises a set of programmable instructions or code statements corresponding to a program logic of each of the plurality of engineering projects. Each logical block of the plurality of logical blocks may correspond to a function block under an engineering design. The engineering design may comprise several such function blocks. The users at the client devices 120A-N uses the engineering tool 122A-N in order to design or develop the plurality of engineering projects.
The analysis module 306 is configured for analyzing the ontology schema associated with the plurality of engineering projects. Specifically, the analysis module 306 is configured for retrieving data and control parameters associated with each logical block of the plurality of logical blocks. The data and control parameters are key performance indicators comprising information relating to the set of programming blocks associated with the industrial domain of the technical installation 106, for example, sensor data, actuator data, environment data, network data, any automation data and the like. Further, the analysis module 306 is configured for comparing the retrieved data and control parameters associated with the set of programming blocks with data and control parameters stored in the object behavior model. Furthermore, the analysis module 306 is configured for identifying deviation between the retrieved data and control parameters associated with the set of programming blocks and the data and control parameters stored in the object behavior model. The deviation indicates a difference between the retrieved data and control parameters, and the data and control parameters stored in the object behavior model. Also, the analysis module 306 is configured for determining type of behavior of the one or more engineering objects 108A-N corresponding to the identified deviation. The type of behavior comprises normal, abnormal, steady, and require maintenance and the like. Furthermore, the analysis module 306 is configured for analyzing the behavior of the one or more engineering objects 108A-N based on the determined type of behavior. In one example, the analysis module 306 is configured to analyze the plurality of programming blocks by application of a natural language processing algorithm on a source code of the plurality of programming blocks.
The modifier module 308 is configured for modifying the plurality of logical blocks based on the outcome of analysis of the ontology schema. The plurality of logical blocks is modified based on the analysis of the ontology schema. The modifications comprise any changes such as addition, deletion, update, replacement or revision of one or more variables, code lines, classes, functions, or comments in the plurality of logical blocks. In one example, an outcome of analysis of the ontology schema may be a behavior report indicating whether behavior or characteristic of each logical block of the plurality of logical blocks as defined in the ontology schema is acceptable, improvised, enhanced, optimized or the like. Thus, the plurality of logical blocks are modified based on the relationships between the set of variables corresponding to each logical block in the plurality of logical blocks, the set of Key performance indicators associated with the plurality of logical blocks, and an industrial domain of the technical installation 106. Thus, the plurality of engineering projects is generated based on the relationships between the set of variables corresponding to each logical block in the plurality of logical blocks, the set of Key performance indicators associated with the plurality of logical blocks, and the industrial domain of the technical installation 106. In other words, the plurality of logical blocks are customized based on the ontology schema, to generate a set of engineering projects which are compatible with one or more engineering environments of the plurality of engineering environments.
The engineering project database 310 is configured for storing an engineering project library comprising the plurality of engineering projects, the plurality of logical blocks, and the generated ontology schema. The engineering project database 310 is further configured to store information about the one or more engineering objects 108A-N, such as physical connections between the one or more engineering objects 108A-N, and a plurality of parameter values associated with the one or more engineering objects 108A-N and the physical connections. The engineering project database 310 is configured for continuously updating the engineering project library with updated versions of the engineering projects. Also, the engineering project database 310 is configured for maintaining the engineering project library in the generated ontology schema.
The validation module 312 is configured to generate a simulation instance for the second engineering environment. In one example, the simulation instance is a digital twin of the one or more engineering objects 108A-N which are functioning based on the second engineering environment. The validation module 312 is configured to simulate execution of the generated second engineering project in the second engineering environment in a simulation environment by executing the set of logical block on the generated simulation instance. The validation module 312 is configured to determine that the generated second engineering project is compatible with the second engineering environment, based on a result of the simulated execution of the generated set of logical blocks. Further, the validation module 312 is configured for simulating behavior of the set of logical blocks in the simulation environment by executing the set of logical blocks on the generated simulation instance. The simulation environment emulates an actual technical installation, such as technical installation 106. Further, the simulation environment may be a virtual setup of the actual technical installation 106. Also, the validation module 312 is configured for validating the behavior of the set of logical blocks based on results of simulation. The results of simulation may indicate success or failure of the second engineering project if deployed in the second engineering environment.
The deployment module 314 is configured for deploying the second engineering project in real-time onto the second engineering environment based on the validation. The generated engineering program is only deployed after the determination that the generated engineering program is compatible.
At step 402, a request to convert a first engineering project which is compatible with a first engineering environment, to a second engineering project which is compatible with a second engineering environment, is received by the processing unit 202. The first engineering project and the second engineering project comprises a plurality of engineering programs designed to control operation of a plurality of devices (such as the one or more engineering objects 108A-N) in the technical installation 106. Examples of the plurality of devices include but is not limited to, programmable logic controllers, computers, motor drivers, control units, microcontrollers, human machine interfaces, edge servers, and industrial control systems.
The first engineering environment and the second engineering environment comprises information associated with a plurality of constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered by the plurality of engineering programs in the engineering project. The plurality of constraints enable the plurality of engineering programs to efficiently operate the plurality of devices of the technical installation 106. The technical installation 106 is at least one of an industrial manufacturing plant, an industrial processing plant, or an industrial power plant.
The plurality of devices function together in the technical installation 106 to achieve one or more objectives of the technical installation 106. Each of the plurality of devices comprises a processor and a memory. The memory is configured to store one or more engineering programs of the plurality of engineering programs. The processor of the plurality of devices is configured to execute the one or more engineering programs to achieve one or more key performance indicators associated with the one or more engineering programs. Examples of the one or more key performance indicators includes a processing speed, a memory requirement, and a process efficiency of the one or more engineering programs, when the one or more engineering programs are executed by the processor of the one or more engineering objects.
The one or more engineering programs may be compatible with one engineering environment and incompatible with other engineering environments. In other words, the plurality of constraints associated with the first engineering environment may be mutually exclusive with the plurality of constraints associated with the second engineering environment. Thus, the received request comprises an instruction to convert the first engineering project which is compatible with the engineering program to the second engineering project which is compatible with the second engineering environment. In one example, the first engineering environment is a single-user engineering environment, and the second engineering environment is a multi-user engineering environment.
In an embodiment, the plurality of devices in the technical installation may be connected to each other via one or more physical connections. The one or more physical connections may comprise a physical link (such as wirings or cables). Further, functioning of the plurality of devices may be defined based on a plurality of parameter values. The plurality of parameter values comprises motor configuration parameters, network and communication parameter, valve controls, temperature or pressure values of a sensor, speed, torque and the like.
At 404, a plurality of code statements are determined by the processing unit 202, from a plurality of engineering projects based on an analysis of the plurality of engineering projects. The plurality of engineering projects is stored in a central database such as the engineering project database 310. The plurality of engineering projects comprises engineering projects which are designed for controlling a plurality of technical installations. Each of the plurality of technical installations operates in a specific engineering environment of the plurality of engineering environments. Each of the plurality of engineering projects are compatible with a specific engineering environment of the plurality of engineering environments. Each of the plurality of engineering environments comprise information that dictate a plurality of constraints associated with coding languages, coding conventions, hardware configuration, software configurations, processing speed restrictions and memory restrictions which must be adhered to, by the plurality of engineering programs in the specific engineering project of the plurality of engineering projects. The plurality of code statements comprises assignment statements, program element definition statements, and operation statements. The processing unit 202 is configured to determine the plurality of code statements by application of a natural language processing algorithm on the plurality of engineering programs of the plurality of engineering projects.
At 406, a dataflow and a control flow between each of the determined plurality of code statements, is determined by the processing unit 202 based on an analysis of the plurality of code statements. The data flow indicates a transformation of values of a plurality of data variables in the plurality of engineering programs. The control flow comprises information about a sequence in which the plurality of code statements are executed by the processing unit 202. For example, the control flow comprises information about statements which will be repeatedly executed by the processing unit 202, because of the presence of looped and recursive statements in the plurality of engineering programs.
At step 408, a plurality of logical blocks is determined by the processing unit 202, from the plurality of engineering projects by grouping the plurality of statements into the plurality of logical blocks. The plurality of code statements are grouped based on analysis of the determined data flow and the determined control flow between each of the determined plurality of statements, by the processing unit 202. In other words, the plurality of logical blocks is determined by the processing unit 202 from the plurality of engineering projects. The plurality of engineering projects are automatically split into meaningful and logical blocks based on the data flow and the control flow between the plurality of code statements in the plurality of engineering projects. Thus, the plurality of engineering projects are thereby modularized into the plurality of logical blocks. The readability and maintainability of the plurality of engineering project is improved. The amount of manual labor and time involved in modularizing the plurality of engineering projects is reduced.
At step 410, a knowledge graph is generated by the processing unit 202 for each of the determined plurality of logical blocks. The knowledge graph generated for a specific logical block comprises information about the data flow and the control flow between a set of statements within the specific logical block. Thus, a plurality of knowledge graphs are generated by the processing unit 202, for the plurality of logical blocks.
At step 412, the ontology schema for the plurality of engineering projects is generated by the processing unit 202 by merging the plurality of knowledge graphs generated for the plurality of logical blocks. The ontology schema comprises information about relationships between the determined plurality of logical blocks, and information about data flow and control flow between each of the plurality of logical blocks of the plurality of engineering projects. In one example, the ontology schema comprises information about a correspondence between a logical block of a first engineering project of the plurality of engineering projects, and a logical block of a second engineering project of the plurality of engineering project. The ontology schema further comprises information about functions performed by each of the plurality of logical blocks in the plurality of engineering projects. The ontology schema further comprises information about compatibility of each of the plurality of logical blocks with each of the plurality of engineering environments. The ontology schema further comprises information associated with interrelationships between the plurality of logical blocks, the plurality of engineering environments, and one or more key performance indicators of the plurality of engineering programs of the plurality of engineering projects. Interrelationships and dependencies between the plurality of logical blocks in the plurality of engineering programs are integrated into the ontology schema.
At step 414, from the plurality of logical blocks, a set of logical blocks which are compatible with the second engineering environment based on an analysis of the generated ontology schema and the first engineering project, is determined by the processing unit 202.
At step 416, the second engineering project is generated by the processing unit 202. The second engineering project is compatible with the second engineering environment. The second engineering project is generated by the processing unit 202 by merging of the determined set of logical blocks based on the generated ontology schema. The first engineering project, which is compatible with the first engineering environment, is automatically converted into the second engineering project which is compatible with the second engineering environment. The manual labor and time involved in making the first engineering project compatible with the second engineering environment is reduced. Migration of the first engineering project from a first technical installation which operates in the first engineering environment, to a second technical installation which operates in the second engineering environment, is simplified.
At step 418, a request to integrate a code snippet into the generated second engineering project is received by the processing unit 202.
At step 420, an ontological representation for the code snippet, is generated by the processing unit 202 based on an analysis of the code snippet.
At step 422, a portion of the generated ontology schema, which is similar to the generated ontological representation of the code snippet, is determined by the processing unit 202.
At step 424, the second engineering project is modified by the processing unit 202 by integration of the code snippet into the second engineering project based on an analysis of the determined portion of the ontology schema. The code snippet is integrated into the second engineering project such that the integrated code snippet is compatible with the second engineering environment.
At step 426, the generated ontology schema and the second engineering project is analyzed by the processing unit 202 to determine one or more errors in a first logical block of the determined set of logical blocks. In one example, the one or more errors corresponds to one or more portions of the first logical block that is causing incompatibility of the first logical block with the second engineering environment.
At step 428, the first logical block of the set of logical blocks, is modified by the processing unit 202 to eradicate the determined one or more errors in the first logical block of the set of logical blocks. In one example, the one or more portions of the first logical block are deleted or modified to make the first logical block compatible with the second engineering environment.
At step 430, an occurrence of a variation the one or more key performance indicators associated with the second engineering project is predicted by the processing unit 202 based on the analysis of the ontology schema. The variation is predicted to occur as a result of the modification of the first logical block.
At step 432, one or more logical blocks of the set of logical blocks, is determined by the processing unit 202 based on the analysis of the ontology schema, to prevent the occurrence of the variation in the one or more key performance indicators associated with the second engineering project. Any variation in the one or more key performance indicators, caused as a result of conversion of the first engineering project to the second engineering project, is eradicated.
At step 434, a simulation instance for the second engineering environment is generated by the processing unit 202. The processing unit 202 is further configured to simulate execution of the generated second engineering project in the second engineering environment by executing the second engineering project on the generated simulation instance.
At step 436, it is determined, by the processing unit 202, whether the generated second engineering project is compatible with the second engineering environment, based on a result of the simulated execution of the generated second engineering project.
At step 438, the generated second engineering project is deployed by the processing unit 202 in real-time onto the second engineering environment, based on a determination that the generated second engineering project is compatible.
At step 440, the generated second engineering project is displayed by the processing unit 202 on a display device (such as the one or more client devices 120A-N). The second engineering project is tested for compatibility with the second engineering environment.
At step 442, an incompatibility of the generated second engineering project is notified by the processing unit 202 based on a determination that the generated second engineering project is incompatible.
At step 444, a plurality of error log files associated with the generated second engineering project is generated by the processing unit 202, based on the determination that the generated engineering program is incompatible.
At step 446, the generated plurality of error log files is displayed by the processing unit 202 on a display device. A user is enabled to analyze the plurality of error log files and remedy the incompatibility of the generated second engineering project, with the second engineering environment.
At step 448, the second engineering project and the ontology schema associated with the plurality of engineering projects is analyzed by the processing unit 202.
At step 450, one or more logical blocks of the second engineering project is mapped by the processing unit 202 to one or more logical blocks of the plurality of logical blocks, based on the analysis.
At step 452, a plurality of program modules is generated by the processing unit 202 from the second engineering project, based on the mapping. Each of the plurality of program modules corresponds to a specific subroutine in the second engineering project.
At step 454, two or more logical blocks is determined by the processing unit 202 from the set of logical blocks, such that the determined two or more logical blocks correspond to different portions of a common subroutine.
At step 456, a combined logical block is generated by the processing unit 202 by merging the determined two or more logical blocks of the set of logical blocks.
At step 458, the set of logical blocks is mapped by the processing unit 202 to a plurality of subroutines in the second engineering project.
At step 460, the set of logical blocks is grouped by the processing unit 202 into a plurality of groups based on the mapping of the set of logical blocks to the plurality of subroutines, wherein each group of the plurality of groups contains one or more logical blocks, of the set of logical blocks, which are mapped to a specific subroutine of the plurality of subroutines.
The processing unit 202 is configured to analyze the group of engineering projects 502 based on at least one natural language processing algorithm. The processing unit 202 is configured to extract the two or more engineering projects 504a and 504b from the group of engineering projects 502, based on the analysis.
The processing unit 202 is configured to determine a plurality of code statements from the two or more engineering projects 504a and 504b based on an analysis of the two or more engineering projects 504a and 504b. The plurality of code statements comprises assignment statements, program element definition statements, and operation statements.
The processing unit 202 is further configured to determine a dataflow and a control flow between each of the determined plurality of code statements, based on an analysis of the plurality of code statements by the processing unit 202. The data flow indicates a transformation of values of a plurality of data variables in the two or more engineering projects 504a and 504b. The control flow comprises information about a sequence in which the plurality of code statements are executed by the processing unit 202. For example, the control flow comprises information about statements which will be repeatedly executed by the processing unit 202, because of the presence of looped and recursive statements in the plurality of engineering programs.
The processing unit 202 further determines a first set of logical blocks 506a-f and a second set of logical blocks 508a-f from the two or more engineering projects 504a and 504b. The processing unit 202 is further configured to generate the ontology schema for the group of engineering projects 502.
The ontology schema 600 comprises information about relationships between the first set of logical blocks 506a-f and the second set of logical blocks 508a-f, and information about data flow and control flow between each of the first set of logical blocks 506a-f and the second set of logical blocks 508a-f of the group of engineering projects 502. In one example, the ontology schema 600 comprises information about a correspondence between a logical block of a first engineering project (such as 504a), and a logical block of a second engineering project (such as 504b) of the group of engineering projects 502. The ontology schema 600 further comprises information about functions performed by each of the first set of logical blocks 506a-f and the second set of logical blocks 508a-f in the group of engineering projects 502. The ontology schema 600 further comprises information about compatibility of each of the first set of logical blocks 506a-f and the second set of logical blocks 508a-f with each of the plurality of engineering environments. The ontology schema 600 further comprises information associated with interrelationships between the first set of logical blocks 506a-f and the second set of logical blocks 508a-f, the plurality of engineering environments, and one or more key performance indicators each of the group of engineering projects 502.
Embodiments of the present disclosure can take a form of a computer program product comprising program modules accessible from computer-usable or computer-readable medium storing program code for use by or in connection with one or more computers, processors, or instruction execution system. For the purpose of this description, a computer-usable or computer-readable medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation mediums in and of themselves as signal carriers are not included in the definition of physical computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, random access memory (RAM), a read only memory (ROM), a rigid magnetic disk and optical disk such as compact disk read-only memory (CD-ROM), compact disk read/write, and DVD. Both processors and program code for implementing each aspect of the technology can be centralized or distributed (or a combination thereof) as known to those skilled in the conventional art.
Although the present invention has been disclosed in the form of embodiments and variations thereon, it will be understood that numerous additional modifications and variations could be made thereto without departing from the scope of the invention.
For the same of clarity, it is to be understood that the use of “a” or “an” throughout this application does not exclude a plurality, and “comprising” does not exclude other steps or elements.
Number | Date | Country | Kind |
---|---|---|---|
21193585.3 | Aug 2021 | EP | regional |
This application claims priority to PCT Application No. PCT/EP2022/073838, having a filing date of Aug. 26, 2022, based off of EP Application No. 21193585.3, having a filing date of Aug. 27, 2021, the entire contents both of which are hereby incorporated by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2022/073838 | 8/26/2022 | WO |