CN107515744B - Implementation method for customized language based on dot matrix liquid crystal generator set controller - Google Patents

Implementation method for customized language based on dot matrix liquid crystal generator set controller Download PDF

Info

Publication number
CN107515744B
CN107515744B CN201710640586.1A CN201710640586A CN107515744B CN 107515744 B CN107515744 B CN 107515744B CN 201710640586 A CN201710640586 A CN 201710640586A CN 107515744 B CN107515744 B CN 107515744B
Authority
CN
China
Prior art keywords
liquid crystal
dimensional array
character
data model
dot matrix
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
CN201710640586.1A
Other languages
Chinese (zh)
Other versions
CN107515744A (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.)
Zhengzhou Smartgen Technology Co Ltd
Original Assignee
Zhengzhou Smartgen Technology 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 Zhengzhou Smartgen Technology Co Ltd filed Critical Zhengzhou Smartgen Technology Co Ltd
Priority to CN201710640586.1A priority Critical patent/CN107515744B/en
Publication of CN107515744A publication Critical patent/CN107515744A/en
Application granted granted Critical
Publication of CN107515744B publication Critical patent/CN107515744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention provides a method for realizing a custom language based on a dot matrix liquid crystal generator set controller, which comprises the following steps: step 1: establishing a data model of a custom language, wherein the data model comprises a character string data model, a character position data model and a dot matrix liquid crystal display data model; step 2, setting a plurality of language options by a generator set controller, wherein each language option corresponds to one display language data packet; and step 3: establishing connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model, and finding out a dot matrix liquid crystal data sequence corresponding to display data characters; and 4, step 4: and the dot matrix liquid crystal drives and scans the dot matrix liquid crystal data sequence to light up the liquid crystal, so that the display of the custom language on the generator set controller is realized. The invention has the advantages of standard operation, flexible function, simplicity, practicality, convenient maintenance, time saving and labor saving.

Description

Implementation method for customized language based on dot matrix liquid crystal generator set controller
Technical Field
The invention relates to a method for generating a custom language of liquid crystal display, in particular to a method for realizing the custom language based on a dot matrix liquid crystal generator set controller.
Background
The generator set is widely applied in industry, more and more products in China are in international markets along with the acceleration of globalization, a generator set controller is used as a control core of the generator set and a window most directly interacting with people, and a multi-national language becomes an indispensable part of the generator set controller.
However, the design workload of designing the generator set controller with display only accounts for more than half of the design workload of the whole controller, and when a Chinese generator set controller is developed, if a foreign trade is wanted, the Chinese generator set controller needs to be removed from the Chinese display and manually modified into a foreign language display. And the translation results of some users are not satisfied, and if the controller has some problems or the functions are upgraded, all the controllers in each language must be modified, which causes unnecessary waste of manpower and material resources.
In order to solve the above problems, people are always seeking an ideal technical solution.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method for realizing the user-defined language based on the dot matrix liquid crystal generator set controller, which has the advantages of standard operation, flexible function, simplicity, practicability, convenience in maintenance, time saving and labor saving.
In order to achieve the purpose, the invention adopts the technical scheme that: a realization method for self-defining language based on a dot matrix liquid crystal generator set controller comprises the following steps:
step 1: establishing a data model of a custom language, wherein the data model comprises a character string data model, a character position data model and a dot matrix liquid crystal display data model;
step 2, setting a plurality of language options by a generator set controller, wherein each language option corresponds to one display language data packet;
and step 3: establishing connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model, and finding out a dot matrix liquid crystal data sequence corresponding to display data characters;
and 4, step 4: and the dot matrix liquid crystal drives and scans the dot matrix liquid crystal data sequence to light up the liquid crystal, so that the display of the custom language on the generator set controller is realized.
Based on the above, in step 1, the character string data model is a two-dimensional array a, a first dimension of the two-dimensional array a is a displayed row number sequence, and a second dimension is a current row display data character;
the character position data model is a two-dimensional array b, the first dimension of the two-dimensional array b represents a displayed line number sequence, and the second dimension is a position sequence of the data characters displayed on the current line in a word stock;
the dot matrix liquid crystal display data model comprises a two-dimensional array c and a two-dimensional array d;
the first dimension of the two-dimensional array c is a position sequence of the self-defined language half-angle characters in a half-angle character library, and the second dimension is a dot matrix liquid crystal data sequence of the self-defined language half-angle characters;
the first dimension of the two-dimensional array d is the position of the full-angle character of the custom language in the full-angle word stock, and the second dimension is the dot matrix liquid crystal data sequence of the full-angle character of the custom language.
Based on the above, in the step 2, the display language data packet is stored in an address space array separately allocated by the generator set controller;
and the display language data packet is a two-dimensional array a of the custom language data model in the step 1.
Based on the above, in step 3, the connection between the character string data model, the character position data model, and the dot matrix liquid crystal display data model is established, which specifically includes the following steps:
i, establishing two word libraries according to a display language data packet imported by a client, wherein the word libraries comprise a half-corner character word library and a full-corner character word library;
II, selecting a character model for each display data character, recording dot matrix liquid crystal data corresponding to the display data character to obtain the two-dimensional array c or the two-dimensional array d, and obtaining the dot matrix liquid crystal display data model;
III, obtaining the two-dimensional array b containing the position sequence of the display data characters in the word stock according to the positions of the display data characters in different word stocks;
and IV, the position sequence corresponds to a first-dimension position sequence in the two-dimensional array c or the two-dimensional array d, and connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model is completed.
Based on the above, in the step III, if the display data character is a half-angle character, directly recording a position sequence to obtain the two-dimensional array b;
and if the display data character is a full-angle character, taking a 16-system 0xfa00 as a position reference to obtain the two-dimensional array b.
Based on the above, the character string data model is a two-dimensional array a; the character position data model is a two-dimensional array b; the dot matrix liquid crystal display data model comprises a two-dimensional array c and a two-dimensional array d;
the two-dimensional array b is written into an address space array o which is separately allocated by the generator set controller;
the two-dimensional array c is written into an address space array p which is separately allocated by the generator set controller;
and the two-dimensional array d is written into an address space array q which is separately allocated by the generator set controller.
Compared with the prior art, the method has substantive characteristics and progress, and particularly provides a method for generating the custom language based on the dot matrix liquid crystal generator set controller.
Drawings
FIG. 1 is a block flow diagram of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail by the following embodiments.
As shown in fig. 1, a method for implementing customized language based on dot matrix liquid crystal generator set controller includes the following steps:
step 1: establishing a data model of a custom language, wherein the data model comprises a character string data model, a character position data model and a dot matrix liquid crystal display data model;
in the step 1, the character string data model is a two-dimensional array a, a first dimension of the two-dimensional array a is a displayed row number sequence, and a second dimension is a current row display data character;
the character position data model is a two-dimensional array b, the first dimension of the two-dimensional array b represents a displayed line number sequence, and the second dimension is a position sequence of the data characters displayed on the current line in a word stock;
the dot matrix liquid crystal display data model comprises a two-dimensional array c and a two-dimensional array d;
the first dimension of the two-dimensional array c is a position sequence of the self-defined language half-angle characters in a half-angle character library, and the second dimension is a dot matrix liquid crystal data sequence of the self-defined language half-angle characters;
the first dimension of the two-dimensional array d is the position of the full-angle character of the custom language in the full-angle word stock, and the second dimension is the dot matrix liquid crystal data sequence of the full-angle character of the custom language.
The generator set controller displays are short and accurate, and the display is performed according to the size of the dot matrix liquid crystal and the language characters of a row or a half row or less than one row. The display of the generator set controller can be divided into a matrix in row units according to the row, and the number of characters in each row is preset; and obtaining two-dimensional arrays a of different character string data models corresponding to different languages, and obtaining two-dimensional arrays b of corresponding relations according to different display data characters corresponding to different character library positions by each two-dimensional array a. The word stock will be described in detail in step 3.
The establishment of the dot matrix liquid crystal display data model is attributed to two key points, namely, the display characters are only divided into full angles and half angles no matter what languages, and some characters are even only half angles, so that the established data model has directions and end points, and secondly, the particularity of the dot matrix liquid crystal is that a character model is taken to obtain a dot matrix liquid crystal data sequence of liquid crystal display, and a two-dimensional array c of the dot matrix liquid crystal display dot matrix data representing the half-angle characters and a two-dimensional array d of the dot matrix liquid crystal display dot matrix data representing the full-angle characters are established by the two key points so as to display the display data characters on the dot matrix liquid crystal.
And 2, setting three language options by the generator set controller, wherein the language options comprise Chinese, English and other languages, the Chinese and English are in a fixed display language data packet format, and can be translated into the language required by the client according to the Chinese and English display language data packet format. The language pack is a two-dimensional array a of the customized language data model in the step 1 and is a character string processed according to lines;
each language option corresponds to a display language data packet;
in the step 2, the display language data packet is stored in an address space array which is separately allocated by the generating set controller; and the display language data packet is a two-dimensional array a of the custom language data model in the step 1.
And step 3: establishing connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model, and finding out a dot matrix liquid crystal data sequence corresponding to display data characters; the method specifically comprises the following steps:
i, establishing two word stock files according to a display language data packet imported by a client, wherein the word stock comprises a half-corner character word stock and a full-corner character word stock; all the used full-angle or half-angle characters are added into the two character libraries and are sequenced;
II, establishing a dot matrix liquid crystal display data model of the custom language based on the word stock file: taking a character matrix for each display data character, recording dot matrix liquid crystal data corresponding to the display data character to obtain the two-dimensional array c or the two-dimensional array d, and obtaining the dot matrix liquid crystal display data model;
III, obtaining the two-dimensional array b containing the position sequence of the display data characters in the word stock according to the positions of the display data characters in different word stocks;
and IV, the position sequence corresponds to a first-dimension position sequence in the two-dimensional array c or the two-dimensional array d, and connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model is completed.
In the step III, if the display data character is a half-angle character, directly recording a position sequence to obtain the two-dimensional array b;
and if the display data character is a full-angle character, taking a 16-system 0xfa00 as a position reference to obtain the two-dimensional array b.
And 4, step 4: and the dot matrix liquid crystal drives and scans the dot matrix liquid crystal data sequence to light up the liquid crystal, so that the display of the custom language on the generator set controller is realized.
The character string data model is a two-dimensional array a; the character position data model is a two-dimensional array b; the dot matrix liquid crystal display data model comprises a two-dimensional array c and a two-dimensional array d; the two-dimensional array b is written into an address space array o which is separately allocated by the generator set controller; the two-dimensional array c is written into an address space array p which is separately allocated by the generator set controller; and the two-dimensional array d is written into an address space array q which is separately allocated by the generator set controller.
The user-defined language controller displays displayed characters on the dot matrix liquid crystal, different languages only need to display different characters, display data characters are listed, dot matrix data which can be displayed by each display data character on the controller are good in correspondence, and therefore the display of any character can be achieved. The two-dimensional array b, the two-dimensional array c and the two-dimensional array d are respectively and independently allocated with address spaces and can be changed, and each language can find the corresponding two-dimensional array b, two-dimensional array c and two-dimensional array d to realize independent display of each language. And then writing the two-dimensional array b, the two-dimensional array c and the two-dimensional array d generated in the step 3 into an address space array which is individually allocated by the generating set controller respectively: in the two-dimensional array o, the two-dimensional array p and the two-dimensional array q, the generator set controller realizes independent display of each language according to the three independently allocated address space arrays.
Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention and not to limit the same; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art will understand that: modifications to the specific embodiments of the invention or equivalent substitutions for parts of the technical features may be made; without departing from the spirit of the present invention, it is intended to cover all aspects of the invention as defined by the appended claims.

Claims (4)

1. A realization method based on a lattice liquid crystal generator set controller custom language is characterized in that: the method comprises the following steps:
step 1: establishing a data model of a custom language, wherein the data model comprises a character string data model, a character position data model and a dot matrix liquid crystal display data model;
dividing the display of the generator set controller into a matrix in row units, wherein the number of characters in each row is preset; obtaining two-dimensional arrays a of different character string data models corresponding to different languages, and obtaining two-dimensional arrays b of corresponding relations of each two-dimensional array a according to different display data characters corresponding to different character library positions;
in the step 1, the character string data model is a two-dimensional array a, a first dimension of the two-dimensional array a is a displayed row number sequence, and a second dimension is a current row display data character;
the character position data model is a two-dimensional array b, the first dimension of the two-dimensional array b represents a displayed line number sequence, and the second dimension is a position sequence of the data characters displayed on the current line in a word stock;
the dot matrix liquid crystal display data model comprises a two-dimensional array c and a two-dimensional array d; the first dimension of the two-dimensional array c is a position sequence of the self-defined language half-angle characters in a half-angle character library, and the second dimension is a dot matrix liquid crystal data sequence of the self-defined language half-angle characters; the first dimension of the two-dimensional array d is the position of the full-angle character of the custom language in the full-angle word stock, and the second dimension is a dot matrix liquid crystal data sequence of the full-angle character of the custom language;
step 2, setting a plurality of language options by a generator set controller, wherein each language option corresponds to one display language data packet;
in the step 2, the display language data packet is stored in an address space array which is separately allocated by the generating set controller; the display language data packet is a two-dimensional array a of the user-defined language data model in the step 1;
and step 3: establishing connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model, and finding out a dot matrix liquid crystal data sequence corresponding to display data characters;
and 4, step 4: and the dot matrix liquid crystal drives and scans the dot matrix liquid crystal data sequence to light up the liquid crystal, so that the display of the custom language on the generator set controller is realized.
2. The method of claim 1, wherein the method comprises: the step 3 of establishing the connection between the character string data model, the character position data model and the dot matrix liquid crystal display data model specifically includes the following steps:
i, establishing two word libraries according to a display language data packet imported by a client, wherein the word libraries comprise a half-corner character word library and a full-corner character word library;
II, selecting a character model for each display data character, recording dot matrix liquid crystal data corresponding to the display data character to obtain the two-dimensional array c or the two-dimensional array d, and obtaining the dot matrix liquid crystal display data model;
III, obtaining the two-dimensional array b containing the position sequence of the display data characters in the word stock according to the positions of the display data characters in different word stocks;
and IV, the position sequence corresponds to a first-dimension position sequence in the two-dimensional array c or the two-dimensional array d, and connection among the character string data model, the character position data model and the dot matrix liquid crystal display data model is completed.
3. The method of claim 2, wherein the implementation of the custom language based on the dot matrix liquid crystal generator set controller is characterized in that: in the step III, if the display data character is a half-angle character, directly recording a position sequence to obtain the two-dimensional array b;
and if the display data character is a full-angle character, taking a 16-system 0xfa00 as a position reference to obtain the two-dimensional array b.
4. The method for implementing the customized language based on the dot matrix liquid crystal generator set controller according to any one of claims 1 to 3, wherein: the character string data model is a two-dimensional array a; the character position data model is a two-dimensional array b; the dot matrix liquid crystal display data model comprises a two-dimensional array c and a two-dimensional array d;
the two-dimensional array b is written into an address space array o which is separately allocated by the generator set controller;
the two-dimensional array c is written into an address space array p which is separately allocated by the generator set controller;
and the two-dimensional array d is written into an address space array q which is separately allocated by the generator set controller.
CN201710640586.1A 2017-07-31 2017-07-31 Implementation method for customized language based on dot matrix liquid crystal generator set controller Active CN107515744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710640586.1A CN107515744B (en) 2017-07-31 2017-07-31 Implementation method for customized language based on dot matrix liquid crystal generator set controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710640586.1A CN107515744B (en) 2017-07-31 2017-07-31 Implementation method for customized language based on dot matrix liquid crystal generator set controller

Publications (2)

Publication Number Publication Date
CN107515744A CN107515744A (en) 2017-12-26
CN107515744B true CN107515744B (en) 2020-10-09

Family

ID=60722894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710640586.1A Active CN107515744B (en) 2017-07-31 2017-07-31 Implementation method for customized language based on dot matrix liquid crystal generator set controller

Country Status (1)

Country Link
CN (1) CN107515744B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
US9210285B2 (en) * 2004-07-07 2015-12-08 Canon Kabushiki Kaisha Image processing apparatus and control method for reducing an amount of data for a plurality of languages

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9210285B2 (en) * 2004-07-07 2015-12-08 Canon Kabushiki Kaisha Image processing apparatus and control method for reducing an amount of data for a plurality of languages
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface

Also Published As

Publication number Publication date
CN107515744A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN105005568B (en) Web page front end processing device and method based on template
JP7170773B2 (en) Structured document information marking method, structured document information marking device, electronic device, computer-readable storage medium, and computer program
US11763504B2 (en) Method for displaying electronic price tag, server and storage medium
WO2015141101A1 (en) Information-processing device, information processing method, and information-processing program
CN102970596A (en) Method and system for realizing multi-language font display of set top box and set top box
CN108763188A (en) A kind of text display method, device, equipment and storage medium
CN102239486A (en) Viewing messages and message attachments in different languages
CN101410885B (en) Iteratively solving constraints in a font-hinting language
CN108961361B (en) Method and system for generating special effect text image and computer equipment
CN104375814A (en) Generation method and device of an interface document
CN107515744B (en) Implementation method for customized language based on dot matrix liquid crystal generator set controller
CN102246158A (en) User-specified phrase input learning
CN111782204B (en) Batch scheduling editing method and device
CN107492354B (en) Dot matrix liquid crystal generator set controller-based multi-language implementation method
CN101526925A (en) Processing method of caching data and data storage system
JPH0812668B2 (en) Handwriting proofreading method
CN102129502B (en) Optimal electrical power line selection method and system
EP4379596A1 (en) Text typesetting
KR101214807B1 (en) Spreadsheet apparatus and spreadsheet chart linkage method
CN101847050A (en) Simple Chinese input and display method in embedded product
CN101833940B (en) Method for realizing LCD full-screen background picture display in singlechip system
US11580292B2 (en) Style transfer
CN103455808A (en) Sending device of machine character reading code and coding method
CN102741834B (en) Method and device for graphical management of form
CN113011148A (en) Method, device, equipment and medium for automatically outputting file with specified format

Legal Events

Date Code Title Description
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