CN104460595B - A kind of method and apparatus of extended power monitoring system function - Google Patents

A kind of method and apparatus of extended power monitoring system function Download PDF

Info

Publication number
CN104460595B
CN104460595B CN201410604029.0A CN201410604029A CN104460595B CN 104460595 B CN104460595 B CN 104460595B CN 201410604029 A CN201410604029 A CN 201410604029A CN 104460595 B CN104460595 B CN 104460595B
Authority
CN
China
Prior art keywords
address
file
binary file
monitoring system
power monitoring
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
CN201410604029.0A
Other languages
Chinese (zh)
Other versions
CN104460595A (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.)
SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd
Guizhou Electric Power Test and Research Institute
Original Assignee
SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd
Guizhou Electric Power Test and Research Institute
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 SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd, Guizhou Electric Power Test and Research Institute filed Critical SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd
Priority to CN201410604029.0A priority Critical patent/CN104460595B/en
Publication of CN104460595A publication Critical patent/CN104460595A/en
Application granted granted Critical
Publication of CN104460595B publication Critical patent/CN104460595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a kind of method and apparatus of extended power monitoring system function.This method, including:The standard of predefined user's control process;The text of user's control process is generated based on the standard;The text is compiled into binary file;Electric power monitoring system performs the binary file.By the standard for predefining user's control process;The text of user's control process is generated based on the standard;The text is compiled into binary file;Electric power monitoring system performs the binary file.Code revision during electric power monitoring system Function Extension is reduced, stability is added, the management of version is facilitated.

Description

A kind of method and apparatus of extended power monitoring system function
Technical field
The present invention relates to technical field of electric power automation, more particularly to a kind of method of extended power monitoring system function and Device.
Background technology
Power automation monitoring system includes transformer station's background monitoring, dispatching automation, centralized-control center monitoring, is base In the real-time monitoring of second level requirement of real-time.SCADA (the Supervisory Control And Data of monitoring system Acquisition, data acquisition is controlled with monitoring) function is Core Feature, is also basic function.The function mainly realizes prison The collection and processing of object real time data are controlled, including four is distant:Remote measurement, remote signalling, remote pulse, remote control.
Data of the monitoring system based on communication protocol acquisition monitoring object.To enable processing data to reach second level real-time It is required that, monitoring system all uses Real-Time Databases System Technique.Based on real-time database processing data, the monitoring function that user requires is realized, But the requirement of this data processing varies, it is difficult to limit.Though by years development, monitoring system have accumulated many data Processing method and function, but in face of the proposition of different scenes and new demand, be particularly when runtime dilatation is extended, often Need to increase new function, these new functions must be just realized by changing program code.Because being related to the modification of program, The unstability of program is added, the difficulty of producer's Version Control is also increased, the cost of maintenance is added.
The content of the invention
The present invention proposes a kind of method and apparatus of extended power monitoring system function, and it is by predefining user's control The standard of process;The text of user's control process is generated based on the standard;The text is compiled into binary system File;Electric power monitoring system performs the binary file.Code revision during electric power monitoring system Function Extension is reduced, is increased Add stability, facilitate the management of version.
To realize above-mentioned design, the present invention uses following technical scheme:
On the one hand a kind of method of extended power monitoring system function is used, including:
The standard of predefined user's control process;
The text of user's control process is generated based on the standard;
The text is compiled into binary file;
Electric power monitoring system performs the binary file.
Wherein, it is described that the text is compiled into binary file, including:
The text is compiled into file of each instruction for quaternary formula code;
The file of the quaternary formula code is stored as binary file, and gives the binary file unique file Name;
The electric power monitoring system performs the binary file, is specially:
The electric power monitoring system reads the binary file according to the filename of the binary file, performs described Quaternary formula code in binary file;
Wherein, the form of the quaternary formula code is:<Function number, address 1, address 2, address 3>, wherein the address 1, Address 2 and address 3 are respectively the address of operand 1, operand 2 and funcall returning result.
Wherein, during the address 1, address 2 and address 3 are the binary file, calculate what is obtained since start bit Position.
Wherein, the standard includes operator, keyword, function and grammer.
Wherein, the operator includes numeric operator, logical operator, comparison operator and bit arithmetic symbol.
On the other hand a kind of device of extended power monitoring system function is used, including:
Standard definition unit, the standard for predefining user's control process;
File generating unit, the text for generating user's control process based on the standard;
File compilation unit, for the text to be compiled into binary file;
Execution unit is extended, the binary file is performed for electric power monitoring system.
Wherein, the file compilation unit, including:
Directive generation module, for the text to be compiled into file of each instruction for quaternary formula code;
Name module is preserved, for the file of the quaternary formula code to be stored as into binary file, and described two are given The unique filename of binary file;
The extension execution unit, reads specifically for the electric power monitoring system according to the filename of the binary file The binary file is taken, the quaternary formula code in the binary file is performed;
Wherein, the form of the quaternary formula code is:<Function number, address 1, address 2, address 3>, wherein the address 1, Address 2 and address 3 are respectively the address of operand 1, operand 2 and funcall returning result.
Wherein, during the address 1, address 2 and address 3 are the binary file, calculate what is obtained since start bit Position.
Wherein, the standard includes operator, keyword, function and grammer.
Wherein, the operator includes numeric operator, logical operator, comparison operator and bit arithmetic symbol.
The beneficial effects of the present invention are:By the standard for predefining user's control process;Generated and used based on the standard The text of family control process;The text is compiled into binary file;Electric power monitoring system performs described two and entered File processed.Code revision during electric power monitoring system Function Extension is reduced, stability is added, the management of version is facilitated.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to present invention implementation The content and these accompanying drawings of example obtain other accompanying drawings.
Fig. 1 is a kind of side of the first embodiment of the method for extended power monitoring system function provided in an embodiment of the present invention Method flow chart.
Fig. 2 is a kind of side of the second embodiment of the method for extended power monitoring system function provided in an embodiment of the present invention Method flow chart.
Fig. 3 is a kind of knot of the first embodiment of the device of extended power monitoring system function provided in an embodiment of the present invention Structure block diagram.
Fig. 4 is a kind of knot of the second embodiment of the device of extended power monitoring system function provided in an embodiment of the present invention Structure block diagram.
Embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only It is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, the scope of protection of the invention is belonged to.
Fig. 1 is refer to, it is the first of the method for a kind of extended power monitoring system function provided in an embodiment of the present invention The method flow diagram of embodiment.The method of extended power monitoring system function in the present embodiment is mainly used in transformer station backstage Function Extension in electric power monitoring system.As illustrated, this method includes:
Step S101:The standard of predefined user's control process.
It is real in order to ensure electric power monitoring system from the continuity during the entire process of exploitation, subsequent development to system update Various standards in system are united by the unification of the standard of the control of existing system in the development process of electric power monitoring system One is set, and is developed in subsequent development based on this standard, the function of subsequent development is updated into rear system being capable of basis Standard set in advance is directly realized by expanded function.
Step S102:The text of user's control process is generated based on the standard.
User's control process is really one section of program, the program can by text or other can be compiled File is realized.
Step S103:The text is compiled into binary file.
Step S104:Electric power monitoring system performs the binary file.
For electric power monitoring system, binary file can allow it directly to run two when Function Extension is carried out Binary file, in subsequent development without being changed to whole system, the renewal of system more facilitates, streamlining management.
In summary, the standard of predefined user's control process is passed through;User's control process is generated based on the standard Text;The text is compiled into binary file;Electric power monitoring system performs the binary file.Reduce Code revision during electric power monitoring system Function Extension, adds stability, facilitates the management of version.
Fig. 2 is refer to, it is the second of the method for a kind of extended power monitoring system function provided in an embodiment of the present invention The method flow diagram of embodiment.As illustrated, this method includes:
Step S201:The standard of predefined user's control process.
Wherein, the standard includes operator, keyword, function and grammer.
Wherein, the operator includes numeric operator, logical operator, comparison operator and bit arithmetic symbol.
Specific standard is such as:
(1) oeprator of user's control process is defined.
(11) numeric operator is defined
+ - * / % **
Plus Subtract and (take negative) Multiply Remove Remainder Exponentiation
(12) logical operation is defined
&& || ~
With Or Negate
(13) logic comparison operation is defined
> >= < <= != =
It is more than It is more than or equal to It is less than It is less than or equal to It is not equal to It is equal to
(14) bit arithmetic is defined
& | ^ << >>
Step-by-step with Step-by-step or Step-by-step XOR Shift left Dextroposition
(15) other symbols are defined
, CSV symbol (separated variable name explanation and function parameter)
Statement terminator
. Decimal point or database domain name separating character
@ Database object name is taken to accord with
// Explain symbol
() Round bracket (expression formula is calculated, for sentences and function call)
{} Braces (statement body:Multiple sentences can be contained)
(2) definition of keywords list
proc Process
datavar Numerical variable explanation
string String variable explanation
if Logic judgment if
else Logic judgment else
for Circulation
goto Programming jump
return Return
(3) defined function name
(4) the entitled reserved word of keyword and function of user's control process
(5) variable name, keyword, function name, database manipulation case-insensitive
(6) database fields name format:
(61) for numeric type domain, form is:Table name object name domain names;
(62) for character string type domain, form is:Table name object name domain names (string);
(7) variable name can be by Chinese character, English alphabet and underscore _ composition, but can not be started with numeral, and its length is less than 30;
(8) character string is bracketed with double quotation marks " ";
(9) one procedure body of each source file, procedure body can call other mistakes with input parameter, a procedure body Cheng Ti, but directly or indirectly can not call mutually;
(10) if sentences are nested with the permission of for sentences;
(11) priority of each operator is identical with c language;
(12) annotation may occur in which middle optional position of being expert at.
(13) operator, keyword, function and the definition for supporting that user's control process is defined are realized in monitoring system Grammer.
Step S202:The text of user's control process is generated based on the standard.
Step S203:The text is compiled into file of each instruction for quaternary formula code.
Wherein, the form of the quaternary formula code is:<Function number, address 1, address 2, address 3>, wherein the address 1, Address 2 and address 3 are respectively the address of operand 1, operand 2 and funcall returning result.The address 1, address 2 and ground Location 3 be the binary file in, obtained position is calculated since start bit.
The function number of instruction set is described as follows:
Step S204:The file of the quaternary formula code is stored as binary file, and gives the binary file Unique filename.
Step S205:The electric power monitoring system reads the binary system text according to the filename of the binary file Part, performs the quaternary formula code in the binary file.
According to setting requirements, monitoring system is explained, performs user procedures, realizes the extension of user monitoring systemic-function.
In summary, the present embodiment further illustrate file compiling detailed process there is provided a kind of concrete implementation The concrete mode of renewal based on binary file.Sum it up, the standard by predefining user's control process;Based on described Standard generates the text of user's control process;The text is compiled into binary file;Electric power monitoring system is held The row binary file.Code revision during electric power monitoring system Function Extension is reduced, stability is added, version is facilitated This management.
It is a kind of embodiment of the device of extended power monitoring system function of the invention below.The embodiment of device is based on side The embodiment of method realizes that the not most explanation in the embodiment of device refer to the embodiment of preceding method.
Fig. 3 is refer to, it is a kind of structure of the first embodiment of the device of extended power monitoring system function of the invention Block diagram, as illustrated, the device includes:
Standard definition unit 310, the standard for predefining user's control process;
File generating unit 320, the text for generating user's control process based on the standard;
File compilation unit 330, for the text to be compiled into binary file;
Execution unit 340 is extended, the binary file is performed for electric power monitoring system.
In summary, under the collaborative work of above-mentioned each module, by the standard for predefining user's control process;Based on institute State the text that standard generates user's control process;The text is compiled into binary file;Electric power monitoring system Perform the binary file.Code revision during electric power monitoring system Function Extension is reduced, stability is added, facilitated The management of version.
Fig. 2 is refer to, it is a kind of structure of the second embodiment of the device of extended power monitoring system function of the invention Block diagram, as illustrated, the device includes:
Standard definition unit 310, the standard for predefining user's control process;
File generating unit 320, the text for generating user's control process based on the standard;
File compilation unit 330, for the text to be compiled into binary file;
Execution unit 340 is extended, the binary file is performed for electric power monitoring system.
Wherein, the file compilation unit 330, including:
Directive generation module 331, for the text to be compiled into file of each instruction for quaternary formula code;
Name module 332 is preserved, for the file of the quaternary formula code to be stored as into binary file, and is given described The unique filename of binary file;
The extension execution unit 340, specifically for file of the electric power monitoring system according to the binary file Name reads the binary file, performs the quaternary formula code in the binary file;
Wherein, the form of the quaternary formula code is:<Function number, address 1, address 2, address 3>, wherein the address 1, Address 2 and address 3 are respectively the address of operand 1, operand 2 and funcall returning result.
Further, during the address 1, address 2 and address 3 are the binary file, calculated since start bit The position arrived.
Preferably, the standard includes operator, keyword, function and grammer.
Further, the operator includes numeric operator, logical operator, comparison operator and bit arithmetic symbol.
In summary, the present embodiment further illustrate file compiling detailed process there is provided a kind of concrete implementation The concrete mode of renewal based on binary file.Sum it up, the standard by predefining user's control process;Based on described Standard generates the text of user's control process;The text is compiled into binary file;Electric power monitoring system is held The row binary file.Code revision during electric power monitoring system Function Extension is reduced, stability is added, version is facilitated This management.
Above content is only presently preferred embodiments of the present invention, for one of ordinary skill in the art, according to the present invention's Thought, will change in specific embodiments and applications, and this specification content should not be construed as to the present invention Limitation.

Claims (4)

1. a kind of method of extended power monitoring system function, it is characterised in that including:
The standard of predefined user's control process;
The text of user's control process is generated based on the standard;
The text is compiled into binary file;
Electric power monitoring system performs the binary file;
Wherein, it is described that the text is compiled into binary file, including:
The text is compiled into file of each instruction for quaternary formula code;
The file of the quaternary formula code is stored as binary file, and gives the binary file unique filename;
The electric power monitoring system performs the binary file, is specially:
The electric power monitoring system reads the binary file according to the filename of the binary file, performs described two and enters Quaternary formula code in file processed;
Wherein, the form of the quaternary formula code is:<Function number, address 1, address 2, address 3>, wherein the address 1, address 2 and address 3 be respectively operand 1, operand 2 and funcall returning result address.
2. a kind of method of extended power monitoring system function according to claim 1, it is characterised in that the address 1, During address 2 and address 3 are the binary file, obtained position is calculated since start bit.
3. a kind of device of extended power monitoring system function, it is characterised in that including:
Standard definition unit, the standard for predefining user's control process;
File generating unit, the text for generating user's control process based on the standard;
File compilation unit, for the text to be compiled into binary file;
Execution unit is extended, the binary file is performed for electric power monitoring system;
Wherein, the file compilation unit, including:
Directive generation module, for the text to be compiled into file of each instruction for quaternary formula code;
Name module is preserved, for the file of the quaternary formula code to be stored as into binary file, and the binary system is given The unique filename of file;
The extension execution unit, institute is read specifically for the electric power monitoring system according to the filename of the binary file Binary file is stated, the quaternary formula code in the binary file is performed;
Wherein, the form of the quaternary formula code is:<Function number, address 1, address 2, address 3>, wherein the address 1, address 2 and address 3 be respectively operand 1, operand 2 and funcall returning result address.
4. a kind of device of extended power monitoring system function according to claim 3, it is characterised in that the address 1, During address 2 and address 3 are the binary file, obtained position is calculated since start bit.
CN201410604029.0A 2014-10-30 2014-10-30 A kind of method and apparatus of extended power monitoring system function Active CN104460595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410604029.0A CN104460595B (en) 2014-10-30 2014-10-30 A kind of method and apparatus of extended power monitoring system function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410604029.0A CN104460595B (en) 2014-10-30 2014-10-30 A kind of method and apparatus of extended power monitoring system function

Publications (2)

Publication Number Publication Date
CN104460595A CN104460595A (en) 2015-03-25
CN104460595B true CN104460595B (en) 2017-07-25

Family

ID=52906820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410604029.0A Active CN104460595B (en) 2014-10-30 2014-10-30 A kind of method and apparatus of extended power monitoring system function

Country Status (1)

Country Link
CN (1) CN104460595B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857033A (en) * 2020-08-07 2020-10-30 深圳市派姆智能机器有限公司 Compiling system of programmable controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1118284A (en) * 1997-06-19 1999-01-22 Toshiba Corp Power-system monitoring controller
CN102346671B (en) * 2011-09-29 2013-12-18 南京国电南自轨道交通工程有限公司 Calculation method based on expansible script language
CN103309718B (en) * 2012-03-08 2016-12-14 上海振华重工(集团)股份有限公司 The method of secondary development in industrial configuration software
CN103020310B (en) * 2013-01-08 2015-10-28 中国南方电网有限责任公司调峰调频发电公司 A kind of method realizing electric power monitoring system Function Extension and customization based on script

Also Published As

Publication number Publication date
CN104460595A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US9292490B2 (en) Unsupervised learning of deep patterns for semantic parsing
TW201901661A (en) Speech recognition method and system
CN104461484B (en) The implementation method and device of front-end template
CN103020295B (en) A kind of problem label for labelling method and device
CN109284145A (en) The generation of multilingual configuration file and methods of exhibiting and device, equipment and medium
CN104978178B (en) A kind of relay protection constant value method for visualizing
CN105528418B (en) A kind of design documentation generation method and device
CN106970820A (en) Code storage method and code storage
CN109871311B (en) Method and device for recommending test cases
CN103942137A (en) Browser compatibility testing method and device
CN107402746A (en) A kind of method and device of automatic code generating file
CN110737466A (en) Source code coding sequence representation method based on static program analysis
CN103473338A (en) Webpage content extraction method and webpage content extraction system
CN103714116A (en) Webpage information extracting method and webpage information extracting equipment
CN101493727A (en) Natural participle and mixing input by statement input method
CN112528013A (en) Text abstract extraction method and device, electronic equipment and storage medium
CN104461548B (en) The adding method and device of code snippet
CN104881274B (en) The method for identifying dead code
CN104090865B (en) Text similarity calculation method and device
CN104460595B (en) A kind of method and apparatus of extended power monitoring system function
CN104166545A (en) Webpage resource sniffing method and device
CN110147226A (en) A kind of system according to Function Block Diagram automatically generating program, method and device
CN105022667A (en) Embedded browser CSS (Cascading Style Sheets) based engine parallelization method
KR20130099327A (en) Apparatus for extracting information from open domains and method for the same
CN105183730A (en) Method and device for processing webpage information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant