Cylinder HMI interface generation method, electronic device, and program product

By associating custom data blocks with HMI interface components, the problem of centralized management of HMI interface components in cylinder PLC control is solved, realizing modular encapsulation and efficient maintenance of cylinder HMI interfaces.

CN122284883APending Publication Date: 2026-06-26SHENZHEN ZHUOJIAN INTELLIGENT MANUFACTURING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN ZHUOJIAN INTELLIGENT MANUFACTURING CO LTD
Filing Date
2026-03-27
Publication Date
2026-06-26

Smart Images

  • Figure CN122284883A_ABST
    Figure CN122284883A_ABST
Patent Text Reader

Abstract

This application discloses a method, electronic device, and program product for generating a cylinder HMI interface. The method includes: pre-setting a custom data block based on cylinder parameters; setting multiple HMI interface components corresponding to the cylinder parameters in response to user operation; associating the custom data block with the multiple HMI interface components; and encapsulating the multiple HMI interface components into an HMI interface. This application achieves modular encapsulation of the cylinder HMI interface by pre-setting a custom data block, setting HMI interface components corresponding to cylinder parameters based on user operation, associating the custom data block with multiple HMI interface components, and finally encapsulating it into the cylinder's HMI interface. This facilitates the later maintenance and reuse of the cylinder HMI interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial control technology, and in particular to a method for generating a cylinder HMI interface, electronic equipment, and software products. Background Technology

[0002] In industrial automation production, cylinders, as key actuators, are widely used in various scenarios such as machining, electronics manufacturing, and assembly line operations. Currently, PLC control of cylinders mostly adopts a discrete programming model, where control logic is written separately for each cylinder, combined with an HMI interface for status monitoring and operation. Furthermore, the components implementing various functions within the HMI interface are discrete. On the one hand, the discrete components in the HMI interface are inconvenient for centralized management and maintenance; on the other hand, each cylinder requires a separate HMI interface. This traditional approach has many technical shortcomings and cannot meet the demands of modern production for efficiency, adaptability, and safety. Summary of the Invention

[0003] This application provides a cylinder HMI interface generation method, electronic device, and program product to at least solve one of the above-mentioned technical problems.

[0004] In a first aspect, embodiments of this application provide a method for generating a cylinder HMI interface, characterized in that it includes: Pre-set custom data blocks based on cylinder parameters; Multiple HMI interface components are configured in response to user actions, corresponding to the cylinder parameters. Associate the custom data block with the multiple HMI interface components; The plurality of HMI interface components are encapsulated into an HMI interface.

[0005] In some embodiments, the cylinder parameters include: cylinder control parameters and cylinder status alarm parameters; wherein, the cylinder status alarm parameters include cylinder status parameters, extension alarm parameters, retraction alarm parameters, and inconsistency alarm parameters; the cylinder control parameters include initialization parameters, manual control parameters, and automatic control parameters.

[0006] In some embodiments, the HMI interface components include a cylinder control component and a cylinder status alarm component; wherein the cylinder control component includes a manual control component and an automatic control component; and the cylinder status alarm component includes a cylinder status control, a cylinder status inconsistency control, and an indicator control.

[0007] In some embodiments, the manual control component includes a manual mode selection button, a manual on button, and a manual off button; the automatic control component includes an automatic mode selection button, an automatic on button, and an automatic off button.

[0008] In some embodiments, the manual on button and the automatic on button reuse the same on button control, and the manual off button and the automatic off button reuse the same off button control; the manual mode selection button and the automatic mode selection button are symmetrically arranged on both sides of the cylinder status inconsistency control; the on button control and the off button control are symmetrically arranged on both sides of the cylinder status control.

[0009] In some embodiments, the indicator control includes a cylinder extension indicator control and a cylinder retraction indicator control; the cylinder extension indicator control is disposed between the on button control and the cylinder status control, and the cylinder retraction indicator control is disposed between the off button control and the cylinder status control.

[0010] In some embodiments, the method further includes: Store the HMI interface as a preset HMI interface template; For the new cylinder, the custom data block is copied to obtain a new custom data block; The preset HMI interface template is copied for the new cylinder; By associating the new custom data block with the preset HMI interface template, a new HMI interface corresponding to the new cylinder is obtained.

[0011] In some embodiments, the method further includes: Generate a program segment corresponding to the HMI interface; The program segment that replicates the HMI interface for the new cylinder; In response to user modifications to parameters in the program segment of the HMI interface, a new program segment is generated.

[0012] In some embodiments, the method further includes: Obtain the identification information of the new cylinder; The association between the new program segment and the new cylinder is established based on the identification information of the new cylinder.

[0013] In some embodiments, the method further includes: During the execution of the new program segment, the detection signal from the sensor of the new cylinder is obtained according to the correlation. An alarm is triggered when the detected signal does not meet the preset conditions.

[0014] Secondly, embodiments of this application also provide an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the cylinder HMI interface generation method described in any embodiment of this application.

[0015] Thirdly, embodiments of this application also provide a computer-readable storage medium storing a computer program / instructions thereon, characterized in that, when the computer program / instructions are executed by a processor, they implement the steps of the cylinder HMI interface generation method described in any embodiment of this application.

[0016] Fourthly, embodiments of this application also provide a computer program product, including a computer program / instructions, characterized in that, when the computer program / instructions are executed by a processor, they implement the steps of the cylinder HMI interface generation method described in any embodiment of this application.

[0017] This application embodiment pre-sets a custom data block and sets HMI interface components corresponding to cylinder parameters according to user operations. Then, the custom data block is associated with multiple HMI interface components and finally encapsulated into the HMI interface of the cylinder. This realizes the modular encapsulation of the cylinder HMI interface, which facilitates the maintenance and reuse of the cylinder HMI interface in the later stage. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart of an embodiment of the cylinder HMI interface generation method of this application; Figure 2 This is a schematic diagram illustrating the pre-configured custom data blocks in this application; Figure 3 This is a schematic diagram showing multiple HMI interface components corresponding to the cylinder parameters in this application; Figure 4 A flowchart of another embodiment of the cylinder HMI interface generation method of this application; Figure 5 This is a schematic diagram illustrating the replication of a preset HMI interface template in this application; Figure 6 A flowchart of another embodiment of the cylinder HMI interface generation method of this application; Figure 7 This is a schematic diagram of the program segment corresponding to the cylinder HMI interface in this application; Figure 8 This is a schematic diagram of another program segment corresponding to the cylinder HMI interface in this application; Figure 9 A flowchart of another embodiment of the cylinder HMI interface generation method of this application; Figure 10 A flowchart of another embodiment of the cylinder HMI interface generation method of this application; Figure 11 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.

[0021] It should also be noted that, in this document, the terms "comprising" or "including" include not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0022] like Figure 1 As shown, an embodiment of this application provides a method for generating a cylinder HMI interface, which includes: S11. Pre-set a custom data block based on cylinder parameters.

[0023] For example, the custom data block is of UDT data type. UDT stands for User-Defined Type, which combines multiple logically related variables into a reusable data structure template, significantly improving the efficiency of structured programming, code reuse, and maintenance. The cylinder parameters include: cylinder control parameters and cylinder status alarm parameters; wherein the cylinder status alarm parameters include cylinder status parameters, extension alarm parameters, retraction alarm parameters, and inconsistency alarm parameters; the cylinder control parameters include initialization parameters, manual control parameters, and automatic control parameters. In this embodiment, the above-mentioned parameters are predefined in the custom data block.

[0024] S12. Responding to user operation settings, multiple HMI interface components corresponding to the cylinder parameters are configured.

[0025] For example, the multiple HMI interface components include a cylinder control component and a cylinder status alarm component; wherein, the cylinder control component includes a manual control component and an automatic control component; and the cylinder status alarm component includes a cylinder status control, a cylinder status inconsistency control, and an indicator control.

[0026] S13. Associate the custom data block with the multiple HMI interface components.

[0027] For example, a mapping relationship is established between cylinder control parameters and cylinder control components in a custom data block, and a mapping relationship is established between cylinder status alarm parameters and cylinder status alarm components in the custom data block. Specifically, the mapping relationship between cylinder status alarm parameters and cylinder status alarm components includes: a mapping relationship between cylinder status parameters and cylinder status controls; a mapping relationship between extension alarm parameters and retraction alarm parameters and indicator controls; and a mapping relationship between inconsistency alarm parameters and cylinder status inconsistency controls. The mapping relationship between cylinder control parameters and cylinder control components includes: a mapping relationship between manual control parameters and manual control components; and a mapping relationship between automatic control parameters and automatic control components. In some embodiments, the cylinder control component further includes a cylinder initialization component, and the mapping relationship between cylinder control parameters and cylinder control components also includes a mapping relationship between initialization parameters and the cylinder initialization component.

[0028] S14. Encapsulate the plurality of HMI interface components into an HMI interface. For example, the plurality of HMI interface components are encapsulated as a whole to obtain the cylinder's HMI interface.

[0029] This embodiment pre-sets custom data blocks based on cylinder parameters, sets HMI interface components corresponding to cylinder parameters based on user operations, associates the custom data blocks with multiple HMI interface components, and finally encapsulates them into the HMI interface for the cylinder. This achieves modular encapsulation of the cylinder HMI interface, which facilitates the maintenance and reuse of the cylinder HMI interface in the future.

[0030] like Figure 2The diagram illustrates a pre-defined custom data block in this application. In this embodiment, a custom data block named "UDT_IO Cylinder" can be created under the PLC data type, including three columns: cylinder parameter name, data type, and default value. The name column includes: Cylinder Current Status, Extension Alarm, Retraction Alarm, Inconsistency Alarm, Manual Mode, Automatic Mode, Extension Complete, Retraction Complete, Manual Open, Manual Close, Automatic Open, Automatic Close, and Initialization. The Cylinder Current Status data type is Int, with a default value of 0; the data types for other cylinder parameters are all Bool, with default values ​​of false.

[0031] Among them, the current state of the cylinder (e.g., extension completed, retraction completed), extension alarm, retraction alarm, and inconsistency alarm correspond to the cylinder state parameters, extension alarm parameters, retraction alarm parameters, and inconsistency alarm parameters, respectively; initialization corresponds to the initialization parameters; manual mode, automatic mode, manual on, manual off, automatic on, and automatic off correspond to the manual control parameters and automatic control parameters.

[0032] like Figure 3 The diagram illustrates multiple HMI interface components corresponding to the cylinder parameters in this application. In this embodiment, the desired HMI interface component can be selected from the "Basic Objects," "Elements," and "Controls" on the right side of the diagram and dragged into the canvas to obtain the cylinder HMI interface shown. This cylinder HMI interface includes a cylinder control component and a cylinder status alarm component; wherein the cylinder control component includes a manual control component and an automatic control component; and the cylinder status alarm component includes a cylinder status control, a cylinder status inconsistency control, and an indication control.

[0033] For example, the manual control component includes a manual mode selection button, a manual on button, and a manual off button; the automatic control component includes an automatic mode selection button, an automatic on button, and an automatic off button. Figure 3 As shown, the cylinder HMI interface includes: a manual button, an automatic button, an ON button, and an OFF button. When the manual button is selected, pressing the ON button activates manual control of the cylinder, and pressing the OFF button deactivates manual control. When the automatic button is selected, pressing the ON button activates automatic control of the cylinder, and pressing the OFF button deactivates automatic control.

[0034] In this embodiment, the manual and automatic on buttons reuse the same on button control (i.e., Figure 3 The ON button in the manual off button and the automatic off button reuse the same off button control (i.e., Figure 3 The OFF button in the cylinder control system reduces the number of components required for cylinder control and simplifies the cylinder HMI interface.

[0035] In some embodiments, the manual mode selection button and the automatic mode selection button are symmetrically arranged on both sides of the cylinder status inconsistency control; the on button control and the off button control are symmetrically arranged on both sides of the cylinder status control. The indicator controls include a cylinder extension indicator control and a cylinder retraction indicator control; the cylinder extension indicator control is located between the on button control and the cylinder status control, and the cylinder retraction indicator control is located between the off button control and the cylinder status control. This embodiment, by symmetrically arranging the manual mode selection button, automatic mode selection button, on button control, off button control, and indicator controls, ensures that the various components in the HMI interface are arranged in an orderly manner, facilitating user observation and operation.

[0036] like Figure 4 The diagram shows a flowchart of another embodiment of the cylinder HMI interface generation method of this application. In this embodiment, the cylinder HMI interface generation method further includes: S21. Store the HMI interface as a preset HMI interface template.

[0037] For example, after encapsulating the plurality of HMI interface components into an HMI interface, it is further stored as a preset HMI interface template (e.g., stored in a project library for later use). In this way, the HMI interface can not only be used for the current cylinder, but also be reused for new cylinders added later.

[0038] S22. Copy the custom data block for the new cylinder to obtain a new custom data block.

[0039] For example, after pre-setting a custom data block according to the cylinder parameters in the foregoing embodiments, when creating a cylinder HMI interface for a new cylinder in the future, the previous custom data block can be reused by copying.

[0040] S23. Copy the preset HMI interface template for the new cylinder.

[0041] For example, in response to a user action, the project library directory is opened, and the corresponding preset HMI interface template is copied. This preset HMI template can be used directly, or it can be adjusted as needed; this application does not limit this.

[0042] like Figure 5 The diagram illustrates the replication of a preset HMI interface template according to this application. In this embodiment, the right side of the illustrated interface displays a project library list, under which the "Cylinder" project contains two pre-stored preset HMI interface templates: V0.0.10 (default) and V0.0.9. Users can select one of them with the mouse and drag it to the canvas on the left as needed.

[0043] S24. Associate the new custom data block with the preset HMI interface template to obtain a new HMI interface corresponding to the new cylinder.

[0044] For example, a mapping relationship is established between the cylinder parameters in the new custom data block and multiple HMI interface components in the preset HMI interface template. The specific correspondence can be referred to in the aforementioned embodiments, and will not be repeated here.

[0045] For example, it can be done by Figure 5 The "Dynamicization" option in the "Interface" section under the "Cylinder_1 [Panel Example] [Cylinder V0.0.9]" item below the preset HMI interface template displays the association between the preset HMI interface template and the custom data block.

[0046] like Figure 5 As shown, in some embodiments, the cylinder status, such as "riveting cylinder" and "pressure relief cylinder", can be labeled above the preset HMI interface template using text boxes.

[0047] In this embodiment, when generating a cylinder HMI interface for a new cylinder, not only can the preset HMI interface template that was previously created and stored in the project library be directly copied, but custom data blocks can also be directly reused. This greatly improves the development efficiency of creating a cylinder HMI interface for a new cylinder.

[0048] like Figure 6 The diagram shows a flowchart of another embodiment of the cylinder HMI interface generation method of this application. In this embodiment, the cylinder HMI interface generation method further includes: S31. Generate a program segment corresponding to the HMI interface.

[0049] like Figure 7 The diagram shown is a schematic of the program segment corresponding to the cylinder HMI interface in this application. In this embodiment, program segment 5 for the riveting cylinder has been pre-created.

[0050] S32. Copy the program segment of the HMI interface for the new cylinder.

[0051] like Figure 8 The diagram shown is another program segment corresponding to the cylinder HMI interface in this application. In this embodiment, program segment 6 for the new cylinder (cylinder 1) is created by copying program segment 5.

[0052] S33. In response to user modification of parameters in the program segment of the HMI interface, a new program segment is generated. For example... Figure 8As shown, the copied program segment 6 contains the name "riveting cylinder" from program segment 5. Users only need to manually change it to "cylinder 1". In addition, various parameters in program segment 6 (such as extension delay, retraction delay, inconsistent alarm duration, etc.) can be modified as needed.

[0053] In this embodiment, the program segment of the HMI interface is implemented as a PLC program segment. One PLC program can control multiple cylinders, and a corresponding PLC program can include multiple HMI interface program segments (e.g., program segment 5 and program segment 6 in the aforementioned embodiment).

[0054] This application embodiment further realizes the reuse of cylinder program segments. That is, when adding a new cylinder, it is only necessary to copy the program segment of the already created cylinder and modify the program segment of the already created cylinder as needed to obtain the program segment of the new cylinder. This realizes the standardized deployment of cylinder function blocks and HMI interface and improves the efficiency of writing program segments for new cylinders.

[0055] like Figure 9 The diagram shows a flowchart of another embodiment of the cylinder HMI interface generation method of this application. In this embodiment, the cylinder HMI interface generation method further includes: S41. Obtain the identification information of the new cylinder.

[0056] For example, the identification information of the new cylinder may be the identity information of the new cylinder, with each cylinder assigned a unique identity information to distinguish the cylinders.

[0057] S42. Establish the association between the new program segment and the new cylinder based on the identification information of the new cylinder.

[0058] For example, after creating a new program segment, a correlation is further established between the new program segment and the new cylinder. This allows the new program segment to obtain the sensor detection signal from the corresponding cylinder during subsequent operation based on this correlation. This embodiment achieves a correspondence between program segments and their corresponding cylinders by establishing this correlation. Each program segment only responds to the detection signal from its corresponding cylinder, avoiding mutual interference between different program segments and different cylinders.

[0059] like Figure 10 The diagram shows a flowchart of another embodiment of the cylinder HMI interface generation method of this application. In this embodiment, the cylinder HMI interface generation method further includes: S43. During the execution of the new program segment, the detection signal from the sensor of the new cylinder is obtained according to the correlation.

[0060] For example, the PLC communicates with sensors of multiple cylinders to receive cylinder signals (i.e., sensor detection signals) collected by the sensors of each cylinder in real time. The received detection signals may carry the cylinder's identification information, so the PLC can obtain the cylinder's identification information by parsing it, further determine the corresponding program segment by the association between the cylinder and the program segment, and send the corresponding detection signal to the corresponding program segment.

[0061] S44. When the detection signal does not meet the preset conditions, an abnormal alarm is triggered.

[0062] For example, the detection signals include, but are not limited to, cylinder extension time and cylinder retraction time. When the cylinder extension time meets the extension timeout condition (e.g., greater than a set time threshold), or the cylinder retraction time meets the retraction timeout condition (e.g., greater than a set time threshold), an abnormal alarm is triggered, and the abnormal cylinder is recorded according to its identification information.

[0063] In this embodiment, the detection signal for each cylinder is compared with preset conditions to determine whether the cylinder operation is abnormal. When an abnormality is detected, an alarm is triggered, and the abnormal cylinder is recorded based on its identification information. This not only achieves timely alarm for abnormal cylinders but also accurately locates the abnormal cylinder based on the recorded cylinder identification information.

[0064] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of combined actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Secondly, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application. In the above embodiments, the descriptions of each embodiment have their own emphasis; for parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0065] In some embodiments, this application provides a non-volatile computer-readable storage medium storing one or more programs including execution instructions, which can be read and executed by electronic devices (including but not limited to computers, servers, or network devices) to perform any of the cylinder HMI interface generation methods described above.

[0066] In some embodiments, this application also provides a computer program product, the computer program product including a computer program stored on a non-volatile computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform any of the above-described cylinder HMI interface generation methods.

[0067] In some embodiments, this application also provides an electronic device, which includes: at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a cylinder HMI interface generation method.

[0068] Figure 11 This is a schematic diagram of the hardware structure of an electronic device for executing a cylinder HMI interface generation method according to another embodiment of this application, as shown below. Figure 11 As shown, the device includes: One or more processors 1110 and memory 1120, Figure 11 Take the 1110 processor as an example.

[0069] The device for performing the cylinder HMI interface generation method may further include: an input device 1130 and an output device 1140.

[0070] The processor 1110, memory 1120, input device 1130, and output device 1140 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.

[0071] The memory 1120, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the cylinder HMI interface generation method in this embodiment. The processor 1110 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 1120, thereby implementing the cylinder HMI interface generation method of the above-described method embodiment.

[0072] The memory 1120 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the cylinder HMI interface generation device. Furthermore, the memory 1120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1120 may optionally include memory remotely located relative to the processor 1110, and these remote memories may be connected to the cylinder HMI interface generation device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0073] Input device 1130 can receive input digital or character information, and generate signals related to user settings and function control of the cylinder HMI interface generation device. Output device 1140 may include display devices such as a display screen.

[0074] The one or more modules are stored in the memory 1120, and when executed by the one or more processors 1110, the cylinder HMI interface generation method in any of the above method embodiments is executed.

[0075] The above-described product can perform the methods provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for performing the methods. Technical details not described in detail in this embodiment can be found in the methods provided in the embodiments of this application.

[0076] The electronic devices in this application embodiments exist in various forms, including but not limited to: (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.

[0077] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include: PDAs, MIDs, and UMPCs, etc.

[0078] (3) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0079] (4) Other electronic devices with data interaction functions.

[0080] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0081] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for generating a cylinder HMI interface, characterized in that, include: Pre-set custom data blocks based on cylinder parameters; Multiple HMI interface components are configured in response to user actions, corresponding to the cylinder parameters. Associate the custom data block with the multiple HMI interface components; The plurality of HMI interface components are encapsulated into an HMI interface.

2. The method according to claim 1, characterized in that, The cylinder parameters include: cylinder control parameters and cylinder status alarm parameters; wherein, the cylinder status alarm parameters include cylinder status parameters, extension alarm parameters, retraction alarm parameters, and inconsistency alarm parameters; the cylinder control parameters include initialization parameters, manual control parameters, and automatic control parameters.

3. The method according to claim 2, characterized in that, The HMI interface components include a cylinder control component and a cylinder status alarm component; wherein, the cylinder control component includes a manual control component and an automatic control component; the cylinder status alarm component includes a cylinder status control, a cylinder status inconsistency control, and an indicator control.

4. The method according to claim 3, characterized in that, The manual control component includes a manual mode selection button, a manual on button, and a manual off button; the automatic control component includes an automatic mode selection button, an automatic on button, and an automatic off button. The manual on button and the automatic on button reuse the same on button control, and the manual off button and the automatic off button reuse the same off button control; the manual mode selection button and the automatic mode selection button are symmetrically arranged on both sides of the cylinder status inconsistency control; the on button control and the off button control are symmetrically arranged on both sides of the cylinder status control. The indicator controls include a cylinder extension indicator control and a cylinder retraction indicator control; the cylinder extension indicator control is located between the on button control and the cylinder status control, and the cylinder retraction indicator control is located between the off button control and the cylinder status control.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: Store the HMI interface as a preset HMI interface template; For the new cylinder, the custom data block is copied to obtain a new custom data block; The preset HMI interface template is copied for the new cylinder; By associating the new custom data block with the preset HMI interface template, a new HMI interface corresponding to the new cylinder is obtained.

6. The method according to claim 5, characterized in that, Also includes: Generate a program segment corresponding to the HMI interface; The program segment that replicates the HMI interface for the new cylinder; In response to user modifications to parameters in the program segment of the HMI interface, a new program segment is generated.

7. The method according to claim 6, characterized in that, The method further includes: Obtain the identification information of the new cylinder; The association between the new program segment and the new cylinder is established based on the identification information of the new cylinder.

8. The method according to claim 7, characterized in that, The method further includes: During the execution of the new program segment, the detection signal from the sensor of the new cylinder is obtained according to the correlation. An alarm is triggered when the detected signal does not meet the preset conditions.

9. An electronic device comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method according to any one of claims 1-8.

10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1-8.