CN106292638B - The generation method of starting-up interface based on generator set controller - Google Patents
The generation method of starting-up interface based on generator set controller Download PDFInfo
- Publication number
- CN106292638B CN106292638B CN201610775812.2A CN201610775812A CN106292638B CN 106292638 B CN106292638 B CN 106292638B CN 201610775812 A CN201610775812 A CN 201610775812A CN 106292638 B CN106292638 B CN 106292638B
- Authority
- CN
- China
- Prior art keywords
- dot matrix
- matrix array
- bmp
- generator set
- starting
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0216—Human interface functionality, e.g. monitoring system providing help to the user in the selection of tests or in its configuration
Abstract
The present invention provides a kind of generation method of the starting-up interface based on generator set controller, includes the following steps:Step 1:Figure is locked in the memory of gen-set control system, the attribute of figure in memory is obtained, then by graphics at bmp formats;Step 2:By the graphics for the bmp formats being converted in step 1 at dot matrix array;Step 3:Convert dot matrix array to the editable grid pattern of amplification;Step 4:It compiles new figure and generates in new dot matrix writing controller.The present invention is a kind of method for the starting-up interface figure that generation can be edited arbitrarily, the figure of existing arbitrary format can be loaded as needed, required figure can be also drawn to figure into edlin, the code for being then converted to generator set controller identification is written in controller.
Description
Technical field
The present invention relates to a kind of generation methods of starting-up interface, specifically, are related to a kind of based on generator set controller
Starting-up interface generation method.
Background technology
The starting-up interface of generator set controller generally uses character property to describe, or is integrally fixed in controller
Not modifiable figure.When specific design, the figure of existing arbitrary format can not be loaded as needed, it also can not be to figure
Shape is into edlin.Therefore, display control of the existing generator set controller for starting-up interface, it is clear that be that cannot be satisfied user
Diversification need.
In order to solve the above problems, people are seeking always a kind of ideal technical solution.
Invention content
The purpose of the present invention is in view of the deficiencies of the prior art, being easily achieved to provide one kind, arbitrarily it can edit and paint
The generation method of the starting-up interface based on generator set controller of system.
The purpose of the present invention is what is be realized by following technical solution:A kind of booting based on generator set controller
The generation method at interface, includes the following steps:
Step 1:Figure is locked in the memory of gen-set control system, obtains the attribute of figure in memory, so
Afterwards by graphics at bmp formats;
Step 2:By the graphics for the bmp formats being converted in step 1 at dot matrix array;
Step 3:Convert dot matrix array to the editable grid pattern of amplification;
Step 4:It compiles new figure and generates in new dot matrix writing controller.
Based on above-mentioned, the step 1 is:Select arbitrary format figure, be by graphics by RGBtoBMP functions
Bmp formats, when conversion, are converted according to the color range value of setting;
A, a rectangle is created, figure is locked in Installed System Memory, size is the size of newly-built rectangle, obtains figure
Attribute in memory;
B, target bitmap Bitmap is created, and is locked in Installed System Memory;
C, the address for obtaining first pixel data in bitmap Bitmap, then from the letter of address reproduction bitmap Bitmap
It ceases in byte arrays;
D, according to the color range value of setting, byte arrays are replicated again, 255 is assigned a value of more than color range value, is less than or equal to
Setting color range value is assigned a value of 0.
Based on above-mentioned, the step 2 is:Traversal bmp format graphics are converted into dot matrix number according to different color rgb values
Group, dot matrix array are two-dimensional array PointArr.
Based on above-mentioned, the step 3 is:Each point in dot matrix array PointArr is converted to the net of 8*8 pixels
Lattice, if the value of dot matrix array is True, grid shows that black then shows green if it is False, by corresponding point
The value of battle array array is changed to True or False, so that it may with to figure into edlin.
5, the generation method of the starting-up interface according to claim 4 based on generator set controller, feature exist
In the step 4 is:
A, according to dot matrix array, new bmp figures are depicted as, color is assigned to bmp figures using SetPixel;
B, new bmp figures are scanned, scan mode is row line, and 8 pixels are converted to a byte class after scanning
The value of type first scans low level, then scans a high position;
C, obtained byte arrays are written to by MODBUS agreements in generator set controller.
The present invention has substantive distinguishing features outstanding and significant progress compared with the prior art, and specifically, the present invention is
A kind of method for the starting-up interface figure that generation can be edited arbitrarily, can load the figure of existing arbitrary format as needed, can be right
Figure can also draw required figure into edlin, and the code for being then converted to generator set controller identification is written to control
In device.
Specific implementation mode
Specific implementation mode is given below to be described in further detail the present invention:
Embodiment 1
A kind of generation method of the starting-up interface based on generator set controller, includes the following steps:
Step 1:Figure is locked in the memory of gen-set control system, obtains the attribute of figure in memory, so
Afterwards by graphics at bmp formats;
Step 2:By the graphics for the bmp formats being converted in step 1 at dot matrix array;
Step 3:Convert dot matrix array to the editable grid pattern of amplification;
Step 4:It compiles new figure and generates in new dot matrix writing controller.
Embodiment 2
Step 1, graphics are bmp formats by RGBtoBMP functions by the figure for selecting arbitrary format, root when conversion
It is converted according to the color range value of setting;
A, a rectangle is created, figure is locked in Installed System Memory, size is the size of newly-built rectangle, obtains figure
Attribute in memory;
B, target bitmap Bitmap is created, and is locked in Installed System Memory;
C, the address of first pixel data in bitmap Bitmap is obtained, which can regard as in bitmap Bitmap
First scan line, then from the information to byte arrays of address reproduction bitmap Bitmap;
D, according to the color range value of setting, byte arrays are replicated again, 255 is assigned a value of more than color range value, is less than or equal to
Setting color range value is assigned a value of 0.
Step 2, bmp format graphics are traversed, according to different color rgb values, are converted into dot matrix array, dot matrix array is two
Dimension group PointArr.
Each point in dot matrix array PointArr is converted to the grid of 8*8 pixels, if dot matrix by the step 3
The value of array is True, then grid shows that black then shows green if it is False, the value of corresponding dot matrix array is changed
For True or False, so that it may with to figure into edlin, to obtain oneself desired figure.
Step 4:
A, according to dot matrix array, new bmp figures are depicted as, color is assigned to bmp figures using SetPixel;
B, new bmp figures are scanned, scan mode is row line, and 8 pixels are converted to a byte class after scanning
The value of type first scans low level, then scans a high position;
C, obtained byte arrays are written to by MODBUS agreements in generator set controller.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent
The present invention is described in detail with reference to preferred embodiments for pipe, those of ordinary skills in the art should understand that:Still
It can modify to the specific implementation mode of the present invention or equivalent replacement is carried out to some technical characteristics;Without departing from this hair
The spirit of bright technical solution should all cover within the scope of the technical scheme claimed by the invention.
Claims (4)
1. a kind of generation method of the starting-up interface based on generator set controller, which is characterized in that include the following steps:
Step 1:Figure is locked in the memory of gen-set control system, the attribute of figure in memory is obtained, then will
Graphics are at bmp formats;Wherein, the figure for selecting arbitrary format, by RGBtoBMP functions by graphics be bmp lattice
Formula, when conversion, are converted according to the color range value of setting;
A, a rectangle is created, figure is locked in Installed System Memory, size be the size of newly-built rectangle, including acquisition figure
Attribute in depositing;
B, target bitmap Bitmap is created, and is locked in Installed System Memory;
C, obtain the address of first pixel data in bitmap Bitmap, then from the information of address reproduction bitmap Bitmap to
In byte arrays;
D, according to the color range value of setting, byte arrays are replicated again, 255 are assigned a value of more than color range value, are less than or equal to setting
Color range value is assigned a value of 0;
Step 2:By the graphics for the bmp formats being converted in step 1 at dot matrix array;
Step 3:Convert dot matrix array to the editable grid pattern of amplification;
Step 4:It compiles new figure and generates in new dot matrix writing controller.
2. the generation method of the starting-up interface according to claim 1 based on generator set controller, which is characterized in that
The step 2 is:Bmp format graphics are traversed, according to different color rgb values, are converted into dot matrix array, dot matrix array is two dimension
Array PointArr.
3. the generation method of the starting-up interface according to claim 2 based on generator set controller, which is characterized in that
The step 3 is:Each point in dot matrix array PointArr is converted to the grid of 8*8 pixels, if dot matrix array
Value is True, then grid shows that black then shows green if it is False, the value of corresponding dot matrix array is changed to True
Or False, so that it may with to figure into edlin.
4. the generation method of the starting-up interface according to claim 3 based on generator set controller, which is characterized in that
The step 4 is:
A, according to dot matrix array, new bmp figures are depicted as, color is assigned to bmp figures using SetPixel;
B, new bmp figures are scanned, scan mode is row line, and 8 pixels are converted to byte type after scanning
Value, first scans low level, then scan a high position;
C, obtained byte arrays are written to by MODBUS agreements in generator set controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610775812.2A CN106292638B (en) | 2016-08-31 | 2016-08-31 | The generation method of starting-up interface based on generator set controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610775812.2A CN106292638B (en) | 2016-08-31 | 2016-08-31 | The generation method of starting-up interface based on generator set controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106292638A CN106292638A (en) | 2017-01-04 |
CN106292638B true CN106292638B (en) | 2018-09-14 |
Family
ID=57673535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610775812.2A Active CN106292638B (en) | 2016-08-31 | 2016-08-31 | The generation method of starting-up interface based on generator set controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106292638B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107491327B (en) * | 2017-07-31 | 2021-03-23 | 郑州众智科技股份有限公司 | Writing method based on generator set controller custom character string |
CN107492354B (en) * | 2017-07-31 | 2020-11-06 | 郑州众智科技股份有限公司 | Dot matrix liquid crystal generator set controller-based multi-language implementation method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6574684B1 (en) * | 2000-01-19 | 2003-06-03 | Winbond Electronics Corp. | Monitor comprising two-way interface |
CN102169330A (en) * | 2011-01-20 | 2011-08-31 | 美的集团有限公司 | Function operation interface picture combination display method |
CN105320524A (en) * | 2015-11-16 | 2016-02-10 | 郑州众智科技股份有限公司 | Serial port communication method for controller boot interface based on STM32MCU |
CN105426188A (en) * | 2015-11-16 | 2016-03-23 | 郑州众智科技股份有限公司 | Dot matrix liquid crystal display controller based startup interface generation method |
-
2016
- 2016-08-31 CN CN201610775812.2A patent/CN106292638B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6574684B1 (en) * | 2000-01-19 | 2003-06-03 | Winbond Electronics Corp. | Monitor comprising two-way interface |
CN102169330A (en) * | 2011-01-20 | 2011-08-31 | 美的集团有限公司 | Function operation interface picture combination display method |
CN105320524A (en) * | 2015-11-16 | 2016-02-10 | 郑州众智科技股份有限公司 | Serial port communication method for controller boot interface based on STM32MCU |
CN105426188A (en) * | 2015-11-16 | 2016-03-23 | 郑州众智科技股份有限公司 | Dot matrix liquid crystal display controller based startup interface generation method |
Also Published As
Publication number | Publication date |
---|---|
CN106292638A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100511225C (en) | Translated document image production device and translated document image production method | |
CA1279416C (en) | Method and apparatus for constructing, storing and displaying characters | |
US8879839B2 (en) | Image processing apparatus, image processing method, and storage medium | |
CN109146991B (en) | Picture format conversion method, device, equipment and storage medium | |
US8023768B2 (en) | Universal front end for masks, selections, and paths | |
CN106292638B (en) | The generation method of starting-up interface based on generator set controller | |
CN107085505A (en) | A kind of CDR files are automatically processed and automatic comparison method and system | |
CN109800750A (en) | A kind of character area mask method of the text based on morphological image for rule composing | |
CN108664937A (en) | A kind of multizone scan method based on digital pathological section scanner | |
CN104915975A (en) | Image processing method and system for simulating crayon colored drawing | |
CN100365700C (en) | Character display apparatus and character display method, control program for controlling the character display method and recording medium recording the control program | |
WO2016098690A1 (en) | Texture generation system | |
CN109801279A (en) | Object detection method and device, electronic equipment, storage medium in image | |
CN108460385A (en) | A kind of Document Segmentation method and apparatus | |
JP3833993B2 (en) | Method and apparatus for binarizing color document image | |
CN103279965B (en) | A kind of generation method of two-value stipple effect picture and video | |
CN106204683A (en) | The ocean density map method for drafting with meta graph recognition is rendered based on GIS symbol | |
CN109887081A (en) | A kind of terrain generation method | |
CN105426188B (en) | Starting-up interface generation method based on Dot-Matric LCD Display controller | |
CN108961408A (en) | Digital rubbing production method, system and storage medium based on triangle grid model | |
CN107146270A (en) | A kind of pattern drawing method and device | |
CN104985913B (en) | It is a kind of to hide false proof matrix rotation screening method for graph text information | |
DE60301897T2 (en) | Image processing device, image processing method and corresponding computer program | |
CN110689860B (en) | Image representation method, device and computer storage medium | |
CN102022984A (en) | Image-technique-based artificial wetland plant growth information extracting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |