CN102521125A - Method for automatically detecting syntax error in control policy configuration - Google Patents

Method for automatically detecting syntax error in control policy configuration Download PDF

Info

Publication number
CN102521125A
CN102521125A CN2011103902969A CN201110390296A CN102521125A CN 102521125 A CN102521125 A CN 102521125A CN 2011103902969 A CN2011103902969 A CN 2011103902969A CN 201110390296 A CN201110390296 A CN 201110390296A CN 102521125 A CN102521125 A CN 102521125A
Authority
CN
China
Prior art keywords
configuration
control strategy
input
error
analysis
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.)
Granted
Application number
CN2011103902969A
Other languages
Chinese (zh)
Other versions
CN102521125B (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.)
Sap (Fujian) Technology Co. Ltd.
Original Assignee
FUDA AUTOMATION TECHNOLOGIES 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 FUDA AUTOMATION TECHNOLOGIES Co Ltd filed Critical FUDA AUTOMATION TECHNOLOGIES Co Ltd
Priority to CN201110390296.9A priority Critical patent/CN102521125B/en
Publication of CN102521125A publication Critical patent/CN102521125A/en
Application granted granted Critical
Publication of CN102521125B publication Critical patent/CN102521125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method for automatically detecting a syntax error in a control policy configuration. The method comprises the following steps of: 1, judging whether all logic pages of the control policy configuration are stored; 2, determining an object to be analyzed in the control policy configuration; 3, scanning connecting lines of all edited configuration elements in the analyzed object, wherein the configuration elements comprise an input element, an output element, a policy element and an auxiliary element; 4, analyzing attribute parameters of all configuration elements in the analyzed object, the input and output of the elements, and data streams of the elements one by one; 5, displaying an analysis result of the analyzed object; and 6, judging whether all logic pages are analyzed, if a certain logic page is not analyzed, executing the step 4, and if all logic pages are analyzed, finishing operation. By adoption of the method, the logic pages, a loop and a system of the control policy configuration are subjected to syntax analysis scanning, occurrence of logics which do not accord with a syntax rule in the logic can be quickly determined, and error/alarm information is displayed on an information output window.

Description

Control strategy configuration automatic detection of syntax error method
[technical field]
The present invention relates to the Industrial Automation Software technical field, relate in particular to a kind of automatic testing method of the grammar mistake that in control strategy configuration element editing process, produces.
[background technology]
The control strategy configuration is meant uses programming mode (ladder diagram, functional block diagram etc.) intuitively, accomplishes the generation of control strategy or monitoring strategies program.Use maximum PLC systems that is directed against at present; The system control strategy configuration software is the upper software section of dcs; It is the interface of user and system; Accomplishing the Logical Configuration of field apparatus operation in the control system, thereby realize the control to system, is the indispensable ingredient of system.
Control strategy configuration based on graphic elements is the most frequently used development approach of dcs.People utilize the various combination of graphic elements to come to represent intuitively the ultimate principle and the control algolithm of control strategy.This type combination has comprised order and the reasonable disposition of element internal property parameters between data type between the element, data annexation, the data.Generally speaking, this element relation adopts rat tail to represent, order then adopts the terminal arrow of data connecting line to represent.When control systems engineering (CSE) teacher in exploitation during control strategy; Might develop stage by stage and the linking mistake that produces because of (1); (2) the control strategy complicacy causes annexation grammar mistake to occur; (3) ignore the reasons such as configuration of component attributes parameter, and made the configuration of control strategy mistake occur, can't generate effective configuration file.If control system is mounted with the configuration file of grammar mistake by force, just might cause breakneck consequence to the execution of control algolithm.
The control strategy configuration grammar mistake detection method of using always at present is that the link information database that forms after utilization compiles carries out the grammer judgement, or follows connection procedure in the employing configuration editing process and carry out the grammer judgement.The former shortcoming is need be after The whole control station configuration editor accomplishes, and forms element through process of compilation and connect the detection that just can make configuration grammar mistake behind the cross reference table.In case wrong more, with the efficient that has a strong impact on the configuration exploitation.The latter's shortcoming is that all will carry out grammer for the connection each time of element detects and error correction; Otherwise configuration process just can not carry out; This is unfavorable for the design and the editor of complicated control configuration, because in this case, the connection between a lot of elements is a kind of process of trial.
A kind of power system safety stabilization emergency control policy automatically matching method is provided in the prior art; Should open day it be on November 05th, 2008; Publication number is the Chinese patent of CN101299536; Control strategy automatic matching method unique point is: comprise following steps: one, calculate the emergency control policy that the element envisioned under the electric system typical case running status breaks down and should take in advance, according to running status, fault element, fault type organizational politics structure; Two, confirm the running status that electric system is current according to Power System Real-time ruuning situation; When three, the force device fault taking place, confirm the fault form according to element that breaks down and fault type; Four, mate controlled strategy according to the operation states of electric power system and the fault form that obtain.This inventive method has realized the rapidity requirement of the automatic coupling of power system safety stabilization emergency control policy, and the control strategy orderliness is clear, matees effective automatically.But this method can only be specific power system safety and stability is carried out the automatic coupling of emergency control policy.
[summary of the invention]
The technical matters that the present invention will solve is to provide a kind of control strategy configuration automatic detection of syntax error method, has improved the development efficiency of control strategy configuration.
The present invention is achieved in that a kind of control strategy configuration automatic detection of syntax error method, comprises the steps:
Step 10, judge whether all logical page (LPAGE)s of said control strategy configuration are preserved, not, then preserve the back and get into step 20; Be then directly to get into step 20;
Step 20, confirm the object that will analyze in the control strategy configuration, the object of said analysis comprises: logical page (LPAGE), loop and total system; Said total system is made up of a plurality of loops, and said a plurality of loops are made up of a plurality of logical page (LPAGE)s;
The connecting line of having accomplished each configuration element of editor in step 30, the object to analysis carries out scan process, and said configuration element comprises input element, output element, tactful element and auxiliary element; Said auxiliary element comprises that signal connects fine rule or thick line or expansion line or arrow or tie point;
Step 40, one by one the property parameters of each configuration element in the object of analyzing, the input of element, the output of element, the data stream of element are analyzed;
Accomplished the result behind each configuration component analysis of editor in the object of step 50, display analysis;
Step 60, judge whether all logical page (LPAGE)s are all analyzed and finish, not, then get into step 40; Be then to finish.
The present invention has following advantage: 1, control strategy configuration automatic detection of syntax error method provided by the invention; After control strategy Logical Configuration editor accomplishes, can freely select analytic target (logical page (LPAGE), loop and system) to carry out the detection of the part or the overall situation, degree of freedom is high.
But whether there is the object that does not meet syntax rule in the current Logical Configuration of 2 express-analysis; And analytical information is presented at the information output window; The element that makes a mistake in the current logic implementation of execution error element line lists; Parameter like element is provided with mistake, and output is transfinited etc., can be used for correctness and rationality that analysis logic is write intuitively.
3, can false alarm information be presented at the information output window, the information of double-clicking wherein can navigate to wrong position, so that revise mistake as early as possible, continues to analyze.
[description of drawings]
Fig. 1 is the inventive method schematic flow sheet.
[embodiment]
Please with reference to shown in Figure 1, a kind of control strategy configuration automatic detection of syntax error method of the present invention comprises the steps:
Step 10, judge whether all logical page (LPAGE)s of said control strategy configuration are preserved, not, then preserve the back and get into step 20; Be then directly to get into step 20;
Step 20, confirm the object that will analyze in the control strategy configuration, the object of said analysis comprises: logical page (LPAGE) (being certain figure in the system), loop and total system; Said total system is made up of a plurality of loops, and said loop is made up of several logical page (LPAGE)s that (logical page (LPAGE) is the minimum component units of a steering logic, and each logical page (LPAGE) is to be formed by dissimilar configuration element editors; The function of analysis logic page or leaf is that each configuration element in the logical diagram of front opening is carried out grammatical analysis, and error message is shown to the information output window; The function of analysis circuit is that each configuration element in the loop at front opening page place is carried out grammatical analysis, and error message is shown to the information output window; The function of analytic system is that each configuration element that relates in the total system is carried out grammatical analysis, and error message is shown to the information output window; Analyze current logical page (LPAGE) or analyze when front loop and do not find mistake, do not represent other logical page (LPAGE)s or other loops not to have grammar mistake.);
Step 30, to the object analyzed (if this moment the analytic target logical page (LPAGE), promptly to having accomplished each configuration element of editor in the logical page (LPAGE); If this moment the analytic target loop, promptly to having accomplished each configuration element of editor in the loop; If this moment the analytic target system, promptly to having accomplished each configuration element of editor in the system) in accomplished each configuration element of editor connecting line carry out scan process, this scan process is the ergodicity in order to ensure testing process; Said configuration element comprises input element, output element, tactful element and auxiliary element; Said auxiliary element comprises that signal connects fine rule or signal connects thick line or expansion line or arrow or tie point; The connecting line of having accomplished each configuration element of editor in the object of analyzing is carried out scan process to be specially: the connecting line to no grammar mistake will change green into by black; There is the connecting line of grammar mistake to rise, and the connecting line of grammar mistake is exported prompting with red square frame frame; In scan process, switch to other logical diagrams of control strategy configuration; When withdrawing from scanning mode (it can withdraw from scanning mode through mouse-click logical page (LPAGE) picture), the connecting line of each configuration element will revert to black.
Step 40, one by one the property parameters of each configuration element in the object of analyzing, the input of element, the output of element, the data stream of element are analyzed;
Accomplished the result behind each configuration component analysis of editor in the object of step 50, display analysis; After being analysis, have grammar mistake, the control strategy configuration can be jumped out the content that an information output window displays syntax errors automatically; There is not grammar mistake, then display analysis success; As long as the information in the said information output window of double-click can navigate to the position of making a mistake and (send wrong position promptly; In this moment information output window is the grammar mistake of the pairing configuration element of which analytic target of output, just navigates to the position of the transmission dislocation of the pairing configuration element of this analytic target).
Step 60, judge whether all logical page (LPAGE)s are all analyzed and finish, not, then get into step 40; Be then to finish.
In the present invention, to the property parameters analysis of each configuration element be specially the setting of the property parameters of analyzing said each configuration element, said each configuration element lower label setting and auxiliary element placement whether coincidence control strategy grammars (be in the control strategy grammars: signal connect fine rule or signal connect whether thick line or expansion line or arrow type correct, signal connects fine rule or signal connects thick line or expand whether line breaks, whether the junction of line exist tie point.), if do not meet, incongruent error message is shown through said information output window;
To the input of the element of each configuration element analyze the input type that is specially the input of analyzing said element, input quantity, input arrow type, input arrow quantity whether coincidence control strategy grammars (be in the control strategy grammars: whether the input type according to the linear decision element of input connecting line correct, input quantity whether in the equivalence element management whether correct, the input arrow quantity of requirement, the input arrow type to each element input quantity whether in the equivalence element management to the requirement of each element input arrow quantity); If do not meet, incongruent error message is shown through said information output window; Said input type comprises analog quantity input and digital quantity input, imports the arrow type and be to be used for discerning automatically the input order of each input signal (input signal of X1, X2, X3, X4......Xn), and it is for the ease of parts management;
Whether coincidence control strategy grammars (be in the control strategy grammars: whether the output type according to the linear decision element of output connecting line is correct, whether output quantity be single output) of the output type that is specially the output of analyzing said element, output quantity is analyzed in the output of the element of each configuration element; If do not meet, incongruent error message is shown through said information output window; Said output type comprises analog quantity output and digital quantity output;
The data that the data stream analysis of the element of each configuration element is specially the data stream of analyzing said element connect, the expansion line connects coincidence control strategy grammars whether, and (be in the control strategy grammars: whether the data of element connect the expansion line that whether has broken string or passive connection, element and connect and exist the expansion line of expansion line broken string or two and two above elements to overlap.), if do not meet, incongruent error message is shown through said information output window.
Show the result after each logical page (LPAGE) is analyzed among the present invention, its as a result displaying contents comprise: no warning message or error-free information, have warning message, have error message and exist and warn and error message; Said demonstration does not have warning message or error-free information, exists warning message to show that then the grammatical analysis of control strategy configuration is normal; There is error message in said demonstration, exists warning and error message to show that then the grammatical analysis of control strategy configuration is wrong.
The result shows that warning/type of error comprises: the property parameters of all each configuration elements is zero warning, connecting line mistake, expansion line connection error; Expansion line broken string, coincidence; Data connection error, input, output, arrow quantity mistake, input, output, arrow type error; The identical mistake of each configuration element lower label, each configuration element lower label exceeds the mistake of control strategy configuration specialized range.
Display format is as a result: [warning]/[mistake]: the map title+row number+row number+concrete information; Wherein for example: [warning]: figure * * * the 1st row 1 all parameters of row element are zero.
[mistake]: figure * * * the 5th row 7 row elements input arrow type error.
Here what deserves to be mentioned is: burn out detection, connecting line branch process and connecting line that the connecting line of each configuration element of having accomplished editor in each logical page (LPAGE) is carried out relating in the scanning process connecting line are joined type and are detected; Wherein to also relating in the input element analysis: whether according to the rule of configuration element algorithm, it is wrong to detect the order of judging the input element connection.
The above is merely preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (7)

1. a control strategy configuration automatic detection of syntax error method is characterized in that: comprise the steps:
Step 10, judge whether all logical page (LPAGE)s of said control strategy configuration are preserved, not, then preserve the back and get into step 20; Be then directly to get into step 20;
Step 20, confirm the object that will analyze in the control strategy configuration, the object of said analysis comprises: logical page (LPAGE), loop and total system; Said total system is made up of a plurality of loops, and said a plurality of loops are made up of a plurality of logical page (LPAGE)s;
The connecting line of having accomplished each configuration element of editor in step 30, the object to analysis carries out scan process, and said configuration element comprises input element, output element, tactful element and auxiliary element; Said auxiliary element comprises that signal connects fine rule or signal connects thick line or expansion line or arrow or tie point;
Step 40, one by one the property parameters of each configuration element in the object of analyzing, the input of element, the output of element, the data stream of element are analyzed;
Accomplished the result behind each configuration component analysis of editor in the object of step 50, display analysis;
Step 60, judge whether all logical page (LPAGE)s are all analyzed and finish, not, then get into step 40; Be then to finish.
2. control strategy configuration automatic detection of syntax error method according to claim 1; It is characterized in that: the connecting line of having accomplished each configuration element of editor in the object of said step 30 pair analysis carries out scan process and is specially: the connecting line to no grammar mistake will change green into by black; There is the connecting line of grammar mistake to rise, and the connecting line of grammar mistake is exported prompting with red square frame frame; In scan process, switch to other logical diagrams of control strategy configuration; When withdrawing from scanning mode, the connecting line of each configuration element will revert to black.
3. control strategy configuration automatic detection of syntax error method according to claim 1; It is characterized in that: after having accomplished result behind each configuration component analysis of editor in the object of said step 50 display analysis and being analysis; Have grammar mistake, the control strategy configuration can be jumped out the content that an information output window displays syntax errors automatically; There is not grammar mistake, then display analysis success; As long as the information of double-clicking in the said information output window can navigate to the position of making a mistake.
4. control strategy configuration automatic detection of syntax error method according to claim 3 is characterized in that:
In the said step 40 the property parameters analysis of each configuration element is specially the placement coincidence control strategy grammars whether of setting and the auxiliary element of the setting of the property parameters of analyzing said each configuration element, said each configuration element lower label; If do not meet, incongruent error message is shown through said information output window;
Whether coincidence control strategy grammars of the input type that is specially the input of analyzing said element, input quantity, input arrow type, input arrow quantity is analyzed in the input of the element of each configuration element; If do not meet, incongruent error message is shown through said information output window; Said input type comprises analog quantity input and digital quantity input, imports the arrow type and be to be used for discerning automatically the input order of each input signal;
Whether coincidence control strategy grammars of the output type that is specially the output of analyzing said element, output quantity is analyzed in the output of the element of each configuration element; If do not meet, incongruent error message is shown through said information output window; Said output type comprises analog quantity output and digital quantity output;
The data that the data stream analysis of the element of each configuration element is specially the data stream of analyzing said element connect, whether the expansion line connects coincidence control strategy grammars; If do not meet, incongruent error message is shown through said information output window.
5. control strategy configuration automatic detection of syntax error method according to claim 1, it is characterized in that: said step 50 displaying contents as a result comprises: no warning message or error-free information, have warning message, have error message and have warning and error message; Said demonstration does not have warning message or error-free information, exists warning message to show that then the grammatical analysis of control strategy configuration is normal; There is error message in said demonstration, exists warning and error message to show that then the grammatical analysis of control strategy configuration is wrong.
6. control strategy configuration automatic detection of syntax error method according to claim 5; It is characterized in that: said step 50 result shows that type of error comprises: the property parameters of all each configuration elements is zero, connecting line mistake, expansion line connection error; Expansion line broken string, coincidence; Data connection error, input, output arrow quantity mistake, input, output arrow type error; The identical mistake of each configuration element lower label, each configuration element lower label exceeds the mistake of control strategy configuration specialized range.
7. control strategy configuration automatic detection of syntax error method according to claim 5, it is characterized in that: said step 50 display format as a result is: [warning]/[mistake]: the map title+row number+row number+concrete information.
CN201110390296.9A 2011-11-30 2011-11-30 Method for automatically detecting syntax error in control policy configuration Active CN102521125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110390296.9A CN102521125B (en) 2011-11-30 2011-11-30 Method for automatically detecting syntax error in control policy configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110390296.9A CN102521125B (en) 2011-11-30 2011-11-30 Method for automatically detecting syntax error in control policy configuration

Publications (2)

Publication Number Publication Date
CN102521125A true CN102521125A (en) 2012-06-27
CN102521125B CN102521125B (en) 2014-09-10

Family

ID=46292056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110390296.9A Active CN102521125B (en) 2011-11-30 2011-11-30 Method for automatically detecting syntax error in control policy configuration

Country Status (1)

Country Link
CN (1) CN102521125B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885883A (en) * 2014-04-10 2014-06-25 国家电网公司 Method for real-time display of test procedure by means of network diagram
CN107615188A (en) * 2015-05-13 2018-01-19 三菱电机株式会社 Control logic illustrates analysis apparatus and control logic figure analytic method
CN109358564A (en) * 2018-09-19 2019-02-19 珠海格力电器股份有限公司 It is a kind of to detect the method and device of configuration software, computer readable storage medium
CN112395206A (en) * 2020-12-08 2021-02-23 珠海格力电器股份有限公司 Configuration software error correction method and system
CN112486803A (en) * 2020-11-12 2021-03-12 珠海格力电器股份有限公司 Error processing method, device and equipment
CN112882915A (en) * 2021-03-11 2021-06-01 中国长江电力股份有限公司 Object binding-based monitoring measuring point misconnection automatic detection method
CN114063501A (en) * 2021-11-10 2022-02-18 珠海格力电器股份有限公司 Automatic connection method and device for configuration elements and configuration equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张海伟等: "《PLC编程软件中梯形图检查模块的设计》", 《仪器仪表用户》 *
秦华等: "基于IEC61131-3标准的PLC编程环境", 《计算机工程》 *
雷冰: "嵌入式Linux下组态软件关键技术的研究", 《嵌入式LINUX下组态软件关键技术的研究》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885883A (en) * 2014-04-10 2014-06-25 国家电网公司 Method for real-time display of test procedure by means of network diagram
CN103885883B (en) * 2014-04-10 2016-09-14 国家电网公司 A kind of method test process being carried out real-time exhibition by network
CN107615188A (en) * 2015-05-13 2018-01-19 三菱电机株式会社 Control logic illustrates analysis apparatus and control logic figure analytic method
CN109358564A (en) * 2018-09-19 2019-02-19 珠海格力电器股份有限公司 It is a kind of to detect the method and device of configuration software, computer readable storage medium
CN109358564B (en) * 2018-09-19 2022-05-20 珠海格力电器股份有限公司 Method and device for detecting configuration software and computer readable storage medium
CN112486803A (en) * 2020-11-12 2021-03-12 珠海格力电器股份有限公司 Error processing method, device and equipment
CN112395206A (en) * 2020-12-08 2021-02-23 珠海格力电器股份有限公司 Configuration software error correction method and system
CN112882915A (en) * 2021-03-11 2021-06-01 中国长江电力股份有限公司 Object binding-based monitoring measuring point misconnection automatic detection method
CN112882915B (en) * 2021-03-11 2022-05-17 中国长江电力股份有限公司 Object binding-based monitoring measuring point misconnection automatic detection method
CN114063501A (en) * 2021-11-10 2022-02-18 珠海格力电器股份有限公司 Automatic connection method and device for configuration elements and configuration equipment
CN114063501B (en) * 2021-11-10 2024-03-08 珠海格力电器股份有限公司 Automatic connection method and device for configuration elements and configuration equipment

Also Published As

Publication number Publication date
CN102521125B (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN102521125B (en) Method for automatically detecting syntax error in control policy configuration
US20090024230A1 (en) Program development support apparatus of safety controller
CN110297470B (en) Lightweight cross-platform rail transit storage battery data monitoring upper computer platform
CN104407977A (en) Model detection based automatic joint debugging test method for staged task system
EP2309358B1 (en) Plant monitoring control system
EP1089150B1 (en) Monitor apparatus for sequential-function-chart-type programmable controller
CN107147214A (en) A kind of secondary peace suitable for intelligent substation arranges monitoring system
CN102479175A (en) Test table generating device and method of generating test table
CN101360253A (en) Television automatic test method and system
CN112306841B (en) Automatic testing method, device and equipment for track service
CN107481541B (en) Signal lamp line lap joint fault detection method
CN102195826A (en) Method and device for detecting root alarm
CN102916850B (en) A kind of computer network loop detecting method
CN106598843B (en) A kind of software log behavior automatic identifying method based on program analysis
CN101470855A (en) Automatic early-warning method for overdue supplier
CN103645977A (en) Automatic debugging system and method for electronic products
WO2023164841A1 (en) Workflow execution method and apparatus, and storage medium and program product
CN113691019B (en) One-key sequential control operation and maintenance method, system, computer equipment and medium thereof
CN106372312A (en) Tunnel fire-protection monitoring system parametric modeling method
CN114326642A (en) Interface matching method, device, equipment and medium for nuclear power DCS (distributed control System)
CN104066255B (en) A kind of LED drive circuit and transmission method thereof
CN112415301B (en) Structured description method for testing process of electronic product
CN113888842A (en) Real-time monitoring and early warning system and method for molten iron desulphurization process flow
CN201926852U (en) FQC automatic inspection device used in production process of projector
US20230315617A1 (en) Plc testing system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191014

Address after: 350799 Dongxing village, Geling Town, Yongtai County, Fuzhou City, Fujian Province

Patentee after: Sap (Fujian) Technology Co. Ltd.

Address before: 350008, No. two, building 6, Hongshan Science Park, industrial road, Fujian, Fuzhou

Patentee before: FuDa Automation Technologies Co., Ltd.

TR01 Transfer of patent right