Background
The PLC is widely used as an important logic controller in the field of industrial control, and each manufacturer produces its own PLC device, and for industrial control programmers, it is necessary to learn different devices of each manufacturer. Although the industry has long made standards for PLC programming languages, manufacturers have sought to differentiate between programming languages in order to maintain advantages in a certain field, thereby increasing the learning cost of programmers invisibly.
Disclosure of Invention
In order to solve the defects of the prior art, the application provides a PLC programming system based on artificial intelligence, which comprises: the system comprises a language analysis module, an I/O function setting module, an application scene module, an artificial intelligence local training library and a code generation module; the language analysis module is used for analyzing sentence contents input by a user and the combination arrangement of the sentence contents; the I/O function setting module is used for a user to adjust and configure point position data of the PLC equipment; the application scene module is used for matching a corresponding programming code frame according to an application scene selected by a user; the artificial intelligence local training library is used for adjusting, organizing and supplementing the service logic of the programming code according to the data of the language analysis module and the application scene module; the code generation module is used for outputting programming codes according to the data of the artificial intelligence body training library; the voice analysis module is respectively in data connection with the application scene module and the artificial intelligence local training library; the I/O function setting module and the application scene module form data connection; and the artificial intelligence local training library is respectively in data connection with the application scene module and the code generation module.
Further, the artificial intelligence based PLC programming system further includes: the cloud AI analysis module is used for realizing cloud computing-based artificial intelligence analysis on the cloud server.
Further, the artificial intelligence based PLC programming system further includes: and the online analysis module is used for enabling the I/O function setting module, the code generation module and the cloud AI artificial intelligence analysis module to form data interaction.
Further, the statements processed by the language analysis module include: and (5) describing a scene.
Further, the sentence processed by the speech analysis module includes: and (5) describing the application.
Further, the sentence processed by the speech analysis module includes: and describing contact points.
Further, the artificial intelligence based PLC programming system further includes: and the input module is used for inputting statement description about scene, application and contact point location information by a user.
Further, the input module and the online analysis module form a data connection so that the statement description input by the user can be input into the online analysis module.
Further, the input module and the I/O function setting module form a data connection so that the statement description input by the user is input to the I/O function setting module.
Further, the input module and the language analysis module form a data connection so that the statement description input by the user can be input to the language analysis module.
The application has the advantages that: an artificial intelligence based PLC programming system is provided, which replaces basic programming by an AI artificial intelligence mode so that a programmer only needs to care about services and technologies without consuming a great deal of energy in programming itself.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1, the artificial intelligence based PLC programming system of the present application includes: the system comprises a language analysis module, an I/O function setting module, an application scene module, an artificial intelligence local training library and a code generation module.
The language analysis module is used for analyzing sentence contents input by a user and the combination arrangement of the sentence contents; the I/O function setting module is used for a user to adjust and configure the point location data of the PLC equipment; the application scene module is used for matching the corresponding programming code frame according to the application scene selected by the user; the artificial intelligence local training library is used for adjusting, organizing and supplementing the service logic of the programming code according to the data of the language analysis module and the application scene module; the code generation module is used for outputting programming codes according to the data of the artificial intelligence body training library; the voice analysis module is respectively in data connection with the application scene module and the artificial intelligence local training library; the I/O function setting module and the application scene module form data connection; and the artificial intelligence local training library is respectively in data connection with the application scene module and the code generation module.
As a specific scheme, the PLC programming system based on artificial intelligence further includes: the cloud AI analysis module is used for realizing cloud computing-based artificial intelligence analysis on the cloud server.
As a specific solution, the artificial intelligence based PLC programming system further includes: and the online analysis module is used for enabling the I/O function setting module, the code generation module and the cloud AI artificial intelligence analysis module to form data interaction.
As a specific solution, the statements processed by the language analysis module include: and (5) describing a scene.
As a specific solution, the sentences processed by the speech analysis module include: and (5) describing the application.
As a specific solution, the sentences processed by the speech analysis module include: and describing contact points.
As a specific solution, the artificial intelligence based PLC programming system further includes: and the input module is used for inputting statement description about scene, application and contact point location information by a user.
As a specific scheme, the input module and the online analysis module form a data connection so that the statement description input by the user can be input into the online analysis module.
In a specific aspect, the input module and the I/O function setting module form a data connection so that the statement description input by the user is input to the I/O function setting module.
As a specific scheme, the input module and the language analysis module form a data connection so that the statement description input by the user is input to the language analysis module.
Specifically, an AI artificial intelligence mode is used for replacing basic programming to bring a zero programming mode, an engineer only needs to care about industrial control business and input business functions, purposes, contact information and the like into the system, the system automatically completes logic codes for the system through a local training library or an online analysis module to generate available codes of projects, and the work efficiency of the engineer is greatly improved, and the basic programming, the scene application and the basic programming are realized through continuously perfect artificial intelligence.
A language analysis module: analyzing the contents input by the engineer, analyzing the combined arrangement, and giving the analyzed data to other modules for use.
An application scene module: the module is responsible for concretization of scenes and matching of a code framework and services.
Artificial intelligence local training library: the module is responsible for the adjustment, organization and supplementation of business logic and finally optimization.
IO function setting module: the module is used for an engineer to adjust the point position of specific field equipment and belongs to the field environment adaptation function.
A code generation module: the module is responsible for coding and project-making the analyzed, organized and optimized data, and is convenient for engineers to read or fine tune.
An online analysis module: the system is mainly responsible for interacting with the cloud platform AI artificial intelligence algorithm, so that the system is never outdated.
Cloud AI artificial intelligence analysis module: the method is mainly used for improving the analysis content to the maximum extent by utilizing analysis means such as cloud computing and big data, and each programming tool can obtain the best data service.
As an extension scheme, an artificial neural network can be constructed in a cloud AI artificial intelligence analysis module or an artificial intelligence local training library. Programming codes of designed PLC programming projects, project scenes, purposes and contact point location information are used as training sets to train the artificial neural network. The programming code is used as output data, and project scene, application and contact point location information are used as input data. After the sentence description is input by a user through the trained artificial neural network, the artificial neural network can output a corresponding coding code and a corresponding confidence coefficient; if the confidence exceeds a preset value, the portion of programming code may be output.
The brain of the industrial control equipment is mainly PLC equipment, the main work of an industrial control project is to be developed around the PLC, and other execution equipment, display equipment and transmission equipment are controlled by the PLC, so that the programming efficiency and the programming quality of the PLC are improved, the urgency of digital display of an engineer is increased, and in order to reduce the entrance threshold and release the programming time of the engineer, the engineer is focused on higher-level business production, and an artificial intelligent PLC programming tool has technical energy and personnel foundation in the current era.
If the engineer is to a project at present, can take a large amount of time to know the business, familiar with equipment, write the program, the field debugging, so repeatedly, because engineer's technical level can't duplicate, the enterprise spends a large amount of costs on personnel's trial and error, the project node is difficult to control, the enterprise probably still can be in the risk of project failure, consequently this instrument alleviates engineer's burden greatly, put effort on equipment debugging, the reliability of project code has been ensured, furthest shields engineer's horizontal problem, project success probability improves greatly, practice thrift more time for enterprise's business, it is indirect more successful under the fierce environment for the enterprise.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.