CN104166759B - A kind of automatic generation method based on wincc configuration pictures - Google Patents

A kind of automatic generation method based on wincc configuration pictures Download PDF

Info

Publication number
CN104166759B
CN104166759B CN201410388921.XA CN201410388921A CN104166759B CN 104166759 B CN104166759 B CN 104166759B CN 201410388921 A CN201410388921 A CN 201410388921A CN 104166759 B CN104166759 B CN 104166759B
Authority
CN
China
Prior art keywords
storehouse
burden balance
feed bin
numbering
corresponding relation
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
CN201410388921.XA
Other languages
Chinese (zh)
Other versions
CN104166759A (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.)
Wuhan Shinco Valley technology Limited by Share Ltd
Original Assignee
WUHAN SINKEGU TECHNOLOGY & DEVELOPMENT 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 WUHAN SINKEGU TECHNOLOGY & DEVELOPMENT Co Ltd filed Critical WUHAN SINKEGU TECHNOLOGY & DEVELOPMENT Co Ltd
Priority to CN201410388921.XA priority Critical patent/CN104166759B/en
Publication of CN104166759A publication Critical patent/CN104166759A/en
Application granted granted Critical
Publication of CN104166759B publication Critical patent/CN104166759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of automatic generation method based on wincc configuration pictures, it is applied in feed proportioning system, obtain the quantity of the mixer, burden balance and feed bin in the feed proportioning system, and according to the corresponding relation of mixer, burden balance and feed bin, mixer, burden balance and storehouse are associated numbering;According to the quantity and numbering of the feed bin, the screen template of feed bin is called, generate storehouse corresponding with each feed bin object, each storehouse object one coordinate of correspondence, with height attributes and width attribute;And according to the quantity and numbering of the burden balance, the screen template of burden balance is called, generate burden balance object corresponding with each burden balance;According to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, pipeline object is added between the burden balance object and storehouse object with corresponding relation.

Description

A kind of automatic generation method based on wincc configuration pictures
Technical field
The present invention relates to feed processing technology field, more particularly to a kind of side of automatically generating based on wincc configuration pictures Method, is applied in feed proportioning system.
Background technology
Picture is carried out by windons control centres (Windows Control center, abbreviation wincc) in the prior art , it is necessary to be laid out to equipment one by one according to technological requirement, the device data of each picture is more several during the exploitation of face Ten, not only position it needs to be determined that, how much size will also be adjusted according to equipment, and after the completion of layout, instrument size is sometimes Can disunity, influence display effect;And equipment typically has 2~5 attributes, these also require that developer passes through wincc The instrument for carrying is added.In the operation for repeating, easily omit or mistake, so as to increased the difficulty of wincc debugging, lead It is more long that the development time occurs in picture development process is carried out using wincc in cause, the low problem of development efficiency.
The content of the invention
The present invention provides a kind of automatic generation method based on wincc configuration pictures, and picture development process has been carried out point Class picture, further according to the process section of dispensing, program automatic will be generated on picture, can shorten the picture development time, and raising is opened Hair efficiency.
The embodiment of the application one provides a kind of automatic generation method based on wincc configuration pictures, is applied to dispensing system In system, including:
Obtain the quantity of the mixer, burden balance and feed bin in the feed proportioning system, and according to mixer, burden balance and The corresponding relation of feed bin, numbering is associated by mixer, burden balance and storehouse;
According to the quantity and numbering of the feed bin, the screen template of feed bin, generation and each feed bin pair are called The storehouse object answered, each storehouse object one coordinate of correspondence, with height attributes and width attribute;
And according to the quantity and numbering of the burden balance, call the screen template of burden balance, generation and each dispensing The corresponding burden balance object of scale;
According to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, in the dispensing with corresponding relation Pipeline object is added between scale object and storehouse object.
Optionally, each storehouse object includes the numbering with feed bin corresponding with the storehouse, is arranged in the feed bin Material name and the feed bin volume percent.
Optionally, after generation storehouse corresponding with each feed bin object, methods described also includes:Will be all The carrying out top alignment of storehouse object, and adjust the spacing between the object of each two storehouse.
Optionally, after generation storehouse corresponding with each feed bin object, methods described also includes:Each Add an object for auger screen template in the bottom of individual storehouse object.
Optionally, it is described that pipeline object, specific bag are added between the burden balance object and storehouse object with corresponding relation Include:Pipeline object is added between the burden balance object and storehouse object with corresponding relation, wherein, described pipeline object one end sets Put at the top of the burden balance object with corresponding relation, the other end is arranged on the bottom of the storehouse object with corresponding relation.
Based on above-mentioned technical proposal, mixer, burden balance and storehouse are associated numbering and then root in the embodiment of the present invention According to the quantity and numbering of the feed bin, the screen template of feed bin is called, generate storehouse corresponding with each feed bin object; And according to the quantity and numbering of the burden balance, the screen template of burden balance is called, generate corresponding with each burden balance Burden balance object;Further according to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, with corresponding relation Pipeline object is added between burden balance object and storehouse object, so so that by calling the screen template of relevant device, generate phase Device object is answered, further according to burden balance and the corresponding relation of feed bin, pipeline object is added to the dispensing with corresponding relation Between scale object and storehouse object, compared with prior art, without being laid out to equipment one by one according to technological requirement, but According to burden balance and the corresponding relation of feed bin, equipment is laid out automatically, and then the picture development time can be shortened so that Development efficiency is improved.
Brief description of the drawings
Fig. 1 is the flow chart of the method for present invention binding PLC communication points.
Specific embodiment
The present invention provides a kind of automatic generation method based on wincc configuration pictures, and picture development process has been carried out point Class picture, further according to the process section of dispensing, program automatic will be generated on picture, can shorten the picture development time, and raising is opened Hair efficiency.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Refering to shown in accompanying drawing 1, in the embodiment of the present invention, a kind of automatic generation method based on wincc configuration pictures is applied In feed proportioning system, wherein, the full name of wincc is Windows Control center, and its detailed process is as follows:
Step 101:Obtain the quantity of the mixer, burden balance and feed bin in the feed proportioning system, and according to mixer, The corresponding relation of burden balance and feed bin, numbering is associated by mixer, burden balance and storehouse;
Step 102:According to the quantity and numbering of the feed bin, the screen template of feed bin is called, generated and each The corresponding storehouse object of feed bin, each storehouse object one coordinate of correspondence, with height attributes and width attribute;
Step 103:And according to the quantity and numbering of the burden balance, call the screen template of burden balance, generation with it is every The corresponding burden balance object of one burden balance;
Step 104:According to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, closed with correspondence Pipeline object is added between the burden balance object and storehouse object of system.
Wherein, in step 1, the quantity of the mixer, burden balance and feed bin in the feed proportioning system, example are obtained first The quantity of the mixer in feed proportioning system is 2 as described, and the quantity of burden balance is 4 and the quantity of feed bin is 100 etc., and according to The corresponding relation of mixer, burden balance and feed bin, numbering is associated by mixer, burden balance and storehouse, it is of course also possible to will The association number is stored in first database.
In specific implementation process, a mixer can correspond to multiple burden balance, and a burden balance can correspond to multiple Feed bin, according to the corresponding relation of mixer, burden balance and feed bin, numbering is associated by mixer, burden balance and storehouse, and By in association number storage to first database.
If for example, the quantity of mixer is 2 in a feed proportioning system, the quantity of burden balance is 4, and the quantity of feed bin is 40, according to the corresponding relation of mixer, burden balance and feed bin, the numbering by first mixer in the system is 1, by institute The first burden balance numbering stated in corresponding two burden balance of first mixer is 1, and the numbering of second burden balance is 2, If first burden balance correspondence, 10 feed bins, 10 feed bins numbering corresponding with first burden balance is set It is set to 1-10;Similarly, the numbering of second burden balance is 2, if second burden balance, 10 feed bins of correspondence, will be with institute State the corresponding 10 feed bins numbering of second burden balance and be set to 11-20.
Wherein, it is 2 by the numbering of second mixer in the system, second mixer is matched somebody with somebody for corresponding two First burden balance numbering in material scale is 3, and the numbering of second burden balance is 4, if first burden balance correspondence 10 Feed bin, then be set to 21-30 by 10 feed bins numbering corresponding with first burden balance;Similarly, second dispensing The numbering of scale is 4, if second burden balance, 10 feed bins of correspondence, will be corresponding 10 with second burden balance Feed bin numbering is set to 31-40, referring specifically to table 1 below, and by association number storage to first database.
Table 1
Next step 102 is performed, in this step, according to the quantity and numbering of the feed bin, feed bin is called Screen template, generates storehouse corresponding with each feed bin object, each storehouse object one coordinate of correspondence, with height attributes And width attribute.
In specific implementation process, according to the quantity and numbering of feed bin in the feed proportioning system, the fpt of feed bin is called Screen template, generates storehouse corresponding with each feed bin object, each storehouse object one coordinate of correspondence, with height attributes And width attribute, certainly, each storehouse object can also include the numbering with feed bin corresponding with the storehouse, be arranged on the feeding The volume percent of material name and the feed bin in feed bin.
For example, with reference to table 1, by taking the feed bin that numbering is 1 as an example, the fpt screen templates of feed bin are called, generating numbering is The 1 corresponding storehouse object of feed bin is P1, and the numbering is that 1 feed bin is indicated with 1 feed bin, then sets the x of P1, Y-coordinate, and the height attributes and width attribute of P1 are specified, and numbering 1, material name and volume percent are added to P1's In attribute, further according to the data acquisition system of the feed bin inquired from first data, P2, P3, P4..... are sequentially generated straight To P40, wherein, P2 reference numerals are 2 feed bin, the feed bin that P3 reference numerals are 3, and by that analogy, P40 reference numerals are 40 feed bin.
In another embodiment, after generation storehouse corresponding with each feed bin object, methods described is also wrapped Include:By the carrying out top alignment of all storehouse objects, and the spacing between the object of each two storehouse is adjusted, the spacing can be according to aobvious The size of display screen is configured, and when display screen is larger, it is larger that the spacing can be set, when display screen is smaller, the spacing What can be set is smaller.
In specific implementation process, after storehouse corresponding with each feed bin object is generated by step 103, by institute There is the carrying out top alignment of storehouse object, and adjust the spacing between the object of each two storehouse, can specifically appoint in all storehouse objects One storehouse object of meaning is references object, then by other storehouse objects with the references object as standard, carries out top alignment, so that The picture that must be generated is more attractive, facilitates user to watch.
Specifically, referring to table 1, in generation P1, P2, P3, P4..... after P40, can be with P1 as reference pair As, the top that makes P2, P3, P4..... until P40 aligns with P1 automatically, and the spacing between the object of each two storehouse is set automatically.
In another embodiment, after generation storehouse corresponding with each feed bin object, methods described is also wrapped Include:An object for auger screen template is added in the bottom of each storehouse object.
In specific implementation process, in the object of one auger screen template of bottom addition of each storehouse object, root According to the numbering of the corresponding feed bin in each storehouse, the object to an auger screen template of each storehouse object bottom addition enters Row name, such as entitled JL1 of an object for auger screen template of P1 bottoms addition;One auger of P2 bottoms addition Entitled JL2 of the object of screen template etc..
Next step 103 is performed, in this step, and according to the quantity and numbering of the burden balance, dispensing is called The screen template of scale, generates burden balance object corresponding with each burden balance.
In specific implementation process, according to the quantity and numbering of burden balance in the feed proportioning system, the fpt of burden balance is called Screen template, generates burden balance object corresponding with each burden balance, the institute that all of burden balance object is generated with step 103 Some storehouse objects are misaligned, and with a certain distance;But also each corresponding burden balance of burden balance object can be obtained All burden balance objects are arranged by position, to keep the coordination of picture.
Next step 104 is performed, in this step, according to burden balance and the corresponding relation of feed bin, pipeline is called Screen template, adds pipeline object between the burden balance object and storehouse object with corresponding relation.
In specific implementation process, according to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, in tool There is addition pipeline object between the burden balance object of corresponding relation and storehouse object, wherein, described pipeline object one end is arranged on tool There is the top of the burden balance object of corresponding relation, the other end is arranged on the bottom of the storehouse object with corresponding relation.
Specifically, in first database according to burden balance and the corresponding relation of feed bin, call pipeline Screen template, automatically the bottom of the storehouse object with corresponding relation and burden balance top add pipeline object, the pipe Each node coordinate of road object, by with reference to the coordinate of the coordinate of storehouse object bottom centre position and burden balance object top center It is configured.
Beneficial effects of the present invention are as follows:
The embodiment of the present application is based on above-mentioned technical proposal, is closed mixer, burden balance and storehouse in the embodiment of the present invention Binding number, then according to the quantity and numbering of the feed bin, calls the screen template of feed bin, generation and each feed bin Corresponding storehouse object;And according to the quantity and numbering of the burden balance, the screen template of burden balance is called, generate and each The corresponding burden balance object of burden balance;Further according to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, in tool There is addition pipeline object between the burden balance object of corresponding relation and storehouse object, so so that by the picture for calling relevant device Face die plate, generates relevant device object, further according to burden balance and the corresponding relation of feed bin, pipeline object is added to right Between the burden balance object and storehouse object that should be related to, compared with prior art, without according to technological requirement one by one to equipment It is laid out, but according to burden balance and the corresponding relation of feed bin, equipment is laid out automatically, and then picture can be shortened Development time so that development efficiency is improved.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (4)

1. a kind of automatic generation method based on wincc configuration pictures, is applied in feed proportioning system, it is characterised in that including:
The quantity of the mixer, burden balance and feed bin in the feed proportioning system is obtained, and according to mixer, burden balance and feed The corresponding relation in storehouse, numbering is associated by mixer, burden balance and feed bin;
According to the quantity and numbering of the feed bin, the screen template of feed bin is called, generated corresponding with each feed bin Storehouse object, each storehouse object one coordinate of correspondence, with height attributes and width attribute;
And according to the quantity and numbering of the burden balance, call the screen template of burden balance, generation and each burden balance pair The burden balance object answered;
According to burden balance and the corresponding relation of feed bin, the screen template of pipeline is called, in the burden balance pair with corresponding relation As adding pipeline object and the object of storehouse between;
Wherein, described pipeline object one end is arranged on the top of the burden balance object with corresponding relation, and the other end is arranged on tool There is the bottom of the storehouse object of corresponding relation;Each node coordinate of the pipeline object, with reference to storehouse object bottom centre position The coordinate of coordinate and burden balance object top center is configured.
2. the method for claim 1, it is characterised in that each storehouse object includes thering is feeding corresponding with the storehouse object The numbering of feed bin, the volume percent of the material name and the feed bin that are arranged in the feed bin.
3. method as claimed in claim 2, it is characterised in that generation storehouse corresponding with each feed bin object it Afterwards, methods described also includes:
By the carrying out top alignment of all storehouse objects, and adjust the spacing between the object of each two storehouse.
4. method as claimed in claim 3, it is characterised in that generation storehouse corresponding with each feed bin object it Afterwards, methods described also includes:
An object for auger screen template is added in the bottom of each storehouse object.
CN201410388921.XA 2014-08-08 2014-08-08 A kind of automatic generation method based on wincc configuration pictures Active CN104166759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410388921.XA CN104166759B (en) 2014-08-08 2014-08-08 A kind of automatic generation method based on wincc configuration pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410388921.XA CN104166759B (en) 2014-08-08 2014-08-08 A kind of automatic generation method based on wincc configuration pictures

Publications (2)

Publication Number Publication Date
CN104166759A CN104166759A (en) 2014-11-26
CN104166759B true CN104166759B (en) 2017-06-23

Family

ID=51910571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410388921.XA Active CN104166759B (en) 2014-08-08 2014-08-08 A kind of automatic generation method based on wincc configuration pictures

Country Status (1)

Country Link
CN (1) CN104166759B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103614503A (en) * 2013-10-26 2014-03-05 芜湖新兴铸管有限责任公司 Manual and automatic combination control system for open fire diffusion

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103614503A (en) * 2013-10-26 2014-03-05 芜湖新兴铸管有限责任公司 Manual and automatic combination control system for open fire diffusion

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
PLC在配料称重控制系统中的应用;杨维明 等;《微计算机信息》;20050120;第21卷(第2期);第9-10,155页 *
PLC在饲料配比测控中的应用;任思成 等;《仪器仪表学报》;20021230;第23卷(第3期);第385-386页 *
WinCC在玻璃配料监控系统中的应用;李帅;《自动化技术与应用》;20100325;第29卷(第3期);第86-89页 *
基于WINCC的饲料配料监控系统;蒋炯炜 等;《科技创新与产业发展(A卷)—第七届沈阳科学学术年会暨浑南高新技术产业发展论坛文集》;20101020;第250-253页 *

Also Published As

Publication number Publication date
CN104166759A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
JP5884515B2 (en) Chart generation program, chart generation method, and chart generation apparatus
CN102968370B (en) A kind of test data generating method and device
JP2012108948A5 (en)
CN105117514B (en) Modularization automatic map delivery method and system
CN108921890A (en) The screwed lock method, apparatus and computer readable storage medium
CN105989213A (en) Communication engineering drawing generation method and drawing design client
CN106845935A (en) A kind of method and system of engineering project flow template
CN108134962A (en) Method for setting screen parameter, method and device, TV motherboard for obtaining screen parameter
CN105190546B (en) Cost computing device, the method for cost accounting and computer readable recording medium storing program for performing
CN109408092A (en) Method and device, storage medium and the electronic equipment of front end version publication
CN104166759B (en) A kind of automatic generation method based on wincc configuration pictures
CN107943968A (en) The structuring processing method of construction information list data
CN105590241B (en) Self-adaptive electronic bill implementation method and system
ATE557364T1 (en) METHOD AND DEVICE FOR THE COMPUTER-IMPLEMENTED PROCESSING OF ELECTRONIC PAYMENT ORDERS
CN107908380A (en) Multi-display method, device, terminal device and storage medium based on configuration
CN105741003A (en) Plan generation method and plan generation device
CN104133900A (en) Definition description method of 360-degree treeview
TW201419017A (en) Circuit layout adjusting method
CN104267967B (en) The generation method and device of the program code of software
CN106535002A (en) Method and device for updating layout of desktop starter template
CN106933932A (en) Data processing method, device and application server
CN106843819A (en) The method and device of object serialization
CN115185960A (en) Data processing method, data association system, and computer-readable storage medium
CN115374742A (en) Method and device for pin package design of schematic diagram and storage medium
CN106952046A (en) A kind of Intelligent Course Scheduling method and system

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
CP03 Change of name, title or address

Address after: 430030 Hubei Province in Qiaokou District of Wuhan City Jiefang Road No. 21 Hanzheng Street building B14-15 City Industrial Zone

Patentee after: Wuhan Shinco Valley technology Limited by Share Ltd

Address before: 430040 Hubei province Wuhan city road two East Lake gold North Industrial Park 7 Dongxin Tatsu Building 2 floor

Patentee before: Wuhan Sinkegu Technology & Development Co., Ltd.

CP03 Change of name, title or address