CN107479433B - A kind of generation method based on the customized theme of generator set controller - Google Patents
A kind of generation method based on the customized theme of generator set controller Download PDFInfo
- Publication number
- CN107479433B CN107479433B CN201710582918.5A CN201710582918A CN107479433B CN 107479433 B CN107479433 B CN 107479433B CN 201710582918 A CN201710582918 A CN 201710582918A CN 107479433 B CN107479433 B CN 107479433B
- Authority
- CN
- China
- Prior art keywords
- control
- page
- customized
- generator set
- definepage
- 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
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2639—Energy management, use maximum of cheap power, keep peak load low
Abstract
The present invention provides a kind of generation methods based on the customized theme of generator set controller, it is the following steps are included: step 1: designing user control, for generating the interface of customized theme;Step 2: the directory tree of display items is generated, using the content in directory tree as drag source;Step 3: adding the customized page, drag the content in directory tree to the customized page, graphically customized theme obtains graphical interfaces;Step 4: converting byte arrays for the graphical interfaces, be written in generator set controller.The generation method based on the customized theme of generator set controller has the advantages that be easily achieved and can arbitrarily edit.
Description
Technical field
The present invention relates to a kind of generation methods of customized theme, specifically, relate to a kind of based on generating set control
The generation method of the customized theme of device processed.
Background technique
The interface of generator set controller is usually that display interface has been determined that in exploitation, and one, which shares several screens (page), shows
Show, what every screen was shown is all any information, such as display line voltage, generating voltage, engine speed etc., once it designs
It has just fixed, cannot change again, cannot meet the needs of users.
In order to solve the above problems, people are seeking always a kind of ideal technical solution.
Summary of the invention
The purpose of the present invention is in view of the deficiencies of the prior art, being easily achieved to provide one kind, the base that can arbitrarily edit
In the generation method of the customized theme of generator set controller.
To achieve the goals above, the technical scheme adopted by the invention is that: one kind made by oneself based on generator set controller
The generation method of adopted theme, comprising the following steps:
Step 1: designing user control, for generating the interface of customized theme;
The user control includes page control and display line control;
The page control name is set as DefinePage, and the display line control name is set as DefineRow;
The page control includes common page, alarm page and customized starting-up interface page;
The display line control includes full line and hemistich;
The full line includes text full line and icon full line;
The hemistich includes text hemistich and icon hemistich;
Step 2: the directory tree of display items is generated, using the content in directory tree as drag source;
Step 3: adding the customized page, the content in dragging directory tree to the customized page is graphical customized
Theme obtains graphical interfaces;
Step 4: converting byte arrays for the graphical interfaces, be written in generator set controller.
Based on above-mentioned, the step 1 includes:
A, the page control DefinePage for showing the page for customized theme is created;
B, it is dragged on the page control DefinePage for the layout that controls the customized page
TableLayoutPanel control, for placing display line control DefineRow, by modifying the TableLayoutPanel
The line number and columns that each customized page is shown is arranged in the attribute of control;
C, the page control DefinePage is respectively arranged to moving to left, move to right, drag and deleting for the customized page
Button control;
D, the display line control DefineRow is added on the TableLayoutPanel control, it is every for showing
The content of a line.
Based on above-mentioned, the step b further include be dragged in the page control DefinePage Panel control and
Label control.
Based on above-mentioned, the step 2 includes:
Directory tree is generated, the directory tree includes first nodes and two-level node, each node object is equivalent to a line
An or page;
Directory tree TreeView control, content to be shown is encapsulated;
It is loaded into TreeView control by AddNode function again.
Based on above-mentioned, the first nodes of directory tree include statusline, alarm page, user information page, date-time, power generation,
Alternating current and load.
Based on above-mentioned, the step 3 includes:
A, the AllowDrop attribute that TreeView control is arranged is True, allows to drag its node object, at it
In ItemDrag event, a DefineRow class is generated, and instantiates the DefineRow class;
B, page control DefinePage is added;
C, when being dragged and dropped into the node object of the directory tree in the page control DefinePage, the page is triggered
The DefineRow class of instantiation is added to the page control by the DragDrop event of control DefinePage
In DefinePage, graphical interfaces is obtained.
Based on above-mentioned, the step 4 includes:
A, the graphical interfaces that traversal step 3 obtains;
B, byte arrays are converted by DataToArray function by each content in graphical interfaces;
C, the obtained byte arrays are written in generator set controller by MODBUS agreement.
The present invention has substantive features and progress compared with the prior art, specifically:
1) present invention can be graphical by content to be shown by the customized theme of host computer, can arbitrarily edit number of pages,
It showing content, is then converted in the controller of code write-in of controller identification, controller can show the theme editted,
It realizes What You See Is What You Get function, has fully taken into account the demand of various users, meet the demand of user, user can be according to making
With habit and the content needed, content and put in order that controller parameter is shown oneself are defined;
2) edit user by display interface of the configuration software to controller, the sequence that parameter is shown can basis
The demand of oneself goes to arrange, and factory contents displayed on interface can also be increased or be deleted;
The present invention has the advantages that be easily achieved and can arbitrarily edit with content.
Detailed description of the invention
Fig. 1 is general flow chart of the invention;
Fig. 2 is the editing interface of image conversion of the invention;
Fig. 3 is effect picture one of the invention;
Fig. 4 is effect picture two of the invention;
After Fig. 5 is written to controller, the display renderings one of controller;
After Fig. 6 is written to controller, the display renderings two of controller.
Specific embodiment
Below by specific embodiment, technical scheme of the present invention will be described in further detail.
As shown in attached drawing 1- attached drawing 6, a kind of generation method based on the customized theme of generator set controller, it include with
Lower step:
Step 1: designing user control, for generating the interface of customized theme;
The user control includes page control and display line control;The page control name is set as DefinePage,
The display line control name is set as DefineRow;The page control includes common page, alarm page and customized starting-up interface
Page;The display line control includes full line and hemistich;The full line includes text full line and icon full line;The hemistich includes text
This hemistich and icon hemistich.
The step 1 specifically includes the following steps:
A, the page control DefinePage for showing the page for customized theme is created;
B, it is dragged on the page control DefinePage for the layout that controls the customized page
TableLayoutPanel control, the TableLayoutPanel control are used to place display line control DefineRow, pass through
The line number and columns that each customized page is shown is arranged in the attribute for modifying the TableLayoutPanel control;
Panel control and Label control are dragged in the page control DefinePage;The page control
DefinePage is additionally provided with Panel control and Label control.The Panel control is the container comprising other controls
The Label control is dragged in the Panel control by control;
C, 4 for moving to left, move to right, dragging and deleting of the customized page are used in the page control DefinePage drag and drop
A Button control;
D, the display line control DefineRow, the display line are added on the TableLayoutPanel control
Control DefineRow is used to show the content of the every a line of customized theme.
Step 2: the directory tree of display items is generated, using the content in directory tree as drag source;
The step 2 specifically includes: generating directory tree, is customized theme content to be shown in the directory tree.Institute
Stating directory tree includes first nodes and two-level node, each node object is equivalent to a line or a page;Directory tree is used
Content to be shown is encapsulated by TreeView control;It is loaded into TreeView control by AddNode function again.
The TreeView control is used to show the hierarchical view of information, each display items information have one it is associated
Node object, the TreeView control show that the hierarchical directory structure of the node object, each node object include one
A Label object bitmap relevant with its.
The first nodes of directory tree include statusline, alarm page, user information page, date-time, power generation, alternating current and bear
It carries.
Step 3: adding the customized page, the content in dragging directory tree to the customized page is graphical customized
Theme obtains graphical interfaces;
A, the AllowDrop attribute that TreeView control is arranged is True, allows to drag its node object, at it
In ItemDrag event, a DefineRow class is generated, and instantiate DefineRow class;
B, the page control DefinePage is added;
C, when being dragged and dropped into the node object of the directory tree in the page control DefinePage, the page is triggered
The DefineRow class of instantiation is added to the page control by the DragDrop event of control DefinePage
In DefinePage, graphical interfaces is obtained.
Step 4: byte arrays are converted by the graphical interfaces, are written in generator set controller:
A, the graphical interfaces that traversal step 3 obtains;
B, byte arrays are converted by DataToArray function by each content in graphical interfaces, as with confidence
Breath;
C, the obtained byte arrays are written in generator set controller by MODBUS agreement.
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, it should be understood by those ordinary skilled in the art that: still
It can modify to a specific embodiment of the invention or some technical features can be equivalently replaced;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 (7)
1. a kind of generation method based on the customized theme of generator set controller, it is characterised in that: the following steps are included:
Step 1: designing user control, for generating the interface of customized theme;
The user control includes page control and display line control;
The page control name is set as DefinePage, and the display line control name is set as DefineRow;
The page control includes common page, alarm page and customized starting-up interface page;
The display line control includes full line and hemistich;
The full line includes text full line and icon full line;
The hemistich includes text hemistich and icon hemistich;
Step 2: the directory tree of display items is generated, using the content in directory tree as drag source;
Step 3: the customized page is added, the content in dragging directory tree to the customized page, graphical customized theme
Obtain graphical interfaces;
Step 4: converting byte arrays for the graphical interfaces, be written in generator set controller.
2. a kind of generation method based on the customized theme of generator set controller according to claim 1, feature exist
In: the step 1 includes:
A, the page control DefinePage for showing the page for customized theme is created;
B, it is dragged on the page control DefinePage for the layout that controls the customized page
TableLayoutPanel control, for placing display line control DefineRow, by modifying the TableLayoutPanel
The line number and columns that each customized page is shown is arranged in the attribute of control;
C, the page control DefinePage is respectively arranged to moving to left, move to right, drag and deleting for the customized page
Button control;
D, the display line control DefineRow is added on the TableLayoutPanel control, for showing every a line
Content.
3. a kind of generation method based on the customized theme of generator set controller according to claim 2, feature exist
In: the step b further includes being dragged in Panel control and Label control in the page control DefinePage.
4. a kind of generation method based on the customized theme of generator set controller according to claim 1, feature exist
In: the step 2 includes:
Generate directory tree, the directory tree includes first nodes and two-level node, each node object be equivalent to a line or
One page;
Directory tree TreeView control, content to be shown is encapsulated;
It is loaded into TreeView control by AddNode function again.
5. a kind of generation method based on the customized theme of generator set controller according to claim 4, feature exist
In: the first nodes of directory tree include statusline, alarm page, user information page, date-time, power generation, alternating current and load.
6. a kind of generation method based on the customized theme of generator set controller according to claim 5, feature exist
In: the step 3 includes:
A, the AllowDrop attribute that TreeView control is arranged is True, allows to drag its node object, in its ItemDrag thing
In part, a DefineRow class is generated, and instantiates the DefineRow class;
B, page control DefinePage is added;
C, when being dragged and dropped into the node object of the directory tree in the page control DefinePage, the page control is triggered
The DefineRow class of instantiation is added to the page control by the DragDrop event of DefinePage
In DefinePage, graphical interfaces is obtained.
7. a kind of generation method based on the customized theme of generator set controller according to claim 1-6,
It is characterized by: the step 4 includes:
A, the graphical interfaces that traversal step 3 obtains;
B, byte arrays are converted by DataToArray function by each content in graphical interfaces;
C, the obtained byte arrays are written in generator set controller by MODBUS agreement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710582918.5A CN107479433B (en) | 2017-07-17 | 2017-07-17 | A kind of generation method based on the customized theme of generator set controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710582918.5A CN107479433B (en) | 2017-07-17 | 2017-07-17 | A kind of generation method based on the customized theme of generator set controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107479433A CN107479433A (en) | 2017-12-15 |
CN107479433B true CN107479433B (en) | 2019-08-30 |
Family
ID=60595203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710582918.5A Active CN107479433B (en) | 2017-07-17 | 2017-07-17 | A kind of generation method based on the customized theme of generator set controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107479433B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699393A (en) * | 2009-10-09 | 2010-04-28 | 中国电子科技集团公司第二十八研究所 | Intelligent software interface dynamic generation method facing network |
CN101944027A (en) * | 2010-09-26 | 2011-01-12 | 北京神州泰岳软件股份有限公司 | User interface generation method |
CN102520935A (en) * | 2011-11-29 | 2012-06-27 | 曙光信息产业(北京)有限公司 | Method for quickly developing user interface |
CN103425485A (en) * | 2013-05-18 | 2013-12-04 | 冯俊 | Interface edition and operation system and method for ordinary users |
CN104793929A (en) * | 2015-02-15 | 2015-07-22 | 深圳市中兴移动通信有限公司 | User-defined method and device for application interface display information |
CN105302545A (en) * | 2015-09-02 | 2016-02-03 | 湖南三一智能控制设备有限公司 | Method and device for custom control development of configuration software |
CN106406561A (en) * | 2016-08-31 | 2017-02-15 | 郑州众智科技股份有限公司 | Power generator set controller-based font library dot matrix generation method |
-
2017
- 2017-07-17 CN CN201710582918.5A patent/CN107479433B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699393A (en) * | 2009-10-09 | 2010-04-28 | 中国电子科技集团公司第二十八研究所 | Intelligent software interface dynamic generation method facing network |
CN101944027A (en) * | 2010-09-26 | 2011-01-12 | 北京神州泰岳软件股份有限公司 | User interface generation method |
CN102520935A (en) * | 2011-11-29 | 2012-06-27 | 曙光信息产业(北京)有限公司 | Method for quickly developing user interface |
CN103425485A (en) * | 2013-05-18 | 2013-12-04 | 冯俊 | Interface edition and operation system and method for ordinary users |
CN104793929A (en) * | 2015-02-15 | 2015-07-22 | 深圳市中兴移动通信有限公司 | User-defined method and device for application interface display information |
CN105302545A (en) * | 2015-09-02 | 2016-02-03 | 湖南三一智能控制设备有限公司 | Method and device for custom control development of configuration software |
CN106406561A (en) * | 2016-08-31 | 2017-02-15 | 郑州众智科技股份有限公司 | Power generator set controller-based font library dot matrix generation method |
Also Published As
Publication number | Publication date |
---|---|
CN107479433A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Tandler | Software infrastructure for ubiquitous computing environments: Supporting synchronous collaboration with heterogeneous devices | |
CN102915319B (en) | The technology gathered for information electronics | |
US20150121260A1 (en) | Terminal device and method for designing network application product | |
CN108235755A (en) | A kind of method and system of internet of things net controller user interface | |
US20150170033A1 (en) | Context reasoning apparatus, context recognition system and context reasoning method | |
US20150220236A1 (en) | Post-designing method and apparatus based on variant configuration in development of graphic user interface | |
Anikin et al. | Ontology visualization: Approaches and software tools for visual representation of large ontologies in learning | |
CN106796515A (en) | For the system and method for the user interface frame of metadata driven | |
CN104050218B (en) | For providing the method and system that show information in the user interface | |
CN109725958A (en) | The method and device that the file of resource manager management is handled | |
Cardoso et al. | The Multimodal Annotation Software Tool (MAST) | |
US11507712B2 (en) | Generating an image for a building management system | |
Zhang et al. | ZoomRDF: semantic fisheye zooming on RDF data | |
CN106779576A (en) | A kind of collocation method of service fields | |
WO2016065960A1 (en) | Graphically building abstract syntax trees | |
CN110489118A (en) | Webpage generating method, device, system and computer readable storage medium | |
CN107479433B (en) | A kind of generation method based on the customized theme of generator set controller | |
US20140237446A1 (en) | Systems and methods for organizing, classifying, and discovering automatically generated computer software | |
Vdovenko et al. | Enhancing the smartroom system with e-tourism services | |
KR101589969B1 (en) | File management method and system of network structure | |
KR101373694B1 (en) | Method, apparutus and computer readable recording medium for creating mind-map with web-scraping | |
Aydinoglu | Modelling, encoding and transforming of open geographic data to examine interoperability between GIS applications | |
CN106503174A (en) | A kind of environment Visualization method and system modeled based on Network Three-dimensional | |
Fruchter et al. | Collaborative design exploration in an interactive workspace | |
Moldovan et al. | Advanced human-computer interaction in external resource annotation |
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 |