A device data display method, apparatus, storage medium, and electronic device
By using the lower-level computer to determine and display device data based on user input, the problem of device data display relying on upper-level computer software in existing technologies is solved. This enables independent display and control of device data and reduces the number of variables.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI MORIMATSU PHARM EQUIP ENG CO LTD
- Filing Date
- 2021-11-23
- Publication Date
- 2026-04-21
AI Technical Summary
Existing technologies rely on specific functions or scripts of host computer software, making it difficult to port device data display methods to other brands of host computers, and the number of variables uploaded by the slave device is relatively large.
The lower-level computer responds to user input operations, determines the target variable value of the target device, and retrieves the device data from pre-determined instance data, displaying it directly on the screen panel without relying on specific functions or scripts of the upper-level computer software.
It enables independent display and control of device data, reduces the number of variables uploaded by the lower-level machine, and improves the flexibility and security of device data display.
Smart Images

Figure CN114139030B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial control technology, and in particular to a device data display method, apparatus, storage medium, and electronic device. Background Technology
[0002] With the development of industrial automation and the advancement of Industry 4.0, more and more equipment is using automatic control to replace manual operation. Projects are seeing an increasing number of similar devices, and the functions of individual devices are also expanding. In the industry, detailed equipment information is typically displayed by clicking on a device and then a pop-up window.
[0003] The conventional approach to this function and the interactive design in the pop-up window is to pass a large number of data variables from different devices to the host computer, or to write a large number of scripts in the host computer software to implement the pop-up window function.
[0004] However, this method relies on specific functions or scripts of the host computer software, making it difficult to port to other brands of host computers. Summary of the Invention
[0005] This application provides a device data display method, apparatus, storage medium, and electronic device. It enables the searching and display of device data based on a lower-level machine, independent of specific functions or scripts in the upper-level machine software, and reduces the number of variables uploaded by the lower-level machine.
[0006] In a first aspect, embodiments of this application provide a device data display method, the method comprising:
[0007] The lower-level machine responds to user input operations and determines the target variable value corresponding to the target device; wherein, the target variable value is used to characterize the unique identifier of the device;
[0008] If the target variable value is valid, then based on the target variable value, the device data corresponding to the target device is searched from the pre-determined instance data;
[0009] The device data is used as the current panel data and displayed on the screen panel.
[0010] Secondly, embodiments of this application provide a device data display apparatus, the apparatus comprising:
[0011] The target variable value determination module is used to determine the target variable value corresponding to the target device in response to user input operations via a lower-level machine; wherein, the target variable value is used to characterize the unique identifier of the device;
[0012] The device data determination module is used to find the device data corresponding to the target device from a pre-determined instance data based on the target variable value if the target variable value is valid.
[0013] The current panel data display module is used to display the device data as the current panel data on the screen panel.
[0014] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the device data display method as described in embodiments of this application.
[0015] Fourthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the device data display method as described in embodiments of this application.
[0016] The technical solution provided in this application embodiment determines the target variable value corresponding to the target device by responding to user input operations via a lower-level machine. If the target variable value is valid, the device data corresponding to the target device is searched from pre-determined instance data based on the target variable value. The device data is then displayed on the screen panel as the current panel data. This technical solution can realize the search and display of device data based on the lower-level machine, without relying on specific functions or scripts of the upper-level machine software, and reduces the number of variables uploaded by the lower-level machine. Attached Figure Description
[0017] Figure 1 This is a flowchart of the device data display method provided in Embodiment 1 of this application;
[0018] Figure 2 This is a schematic diagram of the overall framework for device data display provided in Embodiment 1 of this application;
[0019] Figure 3 This is a flowchart of the algorithm for displaying device data provided in Embodiment 1 of this application;
[0020] Figure 4 This is a schematic diagram of the device data display apparatus provided in Embodiment 2 of this application;
[0021] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of this application. Detailed Implementation
[0022] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present application, not the entire structure.
[0023] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processes, many of these steps can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the steps can be rearranged. The process can be terminated when its operation is complete, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc.
[0024] Example 1
[0025] Figure 1 This is a flowchart of a device data display method provided in Embodiment 1 of this application. This embodiment is applicable to situations where device data is displayed via a lower-level machine based on a pop-up window. This method can be executed by the device data display device provided in this embodiment. The device can be implemented in software and / or hardware and can be integrated into devices such as smart terminals used for device data display.
[0026] like Figure 1 As shown, the device data display method includes:
[0027] S110. The lower-level machine responds to the user input operation and determines the target variable value corresponding to the target device; wherein, the target variable value is used to characterize the unique identifier of the device;
[0028] In this solution, in industrial control, the lower-level machine is typically a programming device such as a PLC. Through programming with lower-level machine software, data is indexed based on target variable values within a pop-up window function program, and the device data is displayed on the upper-level computer. The upper-level computer is the computer screen displaying the device's interface. Only the upper-level computer needs to have the function of showing and hiding graphics based on target variable values. This not only reduces the number of variables uploaded to the upper-level computer, but also ensures that the core control functions of the device are independent of the interactive design on the pop-up window; changes to the pop-up window's interactive design do not require re-verification of the core control functions.
[0029] In this context, the variable value serves as a unique identifier for locating and identifying devices within the instance data. The variable value can be set based on the order of the instance data, or based on information such as the storage address and device tag number of the instance data. The variable value represents the unique identifier of the device and can be represented by an ID number.
[0030] In this embodiment, the lower-level machine responds to the user's input operation, determines the target device, and determines the target variable value corresponding to the target device based on the pre-determined device variable relationship.
[0031] For example, Figure 2This is a schematic diagram of the overall framework for device data display provided in Embodiment 1 of this application, as shown below. Figure 2 As shown, the overall framework for device data display includes a lower-level machine and a higher-level machine. The lower-level machine contains typical device control programs used to find the device data corresponding to the target device from the instance data based on variable values. The lower-level machine also includes a pop-up window panel function program, introducing an ID variable as a unique identifier for finding and identifying devices in the instance data. The higher-level machine includes a pop-up panel design and panel variables for display and operation. In the lower-level machine's pop-up window function program, data indexing and variable synchronization are performed based on the ID number. The higher-level machine assigns different values to the ID based on the operator's clicks on different devices in the operation screen, thereby popping up the device data of the target device and allowing further control of the device's actions.
[0032] Optionally, in this technical solution, after determining the target variable value corresponding to the target device, the method further includes:
[0033] If the target variable value is invalid, the control panel will close and an error message will be displayed.
[0034] In this embodiment, after obtaining the target variable value, the target variable value is judged. If the target variable value is invalid, it indicates that the panel is closed or there is another abnormality. Specifically, the target variable value can be compared with a pre-determined valid value to check if the target variable value exists among the valid values. If it does not exist, the target variable value is invalid.
[0035] By turning off the control panel, the security of the device's data display can be improved.
[0036] S120. If the target variable value is valid, then based on the target variable value, find the device data corresponding to the target device from the predetermined instance data;
[0037] Equipment data can be used to characterize detailed information about industrial equipment. For example, equipment data may include information such as the model of the industrial equipment, production date, usage time, functions, and equipment status.
[0038] In this scheme, after obtaining the target variable value, it is determined whether the target variable value is valid. If the target variable value is valid, it is assigned to the panel control program, which then searches for the device data corresponding to the target device from the pre-defined instance data.
[0039] S130. The device data is used as the current panel data and displayed on the screen panel.
[0040] In this solution, the current panel data is displayed on the screen panel via a host computer, allowing users to view detailed information about the target device through a pop-up window.
[0041] Optionally, in this technical solution, the device data can be used as the current panel data and displayed on the screen panel, including:
[0042] When the target variable value appears for the first time, the device data is used as the current panel data and displayed on the screen panel.
[0043] In this embodiment, the screen panel has three states: closed, initially opened, and always open. If the target variable value is appearing for the first time, the screen panel is in the initially opened state. In this case, the acquired device data is used as the current panel data, and the current panel data is displayed.
[0044] By displaying device data, users can view the device information and further control the device's actions.
[0045] Optionally, in this technical solution, the device data is used as the current panel data and displayed on the screen panel, further comprising:
[0046] If the target variable value is not the first occurrence, determine whether the device data is consistent with the current panel data; if they are consistent, use the device data as the current panel data and display it on the screen panel.
[0047] If they are inconsistent, if the current panel data is consistent with the historical panel data, the current panel data is updated according to the device data, and the updated current panel data is displayed on the screen panel; if the current panel data is inconsistent with the historical panel data, the device data is updated according to the current panel data, and the current panel data is displayed on the screen panel; wherein, the historical panel data is used to represent the device data of the target device displayed in the previous scanning cycle.
[0048] In this embodiment, if the target variable value is not appearing for the first time, the screen panel is always open and the current panel data already exists in the screen panel. It is then determined whether the device data is consistent with the current panel data. If they are consistent, the device data has not changed, and the device data is used as the current panel data and displayed on the screen panel. If they are inconsistent, it is determined whether the change originated from operator modification or program processing. If it originated from operator modification, the current panel data is displayed on the screen panel, and the device data in the instance data is updated based on the current panel data. If it originated from program modification, the current panel data is updated based on the device data in the instance data, and the updated current panel data is displayed on the screen panel.
[0049] By combining the changes in current panel data, panel data from the previous scan cycle, and instance data, it can be determined whether the operator is operating the device in the host computer or the controller program is updating the device data, thereby changing the device instance data and ultimately achieving the purpose of controlling the device.
[0050] Optionally, in this technical solution, after displaying on the screen panel, the method further includes:
[0051] The target variable value and the current panel data are saved as two sets of variables.
[0052] In this embodiment, two sets of variables with the same data structure as the controlled instance are created in the pop-up window panel function program to store the target variable value of the screen panel and the current panel data, respectively.
[0053] By saving the target variable value and the current panel data as two sets of variables, it can be used to determine whether the screen panel is being opened for the first time or has always been open.
[0054] For example, Figure 3 This is a flowchart of the algorithm for displaying device data according to Embodiment 1 of this application, as shown below. Figure 3 As shown, in response to user input, the system obtains the target variable value, i.e., the ID number, and then determines its relationship with the ID number stored in the previous scan cycle. If the ID number is invalid, the control panel closes. If the ID number is valid, it checks if the ID number is the same as the value in the previous cycle. If they are different, it indicates the ID number is appearing for the first time; the current panel data is updated based on device data and displayed on the screen panel. If they are the same, it indicates the ID number is not appearing for the first time; the system then determines whether the change originated from operator modification or program processing. If it originated from operator modification, the current panel data is displayed on the screen panel, and the instance data is updated based on the current panel data. If it originated from program modification, the current panel data is updated based on the instance data, and the updated current panel data is displayed on the screen panel.
[0055] In this embodiment, the lower-level machine can also respond to user input operations to perform page switching, expanded display, button interaction, etc., on the screen panel. An operator interaction program is added to the pop-up window panel function program. Using window panel data variables, variables that are only used for the screen and not involved in control logic can be introduced to implement other operator operation functions within the window.
[0056] The technical solution provided in this application embodiment determines the target variable value corresponding to the target device by responding to user input operations by a lower-level machine. If the target variable value is valid, the device data corresponding to the target device is searched from pre-determined instance data based on the target variable value. The device data is then displayed on the screen panel as the current panel data. By executing this technical solution, the search and display of device data can be achieved based on the lower-level machine, without relying on specific functions or scripts of the upper-level computer software.
[0057] Example 2
[0058] Figure 4 This is a schematic diagram of the device data display apparatus provided in Embodiment 2 of this application, as shown below. Figure 4 As shown, the device data display apparatus includes:
[0059] The target variable value determination module 410 is used to determine the target variable value corresponding to the target device in response to user input operations via a lower-level machine; wherein, the target variable value is used to characterize the unique identifier of the device;
[0060] The device data determination module 420 is used to search for device data corresponding to the target device from a pre-determined instance data based on the target variable value if the target variable value is valid.
[0061] The current panel data display module 430 is used to display the device data as the current panel data on the screen panel.
[0062] In this technical solution, optionally, the current panel data display module 430 includes:
[0063] The data display unit is used to display the device data as the current panel data on the screen panel when the target variable value appears for the first time.
[0064] In this technical solution, optionally, the current panel data display module 430 also includes:
[0065] The data judgment unit is used to determine whether the device data is consistent with the current panel data when the target variable value is not the first occurrence; the device data display unit is used to display the device data as the current panel data on the screen panel if they are consistent.
[0066] The historical data display unit is used to update the current panel data according to the device data and display the updated current panel data on the screen panel if the current panel data is consistent with the historical panel data; and to update the device data according to the current panel data and display the current panel data on the screen panel if the current panel data is inconsistent with the historical panel data. The historical panel data is used to represent the device data of the target device displayed in the previous scanning cycle.
[0067] Optionally, in this technical solution, the device further includes:
[0068] The screen panel closing module is used to close the screen panel and display an error message if the target variable value is invalid.
[0069] Optionally, in this technical solution, the device further includes:
[0070] The information storage module is used to save the target variable value and the current panel data as two sets of variables.
[0071] The above-mentioned products can perform the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects of performing the methods.
[0072] Example 3
[0073] This application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a device data display method, the method comprising:
[0074] The lower-level machine responds to user input operations and determines the target variable value corresponding to the target device; wherein, the target variable value is used to characterize the unique identifier of the device;
[0075] If the target variable value is valid, then based on the target variable value, the device data corresponding to the target device is searched from the pre-determined instance data;
[0076] The device data is used as the current panel data and displayed on the screen panel.
[0077] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a computer system in which a program is executed, or it may reside in a different second computer system connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) that can be executed by one or more processors.
[0078] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the device data display operations described above, but can also perform related operations in the device data display methods provided in any embodiment of this application.
[0079] Example 4
[0080] This application provides an electronic device that can integrate the device data display device provided in this application. Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of this application. Figure 5 As shown, this embodiment provides an electronic device 500, which includes: one or more processors 520; and a storage device 510 for storing one or more programs. When the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the device data display method provided in this embodiment, the method including:
[0081] The lower-level machine responds to user input operations and determines the target variable value corresponding to the target device; wherein, the target variable value is used to characterize the unique identifier of the device;
[0082] If the target variable value is valid, then based on the target variable value, the device data corresponding to the target device is searched from the pre-determined instance data;
[0083] The device data is used as the current panel data and displayed on the screen panel.
[0084] Of course, those skilled in the art will understand that the processor 520 also implements the technical solutions of the device data display method provided in any embodiment of this application.
[0085] Figure 5 The electronic device 500 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0086] like Figure 5 As shown, the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of processors 520 in the electronic device can be one or more. Figure 5 Taking a processor 520 as an example; the processor 520, storage device 510, input device 530, and output device 540 in the electronic device can be connected via a bus or other means. Figure 5 Taking the connection via bus 550 as an example.
[0087] The storage device 510, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and module units, such as the program instructions corresponding to the device data display method in the embodiments of this application.
[0088] Storage device 510 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on terminal usage. Furthermore, storage device 510 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, storage device 510 may further include memory remotely located relative to processor 520, and these remote memories can be connected via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0089] Input device 530 can be used to receive input digital, character, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 540 may include electronic devices such as a display screen and a speaker.
[0090] The electronic device provided in this application embodiment can achieve the purpose of searching and displaying device data based on the lower-level machine, without relying on the specific functions or scripts of the upper-level machine software.
[0091] The device data display apparatus, storage medium, and electronic device provided in the above embodiments can execute the device data display method provided in any embodiment of this application, and have the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in the above embodiments can be found in the device data display method provided in any embodiment of this application.
[0092] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.
Claims
1. A device data display method characterized by comprising: include: The lower-level machine responds to user input operations and determines the target variable value corresponding to the target device; wherein, the target variable value is used to characterize the unique identifier of the device; the lower-level machine includes a pop-up window panel function program; the pop-up window panel function program introduces an ID variable, which serves as a unique identifier for finding and identifying the device in the instance data; If the target variable value is valid, then based on the target variable value, the device data corresponding to the target device is searched from the pre-determined instance data; The device data is used as the current panel data and displayed on the screen panel; The device data is used as the current panel data and displayed on the screen panel, including: When the target variable value appears for the first time, the device data is used as the current panel data and displayed on the screen panel; If the target variable value is not the first occurrence, determine whether the device data is consistent with the current panel data; if they are consistent, use the device data as the current panel data and display it on the screen panel. If they are inconsistent, if the current panel data is consistent with the historical panel data, the current panel data is updated according to the device data, and the updated current panel data is displayed on the screen panel; if the current panel data is inconsistent with the historical panel data, the device data is updated according to the current panel data, and the current panel data is displayed on the screen panel; wherein, the historical panel data is used to represent the device data of the target device displayed in the previous scanning cycle; After determining the target variable value corresponding to the target device, the method further includes: If the target variable value is invalid, the control panel will close and an error message will be displayed. The method further includes, after displaying the image on the screen panel: The target variable value and the current panel data are saved as two sets of variables.
2. An apparatus data display device, characterized by comprising: include: The target variable value determination module is used to determine the target variable value corresponding to the target device in response to user input operations via the lower-level machine; wherein, the target variable value is used to characterize the unique identifier of the device; the lower-level machine includes a pop-up window panel function program; the pop-up window panel function program introduces an ID variable, which serves as a unique identifier for finding and identifying the device in the instance data; The device data determination module is used to find the device data corresponding to the target device from a pre-determined instance data based on the target variable value if the target variable value is valid. The current panel data display module is used to display the device data as the current panel data on the screen panel; The current panel data display module includes: The data display unit is used to display the device data as the current panel data on the screen panel when the target variable value appears for the first time; The data judgment unit is used to determine whether the device data is consistent with the current panel data when the target variable value is not the first occurrence; the device data display unit is used to display the device data as the current panel data on the screen panel if they are consistent. The current panel data display unit is used to update the current panel data according to the device data and display the updated current panel data on the screen panel if the current panel data is consistent with the historical panel data; and to update the device data according to the current panel data and display the current panel data on the screen panel if the current panel data is inconsistent with the historical panel data. The historical panel data is used to represent the device data of the target device displayed in the previous scanning cycle. The device further includes: The screen panel closing module is used to close the screen panel and display an error message if the target variable value is invalid. The device further includes: The information storage module is used to save the target variable value and the current panel data as two sets of variables.
3. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the program is executed by the processor, it implements the device data display method as described in claim 1.
4. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the device data display method as described in claim 1.
Citation Information
Patent Citations
Monitoring system of wind power generation converter and method
CN106329718A
Large data amount parameter quick reading-writing method
CN107862074A