CN103186367A - Realization method for dynamic template of support script in monitoring system - Google Patents
Realization method for dynamic template of support script in monitoring system Download PDFInfo
- Publication number
- CN103186367A CN103186367A CN2011104458320A CN201110445832A CN103186367A CN 103186367 A CN103186367 A CN 103186367A CN 2011104458320 A CN2011104458320 A CN 2011104458320A CN 201110445832 A CN201110445832 A CN 201110445832A CN 103186367 A CN103186367 A CN 103186367A
- Authority
- CN
- China
- Prior art keywords
- template
- variable
- script
- view
- dynamic
- 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.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a realization method for a dynamic template of a support script in a monitoring system. The method is widely applied to the monitoring system in factory production. The method mainly comprises the following steps of: establishing and configuring a universal template view; establishing a view template variable and a template example, building the mapping relationship between the template example and an actual variable, and obtaining data on different operating states of a plurality of similar devices in a way that the actual data is mapped from the template variable into a relevant monitoring system according to a universal view template; and editing a series of scripts by utilizing a script editor to support and control the interaction and animation effect on data of the view template. By the adoption of the method of the dynamic template, the working efficiency of the system is improved, the stability of the system is enhanced, and the workload of a developer and the working difficulty on maintenance of the system are reduced. Due to the establishment of the dynamic script template, the unified management on traditional picture functions is realized, so that the maintenance of the monitoring system in industrial production is enabled to be more convenient, the time is saved, and an error occurrence rate is lowered.
Description
Technical field
The present invention relates to the configuration field of commercial production monitoring, automation control system, specifically a kind of dynamic template implementation method that is applied to support in the supervisory system script.
Technical background
In the commercial production supervisory system, because data volume is big, device category is many, the configuration performance history complexity of monitoring software, loaded down with trivial details.Need to draw a large amount of pictures and write a large amount of scripts, the configuration process of a lot of repetitions is wherein arranged.Traditional picture configuration is according to needs, the kind of equipment, the quantity of system, write a large amount of pictures, wherein the distinct device of a lot of same kind is all wanted the picture function that configuration repeats, and so not only increases the configuration development workload, and the waste resource, lose time, energy.
Summary of the invention
In above-mentioned commercial production supervisory system, because data volume is big, device category is many, the configuration performance history complexity of monitoring software, loaded down with trivial details problem the invention provides a kind of scale that can reduce configuration in a large number, simple to operate, flexible Application is supported script in supervisory system dynamic template implementation method.
For realizing purpose of the present invention, the technical solution used in the present invention is:
A kind of dynamic template implementation method that is applied to support in the supervisory system script is characterized in that comprising the steps:
To the various same categories of device that the scene has a same alike result feature create respectively, configuration goes out its corresponding common template view, to reflect the actual motion state of each equipment;
Create the view template variable, be the general-purpose attribute of a certain kind equipment view template, during establishment, carry out related by a kind of mode of variable mapping with real variable in the supervisory system;
Create the view template example, each template instances is some field apparatuss of certain same category of device;
Set up the mapping relations of each template instances and real variable, and the template variable is mapped in the real data variable in the relevant supervisory system, realize the general view template by a correspondence, obtain the different running state data of a plurality of same categories of device;
When needing the script editor, utilize script-editor to write a series of scripts to support and to control Data Update, the animation effect of certain view template;
By the operation configuration software, in conjunction with the mapping relations of view template variable, it is replaced to the real variable of mapping, thereby obtain the data of real variable.
The process of creating view template is:
Access and set up template program, system is that newly-built view template is distributed unique title in the system of an acquiescence automatically, and this title can be revised voluntarily, and title is unique in the assurance system, otherwise returns error message.
Setting up view template variable process is:
Access newly-built template variable program, each template variable's attribute is arranged comprise name variable, ID number, note;
Whether the judgment variable title is unique in view template, if name variable is unique, selects the view template types of variables, namely finishes the establishment of template variable; If name variable is not unique, then returns and reset template name variable step.
New View template instances process:
Access newly-built template instances program, each view template instance properties is arranged comprise example apparatus title, description;
Judge whether the example apparatus title is unique in view template, if title is unique, template variable and real variable mapping relations are set, namely finish the establishment of template instances.
The script compiling procedure:
Open the template script and compile, the template variable in the script is modified symbol with " [] " it is drawn together;
Check the script grammer, call the syntax check interface, judged whether grammar mistake, if wrong the needs revises, finish the script editor after the modification.
If there is not grammar mistake, then returns the circulation that continues and carry out inspection script grammar mistake step.
The present invention compared with prior art beneficial effect is as follows:
1, the inventive method is simple to operate, flexible.Because at the monitored picture view template with identical function attributive character, its function is united, develop a general screen template, and write a cover script to support Data Update and the animation effect of picture, optimized system configuration, more efficient, more flexible.
2, the inventive method is powerful, can realize complicated dynamic effect.Because the foundation of dynamic script template, it carries out unified management with traditional picture function, and this makes commercial production supervisory system maintenance afterwards upward more convenient, saves time; The convenient modification safeguarded, reduces the probability of makeing mistakes.
3, the present invention abbreviaties a large amount of less configuration workloads.The method is widely used in the plant produced supervisory system, and its appearance has not only improved system works efficient, has strengthened the stability of system, and has reduced developer's workload and system maintenance work difficulty.Overcome traditional commercial production supervisory system, because on-the-spot data volume is big, developer's workload in the configuration monitoring system process has been increased, the complicated loaded down with trivial details problem of configuration work; Save resource, shorten the monitoring software configuration development time, reduce the development amount.
Description of drawings
Fig. 1 realizes general flow chart for dynamic template of the present invention;
Fig. 2 is drawing template establishment variable process flow diagram of the present invention;
Fig. 3 is drawing template establishment example flow chart of the present invention;
Fig. 4 is compile script process flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention program is described in further detail.
As shown in Figure 1, realize general flow chart for dynamic template of the present invention.The present invention is a kind of dynamic template implementation method that is applied to support in the supervisory system script, it is characterized in that comprising the steps:
To the various same categories of device that the scene has a same alike result feature create respectively, configuration goes out its corresponding common template view, to reflect the actual motion state of each equipment;
Create the view template variable, be the general-purpose attribute of a certain kind equipment view template, during establishment, carry out related by a kind of mode of variable mapping with real variable in the supervisory system;
Create the view template example, each template instances is some field apparatuss of certain same category of device;
Set up the mapping relations of each template instances and real variable, and the template variable is mapped in the real data variable in the relevant supervisory system, realize the general view template by a correspondence, obtain the different running state data of a plurality of same categories of device;
When needing the script editor, utilize script-editor to write a series of scripts to support and to control Data Update, the animation effect of certain view template;
By the operation configuration software, in conjunction with the mapping relations of view template variable, it is replaced to the real variable of mapping, thereby obtain the data of real variable.
Further specify the dynamic template method of supporting script: be primarily aimed at the distinct device that some have identical configuration attribute, they are abstract in having the template of same characteristic features and the form of expression, and configuration goes out general template view.Owing to need data are upgraded in the supervisory system, view needs animation effect with the actual motion state of reflection equipment, therefore need finish these functions by view template being write a cover script.
View template comprises two kinds of attributes: figure template variable and view template example, and wherein, what the view template variable represented is the general-purpose attribute of a certain kind equipment; What the view template example then represented is concrete some field apparatuss, and the template variable is mapped to real data in the relevant supervisory system.And the action need to this template variable in this template script adds " [] " modification symbol.
By the operation configuration software, search " [] " and modify symbol, and in conjunction with the mapping relations of view template variable, it is replaced to the real variable of mapping, thereby obtain the data of real variable.
System replaces to related with it real variable with the template variable of this label symbol automatically by configuration software, by this association, realizes that the view of dynamic template is simplified function.According to different field apparatuss, select corresponding template variable mapping object.By the realization of this technology, can reduce scale, the time of configuration and the probability of makeing mistakes in a large number.
The process of creating view template is:
Access and set up template program, system is that newly-built view template is distributed unique title in the system of an acquiescence automatically, and this title can be revised voluntarily, and title is unique in the assurance system, otherwise returns error message.
As shown in Figure 2, be drawing template establishment variable process flow diagram of the present invention.The present invention sets up view template variable process:
When setting up the view template variable, access newly-built template variable program, each template variable's attribute is arranged comprise name variable, ID number, note;
Whether the judgment variable title is unique in view template, if name variable is unique, selects the view template types of variables, namely finishes the establishment of template variable; If title is not unique, then need to reset the template name variable.
As shown in Figure 3, be drawing template establishment example flow chart of the present invention.New View template instances process:
When setting up the view template example, access newly-built template instances program, each view template instance properties is arranged comprise example apparatus title, description;
Judge whether the example apparatus title is unique in view template, if title is unique, template variable and real variable mapping relations are set, namely finish the establishment of template instances; If the template instances title is not unique, then need to reset the template instances title.
As shown in Figure 4, be compile script process flow diagram of the present invention.Script is compiled process: open the template script-editor and carry out script and write, the template variable in the script is drawn together it with " [] " modification symbol;
Check the script grammer, call the syntax check interface, judged whether grammar mistake, if wrong the needs revises, namely finish the script editor after the modification.
If there is not grammar mistake, then returning continues carries out inspection script grammar mistake step.
Script is according to the actual operating data of field apparatus, and dynamic effects such as the change color by each object in the control view template, flicker reflect the practical operation situation of equipment, give the people impression very intuitively.
Illustrate (seeing Table 1):
For example, industry spot has variable valve A, B, the C of 3 same models, and variable valve has two signals of valve opening and aperture feedback, so view template to set up process as follows:
Open configuration software, select to set up template program, add Drawing Object (variable valve) A, B, C;
Open the template variable program of setting up, each view template is added the template name variable: Kaidu and KaiduFankui, type is real number.
Set up view template example SA, SB, SC, with the mapping relations of real variable, as table 1:
The mapping relations of view template example SA, SB, SC and real variable: be pass through each view template title of building and set corresponding template name variable corresponding one by one with the real variable title, make its template variable and real variable form mapping relations.
By compile script, support animation effect, view needs animation effect with the actual motion state of reflection equipment, therefore need finish these functions by view template being write a cover script.
Equally, all can also set up template according to said process for the motor of same type, water pump etc.
Claims (6)
1. a dynamic template implementation method that is applied to support in the supervisory system script is characterized in that comprising the steps:
To the various same categories of device that the scene has a same alike result feature create respectively, configuration goes out its corresponding common template view, with the actual motion state of reflection various device;
Create the view template variable, be the general-purpose attribute of a certain kind equipment view template, during establishment, carry out related by a kind of mode of variable mapping with real variable in the supervisory system;
Create the view template example, each template instances is some field apparatuss of certain same category of device;
Set up the mapping relations of each template instances and real variable, and the template variable is mapped to real data variable in the relevant supervisory system, realize the general view template by a correspondence, obtain the different running state data of a plurality of same categories of device;
When needing the script editor, utilize script-editor to write a series of scripts to support and to control Data Update, the animation effect of certain view template;
By the operation configuration software, in conjunction with the mapping relations of view template variable, it is replaced to the real variable of mapping, thereby obtain the data of real variable.
2. according to the described a kind of dynamic template implementation method that is applied to support in the supervisory system script of claim 1, it is characterized in that: the process of creating view template is:
Access and set up template program, system is that newly-built view template is distributed unique title in the system of an acquiescence automatically, and this title can be revised voluntarily, and title is unique in the assurance system, otherwise returns error message.
3. according to the described a kind of dynamic template implementation method that is applied to support in the supervisory system script of claim 1, it is characterized in that: setting up view template variable process is:
Access newly-built template variable program, each template variable's attribute is arranged comprise name variable, ID number, note;
Whether the judgment variable title is unique in view template, if name variable is unique, selects the view template types of variables, namely finishes the establishment of template variable.
4. according to the described a kind of dynamic template implementation method that is applied to support in the supervisory system script of claim 1, it is characterized in that: New View template instances process:
Access newly-built template instances program, each view template instance properties is arranged comprise example apparatus title, description;
Judge whether the example apparatus title is unique in view template, if title is unique, template variable and real variable mapping relations are set, namely finish the establishment of template instances.
5. according to the described a kind of dynamic template implementation method that is applied to support in the supervisory system script of claim 1, it is characterized in that: the script compiling procedure:
Open the template script and compile, the template variable in the script is modified symbol with " [] " it is drawn together;
Check the script grammer, call the syntax check interface, judged whether grammar mistake, if wrong the need revised, finish the script editor after the modification.
6. according to the described a kind of dynamic template implementation method that is applied to support in the supervisory system script of claim 5, it is characterized in that: if there is not grammar mistake, then returning continues carries out inspection script grammar mistake step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104458320A CN103186367A (en) | 2011-12-27 | 2011-12-27 | Realization method for dynamic template of support script in monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104458320A CN103186367A (en) | 2011-12-27 | 2011-12-27 | Realization method for dynamic template of support script in monitoring system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103186367A true CN103186367A (en) | 2013-07-03 |
Family
ID=48677547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104458320A Pending CN103186367A (en) | 2011-12-27 | 2011-12-27 | Realization method for dynamic template of support script in monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103186367A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204458A (en) * | 2015-08-11 | 2015-12-30 | 许继集团有限公司 | Intelligent configuration method |
CN105352118A (en) * | 2015-11-09 | 2016-02-24 | 深圳市海亿达能源科技股份有限公司 | Method and device for automatically configuring modules |
CN106020803A (en) * | 2016-05-11 | 2016-10-12 | 深圳市麦斯杰网络有限公司 | Method and device for dynamic definition of monitored object template |
CN104268348B (en) * | 2014-09-30 | 2017-10-31 | 四川烟草工业有限责任公司 | Visual logistics monitoring system and its implementation based on Intouch |
CN109542031A (en) * | 2018-11-20 | 2019-03-29 | 上海电器科学研究所(集团)有限公司 | A kind of device configuration method in novel maintenance system |
WO2020034309A1 (en) * | 2018-08-15 | 2020-02-20 | 网宿科技股份有限公司 | Host monitoring method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050257204A1 (en) * | 2004-05-17 | 2005-11-17 | Invensys Systems, Inc. | System and method for developing animated visualization interfaces |
CN101882071A (en) * | 2009-05-07 | 2010-11-10 | 北京四方继保自动化股份有限公司 | Picture design method for configuration software |
-
2011
- 2011-12-27 CN CN2011104458320A patent/CN103186367A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050257204A1 (en) * | 2004-05-17 | 2005-11-17 | Invensys Systems, Inc. | System and method for developing animated visualization interfaces |
CN101882071A (en) * | 2009-05-07 | 2010-11-10 | 北京四方继保自动化股份有限公司 | Picture design method for configuration software |
Non-Patent Citations (4)
Title |
---|
HUAXING211: "《如何使用结构变量组态画面模板?》", 《百度文库HTTP://WENKU.BAIDU.COM/VIEW/EB3182AAD1F34693DAEF3EDA.HTML》 * |
NAMALA: "《如何快速开发小型组态软件》", 《中华工控网论坛HTTP://BBS.GKONG.COM/ARCHIVE.ASPX?ID=171166》 * |
杨湛莹: "《基于工控组态技术的隧道综合监控系统的实现》", 《上海电气技术》 * |
王忠锋 等: "《FF现场总线控制系统功能块实例化的实现》", 《信息与控制》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268348B (en) * | 2014-09-30 | 2017-10-31 | 四川烟草工业有限责任公司 | Visual logistics monitoring system and its implementation based on Intouch |
CN105204458A (en) * | 2015-08-11 | 2015-12-30 | 许继集团有限公司 | Intelligent configuration method |
CN105204458B (en) * | 2015-08-11 | 2018-08-07 | 许继集团有限公司 | A kind of intelligent configuration method |
CN105352118A (en) * | 2015-11-09 | 2016-02-24 | 深圳市海亿达能源科技股份有限公司 | Method and device for automatically configuring modules |
CN105352118B (en) * | 2015-11-09 | 2018-10-16 | 深圳市海亿达科技股份有限公司 | A kind of quick configuration method of central air-conditioning based on automatic identification and device |
CN106020803A (en) * | 2016-05-11 | 2016-10-12 | 深圳市麦斯杰网络有限公司 | Method and device for dynamic definition of monitored object template |
WO2020034309A1 (en) * | 2018-08-15 | 2020-02-20 | 网宿科技股份有限公司 | Host monitoring method and device |
CN109542031A (en) * | 2018-11-20 | 2019-03-29 | 上海电器科学研究所(集团)有限公司 | A kind of device configuration method in novel maintenance system |
CN109542031B (en) * | 2018-11-20 | 2021-10-26 | 上海电器科学研究所(集团)有限公司 | Equipment configuration method in remote operation and maintenance system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103186367A (en) | Realization method for dynamic template of support script in monitoring system | |
CN102096631B (en) | Interface testing method and device | |
CN100351785C (en) | Method for debuging embedded system and equipment | |
CN104778124A (en) | Automatic testing method for software application | |
CN104898546B (en) | A kind of PLC on-line debugging system and method based on SOC | |
CN101814024A (en) | Framework and tool for designing cross-platform 3D interface | |
CN105447643A (en) | Cloud computing platform-oriented scientific workflow system and method | |
CN112000441A (en) | Method for managing virtual machine life cycle based on kubernets acoustic arrangement | |
CN103327080A (en) | Method and device for establishing control system of internet of things | |
CN110674049B (en) | Intelligent form verification method oriented to PLC logic programming | |
CN104317595A (en) | Background-push component-based graphical monitoring device based on SVG (scalable vector graphics) and operating method thereof | |
CN103064682A (en) | Device-orientated human-computer interface configuration design method | |
CN103207783A (en) | Software development engine system based on browser/server mode and building method thereof | |
CN204961152U (en) | Pumped storage unit control program off -line test system | |
CN110851123A (en) | WebGIS power grid visualization framework construction method, system and device based on SpringMVC | |
CN109753281B (en) | Micro-grid energy management strategy visualization development tool based on graphical programming | |
CN105179156A (en) | Offline control program testing system and method of pump storage group | |
CN105760147A (en) | Software page display construction method and system | |
CN106775779A (en) | A kind of automatic method for assigning via net attributes in Allegro softwares | |
CN105241011A (en) | Air conditioner group control system development device and method | |
CN205068102U (en) | Pumped storage unit operational process and error detection training system | |
CN102508665B (en) | Method for drawing application view and device for drawing application view | |
CN105117227A (en) | Method and device for automatically generating code | |
CN115639998A (en) | Report management method and device, storage medium and electronic device | |
CN116301836A (en) | Embedded development system based on domestic autonomous controllable environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20170301 |
|
AD01 | Patent right deemed abandoned |