CN112114798B - LCD display method, device, terminal and storage medium - Google Patents

LCD display method, device, terminal and storage medium Download PDF

Info

Publication number
CN112114798B
CN112114798B CN202011029573.9A CN202011029573A CN112114798B CN 112114798 B CN112114798 B CN 112114798B CN 202011029573 A CN202011029573 A CN 202011029573A CN 112114798 B CN112114798 B CN 112114798B
Authority
CN
China
Prior art keywords
information
word stock
human
display
computer interface
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.)
Active
Application number
CN202011029573.9A
Other languages
Chinese (zh)
Other versions
CN112114798A (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.)
Shenzhen Eunicum Electric Co ltd
Original Assignee
Shenzhen Eunicum Electric 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 Shenzhen Eunicum Electric Co ltd filed Critical Shenzhen Eunicum Electric Co ltd
Priority to CN202011029573.9A priority Critical patent/CN112114798B/en
Publication of CN112114798A publication Critical patent/CN112114798A/en
Application granted granted Critical
Publication of CN112114798B publication Critical patent/CN112114798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a display method, a device, a terminal and a storage medium of an LCD, wherein the display method of the LCD comprises the following steps: acquiring word stock information in a human-computer interface; if the word stock information is inconsistent with the target word stock information, downloading the target word stock information into a human-computer interface, wherein the target word stock information is the word stock information in the control system; sending display information to a human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice; and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface. The problems that the complexity of a software algorithm is improved and the difficulty of modifying the software code is increased due to the fact that the HMI software and the control system are required to be simultaneously modified when the control system is customized are solved, and the effects of reducing the complexity of the software algorithm, facilitating software maintenance and simplifying the customization modification are achieved.

Description

LCD display method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a display method, a device, a terminal, and a storage medium for an LCD.
Background
In HMI in the field of industrial control, LCD displays are a vast majority of market share. While the conventional LCD displays, the interface and the word stock are generally stored in the HMI (human-machine interface), if the customer needs to customize the control system, the HMI software and the control system need to be modified at the same time, thereby increasing the complexity of the software algorithm and increasing the difficulty of modifying the software code.
Disclosure of Invention
The embodiment of the application aims to solve the problems that when a control system is customized, HMI software and the control system need to be modified simultaneously, so that the complexity of a software algorithm is improved and the difficulty of modifying software codes is increased.
In order to achieve the above object, an aspect of the present application provides a display method of an LCD, the display method of the LCD including:
acquiring word stock information in a human-computer interface;
if the word stock information is inconsistent with the target word stock information, downloading the target word stock information into the human-computer interface, wherein the target word stock information is the word stock information in a control system;
sending display information to the human-computer interface, so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information, and displays the character lattice;
and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface.
Optionally, the step of executing the key operation corresponding to the key information to obtain the result information of the key processing includes:
if the key operation corresponding to the key information is a modification operation of the display parameter, determining a parameter value to be modified in the current display parameter according to the key information;
and modifying the parameter value to be modified into a set value to obtain modified display parameter information.
Optionally, the step of executing the key operation corresponding to the key information to obtain the result information of the key processing further includes:
if the key operation corresponding to the key information is the switching operation of the display content, determining the display content to be switched according to the key information;
and switching the display content to be switched into the set display content to obtain the switched display content.
Optionally, the step of sending display information to the human-computer interface to enable the human-computer interface to obtain a character lattice corresponding to the display information in the target word stock information, and displaying the character lattice includes:
and sending the character codes of the display information to the human-computer interface so that the human-computer interface obtains a character lattice corresponding to the character codes in the target word stock information, obtains lattice coordinate information in the character lattice, and displays characters on coordinate positions corresponding to the lattice coordinate information.
Optionally, the step of acquiring word stock information in the human-computer interface includes:
when the machine is started, sending an acquisition instruction of the word stock information to the human-computer interface;
and acquiring word stock information in the human-computer interface according to the acquisition instruction.
Optionally, before the step of if the word stock information is inconsistent with the target word stock information, the method includes:
the version information and the time stamp information of the word stock in the man-machine interface are obtained;
and judging whether the version information of the word stock in the man-machine interface is matched with the version information of the word stock in the target word stock and whether the timestamp information of the word stock in the man-machine interface is matched with the timestamp information of the word stock in the target word stock.
Optionally, after the step of determining whether the version information of the word stock in the human-computer interface is matched with the version information of the word stock in the target word stock and the timestamp information of the word stock in the human-computer interface is matched with the timestamp information of the word stock in the target word stock, the method includes:
if any item is not matched, determining that the word stock information is inconsistent with the target word stock information.
In addition, to achieve the above object, another aspect of the present application provides a display device of an LCD, the device including:
the acquisition module is used for acquiring word stock information in the human-computer interface;
the downloading module is used for downloading the target word stock information into the human-computer interface if the word stock information is inconsistent with the target word stock information, wherein the target word stock information is the word stock information in the control system;
the sending module is used for sending display information to the human-computer interface so that the human-computer interface can acquire a character lattice corresponding to the display information from the target word stock information and display the character lattice;
the receiving module is used for receiving the key information sent by the human-computer interface, executing the key operation corresponding to the key information to obtain the result information of key processing, and sending the result information to the human-computer interface.
In addition, in order to achieve the above object, another aspect of the present application provides a terminal including a memory, a processor, and a display program of an LCD stored on the memory and running on the processor, the processor implementing the steps of the display method of the LCD as described above when executing the display program of the LCD.
In addition, in order to achieve the above object, another aspect of the present application provides a computer-readable storage medium having stored thereon a display program of an LCD, which when executed by a processor, implements the steps of the display method of an LCD as described above.
When the word stock information in the human-computer interface is obtained, judging whether the word stock information is consistent with the target word stock information, and if not, downloading the target word stock information into the human-computer interface, wherein the target word stock information is the word stock information in the control system; sending display information to a human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice; and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface. The processing operations such as an interface, a word stock, keys and the like are performed at the control system end, and the HMI only realizes the display function, so that when the control system is customized, HMI software and the control system do not need to be modified at the same time, and the effects of reducing the complexity of a software algorithm, facilitating software maintenance and simplifying customization modification are achieved.
Drawings
Fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present application;
FIG. 2 is a flow chart of a first embodiment of a display method of an LCD according to the present application;
FIG. 3 is a flow chart of a second embodiment of a display method of the LCD of the present application;
FIG. 4 is a schematic flow chart of acquiring word stock information in a human-computer interface in a display method of an LCD of the present application;
FIG. 5 is a schematic flow chart before the step of disagreeing the word stock information with the target word stock information in the LCD display method of the present application;
FIG. 6 is a schematic flow chart of sending display information to the human-computer interface in the display method of the LCD in the application, so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information, and displays the character lattice;
fig. 7 is a schematic flow chart of a key operation corresponding to the key information in the display method of the LCD of the present application to obtain the result information of the key processing.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The main solutions of the embodiments of the present application are: acquiring word stock information in a human-computer interface; if the word stock information is inconsistent with the target word stock information, downloading the target word stock information into a human-computer interface, wherein the target word stock information is the word stock information in the control system; sending display information to a human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice; and receiving key information sent by the human-computer interface after the response of the display information, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface.
Because of the conventional LCD display, the interface and the word stock are generally stored in the HMI (human-machine interface), and if a customer needs to customize the control system, the HMI software and the control system need to be modified at the same time, thereby increasing the complexity of the software algorithm and increasing the difficulty of modifying the software code. When word stock information in a human-computer interface is acquired, judging whether the word stock information is consistent with target word stock information, and if not, downloading the target word stock information into the human-computer interface, wherein the target word stock information is the word stock information in a control system; sending display information to a human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice; and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface. The processing operations such as an interface, a word stock, keys and the like are performed at the control system end, and the HMI only realizes the display function, so that when the control system is customized, HMI software and the control system do not need to be modified at the same time, and the effects of reducing the complexity of a software algorithm, facilitating software maintenance and simplifying customization modification are achieved.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present application.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may further include a camera, an RF (Radio Frequency) circuit, a sensor, a remote control, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may be further configured with other sensors such as a gyroscope, a barometer, a hygrometer, a temperature sensor, etc., which will not be described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a display program of an LCD may be included in a memory 1005 as one type of computer-readable storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to call up a display program of the LCD stored in the memory 1005 and perform the following operations:
acquiring word stock information in a human-computer interface;
if the word stock information is inconsistent with the target word stock information, downloading the target word stock information into the human-computer interface, wherein the target word stock information is the word stock information in a control system;
sending display information to the human-computer interface, so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information, and displays the character lattice;
and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a display method of an LCD according to the present application, where the display method of the LCD includes the following steps:
step S10, acquiring word stock information in a human-computer interface;
because of the conventional LCD display, the interface and the word stock are generally stored in the HMI module, and if the customer needs to customize the control system, the HMI and the control system need to be modified simultaneously, which results in increasing complexity of the software algorithm and increasing difficulty of modifying the software code, and the modification operation of the word stock information in the present application is performed in the control system.
The control system and the HMI human-computer interface are all stored with a word library composed of information such as characters, letters, numbers, punctuations, special characters and the like; when the control system recompiles to generate an executable file each time, information such as a version number, a time stamp and the like of a word stock can be automatically generated; and after the control system resumes communication with the HMI human-machine interface, reading word stock information in the HMI human-machine interface by the control system, wherein the word stock information comprises word stock version information, timestamp information generated by the word stock, character number and other information.
Optionally, when the word stock needs to be updated, modified and the like, the control system directly operates at the control system end, for example, when the word stock needs to be updated, the control system determines the version information of the current word stock and analyzes the configuration file; modifying the original configuration file, such as adding, deleting or changing characters, according to the update requirement, so as to generate a new configuration file; updating the configuration file in the word stock software version through the configuration file updating module, namely replacing the original configuration file with the new configuration file; and further, by running a word stock update command, the software automatically analyzes the new configuration file, realizes automatic update of the word stock, and generates a new word stock version. The operations of updating, modifying and the like of the word stock are carried out at the control system end, so that the software maintenance is convenient, the customization and modification are simple, and meanwhile, the encoding of a human-computer interface is reduced, so that the stock is reduced.
Further, referring to fig. 4, the step of obtaining word stock information in the human-computer interface includes:
step S11, when the machine is started, sending an acquisition instruction of the word stock information to the human-computer interface;
and step S12, acquiring word stock information in the human-computer interface according to the acquisition instruction.
And when the control system is powered on and runs each time, sending an acquisition instruction of the word stock information to the HMI human-machine interface, analyzing the acquisition instruction after the HMI human-machine interface receives the acquisition instruction sent by the control system, further judging the word stock information which needs to be acquired by the acquisition instruction, such as the word stock version information of the word stock, timestamp information generated by the word stock, the number of characters and the like, and returning the currently acquired word stock information to the control system.
Step S20, if the word stock information is inconsistent with the target word stock information, downloading the target word stock information into the human-computer interface, wherein the target word stock information is the word stock information in a control system;
when the word stock information in the control system is inconsistent with the word stock information in the HMI human-machine interface, the word stock information in the control system is not matched with the word stock information in the HMI human-machine interface; at this time, the control system automatically downloads the new version of the word stock to the HMI human-machine interface to replace the old version of the word stock in the HMI human-machine interface. Optionally, when it is determined that the word stock information in the control system is inconsistent with the word stock information in the HMI human-machine interface, acquiring character information of an update portion existing in the new version word stock, and replacing the character information of the update portion with the corresponding character information in the old version.
When the corresponding word stock information in the control system and the HMI human-machine interface is inconsistent, the word stock information of the control system is directly downloaded to the HMI human-machine interface, so that the codes and the stock of the HMI human-machine interface are reduced, and the generation is convenient; meanwhile, the information of the word stock is downloaded when in use, and plug and play of the HMI human-machine interface is realized.
Further, referring to fig. 5, before the step of if the word stock information is inconsistent with the target word stock information, the method includes:
step S21, version information and time stamp information of a word stock in the man-machine interface are obtained;
and S22, judging whether the version information of the word stock in the human-computer interface is matched with the version information of the word stock in the target word stock and whether the timestamp information of the word stock in the human-computer interface is matched with the timestamp information of the word stock in the target word stock.
When the control system receives word stock information returned by the HMI human-machine interface, reading version information and timestamp information of the word stock in the HMI human-machine interface; the version information comprises information such as version numbers, modification records, record marks and the like, and the timestamp information is time node information for word stock updating. And further judging whether the version information of the word stock in the HMI human-machine interface is matched with the version information of the word stock in the target word stock and whether the timestamp information of the word stock in the HMI human-machine interface is matched with the timestamp information of the word stock in the target word stock. If the information is matched with the information, the word stock information in the HMI human-machine interface is determined to be consistent with the word stock information in the control system, namely, the word stock in the HMI human-machine interface is the latest version, and the control system does not need to push the word stock information to the HMI human-machine interface again. If any item is not matched, determining that the word stock information in the HMI human-machine interface is inconsistent with the word stock information in the control system.
Step S30, sending display information to the human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice;
when the characters need to be displayed, pushing full-screen display information to an HMI human-machine interface by a control system, specifically, generating a message of the full-screen display information by the control system, and when the information of the message accords with pushing conditions, sending an http pushing message to the HMI human-machine interface; determining whether an http feedback message sent by an HMI human-machine interface is received, and if the http feedback message is received, indicating that the message pushing of the full-screen display information is successful; if the feedback message is not received, the message indicating the full-screen display information is not successfully pushed, and the message indicating the full-screen display information is pushed to the HMI again. After receiving a message of full-screen display information, the HMI human-machine interface acquires the full-screen display information in the message, further acquires character codes in the full-screen display information, searches a corresponding character lattice in a word stock according to the character codes, and displays the character lattice; wherein the character lattice is a character shape composed of a group of dots, the lattice of each character can be represented by several bytes according to the size thereof, and the lattice number is composed of 5×7 or 7×9, etc.
Further, referring to fig. 6, the step of sending display information to the human-computer interface to enable the human-computer interface to obtain a character lattice corresponding to the display information in the target word stock information, and displaying the character lattice includes:
step S31, the character codes of the display information are sent to the human-computer interface, so that the human-computer interface obtains a character lattice corresponding to the character codes in the target word stock information, obtains lattice coordinate information in the character lattice, and displays characters on coordinate positions corresponding to the lattice coordinate information.
The control system sends character codes of full screen display information to the HMI human-machine interface through a communication channel, wherein the character codes comprise UNICODE codes, GB2312 codes and the like. After receiving the character codes of the full-screen display information, the HMI human-machine interface acquires a character lattice corresponding to the character codes in a character library, further acquires lattice coordinate information in the character lattice, and displays characters on coordinate positions corresponding to the lattice coordinate information. For example: taking the character lattice of the Chinese character as an example, the HMI human-computer interface obtains GB2312 codes according to the Chinese character, calculates the zone bit and the code bit of the Chinese character in the lattice word stock through the GB2312 codes, calculates the offset in the lattice word stock through the zone bit and the code bit, obtains 32 pixel storage bytes of the Chinese character based on the offset, analyzes the pixel bytes to obtain lattice coordinate information, and displays information bits in corresponding coordinates.
Step S40, receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface.
After the control system sends a message of http push full screen display information to the HMI human-machine interface, the HMI human-machine interface returns key information to the control system when responding to the message; the control system can detect whether the physical key is triggered according to the voltage or current when the key is pressed down for the physical key; for virtual keys, the control system may use corresponding software to detect whether a virtual key is activated. When receiving key information returned by an HMI human-machine interface, the control system acquires a key code corresponding to the key information, and further determines key operation corresponding to the key by the key code, such as operations of modifying display parameters, switching page display and the like; and executing key operation to obtain key processing result information, and sending the result information to an HMI human-machine interface, wherein the result information comprises whether key operation information is finished, time information spent responding to the key information and the like.
After receiving the result information, if the control system responds to the key information according to the result information, the HMI human-machine interface displays the content corresponding to the result information, for example, if the key operation is to modify the display parameter, the HMI human-machine interface displays the content after modifying the display parameter; and if the control system does not respond to the key information according to the result information, the key information is sent to the control system again.
When the word stock information in the human-computer interface is obtained, judging whether the word stock information is consistent with the target word stock information, and if not, downloading the target word stock information into the human-computer interface, wherein the target word stock information is the word stock information in the control system; sending display information to a human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice; and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface. The processing operations such as an interface, a word stock, keys and the like are performed at the control system end, and the HMI only realizes the display function, so that when the control system is customized, HMI software and the control system do not need to be modified at the same time, and the effects of reducing the complexity of a software algorithm, facilitating software maintenance and simplifying customization modification are achieved.
Further, referring to fig. 3, a second embodiment of the display method of the LCD of the present application is proposed.
The second embodiment of the display method of the LCD is different from the first embodiment of the display method of the LCD in that the step of performing the key operation corresponding to the key information to obtain the result information of the key processing includes:
step S41, if the key operation corresponding to the key information is a modification operation of the display parameter, determining a parameter value to be modified in the current display parameter according to the key information;
step S42, modifying the parameter value to be modified to a set value, so as to obtain modified display parameter information.
Parameters on the HMI human-machine interface are mainly used for display parameter modification, page switching, display format modification and the like, if key operation corresponding to key information received by the control system is modification operation of the display parameters, a parameter value to be modified in the current display parameters is determined according to the key information, and the parameter value to be modified is further modified into a set value to obtain modified display parameter information; the display parameters comprise color parameters, character size parameters, display window size parameters, resolution parameters and the like, and the set values are input parameter values. For example: if the key operation corresponding to the key information is modification of the character size parameter, determining a character to be modified in the currently displayed characters, if the currently displayed characters have 'LCD display', and if the character to be modified is 'display', acquiring the character size of 'display', such as number four; and further acquiring the input character size, such as the second number, and modifying the character size of the displayed character from the fourth number to the second number. Optionally, the color of the character to be modified may also be set at the same time, specifically, the original color of the character to be modified, such as black, is obtained, and the input color information, such as red, is further obtained from the key information; the color of the character to be modified is modified from black to red. The control system sends the modified parameter information to the HMI human-machine interface so that the HMI human-machine interface displays the modified character information.
Further, referring to fig. 7, the step of executing the key operation corresponding to the key information to obtain the result information of the key processing further includes:
step S43, if the key operation corresponding to the key information is a switching operation of the display content, determining the display content to be switched according to the key information;
and S44, switching the display content to be switched into the set display content to obtain the switched display content.
When the control system determines that the key operation corresponding to the key information is the switching operation of the display content, determining the display content to be switched according to the key information, wherein the switching operation of the display content is page switching, and the page switching comprises a page-turnable list, a webpage, a picture and the like; the page switching comprises switching from one complete page to another complete page, and further comprises forward, backward or left-right movement on the same page; in a specific implementation, the page switch operation may include: page switch direction, page switch number, proportional page turn, etc. Further, since the page is made up of a plurality of page elements that it includes, such as text, pictures, audio, video, page animation, and page components (buttons, icons) that can be operated to provide corresponding interactive functions, etc. Therefore, when the page switching is performed, the display content to be switched needs to be determined first, if the current display content to be switched is the text information in the switched page, the input text information is acquired according to the key information, for example, the text information in the page is "LCD", and if the input text information is "display of LCD", the "LCD" is switched to "display of LCD". And the control system sends the display content information after switching to the HMI human-machine interface so that the HMI human-machine interface displays the switched page content.
According to the embodiment, the display parameter modification operation and the page switching operation corresponding to the key information are executed at the control system end, so that the HMI human-machine interface only achieves the display function, meanwhile, the software complexity is reduced, the software maintenance is convenient, the customization modification is simple, and the production and inventory management are convenient.
In addition, the present application also provides a display device of an LCD, the device including:
the acquisition module is used for acquiring word stock information in the human-computer interface;
the downloading module is used for downloading the target word stock information into the human-computer interface if the word stock information is inconsistent with the target word stock information, wherein the target word stock information is the word stock information in the control system;
the sending module is used for sending display information to the human-computer interface so that the human-computer interface can acquire a character lattice corresponding to the display information from the target word stock information and display the character lattice;
the receiving module is used for receiving the key information sent by the human-computer interface, executing the key operation corresponding to the key information to obtain the result information of key processing, and sending the result information to the human-computer interface.
Further, the receiving module comprises a determining unit and a modifying unit;
the determining unit is used for determining a parameter value to be modified in the current display parameter according to the key information if the key operation corresponding to the key information is a modification operation of the display parameter;
the modifying unit is configured to modify the parameter value to be modified into a set value, so as to obtain modified display parameter information.
Further, the receiving module further comprises a switching unit;
the determining unit is further configured to determine, if the key operation corresponding to the key information is a switching operation of the display content, the display content to be switched according to the key information;
the switching unit is used for switching the display content to be switched into the set display content so as to obtain the switched display content.
Further, the sending module is further configured to send a character code of the display information to the human-computer interface, so that the human-computer interface obtains a character lattice corresponding to the character code in the target word stock information, obtains lattice coordinate information in the character lattice, and displays characters on coordinate positions corresponding to the lattice coordinate information.
Further, the acquisition module comprises a sending unit and an acquisition unit;
the sending unit is used for sending an acquisition instruction of the word stock information to the human-computer interface when the machine is started to run;
the acquisition unit is used for acquiring the word stock information in the human-computer interface according to the acquisition instruction.
Further, the downloading module comprises an acquisition unit and a judging unit;
the acquisition unit is used for acquiring version information and time stamp information of the word stock in the human-computer interface;
the judging unit is used for judging whether the version information of the word stock in the human-computer interface is matched with the version information of the word stock in the target word stock and whether the timestamp information of the word stock in the human-computer interface is matched with the timestamp information of the word stock in the target word stock.
Further, the judging unit is further configured to determine that the word stock information is inconsistent with the target word stock information if any one of the items is not matched.
The implementation of the functions of each module of the LCD display device is similar to the process in the above method embodiment, and will not be described in detail herein.
In addition, the application also provides a terminal, which comprises a memory, a processor and a display program of an LCD (liquid crystal display) stored in the memory and running on the processor, wherein when the terminal acquires the word stock information in a human-computer interface, the terminal judges whether the word stock information is consistent with the target word stock information, if not, the target word stock information is downloaded to the human-computer interface, and the target word stock information is the word stock information in a control system; sending display information to a human-computer interface so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information and displays the character lattice; and receiving key information sent by the human-computer interface after the response of the display information, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface. The processing operations such as an interface, a word stock, keys and the like are performed at the control system end, and the HMI only realizes the display function, so that when the control system is customized, HMI software and the control system do not need to be modified at the same time, and the effects of reducing the complexity of a software algorithm, facilitating software maintenance and simplifying customization modification are achieved.
Further, the present application provides a computer-readable storage medium having stored thereon a display program of an LCD, which when executed by a processor, implements the steps of the display method of an LCD as described above.
Furthermore, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the display method of an LCD as described above.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (8)

1. A method of displaying an LCD, the method comprising:
when the machine is started, acquiring word stock information in a human-computer interface, wherein the word stock information comprises version information and timestamp information of a word stock;
judging whether version information of a word stock in the human-computer interface is matched with version information of a word stock in a target word stock and whether timestamp information of the word stock in the human-computer interface is matched with timestamp information of the word stock in the target word stock or not, wherein the target word stock information is the word stock information in a control system;
if any item is not matched, determining that the word stock information is inconsistent with the target word stock information;
acquiring character information of an updating part in the target character library information, and replacing the character information of the updating part with corresponding character library information in a human-computer interface;
sending display information to the human-computer interface, so that the human-computer interface obtains a character lattice corresponding to the display information from the target word stock information, and displays the character lattice;
and receiving key information sent by the human-computer interface, executing key operation corresponding to the key information to obtain key processing result information, and sending the result information to the human-computer interface.
2. The LCD display method according to claim 1, wherein the step of performing the key operation corresponding to the key information to obtain the result information of the key processing comprises:
if the key operation corresponding to the key information is a modification operation of the display parameter, determining a parameter value to be modified in the current display parameter according to the key information;
and modifying the parameter value to be modified into a set value to obtain modified display parameter information.
3. The LCD display method according to claim 1, wherein the step of performing the key operation corresponding to the key information to obtain key processing result information further comprises:
if the key operation corresponding to the key information is the switching operation of the display content, determining the display content to be switched according to the key information;
and switching the display content to be switched into the set display content to obtain the switched display content.
4. The LCD display method of claim 1, wherein the step of transmitting display information to the human-machine interface to cause the human-machine interface to acquire a character lattice corresponding to the display information in the target word stock information and display the character lattice comprises:
and sending the character codes of the display information to the human-computer interface so that the human-computer interface obtains a character lattice corresponding to the character codes in the target word stock information, obtains lattice coordinate information in the character lattice, and displays characters on coordinate positions corresponding to the lattice coordinate information.
5. The LCD display method of claim 1, wherein the step of acquiring the word stock information in the human-machine interface during the power-on operation comprises:
when the machine is started, sending an acquisition instruction of the word stock information to the human-computer interface;
and acquiring word stock information in the human-computer interface according to the acquisition instruction.
6. A display device for an LCD, the device comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring word stock information in a human-computer interface when the device is started and operated, and the word stock information comprises version information and time stamp information of a word stock;
the downloading module is used for judging whether the version information of the word stock in the human-computer interface is matched with the version information of the word stock in the target word stock and whether the timestamp information of the word stock in the human-computer interface is matched with the timestamp information of the word stock in the target word stock, wherein the target word stock information is the word stock information in the control system;
if any item is not matched, determining that the word stock information is inconsistent with the target word stock information;
acquiring character information of an updating part in the target character library information, and replacing the character information of the updating part with corresponding character library information in a human-computer interface;
the sending module is used for sending display information to the human-computer interface so that the human-computer interface can acquire a character lattice corresponding to the display information from the target word stock information and display the character lattice;
the receiving module is used for receiving the key information sent by the human-computer interface, executing the key operation corresponding to the key information to obtain the result information of key processing, and sending the result information to the human-computer interface.
7. A terminal comprising a memory, a processor and a display program for an LCD stored on the memory and running on the processor, the processor implementing the steps of the method according to any one of claims 1 to 5 when executing the display program for an LCD.
8. A computer readable storage medium, characterized in that it has stored thereon a display program of an LCD, which when executed by a processor, implements the steps of the method according to any of claims 1 to 5.
CN202011029573.9A 2020-09-25 2020-09-25 LCD display method, device, terminal and storage medium Active CN112114798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011029573.9A CN112114798B (en) 2020-09-25 2020-09-25 LCD display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011029573.9A CN112114798B (en) 2020-09-25 2020-09-25 LCD display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112114798A CN112114798A (en) 2020-12-22
CN112114798B true CN112114798B (en) 2024-02-06

Family

ID=73797912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011029573.9A Active CN112114798B (en) 2020-09-25 2020-09-25 LCD display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112114798B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324952A (en) * 2008-07-31 2008-12-17 福建升腾资讯有限公司 Liquid crystal touch control integrated information interactive terminal
CN101873451A (en) * 2010-05-19 2010-10-27 杭州海康威视数字技术股份有限公司 Method and device for realizing on-screen display (OSD) of characters
CN102426565A (en) * 2011-11-03 2012-04-25 北京华大智宝电子系统有限公司 SOC (System on Chip) chip with font processing function
CN111668928A (en) * 2020-05-06 2020-09-15 许昌许继软件技术有限公司 Display terminal and method for power protection device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen
CN102929615A (en) * 2012-10-16 2013-02-13 北京迪文科技有限公司 Display method and display device of man-machine interaction equipment
US10509771B2 (en) * 2017-10-30 2019-12-17 AtomBeam Technologies Inc. System and method for data storage, transfer, synchronization, and security using recursive encoding
CN108804066A (en) * 2018-06-11 2018-11-13 深圳市琥蜂科技有限公司 The display methods and computer readable storage medium of screen display character

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324952A (en) * 2008-07-31 2008-12-17 福建升腾资讯有限公司 Liquid crystal touch control integrated information interactive terminal
CN101873451A (en) * 2010-05-19 2010-10-27 杭州海康威视数字技术股份有限公司 Method and device for realizing on-screen display (OSD) of characters
CN102426565A (en) * 2011-11-03 2012-04-25 北京华大智宝电子系统有限公司 SOC (System on Chip) chip with font processing function
CN111668928A (en) * 2020-05-06 2020-09-15 许昌许继软件技术有限公司 Display terminal and method for power protection device

Also Published As

Publication number Publication date
CN112114798A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
EP3623942B1 (en) Message processing method and apparatus, storage medium, and computer device
CN109725901B (en) Front-end code development method, device, equipment and computer storage medium
US10810698B2 (en) Information processing method and client
CN110990741B (en) Page display method and device, electronic equipment, server and storage medium
WO2017121278A1 (en) Information-pushing device, method, client and machine-readable storage medium
US20230004620A1 (en) Page display method
US20150121301A1 (en) Information processing method and electronic device
CN112612690B (en) User interface information processing method and device, electronic equipment and storage medium
CN110990431A (en) Method for realizing synchronous linkage carousel of China map and line graph data
CN113190152A (en) Method and device for switching application program theme
CN111638841B (en) Message detail page display method and device and electronic equipment
CN114415847A (en) Text information deleting method and device and electronic equipment
US20060288277A1 (en) Communication apparatus and display method
CN111338625A (en) Data processing method, system, terminal equipment and storage medium
CN112114798B (en) LCD display method, device, terminal and storage medium
CN111934985B (en) Media content sharing method, device, equipment and computer readable storage medium
CN113703634A (en) Interface display method and device
CN112363654A (en) Display control method of wearable device, wearable device and storage medium
CN113055707B (en) Video display method and device
CN112000905B (en) Information display method and device
CN104915372B (en) Webpage information bar display method, device and system
CN114237795A (en) Terminal interface display method and device, electronic equipment and readable storage medium
CN113868269A (en) Screenshot method and device, electronic equipment and readable storage medium
CN114020396A (en) Display method of application program and data generation method of application program
CN113407073A (en) Information display method and electronic equipment

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