Method for enabling components of HMI configuration software, and computer readable storage medium

By defining container sets and preset trigger conditions for HMI configuration software, the component status differences in different application scenarios and users are achieved, solving the lack of component disabling flexibility in the prior art, and enhancing operational safety and flexibility .

CN112307467BActive Publication Date: 2024-11-05GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011211496.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-03
Publication Date
2024-11-05
Estimated Expiration
2040-11-03

AI Technical Summary

Technical Problem

Existing HMI configuration software lacks flexibility in different application scenarios and between users, and cannot disable certain windows or controls according to specific needs, resulting in an increased risk of misoperation in data issuance.

Method used

Different operating permission settings are provided by defining a container set for the user-selected component range, including optional, enable, and disable component object containers, automatically enable or disable components according to preset trigger conditions.

Benefits of technology

The same set of configuration software is implemented to achieve component status differences between different application occasions and users, prevent data from being mis-issued, and enhance operational security and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307467B_ABST
    Figure CN112307467B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for enabling components of HMI configuration software and a computer-readable storage medium. The method for enabling components of HMI configuration software includes: defining a set of container sets for all components in the range according to a component range selected by a user, each set of container sets including an optional component object container, an enabled component object container and a disabled component object container; placing all components in the selected component range in an optional component object container for user selection, and placing corresponding components in an enabled component object container or a disabled component object container according to the user's selection; when a preset trigger condition is reached, traversing the corresponding enabled component object container and disabled component object container respectively; automatically enabling all components in the enabled component object container, and disabling all components in the disabled component object container. The present invention expands the use of configuration software, and users can disable certain components or a certain window according to specific needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to configuration software, and in particular to a method for enabling windows and controls in HMI configuration software. Background Art

[0002] With the rapid improvement of industrial automation level and the widespread application of computers in the industrial field, people have higher and higher requirements for industrial automation. A wide variety of control equipment and process monitoring devices are widely used in the industrial field. HMI (Human Machine Interface) configuration software is a very important human-computer interaction software. Users can build display screens and control functions according to their own control needs to achieve control and monitoring effects.

[0003] The current configuration software is consistent for all users and in any application scenario, that is, any user can edit any window and operate any control. The windows, controls, etc. of the same set of configuration software in different application scenarios can be edited exactly the same.

[0004] However, with the diversification of configuration application scenarios, it is necessary to disable a certain component for some users or all users in some specific application scenarios, such as disabling certain windows or disabling all components of a window, and these components can be used normally except that they cannot send data.

[0005] Therefore, how to provide a method for implementing windows and components of HMI configuration software. Summary of the invention

[0006] In order to solve the technical problem in the prior art that the same set of configuration software is completely the same regardless of the user or application scenario, the present invention proposes a method for enabling components of HMI configuration software and a computer-readable storage medium.

[0007] The method for enabling components of HMI configuration software proposed by the present invention comprises:

[0008] According to the component range selected by the user, a group of container sets is defined for all components in the range, each group of container sets includes an optional component object container, an enabled component object container and a disabled component object container;

[0009] All components in the selected component range are placed in a selectable component object container for user selection, and corresponding components are placed in an enabled component object container or a disabled component object container according to the user's selection;

[0010] When the preset trigger condition is reached, the corresponding enabled component object container and disabled component object container are traversed respectively;

[0011] Automatically enables all components placed in an enabled component object container, and disables all components placed in a disabled component object container.

[0012] Furthermore, while providing a component range for the user to select, preset trigger conditions are also provided for the user to select.

[0013] Furthermore, the scope of the component includes at least one of all windows, all controls in a window, and all control types.

[0014] Furthermore, reaching the preset trigger condition includes: a trigger event of the control is triggered.

[0015] Furthermore, the trigger event is click or release.

[0016] Furthermore, meeting the preset trigger condition includes inputting a user name and password corresponding to the user.

[0017] Furthermore, different preset trigger conditions correspond to different container sets.

[0018] Furthermore, automatically enabling all components placed in the enabled component object container specifically includes the following steps:

[0019] Traverse the component IDs in the enabled component object container;

[0020] Find the ID of the component that is the same as the currently traversed component ID;

[0021] The corresponding attribute of the component is set to enabled, and the traversal of the next component ID is continued until all component IDs in the enabled component object container are traversed.

[0022] Furthermore, automatically disabling all components placed in the disabled component object container specifically includes the following steps:

[0023] Traverse the component IDs in the disabled component object container;

[0024] Find the ID of the component that is the same as the currently traversed component ID;

[0025] The corresponding attribute of the component is set to disabled, and the next component ID is traversed continuously until all component IDs in the disabled component object container are traversed.

[0026] The computer-readable storage medium proposed in the present invention stores a computer program, and when the computer program is executed by a processor, the method of enabling components of the HMI configuration software described in the above technical solution is implemented.

[0027] The present invention provides a set of container sets for each preset trigger condition, so that the user can make different settings according to different trigger conditions, so that the same set of configuration software has different states of each component in different application scenarios, or the configuration software can display different component operation permissions for different users, thereby enriching the usage of the configuration software and satisfying the user's need to disable one or more specific components at a certain moment in a specific application scenario, or to disable all components in the entire window. For some components capable of sending data, when these components are disabled, except for not being able to send data, other functions can be used normally, so some data sending or misoperation of users can also be prevented. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The present invention is described in detail below with reference to the embodiments and accompanying drawings, wherein:

[0029] Figure 1 It is a flow chart of the present invention.

[0030] Figure 2 This is configuration window 1 of the present invention.

[0031] Figure 3 This is configuration window 2 of the present invention.

[0032] Figure 4 This is configuration window three of the present invention. DETAILED DESCRIPTION

[0033] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention.

[0034] Thus, a feature indicated in this specification will be used to illustrate one of the features of an embodiment of the present invention, rather than implying that each embodiment of the present invention must have the described feature. In addition, it should be noted that this specification describes many features. Although some features can be combined together to illustrate possible system designs, these features can also be used in other combinations that are not explicitly described. Thus, unless otherwise stated, the described combinations are not intended to be limiting.

[0035] like Figure 1As shown, the method for enabling components of HMI configuration software proposed by the present invention mainly defines a set of container sets for all components within the component range selected by the user according to the user's settings, and each set of container sets includes an optional component object container, an enabled component object container, and a disabled component object container. The optional component object container is used to place all components within the component range selected by the user; the enabled component object container is used to place all components that the user wants to enable, and the all components referred to here refer to all components that the user wants to enable within the component range selected by the user; the disabled component object container is used to place all components that the user wants to disable, and the all components referred to here refer to all components that the user wants to disable within the component range selected by the user.

[0036] Before starting configuration, all window objects are stored in a container set. During configuration, the program will automatically place all components in the selected component range in the optional component object container for the user to select. According to the user's selection, the corresponding component will be placed in the enabled component object container or the disabled component object container. The user can use the button to move the required window object to the enabled component object container or the disabled component object container, and the corresponding display will be displayed in the window area.

[0037] When the preset trigger condition is reached, the program traverses the enabled component object container and the disabled component object container corresponding to the preset trigger condition, automatically enables all components placed in the enabled component object container, and disables all components placed in the disabled component object container.

[0038] The preset trigger condition referred to in the present invention may be that a trigger event of a control is triggered, such as clicking a button, releasing a button, etc. The preset trigger condition may also be that a user enters a user name and password corresponding to the user, thereby opening different permissions for different users. The user name and password corresponding to the user may be transmitted through communication data, and the corresponding components are triggered to be allocated to different containers through the communication data, thereby achieving different permissions.

[0039] Figure 2 , Figure 3 An embodiment of an interface for user settings is shown, in which a selection of preset trigger conditions is provided, specifically, a number of trigger events of a button, such as clicked, etc. At the same time, the interface also provides a component range for the user to select, including but not limited to all windows (i.e., window enable), all controls in a certain window, and control types (i.e., control enable). In other embodiments, the component range can also be at least one of the listed options. When the component range selected by the user is window enable, by clicking the configuration window, a pop-up window will appear. Figure 3 interface.

[0040] exist Figure 4 In the interface, the corresponding list boxes of the optional component object container, the enabled component object container and the disabled component object container are all displayed. The list box corresponding to the optional component object container is located on one side of the interface, and the list boxes corresponding to the enabled component object container and the disabled component object container are located on the other side of the interface. They are arranged in sequence from top to bottom to facilitate people's operation. Users can put the component selections in the list box corresponding to the optional component object container into the list box corresponding to the enabled component object container or the disabled component object container. Figure 3 Among them, wnd1 is the window that has not been configured, wnd2 is the window that is enabled by button click, and wnd3 is the window that is disabled by button click.

[0041] The following introduces Figures 2 to 4 The specific operation process.

[0042] After the user generates a button control, configure the button action trigger, select "Enable Settings" in the event logic drop-down box, and then select "Window Enable" or "Component Enable" in the drop-down box that appears. After selecting different enabling methods, the corresponding configuration window jump button will appear. Click the button to pop up the corresponding configuration window and set the specific target object.

[0043] After completing the enabling configuration, the button action trigger configuration is also completed. Taking the configuration of window enabling as an example, after creating a button component, configure the component action; select Enable Settings in the Event Logic drop-down box, select Window Enable in the sub-drop-down box, and then click the Configure Window button. Then close the configuration window, return to the Component Action Editor window, and click OK to complete the entire configuration process.

[0044] When a preset condition is triggered, for example, when a button is clicked, the program will read the container set corresponding to the preset trigger condition. Different preset trigger conditions correspond to different container sets, but the contents of different container sets can be the same or different after being set. For example, when a component is a window, the corresponding optional component object container, enabled component object container, and disabled component object container are AvailableWindows, EnableWindows, and DisableWindows respectively; when a component is a control, the corresponding optional component object container, enabled component object container, and disabled component object container are AvailableComponents, EnableComponents, and DisableComponents respectively.

[0045] The program will traverse the enabled component object container and disabled component object container corresponding to the preset trigger condition respectively. When traversing the enabled component object container, traverse the component ID in the enabled component object container, find the ID of the component that is the same as the currently traversed component ID, and set the corresponding attribute of the component to enabled, that is, set the IsEnabled attribute of the component to true. Continue to traverse the next component ID until all component IDs in the enabled component object container are traversed. When traversing the disabled component object container, traverse the component ID in the disabled component object container of the enabled component object container, find the ID of the component that is the same as the currently traversed component ID, and set the corresponding attribute of the component to disabled, that is, set the IsEnabled attribute of the component to false. Continue to traverse the next component ID until all component IDs in the enabled component object container are traversed.

[0046] The computer program implementing the above technical solution (i.e. the program referred to above) is stored in a computer-readable storage medium. When the computer program is executed by a processor, the method of enabling the HMI configuration software element of the present invention is implemented. Therefore, the present invention also protects the computer-readable storage medium.

[0047] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for enabling components of HMI configuration software, It is characterized in that include: According to the component range selected by the user, multiple groups of container sets are defined for all components in the range, each group of containers corresponds to a preset trigger condition, and each group of container sets includes an optional component object container, an enabled component object container, and a disabled component object container; All components in the selected component range are placed in a selectable component object container for user selection, and corresponding components are placed in an enabled component object container or a disabled component object container according to the user's selection; When the preset trigger condition is reached, the component IDs in the corresponding enabled component object container and disabled component object container are traversed respectively; Find the ID of the component that is the same as the currently traversed component ID; The corresponding attribute of the corresponding component found is set to enabled to automatically enable all components placed in the enabled component object container, and the corresponding attribute of the corresponding component found is set to disabled to disable all components placed in the disabled component object container.

2. The method of enabling components of HMI configuration software according to claim 1, It is characterized in that While providing a range of components for users to choose from, preset trigger conditions are also provided for users to choose from.

3. The method of enabling components of HMI configuration software as claimed in claim 1, It is characterized in that The scope of the component includes at least one of all windows, all controls in a window, and all control types.

4. The method of enabling components of HMI configuration software according to claim 1, It is characterized in that Meeting the preset trigger condition includes: a trigger event of the control is triggered.

5. The method of enabling components of HMI configuration software as claimed in claim 4, It is characterized in that The trigger event is click or release.

6. The method of enabling components of HMI configuration software as claimed in claim 1, It is characterized in that Meeting the preset trigger condition includes inputting a user name and password corresponding to the user.

7. The method of enabling components of HMI configuration software as claimed in claim 1, It is characterized in that Different preset trigger conditions correspond to different container sets.

8. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the method for enabling the HMI configuration software element according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Device and method for automatically installing and saving Activex control in XPe operating system

    CN101650659A

  • Simulation system generation method for PID parameter tuning

    CN109100934A

  • One-key adjustment method and device for element style of configuration software

    CN110673879A

  • Industrial intelligent manufacturing configuration system

    CN111624965A