CN116483737A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116483737A
CN116483737A CN202310414732.4A CN202310414732A CN116483737A CN 116483737 A CN116483737 A CN 116483737A CN 202310414732 A CN202310414732 A CN 202310414732A CN 116483737 A CN116483737 A CN 116483737A
Authority
CN
China
Prior art keywords
read
data
storage address
preset buffer
polling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310414732.4A
Other languages
Chinese (zh)
Other versions
CN116483737B (en
Inventor
李镇
秦英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kinseal Technology Shenzhen Co ltd
Original Assignee
Kinseal Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kinseal Technology Shenzhen Co ltd filed Critical Kinseal Technology Shenzhen Co ltd
Priority to CN202310414732.4A priority Critical patent/CN116483737B/en
Publication of CN116483737A publication Critical patent/CN116483737A/en
Application granted granted Critical
Publication of CN116483737B publication Critical patent/CN116483737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Programmable Controllers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A data processing method, a device, an electronic device and a storage medium relate to the technical field of data processing. In the method, an HMI display screen responds to a read operation input by a user, wherein the read operation comprises a first storage address of data to be read; the HMI display screen acquires corresponding data to be read from a preset buffer area according to the reading operation, wherein the preset buffer area is pre-stored with a corresponding relation between a storage address and the data to be read; and the HMI display screen displays the data to be read. By implementing the technical scheme provided by the application, the technical effect of improving the communication efficiency is achieved.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data processing method, a data processing device, an electronic device, and a storage medium.
Background
A human-machine interface (Human Machine Interface, HMI) display screen is a technology that employs human-machine interaction to provide a user with functions such as a graphical user interface, touch screen control, voice control, virtual reality control, etc., thereby facilitating better control and management of a computer system by the user.
Currently, in the related art, when an HMI display screen interacts with an external PLC controller, the HMI display screen needs to continuously access data stored in the PLC controller; when the access amount of the HMI display screen to the PLC is large, the access can cause congestion, so that the time for the HMI display screen to acquire data from the PLC is long, and the communication efficiency between the HMI display screen and the PLC is affected.
Therefore, there is an urgent need for a data processing method, apparatus, electronic device, and storage medium.
Disclosure of Invention
The application provides a data processing method, a data processing device, electronic equipment and a storage medium, which have the technical effect of improving communication efficiency.
In a first aspect of the present application, there is provided a data processing method applied to an HMI display, the method comprising:
responding to a read operation input by a user, wherein the read operation comprises a first storage address of data to be read;
according to the reading operation, corresponding data to be read is obtained in a preset buffer zone, and the corresponding relation between a storage address and the data to be read is prestored in the preset buffer zone;
and displaying the data to be read.
By adopting the technical scheme, the HMI display screen responds to the reading operation input by the user and aiming at the data to be read, and the reading operation comprises the first storage address of the data to be read. Then, the HMI display screen acquires corresponding data to be read from a preset buffer area according to the first storage address, the corresponding relation between the storage address and the data to be read is prestored in the preset buffer area, and finally, the HMI display screen displays the data to be read. Therefore, the data to be read is stored by presetting the preset buffer area in the HMI display screen, so that the time for acquiring the data to be read is saved by the HMI display screen, and the communication efficiency is improved.
Optionally, the method for constructing the correspondence relationship includes:
acquiring a first storage address of the data to be read from the PLC by polling read operation;
constructing a corresponding relation between the data to be read and the first storage address;
and storing the corresponding relation, the data to be read and the first storage address into the preset buffer area.
By adopting the technical scheme, the HMI display screen acquires the first storage address of the data to be read from the PLC through polling reading operation, and then the corresponding relation between the data to be read and the first storage address is constructed. And finally, storing the corresponding relation, the data to be read and the first storage address into a preset buffer area. Therefore, the HMI display screen is convenient to determine the data to be read by utilizing the corresponding relation in the preset buffer area according to the first storage address, the data to be read is read, the reading efficiency of the HMI display screen on the data to be read is improved, and the communication efficiency is further improved.
Optionally, before storing the correspondence, the data to be read, and the first storage address in the preset buffer, the method further includes:
numbering the first storage address according to a preset numbering rule, wherein the preset numbering rule is a monotonically increasing rule;
a first number is added to the first memory address.
By adopting the technical scheme, the HMI display screen also numbers the first storage address according to a monotonically increasing rule before storing the corresponding relation, the data to be read and the first storage address into the preset buffer area, so that the first number is added to the first storage address. Therefore, the HMI display screen can conveniently search the corresponding storage address according to the number, the speed of searching the storage address is increased, and the communication efficiency is further improved.
Optionally, in response to a write operation input by a user, the write operation is an operation of modifying the data to be read from the first storage address to a second storage address;
and sending the write operation to the PLC controller so that the PLC controller modifies the first storage address of the data to be read into a second storage address.
By adopting the technical scheme, the HMI display screen also responds to the writing operation input by the user and sends the writing operation to the PLC controller, so that the PLC controller can modify the first storage address of the data to be read into the second storage address according to the writing operation, thereby meeting the modification requirement of the user, ensuring the synchronization of information and improving the accuracy of acquiring the data to be read by the HMI display screen.
Optionally, the polling read operation includes a first polling read operation and a second polling read operation, and the method further includes:
responding to the quick reading operation input by a user;
and inserting the quick reading operation between the first polling reading operation and the second polling reading operation so that the PLC controller sequentially executes the first polling reading operation, the quick reading operation and the second polling reading operation.
By adopting the technical scheme, the polling read operation comprises the first polling read operation and the second polling read operation, the HMI display screen also responds to the quick read operation input by the user, and the quick read operation is inserted between the first polling read operation and the second polling read operation, so that the PLC controller sequentially executes the first polling read operation, the quick read operation and the second polling read operation, and the HMI display screen can meet the requirements of the quick read operation of the user on the premise of ensuring the normal polling read operation of the PLC controller, and further the experience of the user is improved.
Optionally, the acquiring, according to the reading operation, corresponding data to be read in a preset buffer area specifically includes:
searching the first number in the preset buffer area, and if a second number corresponding to the first number exists in the preset buffer area, acquiring data to be read corresponding to the second number, wherein the first number and the second number are the same number.
By adopting the technical scheme, the HMI display screen searches the first number in the preset buffer area according to the reading operation, and when the second number corresponding to the first number exists in the preset buffer area, the data to be read corresponding to the second number is obtained, so that the data to be read is rapidly determined, and the technical effect of rapidness and accuracy is achieved.
Optionally, after the writing operation is sent to the PLC controller to enable the PLC controller to modify the first storage address of the data to be read to the second storage address, the method further includes:
receiving prompt information sent by the PLC;
and displaying the prompt information to prompt a user that the data to be read can be read.
By adopting the technical scheme, the HMI display screen sends the writing operation to the PLC controller, the PLC controller sends the prompt information to the HMI display screen after modifying the storage address, and the prompt information is displayed after the HMI display screen receives the prompt information, so that a user is prompted that the data to be read can be read, and the experience of the user is improved.
In a second aspect of the present application, a data processing apparatus is provided, the data processing apparatus being an HMI display comprising a receiving module, a processing module, and a display module, wherein,
the receiving module is used for responding to a reading operation input by a user, wherein the reading operation comprises a first storage address of data to be read;
the processing module is used for acquiring corresponding data to be read from a preset buffer area according to the reading operation, wherein the corresponding relation between a storage address and the data to be read is prestored in the preset buffer area;
the display module is used for displaying the data to be read.
In a third aspect of the present application, there is provided an electronic device comprising a processor, a memory for storing instructions, a user interface and a network interface, both for communicating to other devices, the processor being for executing the instructions stored in the memory to cause the electronic device to perform a method as claimed in any one of the preceding claims.
In a fourth aspect of the present application, there is provided a computer readable storage medium storing instructions that, when executed, perform a method as set out in any one of the preceding claims.
In summary, one or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
1. the HMI display screen responds to a reading operation input by a user and aiming at data to be read, and the reading operation comprises a first storage address of the data to be read. Then, the HMI display screen acquires corresponding data to be read from a preset buffer area according to the first storage address, the corresponding relation between the storage address and the data to be read is prestored in the preset buffer area, and finally, the HMI display screen displays the data to be read. Therefore, the data to be read is stored by presetting a preset buffer area in the HMI display screen, and the preset buffer area performs data interaction with the PLC in real time;
2. the HMI display screen also responds to the writing operation input by the user and sends the writing operation to the PLC controller so that the PLC controller can modify the first storage address of the data to be read into the second storage address according to the writing operation, thereby meeting the modification requirement of the user, ensuring the synchronization of information and improving the accuracy of acquiring the data to be read by the HMI display screen.
Drawings
Fig. 1 is an interaction schematic diagram provided in an embodiment of the present application.
Fig. 2 is a flow chart of a data processing method according to an embodiment of the present application.
FIG. 3 is an exemplary schematic diagram of an HMI display interface provided in an embodiment of the present application.
Fig. 4 is a schematic block diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: 41. a receiving module; 42. a processing module; 43. a display module; 51. a processor; 52. a communication bus; 53. a user interface; 54. a network interface; 55. a memory.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments.
In the description of embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described herein as "such as" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "or" for example "is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is an interaction schematic diagram provided in an embodiment of the present application. As shown in fig. 1, the HMI display communicates with the PLC controller through serial connection.
The present application provides a data processing method, and referring to fig. 2, fig. 2 is a flow chart of the data processing method provided in the embodiment of the present application. The data processing method is applied to the HMI display screen and comprises the following steps of S210 to S230:
s210, responding to a read operation input by a user, wherein the read operation comprises a first storage address of data to be read.
Specifically, the HMI display screen is provided with a corresponding control and a corresponding function module, and when a user uses the HMI display screen to check the data of the PLC controller, a read operation can be input to the HMI display screen, and the read operation includes a first storage address of the data to be read which the user HMI wants to access. The HMI display screen is connected with the PLC through a serial port, and can control data transmission and communication with the PLC. The control can be a button or a knob, and the specific implementation mode is set according to specific conditions, which is not described here again. Functional modules may include, but are not limited to, macro instructions, recipes, PLC controller control, time, data groups, data acquisition, data transmission, alarms, etc.
S220, according to the reading operation, corresponding data to be read is obtained in a preset buffer area, and the corresponding relation between the storage address and the data to be read is prestored in the preset buffer area.
Specifically, the HMI display screen acquires corresponding data to be read in a preset buffer area according to a read operation, and the preset buffer area stores in advance a corresponding relationship between a storage address and the data to be read. The preset buffer area is built in the HMI and is used for pre-storing a storage address and data to be read and a corresponding relation between the storage address and the data to be read, and the improvement of a hardware structure in the HMI is related to details of the hardware structure and are not described again. The preset buffer area can be a hard disk, and can be an expanded memory area, and the specific implementation mode is set according to specific conditions, and is not repeated here.
And S230, displaying the data to be read.
Specifically, after the HMI display screen acquires the data to be read, the data to be read is displayed, so that a user can intuitively see the data to be read. Therefore, the data to be read is stored by presetting the preset buffer area in the HMI display screen, and the preset buffer area performs data interaction with the PLC in real time. Referring to fig. 3, fig. 3 is an exemplary schematic diagram of an HMI display interface.
For example, the PLC controller controls the XX production device, and the HMI display screen may obtain operation information of the XX production device in real time from the preset buffer area, where the operation information includes information such as an operation frequency, an output voltage, an output current, an electricity consumption amount, a set frequency, and a working time.
In one possible implementation manner, the method for constructing the corresponding relation includes: acquiring a first storage address of data to be read from a PLC (programmable logic controller) through polling reading operation; constructing a corresponding relation between data to be read and a first storage address; and storing the corresponding relation, the data to be read and the first storage address into a preset cache area.
Specifically, before the HMI display screen acquires the data to be read in the preset buffer area, the corresponding relationship should be pre-built and stored in the preset buffer area. The HMI display screen acquires a first storage address with read data from the PLC through polling read operation, and then builds a corresponding relation between the data to be read and the first storage address, namely, the data to be read can be correspondingly searched through searching the first storage medium. Finally, the HMI display screen stores the corresponding relation, the data to be read and the first storage address into a preset buffer area. The polling reading operation refers to that when the HMI display screen interacts with the PLC, the corresponding driver continuously checks the state of the PLC device to determine whether new data to be read can be read. The corresponding relation between the data to be read and the storage address can be stored in a form of a table, the storage address and the data to be read are correspondingly filled in each item corresponding to the table, and the storage address and the data to be read are in one-to-one correspondence.
In one possible implementation manner, before storing the correspondence, the data to be read, and the first storage address in the preset buffer, the method further includes: numbering the first storage address according to a preset numbering rule, wherein the preset numbering rule is a monotonically increasing rule; a first number is added to the first memory address.
Specifically, before storing the corresponding relation, the data to be read and the first storage address in the preset buffer area, the HMI display screen also numbers the first storage address according to a preset numbering rule, wherein the preset numbering rule is a monotonically increasing rule, so that the first number is added to the first storage address. The value of the first number may start from a fixed value, such as number 1, number 2, number 3, and so on. Therefore, the HMI display screen is convenient to quickly arrange and search the storage address, so that the data to be read is quickly searched, and the acquisition efficiency is improved.
In one possible implementation, the HMI display screen is responsive to a user-entered write operation, the write operation being an operation to modify from a first storage address to a second storage address for data to be read; and sending the write operation to the PLC controller so that the PLC controller modifies the first storage address of the data to be read into the second storage address.
Specifically, when the user wants to modify the storage address of the data to be read, the HMI display screen responds to the writing operation input by the user and sends the writing operation to the PLC controller, so that the PLC controller modifies the first storage address of the data to be read into the second storage address. After the PLC controller modifies the storage address, the preset buffer area and the PLC controller interact in real time, so that the storage address of the data to be read in the preset buffer area is synchronously modified from the first storage address to the second storage address, and the synchronization of the preset buffer area and the data to be read of the PLC controller is ensured.
In one possible implementation, the polling read operation includes a first polling read operation and a second polling read operation, and specifically further includes: responding to the quick reading operation input by a user; the fast read operation is interposed between the first and second polling read operations such that the PLC controller sequentially performs the first polling read operation, the fast read operation, and the second polling read operation.
Specifically, the above-described polling read operation includes a first polling read operation and a second polling read operation. The HMI display screen also responds to the quick read operation input by the user and inserts the quick read operation between the first polling read operation and the second polling read operation so that the PLC controller sequentially executes the first polling read operation, the quick read operation and the second polling read operation. Among them, the fast read operation can be understood in the embodiment of the present application as follows: the user's abrupt operation of the HMI display triggers a fast read operation that requires intervening between normal polling read operations to be performed. The authority level of the fast read operation is higher than that of the polling read operation.
In a possible implementation manner, according to a reading operation, obtaining corresponding data to be read in a preset buffer area specifically includes: searching a first number in a preset buffer area, and if a second number corresponding to the first number exists in the preset buffer area, acquiring data to be read corresponding to the second number, wherein the first number and the second number are the same number.
Specifically, the specific process of acquiring corresponding data to be read in the preset buffer area by the HMI display according to the read operation includes: searching a first number in a preset buffer area, and when a second number corresponding to the first number exists in the preset buffer area, acquiring a storage address corresponding to the second number by the HMI display screen, so that the data to be read is read by utilizing the corresponding relation between the storage address and the data to be read, wherein the first number and the second number are the same number. The first number and the second number are the same number, which can be understood in the embodiment of the present application as follows: the first number and the second number are the same number.
For example, the number 1 is found in the preset buffer, and when the number 1 exists in the preset buffer, the HMI display screen obtains the storage address a corresponding to the number 1 and reads the data B to be read by using the correspondence between the storage address a and the data B to be read.
In one possible implementation manner, after the write operation is sent to the PLC controller to enable the PLC controller to modify the first storage address of the data to be read into the second storage address, the method specifically further includes: receiving prompt information sent by a PLC controller; and displaying the prompt information to prompt the user that the data to be read can be read.
Specifically, after the first storage address of the data to be read is modified into the second storage address by the PLC, prompt information is sent to the HMI display screen, and the HMI display screen displays the prompt information after receiving the prompt information sent by the PLC. Therefore, the user can intuitively see the prompt information on the HMI display screen, so that the PLC controller can know that the storage address of the data to be read is modified, and the data to be read can be read. For example, the content of the prompt message may be: "memory address modification of XX data is completed, and can be read".
The application further provides a data processing device, and referring to fig. 4, fig. 4 is a schematic block diagram of the data processing device according to the embodiment of the application. As shown in fig. 4, the data processing device is an HMI display screen, where the HMI display screen includes a receiving module 41, a processing module 42, and a display module 43, and the receiving module 41 is configured to respond to a read operation input by a user, where the read operation includes a first storage address of data to be read; the processing module 42 is configured to obtain corresponding data to be read in a preset buffer area according to a read operation, where a corresponding relationship between a storage address and the data to be read is pre-stored in the preset buffer area; the display module 43 is configured to display the data to be read.
In one possible implementation, the processing module 42 obtains the first memory address of the data to be read from the PLC controller by a polling read operation; the processing module 42 constructs a correspondence between the data to be read and the first memory address; the processing module 42 stores the corresponding relationship, the data to be read, and the first storage address into the preset buffer.
In one possible implementation manner, before storing the correspondence, the data to be read, and the first storage address in the preset buffer, the processing module 42 specifically further includes: the processing module 42 numbers the first storage address according to a preset numbering rule, wherein the preset numbering rule is a monotonically increasing rule; the processing module 42 adds a first number to the first memory address.
In one possible implementation, the receiving module 41 responds to a write operation input by a user, wherein the write operation is an operation for modifying the data to be read from the first storage address to the second storage address; the processing module 42 sends a write operation to the PLC controller to cause the PLC controller to modify the first memory address of the data to be read to the second memory address.
In one possible implementation, the polling read operation includes a first polling read operation and a second polling read operation, and specifically further includes: the receiving module 41 responds to a quick read operation input by a user; the processing module 42 inserts the quick read operation between the first and second polling read operations to cause the PLC controller to sequentially perform the first, quick, and second polling read operations.
In a possible implementation manner, the processing module 42 obtains, according to a read operation, corresponding data to be read in a preset buffer, and specifically includes: the processing module 42 searches the first number in the preset buffer, and if a second number corresponding to the first number exists in the preset buffer, the processing module 42 obtains the data to be read corresponding to the second number, wherein the first number and the second number are the same number.
In one possible implementation, after the processing module 42 sends the write operation to the PLC controller to cause the PLC controller to modify the first storage address of the data to be read to the second storage address, the method specifically further includes: the receiving module 41 receives prompt information sent by the PLC controller; the display module 43 displays a prompt message to prompt the user that the data to be read is readable.
The application further provides an electronic device, and referring to fig. 5, fig. 5 is a schematic structural diagram of the electronic device. The electronic device may include: at least one processor 51, at least one network interface 54, a user interface 53, a memory 55, at least one communication bus 52.
Wherein the communication bus 52 is used to enable connected communication between these components.
The user interface 53 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 53 may further include a standard wired interface and a standard wireless interface.
The network interface 54 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 51 may comprise one or more processing cores. The processor 51 connects various parts within the overall server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 55, and invoking data stored in the memory 55. Alternatively, the processor 51 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 51 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 51 and may be implemented by a single chip.
The Memory 55 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 55 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 55 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 55 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 55 may optionally be at least one memory device located remotely from the aforementioned processor 51. As shown in fig. 5, an operating system, a network communication module, a user interface module, and an application program of a data processing method may be included in the memory 55 as a computer storage medium.
In the electronic device shown in fig. 5, the user interface 53 is mainly used for providing an input interface for a user, and acquiring data input by the user; and processor 51 may be used to invoke an application program in memory 55 that stores a data processing method, which when executed by one or more processors, causes the electronic device to perform the method as in one or more of the embodiments described above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned memory includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A data processing method, applied to an HMI display, the method comprising:
responding to a read operation input by a user, wherein the read operation comprises a first storage address of data to be read;
according to the reading operation, corresponding data to be read is obtained in a preset buffer zone, and the corresponding relation between a storage address and the data to be read is prestored in the preset buffer zone;
and displaying the data to be read.
2. The data processing method according to claim 1, wherein the method of constructing the correspondence relation includes:
acquiring a first storage address of the data to be read from the PLC by polling read operation;
constructing a corresponding relation between the data to be read and the first storage address;
and storing the corresponding relation, the data to be read and the first storage address into the preset buffer area.
3. The data processing method according to claim 2, wherein before storing the correspondence, the data to be read, and the first storage address in the preset buffer, the method further comprises:
numbering the first storage address according to a preset numbering rule, wherein the preset numbering rule is a monotonically increasing rule;
a first number is added to the first memory address.
4. The data processing method of claim 1, wherein the method further comprises:
responding to a writing operation input by a user, wherein the writing operation is an operation of modifying the first storage address into a second storage address aiming at the data to be read;
and sending the write operation to the PLC controller so that the PLC controller modifies the first storage address of the data to be read into a second storage address.
5. The data processing method of claim 2, wherein the polling read operation comprises a first polling read operation and a second polling read operation, the method further comprising:
responding to the quick reading operation input by a user;
and inserting the quick reading operation between the first polling reading operation and the second polling reading operation so that the PLC controller sequentially executes the first polling reading operation, the quick reading operation and the second polling reading operation.
6. The method for processing data according to claim 3, wherein the acquiring the corresponding data to be read in the preset buffer according to the read operation specifically includes:
searching the first number in the preset buffer area, and if a second number corresponding to the first number exists in the preset buffer area, acquiring data to be read corresponding to the second number, wherein the first number and the second number are the same number.
7. The data processing method according to claim 4, wherein after the writing operation is transmitted to the PLC controller to cause the PLC controller to modify the first memory address of the data to be read to the second memory address, the method further comprises:
receiving prompt information sent by the PLC;
and displaying the prompt information to prompt a user that the data to be read can be read.
8. A data processing device is characterized in that the data processing device is an HMI display screen, the HMI display screen comprises a receiving module (41), a processing module (42) and a display module (43), wherein,
-the receiving module (41) being adapted to respond to a read operation entered by a user, the read operation comprising a first memory address of data to be read;
the processing module (42) is configured to obtain corresponding data to be read in a preset buffer area according to the read operation, where a corresponding relationship between a storage address and the data to be read is pre-stored in the preset buffer area;
the display module (43) is used for displaying the data to be read.
9. An electronic device, characterized in that the electronic device comprises a processor (51), a memory (55), a user interface (53) and a network interface (54), the memory (55) being adapted to store instructions, the user interface (53) and the network interface (54) being adapted to communicate to other devices, the processor (51) being adapted to execute the instructions stored in the memory (55) to cause the electronic device to perform the method according to any one of claims 1 to 7.
10. A computer readable storage medium storing instructions which, when executed, perform the method of any one of claims 1 to 7.
CN202310414732.4A 2023-04-18 2023-04-18 Data processing method and device, electronic equipment and storage medium Active CN116483737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310414732.4A CN116483737B (en) 2023-04-18 2023-04-18 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310414732.4A CN116483737B (en) 2023-04-18 2023-04-18 Data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116483737A true CN116483737A (en) 2023-07-25
CN116483737B CN116483737B (en) 2024-03-15

Family

ID=87211326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310414732.4A Active CN116483737B (en) 2023-04-18 2023-04-18 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116483737B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117452873A (en) * 2023-12-26 2024-01-26 宁波和利时信息安全研究院有限公司 Communication method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550002A (en) * 2015-12-28 2016-05-04 北京元心科技有限公司 interface display method based on system switching and intelligent terminal
CN108322905A (en) * 2018-01-19 2018-07-24 维沃移动通信有限公司 A kind of method for reading data and mobile terminal
CN108733584A (en) * 2017-04-17 2018-11-02 伊姆西Ip控股有限责任公司 Method and apparatus for optimizing data buffer storage
CN108766402A (en) * 2018-05-22 2018-11-06 王翔 A kind of music score of Chinese operas display systems
WO2020034729A1 (en) * 2018-08-17 2020-02-20 华为技术有限公司 Data processing method, related device, and computer storage medium
CN113986788A (en) * 2021-10-28 2022-01-28 昆仑芯(北京)科技有限公司 Data processing method and device, chip, electronic device and medium
CN114360468A (en) * 2022-02-18 2022-04-15 上海铼锶信息技术有限公司 Screen refreshing display method and system
CN114780037A (en) * 2022-04-26 2022-07-22 上海物骐微电子有限公司 Data processing method, data processing system and computer readable storage medium
CN115018333A (en) * 2022-06-15 2022-09-06 菠尔数据科技(上海)有限公司 Digital operation management method and system for industrial park

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550002A (en) * 2015-12-28 2016-05-04 北京元心科技有限公司 interface display method based on system switching and intelligent terminal
CN108733584A (en) * 2017-04-17 2018-11-02 伊姆西Ip控股有限责任公司 Method and apparatus for optimizing data buffer storage
CN108322905A (en) * 2018-01-19 2018-07-24 维沃移动通信有限公司 A kind of method for reading data and mobile terminal
CN108766402A (en) * 2018-05-22 2018-11-06 王翔 A kind of music score of Chinese operas display systems
WO2020034729A1 (en) * 2018-08-17 2020-02-20 华为技术有限公司 Data processing method, related device, and computer storage medium
CN113986788A (en) * 2021-10-28 2022-01-28 昆仑芯(北京)科技有限公司 Data processing method and device, chip, electronic device and medium
CN114360468A (en) * 2022-02-18 2022-04-15 上海铼锶信息技术有限公司 Screen refreshing display method and system
CN114780037A (en) * 2022-04-26 2022-07-22 上海物骐微电子有限公司 Data processing method, data processing system and computer readable storage medium
CN115018333A (en) * 2022-06-15 2022-09-06 菠尔数据科技(上海)有限公司 Digital operation management method and system for industrial park

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JACOB MELLADO: "Design of an IoT-PLC: A containerized programmable logical controller for the industry 4.0", JOURNAL OF INDUSTRIAL INFORMATION INTEGRATION, vol. 25, 31 January 2022 (2022-01-31) *
吴连慧;周建江;夏伟杰;: "基于FPGA的DDR3多端口读写存储管理设计", 单片机与嵌入式系统应用, no. 01, 1 January 2015 (2015-01-01) *
尧怡陇;叶松;王敬东;郭俊;马祥辉;: "WTTVS监控管理系统中PPI协议的应用与实现", 气象水文海洋仪器, no. 04, 15 December 2013 (2013-12-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117452873A (en) * 2023-12-26 2024-01-26 宁波和利时信息安全研究院有限公司 Communication method, device, equipment and storage medium
CN117452873B (en) * 2023-12-26 2024-03-15 宁波和利时信息安全研究院有限公司 Communication method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116483737B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
EP3623942B1 (en) Message processing method and apparatus, storage medium, and computer device
US10198410B2 (en) Method, device and mobile terminal for restoring page
CN110297636B (en) Page automatic generation and parameter management method, system and device based on page configuration file
CN116483737B (en) Data processing method and device, electronic equipment and storage medium
US11829588B2 (en) Method, apparatus, and system for generating resource value transfer request
CN108255952B (en) Data loading method and device, storage medium and electronic equipment
CN104572822A (en) Method and device for displaying text
EP4220377A1 (en) Cloud desktop display method and system
CN113051493A (en) Application program display method and device, storage medium and terminal
CN115309470A (en) Method, device and equipment for loading widgets and storage medium
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
CN113163255B (en) Video playing method, device, terminal and storage medium
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
CN108062401B (en) Application recommendation method and device and storage medium
CN112363980A (en) Data processing method and device for distributed system
CN111367606A (en) Application page display method, device, terminal and medium
CN111324310A (en) Data reading method and device and computer system
CN116016822A (en) Monitoring equipment data storage method and device, storage medium and equipment
CN112367535B (en) Generation method and device of active user interface
CN113992989A (en) Content display method, device, system, equipment and storage medium
WO2018090463A1 (en) Method, device and system for displaying input information by region
CN109782925B (en) Processing method and device and electronic equipment
CN112035133A (en) Homepage upgrading method and terminal
CN113949601B (en) Inter-controller station communication method, device and computer readable storage medium
CN116266871B (en) Control mode switching method and device of Android device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant