CN107367968A - The execution method and computer-readable medium of a kind of configuration element - Google Patents
The execution method and computer-readable medium of a kind of configuration element Download PDFInfo
- Publication number
- CN107367968A CN107367968A CN201710653714.6A CN201710653714A CN107367968A CN 107367968 A CN107367968 A CN 107367968A CN 201710653714 A CN201710653714 A CN 201710653714A CN 107367968 A CN107367968 A CN 107367968A
- Authority
- CN
- China
- Prior art keywords
- cycle
- configuration
- execution
- control logic
- perform
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Abstract
The present invention provides a kind of execution method of configuration element, increases the element cycle in configuration component structure, when implemented between when being the integer multiple in element cycle, perform the element, no does not perform then.The present invention is by way of the scanning element cycle, in the case where setting the different execution time, the corresponding element for performing the time in control logic can be called, so as to produce different result of calculation, to realize different control effects.
Description
Technical field
The present invention relates to a kind of execution method of configuration element, belong to technical field of industrial automatic control.
Background technology
Control strategy configuration based on graphic elements is the most frequently used development approach of dcs.People utilize figure
The various combination of shape element intuitively represents the general principle of control strategy and control algolithm.It is this kind of combination contain element it
Between data type, data annexation, the reasonable disposition of the order between data and element internal property parameters.Ordinary circumstance
Under, this relation is represented using rat tail, and order is then represented using the arrow of data connecting line end.With industry
Extensive use of the automated software in large-scale control system, control flow complicated and changeable is to the intelligentized requirement of control logic
Also more and more higher.As shown in figure 1, existing logical calculated is serially to perform the monocycle, when reaching calculating time point, element is pressed
Computation sequence is calculated, and the calculating of selectivity can not be carried out to element, the accuracy of control logic and flexibility are poor, can not
Obtain result of calculation that more please be accurate.
Present techniques are the bases based on configuration element graphic editing, according to connection of the element in configuration interface
The space structure feature of relation, with reference to carrying into execution a plan for logical calculated, by the way of the scanning element cycle, realize same logic
Different result of calculations are produced under different calculating cycles, so as to improve the accuracy of control logic and flexibility.
The content of the invention
One of the technical problem to be solved in the present invention, it is to provide a kind of execution method of configuration element, by scanning member
The mode in part cycle, in the case where setting the different execution time, the corresponding element for performing the time in control logic can be called,
So as to produce different result of calculation, to realize different control effects.
What the inventive method was realized in:A kind of execution method of configuration element, increase member in configuration component structure
The part cycle, when implemented between be the element cycle integer multiple when, perform the element, no does not perform then.
It specifically includes following step:
Step S1, the element cycle is increased in configuration component structure, into after detection state, automatically to having completed editor's
Element configuration is scanned successively;
Step S2, the element cycle of each element in all loops of control logic is extracted after scanning;
Step S3, into after execution state, by the element cycle of each element scanned the successively execution with control logic
Time is compared;
Step S4, when implemented between be by the element cycle of comparing element integral multiple when, the element is just performed;Instead
It, when implemented between when not being the integral multiple by the element cycle of comparing element, then do not perform the element.
Wherein, the element cycle is configured as needed.
The second technical problem to be solved by the present invention, it is to provide a kind of computer-readable medium, its computer stored
Program was enabled a computer to by way of the scanning element cycle, in the case where setting the different execution time, can call control
The corresponding element for performing the time in logic, so as to produce different result of calculation, to realize different control effects.
To solve the technical problem, the technical solution adopted by the present invention is:A kind of computer-readable medium, it is stored with calculating
Machine program, the computer program make computer perform following step:
Step S1, the element cycle is increased in configuration component structure, into after detection state, automatically to having completed editor's
Element configuration is scanned successively;
Step S2, the element cycle of each element in all loops of control logic is extracted after scanning;
Step S3, into after execution state, by the element cycle of each element scanned the successively execution with control logic
Time is compared;
Step S4, when implemented between be by the element cycle of comparing element integral multiple when, the element is just performed;Instead
It, when implemented between when not being the integral multiple by the element cycle of comparing element, then do not perform the element.
The invention has the advantages that:The present invention can in the case of different demands, according to the multiple in element cycle and
Carry out the execution time of setting member, perform different elements, so as to generate different result of calculation, realize various control effect,
Flexibility and the adaptability of control system are improved, while the mesh saved and calculate space can be reached while precision is ensured
's.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is that existing configuration element performs method execution flow chart.
Fig. 2 is the inventive method execution flow chart.
Fig. 3 is that the control logic elements of the embodiment of the inventive method one perform case diagram.
Embodiment
The execution method of the configuration element of the present invention, increase element cycle, the element cycle in configuration component structure
Be configured as needed, when implemented between be the element cycle integer multiple when, perform the element, no does not perform then.
As shown in Fig. 2 it specifically includes following step:
Step S1, the element cycle is increased in configuration component structure, it is automatically right by scan module into after detection state
The element configuration for having completed editor is scanned successively;
Step S2, the element cycle of each element in all loops of control logic is extracted after scan module scanning;
Step S3, into after execution state, by the element cycle of each element scanned the successively execution with control logic
Time is compared;
Step S4, when implemented between be by the element cycle of comparing element integral multiple when, the element is just performed;Instead
It, when implemented between when not being the integral multiple by the element cycle of comparing element, then do not perform the element.
The present invention is further illustrated as one example below:
As shown in figure 3, existing control logic loop Loop, its element are followed successively by No.1, No.2 ... No.8, member
The element cycle existing 20ms of part, also there is 30ms.
1) after entering execution state, control logic performs the time by 0 gradually increase, is 20ms when control logic performs the time
Integral multiple when, such as:20ms, 40ms, 80ms ..., perform loop such as Loop2;
2) when logic processed, which performs the time, reaches 30ms integral multiple, such as 30ms, 90,150ms, control logic will be held successively
The units cycle is 30ms element, performs loop such as Loop1;
3) when it is the common integral multiple of 30ms, 20ms that control logic, which performs the time, such as 60ms, 120ms, 180ms ...,
Element of the control logic by the executive component cycle successively for 30ms, 20ms, performs loop such as Loop3.
It can be seen that the inventive method can realize the calculating knot of same section of control logic by setting the different execution time
The difference of fruit, so as to realize different control effects, to improve the flexibility of control system and accuracy, significant increase control
The adaptability of system.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this
The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's
In scope of the claimed protection.
Claims (4)
- A kind of 1. execution method of configuration element, it is characterised in that:Increase the element cycle in configuration component structure, when implemented Between be the element cycle integer multiple when, perform the element, no does not perform then.
- A kind of 2. execution method of configuration element according to claim 1, it is characterised in that:Specifically include following step:Step S1, in configuration component structure increase the element cycle, into after detection state, automatically to completed editor element Configuration is scanned successively;Step S2, the element cycle of each element in all loops of control logic is extracted after scanning;Step S3, into after execution state, by the element cycle of each element scanned the successively execution time with control logic It is compared;Step S4, when implemented between be by the element cycle of comparing element integral multiple when, the element is just performed;Conversely, work as When the execution time is not the integral multiple by the element cycle of comparing element, then the element is not performed.
- A kind of 3. execution method of configuration element according to claim 1, it is characterised in that:Specifically include following step: The element cycle is configured as needed.
- 4. a kind of computer-readable medium, is stored with computer program, it is characterised in that:The computer program holds computer Row process as claimed in claim 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710653714.6A CN107367968B (en) | 2017-08-03 | 2017-08-03 | A kind of the execution method and computer-readable medium of configuration element |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710653714.6A CN107367968B (en) | 2017-08-03 | 2017-08-03 | A kind of the execution method and computer-readable medium of configuration element |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107367968A true CN107367968A (en) | 2017-11-21 |
CN107367968B CN107367968B (en) | 2019-08-09 |
Family
ID=60308694
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710653714.6A Active CN107367968B (en) | 2017-08-03 | 2017-08-03 | A kind of the execution method and computer-readable medium of configuration element |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107367968B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916078A (en) * | 2010-07-23 | 2010-12-15 | 南京国电南自轨道交通工程有限公司 | Program control method supporting grid parallel branch logic |
CN103970077A (en) * | 2013-01-30 | 2014-08-06 | 福州福大自动化科技有限公司 | Integrated implementation method and device of advanced control technology in industrial control system |
CN104391746A (en) * | 2014-11-18 | 2015-03-04 | 国电南瑞科技股份有限公司 | Implementation method for dynamic scheduling on protection components of relay protection device |
CN106204685A (en) * | 2016-07-15 | 2016-12-07 | 福州福大自动化科技有限公司 | A kind of functional relationship for configuration element analyzes method and system |
CN106647412A (en) * | 2017-01-17 | 2017-05-10 | 爱普(福建)科技有限公司 | Data sharing method between distributed controllers based on configuration element |
US20170139745A1 (en) * | 2015-11-18 | 2017-05-18 | Sap Se | Scaling priority queue for task scheduling |
-
2017
- 2017-08-03 CN CN201710653714.6A patent/CN107367968B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916078A (en) * | 2010-07-23 | 2010-12-15 | 南京国电南自轨道交通工程有限公司 | Program control method supporting grid parallel branch logic |
CN103970077A (en) * | 2013-01-30 | 2014-08-06 | 福州福大自动化科技有限公司 | Integrated implementation method and device of advanced control technology in industrial control system |
CN104391746A (en) * | 2014-11-18 | 2015-03-04 | 国电南瑞科技股份有限公司 | Implementation method for dynamic scheduling on protection components of relay protection device |
US20170139745A1 (en) * | 2015-11-18 | 2017-05-18 | Sap Se | Scaling priority queue for task scheduling |
CN106204685A (en) * | 2016-07-15 | 2016-12-07 | 福州福大自动化科技有限公司 | A kind of functional relationship for configuration element analyzes method and system |
CN106647412A (en) * | 2017-01-17 | 2017-05-10 | 爱普(福建)科技有限公司 | Data sharing method between distributed controllers based on configuration element |
Also Published As
Publication number | Publication date |
---|---|
CN107367968B (en) | 2019-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10018995B2 (en) | Method and apparatus for optimizing performance of robotic cell | |
CN109754073A (en) | Data processing method, device, electronic equipment and readable storage medium storing program for executing | |
US20180178380A1 (en) | Method for extending end user programming of an industrial robot with third party contributions | |
CN106737676B (en) | It is a kind of based on script can secondary development industrial robot programing system | |
CN109408102A (en) | A kind of version comparison method and device, household appliance, the network equipment | |
CN105608000B (en) | Obtain the method and device of code coverage data | |
CN107943689B (en) | Automatic test method and test system based on parameterized test script | |
CN102156794B (en) | P-cell implementation method and system formed by P-cells | |
CN105955726A (en) | Control logic and visual graphical programming method thereof | |
CN105808799A (en) | Universal test software in RTX (Real-Time eXecutive) environment and test method for universal test software | |
CN104865899B (en) | A kind of numerical-control processing method of automatic unilateral compensation | |
CN107972033A (en) | Method, apparatus and system based on graphics table programming Control industrial robot | |
CN105468797A (en) | Information processing method and apparatus | |
CN106021101A (en) | Method and device for testing mobile terminal | |
CN105279092A (en) | Software testing method and apparatus | |
CN107367968B (en) | A kind of the execution method and computer-readable medium of configuration element | |
CN104572029A (en) | Combinability and combination rule judgment method and device of finite state machine | |
CN104898040A (en) | Printed circuit board (PCB) automation test method and system | |
Kim et al. | Heuristics for a two-stage hybrid flowshop scheduling problem with ready times and a product-mix ratio constraint | |
CN102508691B (en) | Graphic language program ordered decomposition method and ordered decomposer | |
CN111813048B (en) | Function integration numerical control program generation method, system, device and readable storage medium | |
CN105022896A (en) | Method and device for APDL modelling based on dynamic numbering | |
CN104133421A (en) | Motion control code analysis method based on process control | |
CN115114136A (en) | Test data generation method and device, electronic equipment and program product | |
CN112379916A (en) | Method and device for modifying version number of maven project |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |