CN107367968B - A kind of the execution method and computer-readable medium of configuration element - Google Patents

A kind of the execution method and computer-readable medium of configuration element Download PDF

Info

Publication number
CN107367968B
CN107367968B CN201710653714.6A CN201710653714A CN107367968B CN 107367968 B CN107367968 B CN 107367968B CN 201710653714 A CN201710653714 A CN 201710653714A CN 107367968 B CN107367968 B CN 107367968B
Authority
CN
China
Prior art keywords
period
configuration
execution
element period
execute
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
CN201710653714.6A
Other languages
Chinese (zh)
Other versions
CN107367968A (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
Sap (fujian) Technology 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 Sap (fujian) Technology Co Ltd filed Critical Sap (fujian) Technology Co Ltd
Priority to CN201710653714.6A priority Critical patent/CN107367968B/en
Publication of CN107367968A publication Critical patent/CN107367968A/en
Application granted granted Critical
Publication of CN107367968B publication Critical patent/CN107367968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The present invention provides a kind of execution method of configuration element, in configuration component structure increase the element period, when implemented between be the element period integer multiple when, execute the element, no does not execute then.The present invention is by way of the scanning element period, in the case where the different execution times are arranged, the corresponding element for executing the time in control logic is capable of calling, so that different calculated result is generated, to realize different control effects.

Description

A kind of the execution method and computer-readable medium of configuration element
Technical field
The present invention relates to a kind of execution methods of configuration element, belong to technical field of industrial automatic control.
Background technique
Control strategy configuration based on graphic elements is the most common development approach of dcs.People utilize figure The various combination of shape element intuitively indicates the basic principle and control algolithm of control strategy.It is this kind of combination contain element it Between data type, data connection relationship, the reasonable disposition of the sequence between data and element built-in attribute parameter.Ordinary circumstance Under, this relationship is indicated using rat tail, and sequence is then indicated 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 higher and higher.As shown in Figure 1, existing logic calculation is serially to execute 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 It obtains and more asks quasi- calculated result.
Present techniques are the bases based on configuration component pattern editing technique, according to connection of the element in configuration interface The space structure feature of relationship by the way of the scanning element period, realizes same logic in conjunction with carrying into execution a plan for logic calculation Different calculated results are generated under different calculating cycles, to improve the accuracy and flexibility of control logic.
Summary of the invention
One of the technical problem to be solved in the present invention is to provide a kind of execution method of configuration element, passes through and scan member The mode in part period is capable of calling the corresponding element for executing the time in control logic in the case where the different execution times are arranged, To generate different calculated result, to realize different control effects.
The method of the present invention is achieved in that a kind of execution method of configuration element, increases member in configuration component structure The part period, when implemented between be the element period integer multiple when, execute the element, no does not execute then.
Itself specifically include the following steps:
Step S1, increase the element period in configuration component structure, into after detecting state, automatically to being completed editor's Element configuration is successively scanned;
Step S2, the element period of each element in all circuits of control logic is extracted after scanning;
Step S3, into after execution state, by the element period of each element scanned successively with the execution of control logic Time is compared;
Step S4, when implemented between for by the element period of comparing element integral multiple when, which is just performed;Instead It, when implemented between when not being the integral multiple by the element period of comparing element, then do not execute the element.
Wherein, the element period is configured as needed.
The second technical problem to be solved by the present invention is to provide a kind of computer-readable medium, the computer of storage Program enabled a computer to by way of the scanning element period, in the case where the different execution times are arranged, was capable of calling control The corresponding element for executing the time in logic, so that different calculated result is generated, to realize different control effects.
To solve this technical problem, the technical solution adopted by the present invention is that: a kind of computer-readable medium is stored with calculating Machine program, the computer program make computer execute following step:
Step S1, increase the element period in configuration component structure, into after detecting state, automatically to being completed editor's Element configuration is successively scanned;
Step S2, the element period of each element in all circuits of control logic is extracted after scanning;
Step S3, into after execution state, by the element period of each element scanned successively with the execution of control logic Time is compared;
Step S4, when implemented between for by the element period of comparing element integral multiple when, which is just performed;Instead It, when implemented between when not being the integral multiple by the element period of comparing element, then do not execute the element.
The present invention has the advantage that the present invention can in the case where different demands, according to the multiple in element period and The execution time for carrying out setting member, different elements is executed, to generate different calculated result, realizes various control effect, The flexibility and adaptability of control system are improved, while the mesh saved and calculate space can be reached while guaranteeing precision 's.
Detailed description of the invention
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is that existing configuration element executes method execution flow chart.
Fig. 2 is the method for the present invention execution flow chart.
Fig. 3 is that the control logic elements of one embodiment of the method for the present invention execute case diagram.
Specific embodiment
The execution method of configuration element of the invention increases element period, the element period in configuration component structure Be configured as needed, when implemented between be the element period integer multiple when, execute the element, no does not execute then.
As shown in Fig. 2, itself specifically include the following steps:
Step S1, increase the element period in configuration component structure, it is automatically right by scan module into after detecting state The element configuration that editor is completed successively is scanned;
Step S2, the element period of each element in all circuits of control logic is extracted after scan module scanning;
Step S3, into after execution state, by the element period of each element scanned successively with the execution of control logic Time is compared;
Step S4, when implemented between for by the element period of comparing element integral multiple when, which is just performed;Instead It, when implemented between when not being the integral multiple by the element period of comparing element, then do not execute the element.
The present invention is further illustrated as one example below:
The No.8 as shown in figure 3, existing control logic circuit Loop, constituent element are followed successively by No.1, No.2 ..., member The element period existing 20ms of part, also there is 30ms.
1) after entering execution state, the control logic execution time is gradually increased by 0, is 20ms when control logic executes the time Integral multiple when, such as: 20ms, 40ms, 80ms ..., execute circuit such as Loop2;
2) when logic processed, which executes the time, reaches the integral multiple of 30ms, such as 30ms, 90,150ms, control logic will successively be held The units period is the element of 30ms, executes circuit such as Loop1;
3) when it is the common integral multiple of 30ms, 20ms that control logic, which executes the time, such as 60ms, 120ms, 180ms ..., The successively executive component period is the element of 30ms, 20ms by control logic, executes circuit such as Loop3.
As it can be seen that the method for the present invention can realize the calculating knot of same section of control logic by the way that the different execution time is arranged The difference of fruit, to realize different control effects, to improve the flexibility and accuracy of control system, significant increase control The adaptability of system.
Although specific embodiments of the present invention have been described above, those familiar with the art should be managed Solution, we are merely exemplary described specific embodiment, rather than for the restriction to the scope of the present invention, it is familiar with this The technical staff in field should be covered of the invention according to modification and variation equivalent made by spirit of the invention In scope of the claimed protection.

Claims (3)

1. a kind of execution method of configuration element, it is characterised in that: increase the element period in configuration component structure, when implemented Between be the element period integer multiple when, execute the element, otherwise do not execute;Specifically include the following steps:
Step S1, increase the element period in configuration component structure, into after detecting state, automatically to the element that editor is completed Configuration is successively scanned;
Step S2, the element period of each element in all circuits of control logic is extracted after scanning;
Step S3, into after execution state, by the element period of each element scanned successively with the execution time of control logic It is compared;
Step S4, when implemented between for by the element period of comparing element integral multiple when, which is just performed;Conversely, working as When the execution time is not the integral multiple by the element period of comparing element, then the element is not executed.
2. a kind of execution method of configuration element according to claim 1, it is characterised in that: specifically include the following steps: The element period is configured as needed.
3. 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 1.
CN201710653714.6A 2017-08-03 2017-08-03 A kind of the execution method and computer-readable medium of configuration element Active CN107367968B (en)

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 CN107367968A (en) 2017-11-21
CN107367968B true 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 (5)

* Cited by examiner, † Cited by third party
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9740525B2 (en) * 2015-11-18 2017-08-22 Sap Se Scaling priority queue for task scheduling

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107367968A (en) 2017-11-21

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
CN102880113B (en) Laser cutting path optimizing method
CN105608000B (en) Obtain the method and device of code coverage data
CN106737676B (en) It is a kind of based on script can secondary development industrial robot programing system
CN105955726A (en) Control logic and visual graphical programming method thereof
CN107972033A (en) Method, apparatus and system based on graphics table programming Control industrial robot
CN106021101A (en) Method and device for testing mobile terminal
CN112766655A (en) Automatic scheduling method, device, equipment and computer readable storage medium
CN111124388A (en) Method and system for editing automation program, computer device and storage medium thereof
CN103761184A (en) Method, device and system for testing code segment of program
CN110673842A (en) Visual programming method and system, storage medium and equipment
CN104317719B (en) Method for controlling software testing quality
CN107367968B (en) A kind of the execution method and computer-readable medium of configuration element
CN107818051B (en) Test case jump analysis method and device and server
CN111813048B (en) Function integration numerical control program generation method, system, device and readable storage medium
CN103164306B (en) Testing logic generation method and testing logic generation device
CN104898040A (en) Printed circuit board (PCB) automation test method and system
CN104572029A (en) Combinability and combination rule judgment method and device of finite state machine
CN102508691B (en) Graphic language program ordered decomposition method and ordered decomposer
CN107066376A (en) A kind of automatic test verification method tested for GUI
CN106250298B (en) A kind of test method and device
CN107944083B (en) Method for automatically manufacturing copper cutting of PCB (printed Circuit Board)
CN107330173B (en) Integrated circuit back end design automation system
CN103400219A (en) Statistical form intelligent management method applied to packaging production line

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