Programming method of PLC (Programmable Logic Controller) program of process equipment and related equipment

The method of generating and converting it into PLC programs through the visual programming interface solves the problem of frequent adjustment of process equipment configuration, improves production efficiency and safety, and simplifies the operation process.

CN119270770APending Publication Date: 2025-01-07成都苔岑智能设备有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411302393.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

During the product production process, frequent adjustment of process equipment configuration causes operators to spend a lot of time, prone to errors, and affect production efficiency.

Method used

Provide a programming method for PLC programs, which input process steps, conditions and parameters in natural language through a visual programming interface, generate standard operating process files, and convert them into programs that can be run by the PLC controller, directly control process equipment, and reduce labor operate.

Benefits of technology

It reduces the workload and error rate of operators, improves production efficiency, simplifies the writing of standard operating procedures and PLC programs, and improves the ease of writing and maintenance and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119270770A_ABST
    Figure CN119270770A_ABST
Patent Text Reader

Abstract

The invention provides a programming method of a PLC program of process equipment and related equipment, and relates to the field of automation. The programming method of the PLC program of the process equipment comprises the steps that a visual programming interface is provided, an editing bar and a display area are displayed on the visual programming interface, and the editing bar is used for inputting process steps needed by the process equipment for producing a product, process conditions and parameters of each process step and a formula through a natural language; in response to an input operation of a user in the editing bar, generating a standard operation process file based on the process steps, the process conditions and parameters of each process step and a formula, and displaying the standard operation process file in the display area through a natural language according to a preset display format; and converting the standard operation process file into a PLC (Programmable Logic Controller) program which can be operated by a PLC of the process equipment. Through the method, the process formula which can be executed by the PLC can be directly compiled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation, and in particular to a programming method for a PLC program of a process equipment and related equipment. Background Art

[0002] During the production process, different products have different production requirements for processes and formulas. For example, different materials, temperatures, and humidity are used to produce different products. This requires operators to operate various process equipment to meet production requirements.

[0003] At present, operators usually operate each process equipment according to the production requirements of the product and configure corresponding parameters for each process equipment, such as the temperature, humidity, and rotation speed when the equipment processes materials, and the material weight input into the process equipment.

[0004] Switching between production of different products requires operators to adjust the configuration of process equipment. When there are many types of products, the products required to be produced by the same process equipment may need to be switched between a large number of different products. This requires operators to frequently adjust the configuration of process equipment. Operators need to spend more time adjusting the configuration of process equipment, which affects production efficiency and is prone to errors, leading to production failure. Summary of the invention

[0005] In view of this, the present application aims to provide a programming method and related equipment for the PLC (Programmable Logic Controller) program of a process equipment, which can directly compile a process recipe that can be executed by the PLC to control the execution of each process equipment, reduce the workload and operating errors of operators, and improve production efficiency.

[0006] In a first aspect, an embodiment of the present application provides a method for programming a PLC program of a process equipment, comprising: providing a visual programming interface, on which an editing bar and a display area are displayed, the editing bar being used to input, through natural language, the process steps required for the process equipment to produce a product, the process conditions and parameters of each process step, and a recipe; in response to the user's input operation in the editing bar, generating a standard operating procedure file based on the process steps, the process conditions and parameters of each process step, and the recipe, and displaying the standard operating procedure file in a preset display format in the display area through natural language; and converting the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment.

[0007] In the embodiment of the present application, the operator performs input operations on the visual programming interface, and a standard operating procedure file can be generated and converted into a PLC program that can be run by the PLC controller of the process equipment. Through the PLC program, the process equipment can be directly controlled to execute production, and there is no need to manually control the process equipment step by step according to the paper work order or the operating instructions issued on the handheld terminal. This can reduce the workload of the workshop operators, and is not easy to make operating errors, thereby improving production efficiency as a whole. In general, manually writing SOP (Standard Operating Procedure) and PLC programs has high professional requirements for engineers. In the embodiment of the present application, the editing bar of the visual programming interface inputs the process steps required for the process equipment to produce a product, the process conditions and parameters of each process step, and the formula in the form of natural language. The form of natural language can make the writing of standard operating procedure files easier for users to understand, thereby reducing the difficulty of writing SOP and improving writing efficiency. Based on the input process step, the process conditions and parameters of each process step and the formula, the standard operating procedure file can be directly generated, thus, the user only needs to input the conditions, parameters, and formula of the process step required for the production product to realize the writing of SOP, without combing and writing for each SOP, effectively simplifying the writing complexity of SOP, improving the efficiency of SOP writing, and at the same time, displaying SOP in the form of natural language, it is possible to make users more easy to understand SOP, and it is convenient to maintain SOP. Finally, the standard operating procedure file can be directly converted into the PLC program that the PLC controller of the process equipment can run, and the user does not need to carry out logical combing and artificial PLC programming according to SOP, effectively improving the writing efficiency of PLC program. Through the above method, the writing difficulty of SOP and PLC program can be effectively reduced, and the writing efficiency can be improved, and it is also easier to understand and maintain in the subsequent maintenance.

[0008] In one embodiment, the editing bar displays a process step sequence number field, a process step name field, a process condition and parameter field, and an ingredient field, and the fields are configured to perform the input operation in a filling and / or selection manner.

[0009] Compared with the organization of SOP files and the writing of codes, in this embodiment, the user only needs to fill in and select such relatively simple input operations to realize the writing of SOP and PLC programs, which effectively reduces the difficulty of writing existing SOP and PLC programs and improves writing efficiency.

[0010] In one embodiment, a standard operating procedure name field is displayed on the editing bar, and the method further includes: in response to the user's input and confirmation operations in the standard operating procedure name field, an editing interface is displayed, and a process step sequence number field, a process step name field, a process condition and parameter field, and an ingredient field are displayed on the editing interface; wherein the input and confirmation operation is one of the input operations; and the remaining input operations in the input operation are received through the editing interface.

[0011] In the embodiment of the present application, the edit bar is displayed with a standard operating procedure name field, and the standard operating procedure name field is input and confirmed to display the editing interface of the standard operating flow file, so that the user can select the standard operating procedure file of the required operation for editing. The convenient interface displayed is provided with the sequence number field, process step name field, process conditions and parameter field and ingredient field of the corresponding process step, which can give the user effective instructions, so that the user can select the field to modify the corresponding parameters. This method can make it easy for the user to select the standard operating procedure file or some parameters in the file that need to be modified, thereby effectively simplifying the complexity of modifying the SOP.

[0012] In one embodiment, the fields in the editing interface are displayed in the form of graphics and / or forms.

[0013] Graphics and forms can make it easier for users to understand. In the embodiment of the present application, the fields in the editing interface are displayed in the form of graphics and / or forms, which can facilitate users to understand each field, thereby improving the efficiency of inputting parameters, improving the efficiency of writing standard operating procedure files and the programming efficiency of PLCs.

[0014] In one embodiment, the editing bar is also configured with preset user permissions that allow operations on the standard operating procedure file, and the preset user permissions include permissions for the input operation and permissions for change operations on the standard operating procedure file; before receiving the input operation, or after generating the standard operating procedure file and receiving a change operation on the standard operating procedure file, the method also includes: determining whether the permissions of the user who initiated the input operation or the change operation match the preset user permissions; if they match, responding to the input operation or the change operation.

[0015] In the embodiment of the present application, by configuring corresponding permissions for input operations and change operations of the standard operating procedure files, users without corresponding permissions can be prevented from inputting or changing the standard operating procedure files, thereby effectively improving the security of the standard operating procedure files, reducing the possibility of illegal changes, and improving the safety and effectiveness of industrial production.

[0016] In one embodiment, the edit bar is configured with a correspondence between a device identifier and the preset user permissions; determining whether the permissions of the user initiating the input operation or the change operation match the preset user permissions includes: obtaining a target device identifier of a device used by the user initiating the input operation or the change operation; determining a target user permission corresponding to the target device identifier based on the correspondence between the device identifier and the preset user permissions; if the target user permissions include the input operation or the change operation, determining that the permissions of the user initiating the input operation or the change operation match the preset user permissions.

[0017] There may be multiple process equipment used to produce a product. In the embodiment of the present application, the corresponding user permissions are configured according to the equipment identification, so that users can only create and modify standard operating procedure files on some legitimate equipment, thereby reducing the possibility of formula leakage, effectively improving production safety, and reducing the possibility of different process equipment modifying the standard operating procedure files.

[0018] In one embodiment, the editing bar is also used to provide an initial standard operating procedure file; the method also includes: generating a copy file in response to a user's copy operation on the initial standard operating procedure file; generating a new standard operating procedure file in response to a user's input operation and / or change operation on the copy file in the editing bar.

[0019] Some products have similar processes, parameters, and formulas, and may have only a few differences. For the SOPs of such products, a copy function is provided in the embodiment of the present application. The existing initial standard operating procedure file can be directly copied and some parameters can be modified to generate a new standard operating procedure file. This method can effectively reduce the efficiency of writing a large number of similar SOPs.

[0020] In one embodiment, converting the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment includes: obtaining a PLC program template, the PLC program template including multiple PLC program sub-templates, each of the PLC program sub-templates corresponding to one of the process steps, each of the PLC program sub-templates having preset process conditions, parameters and recipes for filling in the corresponding process steps; extracting the process steps, the process conditions, parameters and recipe fields of each process step from the standard operating procedure file; and filling the process conditions, parameters and recipe fields of each process step into the corresponding PLC program sub-templates according to the process steps to obtain a PLC program that can be run by the PLC controller of the process equipment.

[0021] In the embodiment of the present application, by presetting the PLC program template, when converting the standard operation process file and the PLC program, the corresponding parameters can be directly extracted from the standard operation process file and written into the PLC program template. This method does not require the user to sort out the logic of the PLC program, which can reduce the complexity of PLC program programming and effectively improve the efficiency of PLC program programming. In addition, different process equipment has different functions and different control methods, and corresponding PLC program sub-templates are configured respectively to generate PLC programs that can be run by each process equipment. This method can realize PLC program programming of different process equipment without programming separately for each process equipment, which can effectively improve programming efficiency.

[0022] In one embodiment, after generating the standard operating procedure file based on the process steps, the process conditions and parameters of each process step, and the recipe, the method further includes: serializing the standard operating procedure file according to a preset serialization rule and then saving it, the serialization being used to convert the standard operating procedure file into a preset storage format; converting the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment, including: converting the serialized standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment.

[0023] In an embodiment of the present application, serialization is used to convert a standard operating procedure file into a preset storage format. The standard operating procedure file is serialized and then saved. The standard operating procedure file can be converted into a preset storage format to facilitate the transmission of the standard operating procedure file and its use in different devices, thereby improving the versatility of the standard operating procedure file.

[0024] In one embodiment, the preset serialization rules include a first serialization rule, and the first serialization rule is used to convert the standard operating procedure file into a file in XML format; serializing the standard operating procedure file according to the preset serialization rules and then saving it includes: converting the standard operating procedure file into a file in XML format based on the first serialization rule and saving it.

[0025] In the embodiment of the present application, XML is used as a universal data exchange format. Converting the standard operating procedure file into a file in XML format allows the standard operating procedure file to be exchanged between different platforms and programming languages, making the standard operating procedure file easier to convert into a PLC program.

[0026] In one embodiment, the preset serialization rule includes a second serialization rule, and the second serialization rule is used to convert the standard operating procedure file into a byte array file; serializing the standard operating procedure file according to the preset serialization rule and then saving it includes: converting the standard operating procedure file into a byte array file based on the second serialization rule and storing it.

[0027] In an embodiment of the present application, the standard operating procedure file is converted into a byte array file. As a basic data type, the byte array can be transmitted by most communication methods, and can be used by different devices or converted into usable data, thereby effectively improving the versatility of the standard operating procedure file.

[0028] In a second aspect, an embodiment of the present application provides a programming device for a PLC program of a process equipment, comprising: a display module for providing a visual programming interface, the visual programming interface displaying an editing bar and a display area, the editing bar being used to input the process steps required for the process equipment to produce a product, the process conditions and parameters of each process step, and the recipe through natural language; a standard operating procedure file generation module for generating a standard operating procedure file based on the process steps, the process conditions and parameters of each process step, and the recipe in response to the user's input operation in the editing bar, the display module is also used to display the standard operating procedure file in a preset display format in the display area through natural language; a programming module for converting the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment.

[0029] In a third aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method as described in any one of the first aspects.

[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program runs on a computer, the computer executes the method as described in any one of the first aspects.

[0031] In a fifth aspect, an embodiment of the present application provides a server, comprising: a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method as described in any one of the first aspects is implemented.

[0032] In the sixth aspect, an embodiment of the present application also provides a server, comprising: a display, a processor and a communication module; the processor is used to provide a visual programming interface through the display, and the visual programming interface displays an editing bar and a display area, and the editing bar is used to input the process steps required for the process equipment to produce a product, the process conditions and parameters of each process step, and the formula through natural language; the processor is also used to respond to the user's input operation in the editing bar, generate a standard operating procedure file based on the process steps, the process conditions and parameters of each process step, and the formula, and display the standard operating procedure file in a preset display format through natural language in the display area through the display; the communication module is used to transmit the standard operating procedure file to the PLC controller of the process equipment, so that the PLC controller of the process equipment converts the standard operating procedure file into a PLC program that can be run by the PLC controller.

[0033] In one embodiment, the processor provides an initial standard operating procedure file through the editing bar; the processor is also used to display a copy function of the initial standard operating procedure file through the display; the processor generates a copy file in response to a user's copy operation on the initial standard operating procedure file, and generates a new standard operating procedure file in response to a user's input operation and / or change operation on the copy file in the editing bar.

[0034] In the seventh aspect, an embodiment of the present application further provides a PLC control device, comprising a PLC controller and a communication module, wherein the PLC control device is connected to a server and a process device respectively through the communication module; the PLC controller is used to receive a standard operating procedure file provided by the server through the communication module, and convert the standard operating procedure file into a PLC program that can be run by the PLC controller of the process device, so as to send the PLC program to the process device through the communication module to control the execution of the process device; wherein the server provides a visual programming interface, and an editing bar and a display area are displayed on the visual programming interface, and the editing bar is used to input the process steps, process conditions and parameters of each process step, and recipes required for the process device to produce a product through natural language; the server generates a standard operating procedure file based on the process steps, process conditions and parameters of each process step, and recipes in response to the user's input operation in the editing bar; or, the processor is used to receive the PLC program generated by the server based on the programming method of the PLC program of the process device as described in any one of the first aspects through the communication module, and control the execution of the process device. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without paying any creative work.

[0036] Figure 1 A flowchart of a method for programming a PLC program of a process equipment provided in one embodiment of the present application;

[0037] Figure 2 A first schematic diagram of an edit bar provided in an embodiment of the present application;

[0038] Figure 3 A second schematic diagram of an edit bar provided in an embodiment of the present application;

[0039] Figure 4 A third schematic diagram of an edit bar provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of a standard operating procedure file in XML format provided in an embodiment of the present application;

[0041] Figure 6 A second serialization rule schematic diagram is provided for an embodiment of the present application;

[0042] Figure 7 A schematic diagram of a programming device for a PLC program of a process equipment provided in one embodiment of the present application;

[0043] Figure 8 A first structural diagram of a server provided in an embodiment of the present application;

[0044] Fig. 9 A second structural diagram of a server provided in an embodiment of the present application.

[0045] Icon: programming device 200 for PLC program of process equipment; display module 210; standard operation procedure file generation module 220; programming module 230; server 300; processor 310; memory 320; display 330; communication module 340. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] First, an embodiment of the present application provides a programming method for the PLC program of a process equipment. The programming method for the PLC program of the process equipment can be applied to a server or a control device of an industrial system. In some embodiments, different modules for implementing the programming method for the PLC program of the process equipment can be respectively arranged on the server and the control device, which is not limited here.

[0048] The industrial system also includes one or more process equipment, and the control device is connected to the server and each process equipment respectively to control each process equipment to produce products.

[0049] In some embodiments of the present application, the control device may be a control system of a process device, including but not limited to a PLC controller, a memory, and may also include a display screen. Taking the mixing system for producing adhesives as an example, the process equipment of the industrial system includes a discharge platform, a drying device, a cooling device, a metering device, and a mixing device, wherein the mixing device is connected to the server in communication while mixing the material, and the control system of the mixing device may be configured as a control device, which is connected to the discharge platform, the drying device, the cooling device, the metering device, and other process equipment in communication to control the other process equipment. The above is only an example and should not be a limitation to the present application.

[0050] See also Figure 1 , Figure 1 A flowchart of a method for programming a PLC program of a process equipment provided in one embodiment of the present application.

[0051] The programming methods of PLC programs for process equipment include:

[0052] S110, providing a visual programming interface.

[0053] In an embodiment of the present application, an editing bar and a display area are displayed on the visual programming interface, and the editing bar is used to input the process steps, process conditions and parameters of each process step, and recipes required for process equipment to produce a product through natural language.

[0054] In the embodiment of the present application, the natural language can be Chinese, English, etc., and the language of the edit bar can be configured to the language that the user is proficient in. In some embodiments, a language switching option can also be displayed on the visual programming interface to switch the natural language used in the edit bar and the display area in response to the user's selection.

[0055] In this embodiment, the process equipment produces, but is not limited to, finished products and semi-finished products. Taking adhesive production as an example, the product produced may be an adhesive, such as a two-component high-viscosity adhesive, and the semi-finished product produced may be an intermediate product when producing a two-component high-viscosity adhesive from raw materials.

[0056] In this embodiment, the process steps required to be input in the editing bar, the process conditions and parameters of each process step, and the recipe can be pre-configured according to the actual products produced and the equipment configuration and function in the industrial system.

[0057] Take adhesive production as an example. The production of adhesive requires a mixing system, which includes: unloading platform, drying equipment, cooling equipment, metering equipment, and mixing equipment. Accordingly, in the production process, the mixing, drying, cooling, metering, etc. of materials will be involved. Therefore, the editing bar can be used to input the mixing steps and the process conditions and parameters required for the mixer to be configured when performing mixing, such as mixer speed, alarm speed, current detection, etc., as well as the mixer's feed amount for different materials, etc. The feed amount of different materials also constitutes part of the formula. Correspondingly, the editing bar can also input the process conditions and parameters and formulas for the process steps of drying, cooling, metering, etc. For example, for cooling equipment and drying equipment, it includes temperature control and holding time, vacuum control and holding time, etc. For metering steps, it includes material preparation and feeding control, such as selecting the required materials and configuring the target weight, etc.

[0058] In the embodiment of the present application, the user can input the process steps, process conditions and parameters of each process step and formula required for the process equipment to produce a product by inputting natural language. For example, in Chinese and English, compared with the highly professional assembly language, machine language, etc., the user is more proficient in the use of natural language, and the difficulty is lower. The user does not need to be familiar with assembly language, machine language, etc., so that less professional personnel can also program the PLC program of the process equipment. At the same time, it can make the programming process easier to understand, which helps users to identify errors in the writing process.

[0059] In one embodiment of the present application, the edit bar displays a process step serial number field, a process step name field, a process condition and parameter field, and an ingredient field, and the fields are configured to perform input operations in a filling and / or selection manner.

[0060] See also Figure 2 , Figure 2 A first schematic diagram of an edit bar provided in an embodiment of the present application. In an embodiment of the present application, the edit bar may display a process step sequence number field, a process step name field, a process condition and parameter field, and a batching field, and the fields are configured to perform the input operation in a filling and / or selection manner. The filling and selection methods may be used either alone or in combination.

[0061] See also Figure 2Taking the mixing system of adhesive production as an example, in the editing bar, the process step serial number and step name fields can be displayed, and there is an area for typing text behind them, and the user can fill in the serial number and name in natural language in this area.

[0062] In this example, the process steps include stirring, vacuum, temperature, material preparation, feeding, etc. In the edit bar, you can configure corresponding options for each process step so that users can select one or more of them according to the actual production needs of the product. Different industrial systems may include different types and quantities of industrial equipment, and the number and types of process steps available for selection may also be different. Figure 2 This is only an example and should not be construed as limiting the present application.

[0063] Furthermore, after selecting the process step, the edit bar will also display the specific configurable content of each step. Figure 2 For example, when selecting temperature control, you can further configure the temperature control method. For example, in the cooling equipment, you can choose to jump to a lower temperature, as well as control the material target temperature or other control items. Other control items can still be entered by filling in or selecting the parameters, conditions or recipes of the process steps.

[0064] In one embodiment of the present application, a standard operating procedure name field is displayed on the editing bar, and an editing interface can be displayed in response to the user's input and confirmation operations in the standard operating procedure name field, wherein the editing interface displays a process step sequence number field, a process step name field, a process condition and parameter field, and an ingredient field; wherein the input and confirmation operation is one of the input operations.

[0065] See also Figure 3 , Figure 3 A second schematic diagram of an editing bar provided in an embodiment of the present application. In the editing bar, a standard operating procedure name field may also be displayed. Each standard operating procedure name field corresponds to a standard operating procedure file that has been created. The user may select any standard operating procedure file to operate according to the standard operating procedure segment name field. After the user selects the standard operating procedure name field, the editing bar may enter the following Figure 3 The editing interface shown. Figure 3 The editing interface shown is the parameter configuration interface of the mixer (or mixing equipment), which can configure the specific content of the mixing steps, such as temperature, speed, pressure and other conditions and their corresponding specific parameter values, as well as the ingredient fields including preparation configuration and feeding configuration. Different preparation and feeding can be specifically configured, such as configuring the type of material, the weight of the material, etc.

[0066] The standard operating procedure name field is displayed through the edit bar, and the editing interface can be entered by operating the standard operating procedure name field. This method allows users to easily select the standard operating procedure file or some parameters in the file that need to be modified, thereby effectively simplifying the complexity of modifying the SOP.

[0067] In one embodiment of the present application, each field in the edit bar and the edit interface may be displayed in the form of graphics and / or forms.

[0068] like Figure 2 and Figure 3 As shown, the content of the editing bar and the editing interface is divided into multiple rows in the form of process steps, each row corresponds to the content of a step, and different content is displayed for each column.

[0069] Through the form, it is easier for users to understand each process step and its parameters, conditions and recipes. Similarly, each field can also be displayed using a graphic, and the graphic can be a preset pattern. For example, a recipe can be represented using a fan chart. The graphic can also be configured as a specific photo. For example, for the process steps performed by a stirring device, a photo of the stirring device can be used to display the field of the stirring step. The use of graphics can also facilitate users to quickly understand each process step and its parameters, conditions and recipes. The above is only an example and should not be a limitation to the present application.

[0070] Through forms or graphics, effective instructions can be given to users, which can help users quickly obtain the required information and check whether the conditions, parameters and recipes of the process steps are correct. This will help improve the accuracy of product production, improve the efficiency of inputting parameters, and improve the efficiency of writing standard operating procedure documents and PLC programming.

[0071] In an embodiment of the present application, the editing bar is also used to provide an initial standard operating procedure file; the editing bar can also provide a copy function for the initial standard operating procedure file to generate a copy file in response to the user's copy operation on the initial standard operating procedure file; and generate a new standard operating procedure file in response to the user's input operation and / or change operation on the copy file in the editing bar.

[0072] In this embodiment, the initial standard operating procedure file is not limited to a pre-provided standard operating procedure file template file, but may also be a pre-generated standard operating procedure file.

[0073] The user can copy the initial standard operating procedure file to obtain a copy file that is identical to the initial standard operating procedure file. Then, the user can input and / or change the copy file in the edit bar, for example, configure conditions or parameters that are not configured in the original initial standard operating procedure file, change the proportion of each material in the formula, etc., so that a new standard operating procedure file is generated after the user completes the editing.

[0074] The production of different products may only have different parameters and proportions of some materials, and the equipment, process steps, etc. used have many similarities. When there are many types of products, if corresponding SOPs and PLC programs are written for each product, it may take a lot of time. In an embodiment of the present application, a copy function is provided and an initial standard operating procedure file is provided. When there are many types of products, by copying the initial standard operating procedure file and making partial modifications, the corresponding SOP and PLC programs can be obtained, and the SOP writing and PLC program programming of different types of products can be quickly realized, thereby improving the efficiency of obtaining SOPs and PLC programs.

[0075] In one embodiment of the present application, the edit bar is also configured with preset user permissions that allow operations on the standard operating procedure file, so as to restrict different users from operating the standard operating procedure file through user permissions.

[0076] In this embodiment, the preset user permissions include but are not limited to the permission to input operations and the permission to change standard operating procedure files, the permission to view or download standard operating procedure files, the permission to distribute standard operating procedure files, etc.

[0077] The permission of input operation can limit whether the user can add the permission of standard operation procedure file through the editing bar. This permission can enable process engineers with corresponding professional capabilities to write standard operation procedure files and reduce production errors.

[0078] The permission to change operations is used to restrict users from modifying and changing standard operating procedure documents, mainly for operators of each process equipment, so that each process equipment can produce safely and correctly according to the standard operating procedure documents.

[0079] The permission to view or download standard operating procedure files can restrict users from viewing and downloading standard operating procedure files. The permission to distribute standard operating procedure files is used to restrict each device from forwarding standard operating procedure files to other devices. Such permissions can improve the security of standard operating procedure files and reduce the leakage of formulas.

[0080] During actual configuration, other permissions can be configured as needed, or the permissions can be further refined. The above are only examples and should not be a limitation to this application.

[0081] In one embodiment of the present application, the preset user rights can be configured in the edit bar itself, that is, the use of the edit bar by the user rights is restricted to restrict the user from editing and generating the standard operating procedure file through the edit bar. In another embodiment of the present application, the preset user rights can be configured in the generated standard operating procedure file to restrict the user from operating the standard operating procedure file.

[0082] In another embodiment of the present application, the user can log in to the visual programming interface by means of an account and password, and the server side is pre-configured with user permissions corresponding to each account. For example, the engineer account corresponds to the engineer permissions, the production manager account corresponds to the production manager permissions, and the operator account corresponds to the operator permissions. Different accounts have different permissions to limit the operations of different personnel on standard operating procedure files.

[0083] When producing a product, multiple process equipment is usually used. For example, the manufacture of adhesives involves stirring equipment, cooling equipment, drying equipment, etc. At the same time, there may be multiple production lines in the same workshop, and each production line includes multiple equipment. In actual production, if the operator manually controls each process equipment according to paper work orders, the conditions or parameters configured for the same type of equipment may be confused, causing production abnormalities.

[0084] Therefore, in an embodiment of the present application, the correspondence between the device identification and the preset user authority can be configured in the edit bar.

[0085] In this embodiment, the device identification includes but is not limited to the IP address of the device, the number of each process equipment in the workshop, etc. The preset user permissions may include the download permission and change permission of different process equipment for the standard operation procedure file. After the standard operation procedure file is generated, the standard operation procedure file is only allowed to be downloaded to the corresponding process equipment for execution or modification, thereby improving the safety and reliability of production.

[0086] S120, in response to the user's input operation in the editing bar, a standard operating procedure file is generated based on the process steps, the process conditions and parameters of each process step, and the recipe, and the standard operating procedure file is displayed in the display area according to a preset display format through natural language.

[0087] In some embodiments of the present application, a conversion relationship between a standard operating procedure file and the process steps, process conditions and parameters of each process step, and recipes required to be input in the editing bar can be pre-configured. After the user inputs the process steps, process conditions and parameters of each process step, and recipes through the editing bar, the process steps, process conditions and parameters of each process step, and recipes can be converted into the corresponding standard operating procedure file according to the conversion relationship.

[0088] In this embodiment, a template for a standard operating procedure file can be pre-set, and the conversion relationship includes the process conditions and parameters of each process step and the corresponding positions of the recipe in the template. In response to the user's input operation in the editing bar, the process conditions and parameters and recipe of each process step in each field of the input editing bar can be extracted, and the process conditions and parameters and recipe of each process step are written into the corresponding positions in the template, thereby generating a standard operating procedure file.

[0089] like Figure 4 As shown, the name of the edited standard operating procedure file is displayed on the left. Select any standard operating procedure file, and the display area on the right can display the specific content of the standard operating procedure file, including the process step sequence number field, process step name field, process condition and parameter field and ingredient field, for example, the order of each process step, the conditions and parameters of each process step, such as temperature, speed, time, etc., as well as material information such as preparation and feeding related to the recipe.

[0090] The language used by the display area to display the standard operating procedure document is natural language, which is convenient for users to understand and consult. In addition, in the embodiment of the present application, the display area also displays the standard operating procedure document in a preset display format, which is further convenient for users to understand and consult.

[0091] The preset display format includes but is not limited to text, table, etc. For example, if the preset display format is text, each condition and parameter of each process step can be listed in a row for easy viewing. If the preset display format is a table, different process steps can be displayed in each row of the table, and different conditions, parameters and formulas can be displayed in each column.

[0092] In addition, if Figure 4 As shown in the upper right corner, in the editing interface, the user can receive other input operations, for example, adjust the order of each process step, such as moving up or down, and can also add, delete, and insert each process step and the corresponding content. For another example, the user can also edit any process step and enter Figure 2 and Figure 3 The interface shown is used to modify the parameters, conditions and recipes of the process step.

[0093] In an embodiment of the present application, if the editing bar is pre-configured with preset user permissions for operating the standard operating procedure file, then before receiving the input operation, or after generating the standard operating procedure file and receiving a change operation on the standard operating procedure file, it is also possible to determine whether the permissions of the user initiating the input operation or the change operation match the preset user permissions; if they match, respond to the input operation or change operation, otherwise, do not respond to the input operation or change operation if the permissions do not match.

[0094] As mentioned above, whether the user has the permission to input or change the standard operation process file can be determined by the permission corresponding to the account logged in by the user. If the account has the permission to input or change the standard operation process file, it is determined that the permission of the user who initiated the input operation or change operation matches the preset user permission. On the contrary, if the account does not have the corresponding permission, it is determined that the permission does not match.

[0095] In one embodiment of the present application, if the edit bar is configured with a correspondence between a device identification and preset user permissions, determining whether the permissions of the user initiating the input operation or the change operation match the preset user permissions may include: obtaining the target device identification of the device used by the user initiating the input operation or the change operation; determining the target user permissions corresponding to the target device identification based on the correspondence between the device identification and the preset user permissions; if the target user permissions include input operations or change operations, determining that the permissions of the user initiating the input operation or the change operation match the preset user permissions.

[0096] In this embodiment, corresponding permissions can be configured for different devices or users of the devices through device identifiers to limit operations on standard operating procedure files by different personnel, thereby improving the security of standard operating procedure files and improving production safety.

[0097] In other embodiments, the permission to operate the standard operation procedure file can also be configured in the standard operation procedure file. When the process equipment or control equipment requests to download the standard operation procedure file from the server, it can be determined whether the device identification of the process equipment or control equipment matches the device identification with the permission to download in the standard operation procedure file. If it matches, it is determined to allow the download. Similarly, when performing input operations, change operations, view operations or distribution operations, it can be determined whether the device identification of the device performing the operation matches the device identification of the device allowed to be executed in the standard operation procedure file. If it matches, the corresponding operation is allowed to be executed.

[0098] In addition to input operations and change operations, download permissions, viewing permissions and distribution permissions can also be set. When users download, view and distribute standard operating procedure files, it can also be determined whether the users have the corresponding permissions. If they have the corresponding permissions, the users are allowed to download, view or distribute the standard operating procedure files.

[0099] In an embodiment of the present application, the corresponding standard operating procedure file can be generated by inputting the process steps, the process conditions and parameters of each process step, and the recipe through natural language, without the need to manually sort out the relationship between the process steps, process equipment, process conditions and parameters, and recipes, thereby effectively reducing the complexity of writing the standard operating procedure file and improving the efficiency of writing the standard operating procedure file.

[0100] S130, converting the standard operation process file into a PLC program that can be run by the PLC controller of the process equipment.

[0101] In the embodiment of the present application, each process equipment is usually executed by PLC program control. Therefore, after obtaining the standard operation process file, the standard operation process file can be converted into a PLC program that can be run by the PLC controller of the process equipment to control each process equipment to execute production.

[0102] In an embodiment of the present application, an operator can generate a standard operating procedure file by inputting operations on a visual programming interface and convert it into a PLC program that can be run by the PLC controller of the process equipment. Through the PLC program, the process equipment can be directly controlled to execute production, and there is no need for manual operation of the equipment according to paper work orders or work orders issued to handheld terminals.

[0103] In the embodiment of the present application, the above S110 to S130 may all be executed by the server, or S110 to S120 may be executed by the server and S130 may be executed by the control device, which is not limited here.

[0104] In an embodiment of the present application, a conversion relationship between a standard operating procedure file and a PLC program may be pre-configured so that after the standard operating procedure file is obtained, the standard operating procedure file may be converted into a corresponding PLC program through the conversion relationship.

[0105] For example, in one embodiment of the present application, converting the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment may include: obtaining a PLC program template, extracting the process steps, the process conditions and parameters of each process step, and the fields of the recipe from the standard operating procedure file; filling the process conditions and parameters of each process step and the fields of the recipe into their respective corresponding PLC program sub-templates according to the process steps, to obtain a PLC program that can be run by the PLC controller of the process equipment.

[0106] Different process equipment requires different PLC programs. Therefore, in an embodiment of the present application, PLC program sub-templates corresponding to the process equipment that executes different process steps can be constructed separately to generate PLC programs corresponding to different process equipment.

[0107] In this embodiment, each of the PLC program sub-templates is preset with process conditions, parameters and recipes for filling in the corresponding process steps, that is, each logical language of the PLC program sub-template is pre-set, and the positions of each process condition, parameter and recipe are left blank, which are used to fill in the conditions, parameters and recipes corresponding to the standard operating procedure file. Accordingly, the standard operating procedure file is saved in a preset format, such as being displayed and saved in the aforementioned preset display format, and then the conditions, parameters and recipes in the standard operating procedure file can be extracted based on the preset format.

[0108] The conversion relationship between the standard operating procedure file and the PLC program can be a correspondence between the conditions, parameters and recipes in the standard operating procedure file and their positions in the PLC program sub-template. After extracting the conditions, parameters and recipes in the standard operating procedure file, the conditions, parameters and recipes can be filled into the corresponding positions in the PLC program sub-template respectively, thereby obtaining a PLC program that can be run by the PLC controller of the process equipment.

[0109] Through the above method, the standard operation process file can be converted into a PLC program that can be run by the PLC controller of the process equipment, thereby eliminating the need for manual PLC programming and effectively improving the efficiency of PLC programming.

[0110] In an embodiment of the present application, after S120, the standard operating procedure file may be serialized and then saved according to a preset serialization rule, and the serialization is used to convert the standard operating procedure file into a preset storage format.

[0111] In this embodiment, the standard operating procedure file in natural language form is convenient for users to consult and understand. However, for machine equipment, it may not be able to accurately understand the meaning of natural speech, which is not conducive to data transmission and storage. Therefore, in the embodiment of the present application, the standard operating procedure file can be serialized according to the preset serialization rules to convert the standard operating procedure file into a preset storage format and then save it, so as to facilitate the transmission of the standard operating procedure file and its use in different devices, thereby improving the versatility of the standard operating procedure file.

[0112] In one embodiment of the present application, the preset serialization rule includes a first serialization rule, and the first serialization rule is used to convert the standard operating procedure file into a file in XML format.

[0113] See also Figure 5 , Figure 5 This is a schematic diagram of a standard operating procedure file in XML format provided by an embodiment of the present application. Figure 5 As shown, in the XML format standard operating procedure file, each step and the specific parameter value of each step can be arranged in different rows.

[0114] In the embodiments of the present application, XML is used as a universal data exchange format. Converting the standard operating procedure file into an XML formatted file allows the standard operating procedure file to be exchanged between different platforms and programming languages, making the standard operating procedure file easier to convert into a PLC program or be used by different devices, thereby effectively improving the versatility of the standard operating procedure file.

[0115] In one embodiment of the present application, the preset serialization rules include a second serialization rule, and the second serialization rule is used to convert the standard operating procedure file into a byte array file. Accordingly, the standard operating procedure file is serialized and saved according to the preset serialization rule, including: converting the standard operating procedure file into a byte array file based on the second serialization rule and storing it.

[0116] See also Figure 6 , Figure 6 This is a schematic diagram of a second serialization rule provided in an embodiment of the present application. Figure 6 As shown, in this embodiment, each parameter of the standard operation process file can be defined and stored in different buffers. After the data is converted into a byte array, it is stored in the buffer corresponding to the data. For example, taking the target temperature Target Tem as an example, its original data type is Real, and the buffer from the 2nd to the 5th bit is used to store the target temperature. In addition, part of the buffer area can be reserved for the storage of more parameters.

[0117] Convert the standard operating procedure file into a byte array file. As a basic data type, the byte array can be transmitted by most communication methods and can be used or converted into usable data by different devices. Therefore, converting the standard operating procedure file into a byte array file and storing it effectively improves the versatility of the standard operating procedure file and makes it easier to convert the standard operating procedure file into a PLC program.

[0118] In addition, by converting the standard operating procedure file into a byte array file, different types of data can be transmitted. For example, data of data types such as bool, int, float can be converted into byte arrays, and text, image information and other complex data types can be converted into byte arrays, so that different types of data can be transmitted in the same transmission method and used by various process equipment, thereby improving the versatility of the standard operating procedure file.

[0119] In one embodiment of the present application, the standard operating procedure file may be converted into XML format based on the first serialization rule, and then converted into a byte array file based on the second serialization rule and saved.

[0120] In some embodiments of the present application, the process equipment and / or control equipment may also be configured with a deserialization rule that is opposite to the preset serialization rule, so that when a serialized file is received, the received file can be deserialized to obtain a standard operating procedure file.

[0121] The programming method of the PLC program of the process equipment provided in this application can be applied not only in actual workshops, but also in laboratories. When applied to laboratory scenarios, engineers can use natural language to write SOPs and program PLC programs, which can effectively improve the efficiency of SOP writing and PLC program programming, without the need for engineers to manually write SOPs, and without the need to manually sort out the relationship between different equipment and write corresponding PLC programs, thereby reducing workload.

[0122] At the same time, the differences between different products may be only slight differences. Through the programming method of the PLC program of the process equipment provided in this application, the SOP and PLC program can be quickly obtained, the SOP can be quickly verified, and the R&D efficiency can be improved.

[0123] Based on the same inventive concept, the present application also provides a programming device for a PLC program of a process equipment, see Figure 7 , Figure 7A schematic diagram of a programming device for a PLC program of a process equipment provided in an embodiment of the present application. The programming device for a PLC program of a process equipment comprises: a display module 210 , a standard operation procedure file generation module 220 and a programming module 230 .

[0124] The display module 210 is used to provide a visual programming interface, which displays an editing bar and a display area. The editing bar is used to input the process steps, process conditions and parameters of each process step and recipe required for the process equipment to produce a product through natural language.

[0125] The standard operating procedure file generation module 220 is used to generate a standard operating procedure file based on the process steps, the process conditions and parameters of each process step, and the recipe in response to the user's input operation in the editing bar. The display module 210 is also used to display the standard operating procedure file in a preset display format in the display area through natural language.

[0126] The programming module 230 is used to convert the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment.

[0127] In one embodiment of the present application, the display module 210, the standard operation procedure file generation module 220 and the programming module 230 may be configured in a server. In other embodiments, the display module 210 and the standard operation procedure file generation module 220 may be configured in a server, and the programming module 230 may be configured in a control device.

[0128] In one embodiment, in the visual programming interface provided by the display module 210, the editing bar displays the process step serial number field, process step name field, process conditions and parameter field, and ingredient field, and the fields are configured to perform input operations in a filling and / or selection manner.

[0129] In one embodiment, in the visual programming interface provided by the display module 210, a standard operating procedure name field is displayed on the editing bar, and the display module is also used to respond to the user's input and confirmation operations in the standard operating procedure name field, and display an editing interface, and the editing interface displays the process step sequence number field, process step name field, process conditions and parameter fields, and ingredient fields; wherein the input and confirmation operation is one of the input operations; and the remaining input operations in the input operation are received through the editing interface.

[0130] In one embodiment, the fields in the editing interface of the display module 210 are displayed in the form of graphics and / or forms.

[0131] In one embodiment, in the visual programming interface provided by the display module 210, the edit bar is also configured with preset user permissions that allow operations on the standard operation process file, and the preset user permissions include permissions for input operations and permissions for change operations on the standard operation process file. The standard operation process file generation module is also used to determine whether the permissions of the user who initiated the input operation or the change operation match the preset user permissions; if they match, respond to the input operation or the change operation.

[0132] In one embodiment, in the visual programming interface provided by the display module 210, the editing bar is configured with a correspondence between a device identifier and the preset user permissions, and the standard operating procedure file generation module is also used to obtain a target device identifier of a device used by a user who initiates the input operation or the change operation; based on the correspondence between the device identifier and the preset user permissions, the target user permissions corresponding to the target device identifier are determined; if the target user permissions include the input operation or the change operation, it is determined that the permissions of the user who initiates the input operation or the change operation match the preset user permissions.

[0133] In one embodiment, the standard operating procedure file generation module 220 is also used to generate a copy file in response to a user's copy operation on an initial standard operating procedure file; and to generate a new standard operating procedure file in response to a user's input operation and / or change operation on the copy file in the editing bar.

[0134] In one embodiment, the programming module 230 is used to obtain a PLC program template, which includes multiple PLC program sub-templates, each PLC program sub-template corresponds to one of the process steps, and each PLC program sub-template is preset with process conditions, parameters and recipes for filling in the corresponding process steps; extract the process steps, the process conditions and parameters of each process step, and the recipe fields from the standard operating procedure file; fill the process conditions and parameters of each process step and the recipe fields into the corresponding PLC program sub-templates according to the process steps, so as to obtain a PLC program that can be run by the PLC controller of the process equipment.

[0135] In one embodiment, the standard operation procedure file generation module 220 is further used to serialize the standard operation procedure file according to a preset serialization rule and then save it, and serialization represents combining multiple data of the same type. The programming module 230 is also used to convert the serialized standard operation procedure file into a PLC program that can be run by the PLC controller of the process equipment.

[0136] In one embodiment, the standard operating procedure file generation module 220 includes a first serialization rule, which is used to convert the standard operating procedure file into a file in XML format. The standard operating procedure file generation module 220 can specifically be used to convert the standard operating procedure file into a file in XML format based on the first serialization rule and save it.

[0137] In one embodiment, the standard operating procedure file generation module 220 includes a second serialization rule, which is used to convert the standard operating procedure file into a byte array file. The standard operating procedure file generation module 220 can specifically be used to convert the standard operating procedure file into a byte array file based on the second serialization rule and store it.

[0138] Based on the same inventive concept, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method as described in any one of the first aspects.

[0139] In the embodiments of the present application, the computer program product may be a computer, a server, an industrial control host, a smart phone, a single-chip microcomputer, etc., without limitation herein.

[0140] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the programming method of the PLC program of the process equipment provided in the above embodiment is executed.

[0141] The storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as an SSD (Solid State Disk)).

[0142] In the embodiments provided in the present application, it should be understood that the disclosed methods and devices can also be implemented in other ways. The device embodiments described above are merely illustrative. The functional modules in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.

[0143] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0144] Based on the same inventive concept, the embodiment of the present application further provides a server 300, which can be used as the execution subject of the programming method of the PLC program of the aforementioned process equipment, please refer to Figure 8 , Figure 8 This is a first structural diagram of a server provided in an embodiment of the present application, where the server 300 includes: a processor 310 and a memory 320 that is communicatively connected to the processor 310.

[0145] In an embodiment of the present application, the memory 320 may store computer-readable instructions that can be executed by the processor 310, and the computer-readable instructions are executed by the processor 310 to enable the processor 310 to execute the programming method of the PLC program of the process equipment in the aforementioned embodiment.

[0146] The processor 310 and the memory 320 may be connected via a communication bus.

[0147] The processor 310 may be an integrated circuit chip with signal processing capabilities. The processor 310 may be a general-purpose processor, including a CPU, a NP (Network Processor), etc.; it may also be a digital signal processor, an application-specific integrated circuit, a readily available programmable gate array, or other programmable logic devices or transistor logic devices, or discrete hardware components. It may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0148] The memory 320 may include, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.

[0149] It is understandable that the server 300 may also include more common modules required by itself, which are not introduced one by one in the embodiments of the present application.

[0150] In another embodiment of the present application, the server is used to compile a standard operating procedure file, and the PLC controller of the process equipment converts the standard operating procedure file into a PLC program that can be run by the PLC controller.

[0151] See also Fig. 9 , Fig. 9 A second schematic diagram of a server provided in an embodiment of the present application. In this embodiment, the server 300 may include: a display 330, a processor 310 and a communication module 340. In the embodiment of the present application, the server is used to be set in an industrial system and communicate with process equipment in the industrial system through the communication module.

[0152] In an embodiment of the present application, the processor 310 is used to provide a visual programming interface through the display 330, and the visual programming interface displays an editing bar and a display area. The editing bar is used to input the process steps required for process equipment to produce a product, the process conditions and parameters of each process step, and the recipe through natural language.

[0153] In addition, the processor 310 is also used to generate a standard operating procedure file based on the process steps, process conditions and parameters of each process step, and the recipe in response to the user's input operation in the editing bar, and display the standard operating procedure file in a preset display format in the display area through natural language on the display.

[0154] In an embodiment of the present application, the PLC controller of the process equipment is configured to convert the standard operating procedure file into a PLC program that can be run by the PLC controller, and the communication module 340 of the server 300 can be used to transmit the standard operating procedure file to the PLC controller of the process equipment, so that the PLC controller of the process equipment converts the standard operating procedure file into a PLC program that can be run by the PLC controller.

[0155] In this embodiment, the processor 310 provides an initial standard operating procedure file through the editing bar; the processor 310 can display the copy function of the initial standard operating procedure file through the display; the processor generates a copy file in response to the user's copy operation on the initial standard operating procedure file, and generates a new standard operating procedure file in response to the user's input operation and / or change operation on the copy file in the editing bar.

[0156] In this embodiment, the processor 310 can serialize the standard operating procedure file according to the preset serialization rule and save it, and the serialization is used to convert the standard operating procedure file into a preset storage format. The preset serialization rule includes a first serialization rule and / or a second serialization rule, the first serialization rule is used to convert the standard operating procedure file into a file in XML format, and the second serialization rule is used to convert the standard operating procedure file into a file in a byte array.

[0157] Other functions implemented by the processor 310 of the server can refer to the functions of S110 and S120 in the programming method of the PLC program of the aforementioned process equipment, which will not be elaborated here.

[0158] Based on the same inventive concept, the programming method of the PLC program of the process equipment can be executed by different devices respectively. In one embodiment of the present application, S130 in the programming method of the PLC program of the aforementioned process equipment can be executed by the PLC control device, and S110 to S120 can be executed by the server 300.

[0159] Accordingly, an embodiment of the present application may also provide a PLC control device, which includes at least a PLC controller and a communication module, and the PLC control device is connected to the server and the process equipment respectively through the communication module.

[0160] In this embodiment, the PLC controller is used to receive the standard operation procedure file provided by the server through the communication module, and convert the standard operation procedure file into a PLC program that can be run by the PLC controller of the process equipment, and send the PLC program to the process equipment through the communication module to control the execution of the process equipment. In this embodiment, the server can generate the standard operation procedure file through S110 to S120 in the programming method of the PLC program of the aforementioned process equipment, and send it to the PLC control device for conversion of the PLC program.

[0161] In another embodiment of the present application, the server may generate a PLC program based on the aforementioned PLC program programming method, and the PLC control device may be configured to receive the PLC program generated by the server through the communication module and control the process equipment to execute the received PLC program.

[0162] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0163] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for programming a PLC program of a process equipment, characterized in that: include: A visual programming interface is provided, wherein an editing bar and a display area are displayed on the visual programming interface, wherein the editing bar is used to input the process steps, process conditions and parameters of each process step and a formula required for a process device to produce a product through natural language; In response to the user's input operation in the editing bar, a standard operating procedure file is generated based on the process steps, the process conditions and parameters of each process step, and the recipe, and the standard operating procedure file is displayed in the display area in a preset display format through natural language; The standard operating procedure file is converted into a PLC program that can be run by the PLC controller of the process equipment.

2. The method for programming a PLC program of a process equipment according to claim 1, characterized in that: The editing bar displays a process step sequence number field, a process step name field, a process condition and parameter field, and a material field, and the fields are configured to perform the input operation in a filling and / or selection manner.

3. The method for programming a PLC program of a process equipment according to claim 1, characterized in that: The editing bar displays a standard operating procedure name field, and the method further includes: In response to the user's input and confirmation operations in the standard operation procedure name field, an editing interface is displayed, on which a process step sequence number field, a process step name field, a process condition and parameter field, and a batching field are displayed; wherein the input and confirmation operation is one of the input operations; Remaining input operations in the input operations are received through the editing interface.

4. The method for programming a PLC program of a process equipment according to claim 3, characterized in that: The fields in the editing interface are displayed in the form of graphics and / or forms.

5. The method for programming a PLC program of a process equipment according to claim 1, characterized in that: The editing bar is also configured with preset user permissions that allow operations on the standard operating procedure file, and the preset user permissions include permissions for input operations and permissions for change operations on the standard operating procedure file; Before receiving the input operation, or after generating the standard operating procedure file and receiving a change operation on the standard operating procedure file, the method further includes: Determining whether the authority of the user who initiated the input operation or the change operation matches the preset user authority; If there is a match, the input operation or the change operation is responded to.

6. The method for programming a PLC program of a process equipment according to claim 5, characterized in that: The editing bar is configured with a correspondence between the device identification and the preset user authority; The determining whether the authority of the user who initiates the input operation or the change operation matches the preset user authority includes: Obtaining a target device identifier of a device used by a user who initiates the input operation or change operation; Determining the target user authority corresponding to the target device identifier based on the correspondence between the device identifier and the preset user authority; If the target user rights include the input operation or the change operation, it is determined that the rights of the user initiating the input operation or the change operation match the preset user rights.

7. The method for programming a PLC program of a process equipment according to claim 1, characterized in that: The editing bar is also used to provide an initial standard operating procedure document; the method also includes: In response to a user's copying operation on the initial standard operating procedure file, generating a copy file; In response to the user's input operation and / or change operation on the copied file in the editing field, a new standard operating procedure file is generated.

8. The method for programming a PLC program of a process equipment according to claim 1, characterized in that: The converting of the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment comprises: Obtain a PLC program template, wherein the PLC program template includes a plurality of PLC program sub-templates, each of the PLC program sub-templates corresponds to one of the process steps, and each of the PLC program sub-templates is preset with process conditions, parameters and recipes for filling in the corresponding process step; Extracting the process steps, process conditions and parameters of each process step, and fields of the recipe from the standard operating procedure document; According to the process steps, the process conditions and parameters of each process step and the fields of the recipe are respectively filled into the corresponding PLC program sub-templates to obtain a PLC program that can be run by the PLC controller of the process equipment.

9. The method for programming a PLC program of a process equipment according to any one of claims 1 to 8, characterized in that: After generating a standard operating procedure file based on the process steps, the process conditions and parameters of each process step, and the recipe, the method further includes: The standard operating procedure file is serialized and saved according to a preset serialization rule, wherein the serialization is used to convert the standard operating procedure file into a preset storage format; The converting of the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment comprises: The serialized standard operating procedure file is converted into a PLC program that can be run by the PLC controller of the process equipment.

10. The method for programming a PLC program of a process equipment according to claim 9, characterized in that: The preset serialization rule includes a first serialization rule, and the first serialization rule is used to convert the standard operating procedure file into a file in XML format; The serializing and then saving the standard operating procedure file according to a preset serialization rule includes: converting the standard operating procedure file into a file in XML format based on the first serialization rule and saving the file.

11. The method for programming a PLC program of a process equipment according to claim 9, characterized in that: The preset serialization rule includes a second serialization rule, and the second serialization rule is used to convert the standard operating procedure file into a file of a byte array; The serializing and then saving the standard operating procedure file according to a preset serialization rule includes: converting the standard operating procedure file into a byte array file based on the second serialization rule and storing the file.

12. A programming device for a PLC program of a process equipment, characterized in that: include: A display module is used to provide a visual programming interface, wherein the visual programming interface displays an editing bar and a display area, wherein the editing bar is used to input the process steps, process conditions and parameters of each process step, and a formula required for a process device to produce a product through natural language; A standard operation procedure file generation module, for generating a standard operation procedure file based on the process steps, the process conditions and parameters of each process step and the recipe in response to the user's input operation in the editing bar, and the display module is further used to display the standard operation procedure file in the display area according to a preset display format through natural language; A programming module is used to convert the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment.

13. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 11.

15. A server, characterized in that: include: A processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 11 is implemented.

16. A server, characterized in that: include: Display, processor and communication modules; The processor is used to provide a visual programming interface through the display, wherein the visual programming interface displays an editing bar and a display area, and the editing bar is used to input the process steps, process conditions and parameters of each process step, and recipes required for a process device to produce a product through natural language; The processor is further configured to generate a standard operating procedure file based on the process steps, process conditions and parameters of each process step, and a recipe in response to an input operation of a user in the editing bar, and display the standard operating procedure file in a preset display format in the display area through the display by natural language; The communication module is used to transmit the standard operating procedure file to the PLC controller of the process equipment, so that the PLC controller of the process equipment converts the standard operating procedure file into a PLC program that can be run by the PLC controller.

17. The server according to claim 16, characterized in that The processor provides an initial standard operating procedure document through the editing bar; The processor is further configured to display a copy function of the initial standard operating procedure file through the display; The processor generates a copy file in response to a user's copy operation on the initial standard operating procedure file, and generates a new standard operating procedure file in response to a user's input operation and / or change operation on the copy file in the editing field.

18. A PLC control device, characterized in that: The PLC control device comprises a PLC controller and a communication module, and the PLC control device is connected to the server and the process equipment respectively through the communication module; The PLC controller is used to receive the standard operating procedure file provided by the server through the communication module, and convert the standard operating procedure file into a PLC program that can be run by the PLC controller of the process equipment, and send the PLC program to the process equipment through the communication module to control the execution of the process equipment; wherein the server provides a visual programming interface, and an editing bar and a display area are displayed on the visual programming interface, and the editing bar is used to input the process steps, process conditions and parameters of each process step, and formula required for the process equipment to produce a product through natural language; the server generates a standard operating procedure file based on the process steps, process conditions and parameters of each process step, and formula in response to the user's input operation in the editing bar; Or, the processor is used to receive, through the communication module, a PLC program generated by the server based on the programming method of the PLC program of the process equipment according to any one of claims 1 to 11, and control the process equipment to execute it.

Citation Information

Cited By

  • Process formula display editing method and electronic equipment

    CN120386294A

  • Editing constraint configuration and editing method of process formula and process equipment

    CN121832469A