CN102722601A - Implementation method of formal semantic integration framework for model transformation of numerical control system - Google Patents
Implementation method of formal semantic integration framework for model transformation of numerical control system Download PDFInfo
- Publication number
- CN102722601A CN102722601A CN2012101352920A CN201210135292A CN102722601A CN 102722601 A CN102722601 A CN 102722601A CN 2012101352920 A CN2012101352920 A CN 2012101352920A CN 201210135292 A CN201210135292 A CN 201210135292A CN 102722601 A CN102722601 A CN 102722601A
- Authority
- CN
- China
- Prior art keywords
- control system
- digital control
- model
- formalization
- semantic
- 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
Images
Landscapes
- Devices For Executing Special Programs (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides an implementation method of a formal semantic integration framework for model transformation of a numerical control system. According to the method, the formal semantic integration framework of the numerical control system is built, a field application model obtained by instantiation of a field meta-model can be transformed into a formal application model automatically through the integration framework, then the formal application model can be imported into a third party simulation verification tool for formal verification through a tool interpreter, or the formal application model can generate executable codes for a specific target platform through a code automatic generation interpreter. The method provides a strictly-defined formal specification for numerical control system development in order to accurately describe corresponding operational semantics of the system, so that precision verification can be performed on a numerical control system model through a computer tool, and system performances, such as reliability, security, etc., are greatly improved.
Description
Technical field
The present invention relates to computer numerical control field, particularly towards the semantic integrated approach of the model conversion formalization of digital control system exploitation.
Background technology
The modern high performance digital control system adds the hard real time characteristic that digital control system is intrinsic towards the trend development of high speed and super precision, intellectuality, multi-functional, multitask and open architecture, makes traditional design method can not satisfy the performance requirement of digital control system.The domain-oriented modeling is directly related with the field logic, and its model constitutes the thinking habit that meets the field logic, makes things convenient for exchanging of domain expert and software developer, has the characteristics of intuitive, field specificity and platform independence.Based on the system development method of domain model, can improve the development efficiency of system, realize the reusability of system.But existing numerical control modeling pattern lacks formal expression standard, therefore accurate descriptive system, more lack based on formal simulating, verifying machine-processed, thereby cause system semantics indeterminate, the integrity problem of resolution system fundamentally.
Summary of the invention:
The present invention is in order to overcome in the digital control system exploitation, and the system semantics that the non-formalization sign of model possibly cause is indeterminate, the correctness security can not get problems such as assurance, and the implementation method of the semantic integrated framework of model conversion formalization of digital control system is provided.For realizing above-mentioned purpose, comprise following steps:
The implementation method of the semantic integrated framework of the model conversion formalization of digital control system, this method can realize that the formalized description of Computerized digital control system and model change simulating, verifying automatically, may further comprise the steps:
1) through the behavioural characteristic of analyzing numerically controlled system, make up the different aspect of a set of calculated model description digital control system, in the native system this sets of computer model is called semantic module;
2), adopt type UML language to make up the formalization meta-model of digital control system based on the semantic module of step 1); According to digital control system formalization meta-model and one group of digital control system field meta-model, the formalization semantic conversion of constructing system rule;
3) based on digital control system formalization meta-model and relevant simulating, verifying instrument, constructing system formalization simulating, verifying interpreter; Formalization application model and simulating, verifying interpreter based on digital control system carry out the formalization simulating, verifying to digital control system, its track of emulation in Matlab software, its real-time of checking and state accessibility in UPPAAL.
In the implementation method of the semantic integrated framework of the model conversion formalization of above-mentioned digital control system, the constructed semantic module of digital control system formalization of step 1) can be from different aspects the different behaviors of descriptive system.
In the implementation method of the semantic integrated framework of the model conversion formalization of above-mentioned digital control system, the different aspect of the said description digital control system of step 1) comprises: adopt the semantic module of finite state machine, describe the semantic behavior relevant with state exchange in the digital control system; Adopt the semantic module of synchronous data flow, describe the streams data in the digital control system; The semantic module that adopts synchronous data flow and two kinds of calculation combination of finite state machine to form, the mixing behavior of state exchange and streams data in the description digital control system; The semantic module that two kinds of MOC of employing time automat and time multitask combine is described in the digital control system and real-time relevant state exchange and task executive mode.
In the implementation method of the semantic integrated framework of the model conversion formalization of above-mentioned digital control system; The formalization semantic conversion rule of step 2) constructed system is based on the constructed semantic module of step 1), and its system architecture and corresponding relation obtain through analyzing.
In the implementation method of the semantic integrated framework of the model conversion formalization of above-mentioned digital control system; Constructed digital control system formalization meta-model is based on many-sided formalization semanteme of digital control system, and the formalization meta-model of different aspect is integrated into the unified semantic domain of digital control system; Under digital control system field modeling environment, make up one group of field application model, utilize system form transformation rule and formalization meta-model, through model conversion, the formalization application model of automatic creation system.
In the implementation method of the semantic integrated framework of the model conversion formalization of above-mentioned digital control system, the formalization simulating, verifying interpreter of being constructed is finally realized the automatic checking emulation of the formalized model of digital control system, guarantees the function and the performance of system.
Compared with prior art; The present invention has following advantage and technique effect: existing numerical control modeling pattern lacks formal expression standard; Therefore accurate descriptive system; More lack based on formal simulating, verifying mechanism, thereby cause system semantics indeterminate, fundamentally the integrity problem of resolution system.The present invention has made up the semantic integrated framework of digital control system formalization; The field application model that the field meta-model instantiation obtains can be automatically converted to the formalization application model through this integrated framework; And then can pass through the instrument interpreter; Import and carry out the formalization checking in third party's simulating, verifying instrument, perhaps generate interpreter automatically, generate the executable code of specific objective platform through code.The formalization standard that the present invention provides strict difinition for digital control system exploitation makes the digital control system model to carry out the precision checking through PC Tools with the corresponding operational semantics of accurate descriptive system, improves performances such as system reliability, security greatly.
Description of drawings
Fig. 1 is the realization flow figure of the semantic integrated framework of model conversion formalization of digital control system.
Embodiment
Below in conjunction with accompanying drawing enforcement of the present invention is described further.
The semantic integrated framework of the model conversion formalization of digital control system be the digital control system exploitation strict difinition is provided the formalization standard with the corresponding operational semantics of accurate descriptive system, make the digital control system model to carry out the precision checking through PC Tools.The semantic integrated framework of formalization comprises based on the definition of platform with based on two aspects of realization of using.At podium level; The model conversion rule of definition field meta-model, formalization meta-model and meta-model layer through this transformation rule, is mated field meta-model and formalization meta-model; Make in application layer; The field application model that is obtained by the field meta-model instantiation can be automatically converted to the formalization application model that the instantiation of formalization meta-model obtains through the model conversion device, and then can pass through the instrument interpreter, imports to carry out the formalization checking in third party's simulating, verifying instrument; Perhaps generate interpreter automatically, generate the executable code of specific objective platform through code.
The realization of the semantic integrated framework of the model conversion formalization of digital control system comprises:
1) the semantic module construction of formalization
Through the behavioural characteristic of analyzing numerically controlled system, adopt the different aspect of a set of calculated model description digital control system, be referred to as semantic module in the native system, as adopting the finite state machine semantic primitive, the semantic behavior relevant with state exchange in the digital control system described; Adopt the semantic module of synchronous data flow, describe the streams data in the digital control system; The semantic module that adopts synchronous data flow and two kinds of calculation combination of finite state machine to form, the mixing behavior of state exchange and streams data in the description digital control system; The semantic primitive that two kinds of MOC of employing time automat and time multitask combine is described in the digital control system and real-time relevant state exchange and task executive mode.
2) the formalization meta-model makes up
The modeling of formalization unit is based on the characteristic of the semantic module of digital control system formalization, through class UML language, and constraints description language OCL, the modeling form of constructing system, abstract syntax and relation between them and organizational form.
3) the formalization transformation rule makes up
The field is described and the abstract syntax of formalized description all adopts UML and OCL definition, and therefore, the conversion that defines between two kinds of abstract syntaxes need be used same language.Adopt figure to rewrite and the mode of changing; Through the abstract syntax of source language is corresponding with the abstract syntax of target language; With the conversion between the patterned mode implementation model; Form the model conversion rule of an assembly levelization, this rule comprises targeted graphical generation, formation condition and best property of attribute mapping.Should rule through carrying out, realize being converted into formalized model automatically by the instantiation of formalization meta-model by the domain model of field meta-model instantiation, and then the way of realization Semantic mapping.
4) formalization application model generates automatically
The field meta-model of digital control system can generate the digital control system development environment automatically, and under this environment the constructing system application model.The formalized model crossover tool then is integrated in the system development environment, based on this environment, can pass through model conversion, converts digital control system field application model into digital control system formalization application model.
5) formalization simulating, verifying interpreter makes up
Through making up the transformation rule from formalized model to relevant simulating, verifying tool model, the structure of way of realization simulating, verifying interpreter.
6) based on the simulating, verifying and the realization of formalization application model
Based on the interpreter that generates; Can the formalization application model be converted in relevant third party's simulating, verifying instrument automatically; (Simulink is one of most important assembly of MATLAB like Matlab; It provides the integration environment of dynamic system modeling, emulation and an analysis-by-synthesis), the correlation model under the environment such as UPPAAL, it is carried out the real-time checking.
Instance: the semantic module to make up two kinds of MOC compositions of digital control system time automat and time multitask is an example, and the implementation procedure of the semantic integrated framework of formalization of digital control system is described.
1) adopts time automat and two kinds of MOC of time multitask, the state exchange of descriptive system and time correlation and the act of execution of real-time task.Digital control system is typical Real-time Multi-task System, and therefore, this semanteme module is applicable to the task enforcement behavior of describing digital control system, with through the real-time checking, guarantees the digital control system real-time performance.The time automat is represented the state transition graph of free constraint through using limited true value clock variable, is used for representing to have in the real-time system state exchange of time-constrain.The semantic behavior of time multitask of digital control system is described in the time multitask; Enforcement behavior through definition task executive mode portrayal real-time system; Adopt the scheduling mode seized of fixed priority; Task is passed through periodically or acyclic Event triggered, but carries out according to its priority height preemptive type.Employing time automat is described the inner state exchange rule of conduct of task, adopts the time multitask to describe the rule of conduct of dispatching between the task, thereby guarantees that its implementation model has complete formalization and carries out semantic.
2), make up the formalization meta-model of this MOC based on time automat and two kinds of described semantic ruleses of MOC of time multitask.
3) in GME, make up the digital control system field meta-model, and then generate digital control system domain model development environment, the user can make up the field application model of digital control system under this environment.Based on numerical control field meta-model and formalization meta-model, adopt graphical conversion regime, realize the mapping of domain-planning to formation rule, promptly realize the semantic integrated of time automat and time multitask.Adopt the mapping task model that the definition of hierarchical structure descriptive model transformation rule makes up from the field language time automaton model to the formalization.These rules correspond respectively to the object in the domain model on the object in the formalization semantic primitive, and define the attribute information of constructed new object through best property of attribute mapping.Adopt this transformation rule; The digital control system task model can convert to by the defined formalized model of the semantic module of this formalization automatically; As shown in the figure, scheduler (Scheduler), clock (Timer) and task (Task) are converted into the time automaton model; And defined the state transition rules of its inner band time parameter that is comprised
Task model has defined the task and the task scheduling modules of four digital control systems; And set the real-time performance parameter attribute of task through the window on the right, comprise the worst execution time (WCET), cycle (Period), closing time (Deadine), the priority attributes such as (Priority) of system.Through transformation rule, can be exchanged into formalization TA model.
4) under digital control system field modeling environment, the constructing system application model then can be changed through model based on formalization mapping ruler before automatically, automatically the formalization application model of rise time automat and the semantic module of time multitask.
5) based on the interpreter that generates, can the formalization application model be converted into the correlation model under the UPPAAL environment automatically, it is carried out the real-time checking.
Claims (6)
1. the implementation method of the semantic integrated framework of the model conversion formalization of digital control system is characterized in that realizing that the formalized description of Computerized digital control system and model change simulating, verifying automatically, may further comprise the steps:
1) through the behavioural characteristic of analyzing numerically controlled system, make up the different aspect of a set of calculated model description digital control system, in the native system this sets of computer model is called semantic module;
2), adopt type UML language to make up the formalization meta-model of digital control system based on the semantic module of step 1); According to digital control system formalization meta-model and one group of digital control system field meta-model, the formalization semantic conversion of constructing system rule;
3) based on digital control system formalization meta-model and relevant simulating, verifying instrument, constructing system formalization simulating, verifying interpreter; Formalization application model and simulating, verifying interpreter based on digital control system carry out the formalization simulating, verifying to digital control system, its track of emulation in Matlab software, its real-time of checking and state accessibility in UPPAAL.
2. the implementation method of the semantic integrated framework of the model conversion formalization of digital control system according to claim 1, it is characterized in that the semantic module of the constructed digital control system formalization of step 1) can be from different aspects the different behaviors of descriptive system.
3. the implementation method of the semantic integrated framework of the model conversion formalization of digital control system according to claim 2; The different aspect that it is characterized in that the said description digital control system of step 1) comprises: adopt the semantic module of finite state machine, describe the semantic behavior relevant with state exchange in the digital control system; Adopt the semantic module of synchronous data flow, describe the streams data in the digital control system; The semantic module that adopts synchronous data flow and two kinds of calculation combination of finite state machine to form, the mixing behavior of state exchange and streams data in the description digital control system; The semantic module that two kinds of MOC of employing time automat and time multitask combine is described in the digital control system and real-time relevant state exchange and task executive mode.
4. the implementation method of the semantic integrated framework of the model conversion formalization of digital control system according to claim 3; It is characterized in that step 2) the formalization semantic conversion rule of constructed system is based on the constructed semantic module of step 1), and its system architecture and corresponding relation obtain through analyzing.
5. the implementation method of the semantic integrated framework of the model conversion formalization of digital control system according to claim 3; It is characterized in that constructed digital control system formalization meta-model is based on many-sided formalization semanteme of digital control system, and the formalization meta-model of different aspect is integrated into the unified semantic domain of digital control system; Under digital control system field modeling environment, make up one group of field application model, utilize system form transformation rule and formalization meta-model, through model conversion, the formalization application model of automatic creation system.
6. the implementation method of the semantic integrated framework of the model conversion formalization of digital control system according to claim 3; It is characterized in that the formalization simulating, verifying interpreter of being constructed finally realizes the automatic checking emulation of the formalized model of digital control system, guarantee the function and the performance of system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210135292.0A CN102722601B (en) | 2012-05-04 | 2012-05-04 | Implementation method of formal semantic integration framework for model transformation of numerical control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210135292.0A CN102722601B (en) | 2012-05-04 | 2012-05-04 | Implementation method of formal semantic integration framework for model transformation of numerical control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102722601A true CN102722601A (en) | 2012-10-10 |
CN102722601B CN102722601B (en) | 2014-06-11 |
Family
ID=46948362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210135292.0A Expired - Fee Related CN102722601B (en) | 2012-05-04 | 2012-05-04 | Implementation method of formal semantic integration framework for model transformation of numerical control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102722601B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106094561A (en) * | 2016-05-24 | 2016-11-09 | 哈尔滨工程大学 | Marine Synthesize Electric Propulsion System modeling and simulating method and device |
CN106201480A (en) * | 2016-06-30 | 2016-12-07 | 中国航空无线电电子研究所 | A kind of cockpit display Control System Software architecture management platform |
CN106909126A (en) * | 2017-04-06 | 2017-06-30 | 广东技术师范学院 | Computerized digital control system modeling developing method based on layering finite state machine in real time |
CN104156515B (en) * | 2014-07-28 | 2017-09-15 | 湖北文理学院 | A kind of IED formalized description method for analyzing performance based on Markov process |
CN112416336A (en) * | 2020-11-11 | 2021-02-26 | 北京京航计算通讯研究所 | Software architecture design method for aerospace embedded system |
CN112506516A (en) * | 2020-11-30 | 2021-03-16 | 广州市智能软件产业研究院 | Code generation method of security protocol, computer and storage medium |
CN113010296A (en) * | 2021-04-01 | 2021-06-22 | 上海交通大学 | Task analysis and resource allocation method and system based on formalized model |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101206468A (en) * | 2007-11-30 | 2008-06-25 | 华南理工大学 | Modelling method in computer numerical control field |
-
2012
- 2012-05-04 CN CN201210135292.0A patent/CN102722601B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101206468A (en) * | 2007-11-30 | 2008-06-25 | 华南理工大学 | Modelling method in computer numerical control field |
Non-Patent Citations (5)
Title |
---|
DI LI,ET AL: "A modelbasedintegrationframeworkforcomputernumericalcontrol", 《ROBOTICS ANDCOMPUTER-INTEGRATEDMANUFACTURING》 * |
李迪: "面向计算机数控系统的领域建模设计和应用", 《计算机集成制造系统》 * |
王学斌 等: "一种模型转换的编织框架", 《JOURNAL OF SOFTWARE》 * |
肖苏华 等: "基于特定领域建模的数控系统元模型研究", 《深圳大学学报理工版》 * |
肖苏华,李迪: "一种面向计算机数控领域的建模语言", 《机床与液压》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104156515B (en) * | 2014-07-28 | 2017-09-15 | 湖北文理学院 | A kind of IED formalized description method for analyzing performance based on Markov process |
CN106094561A (en) * | 2016-05-24 | 2016-11-09 | 哈尔滨工程大学 | Marine Synthesize Electric Propulsion System modeling and simulating method and device |
CN106094561B (en) * | 2016-05-24 | 2018-02-27 | 哈尔滨工程大学 | Marine Synthesize Electric Propulsion System modeling and simulating method and device |
CN106201480A (en) * | 2016-06-30 | 2016-12-07 | 中国航空无线电电子研究所 | A kind of cockpit display Control System Software architecture management platform |
CN106909126A (en) * | 2017-04-06 | 2017-06-30 | 广东技术师范学院 | Computerized digital control system modeling developing method based on layering finite state machine in real time |
CN106909126B (en) * | 2017-04-06 | 2019-03-08 | 广东技术师范学院 | Computerized digital control system modeling developing method based on real-time layering finite state machine |
CN112416336A (en) * | 2020-11-11 | 2021-02-26 | 北京京航计算通讯研究所 | Software architecture design method for aerospace embedded system |
CN112416336B (en) * | 2020-11-11 | 2023-04-28 | 北京京航计算通讯研究所 | Software architecture design method for aerospace embedded system |
CN112506516A (en) * | 2020-11-30 | 2021-03-16 | 广州市智能软件产业研究院 | Code generation method of security protocol, computer and storage medium |
CN112506516B (en) * | 2020-11-30 | 2024-04-30 | 广州市智能软件产业研究院 | Code generation method, computer and storage medium of security protocol |
CN113010296A (en) * | 2021-04-01 | 2021-06-22 | 上海交通大学 | Task analysis and resource allocation method and system based on formalized model |
Also Published As
Publication number | Publication date |
---|---|
CN102722601B (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102722601B (en) | Implementation method of formal semantic integration framework for model transformation of numerical control system | |
Alur et al. | Hierarchical modeling and analysis of embedded systems | |
Breu et al. | Systems, views and models of UML | |
JP5475996B2 (en) | Modeling and simulation methods | |
Bloomfield et al. | Interoperability of manufacturing applications using the Core Manufacturing Simulation Data (CMSD) standard information model | |
Hsiung et al. | VERTAF: An application framework for the design and verification of embedded real-time software | |
CN102012673A (en) | Design method of complex reaction type system controller | |
Li et al. | A model based integration framework for computer numerical control system development | |
Zacharewicz et al. | A generalized discrete event system (g-DEVS) flattened simulation structure: Application to high-level architecture (HLA) compliant simulation of workflow | |
Zhao et al. | Towards formal verification of UML diagrams based on graph transformation | |
Moallemi et al. | Modeling and simulation-driven development of embedded real-time systems | |
Pohl et al. | vMAGIC—automatic code generation for VHDL | |
Yu et al. | Polychronous modeling, analysis, verification and simulation for timed software architectures | |
Brandt et al. | Embedding polychrony into synchrony | |
Bunker et al. | Formal hardware specification languages for protocol compliance verification | |
CN102231132A (en) | Method for generating simulation test example of AADL (Architecture Analysis and Design Language) software component model based on SystemC | |
Hussain | Investigating architecture description languages (adls) a systematic literature review | |
Gu et al. | An integrated approach to modeling and analysis of embedded real-time systems based on timed petri nets | |
Vassev et al. | Model checking for autonomic systems specified with ASSL | |
Lora et al. | Hardware synthesis from software-oriented UML descriptions | |
Li et al. | A prototype of model-based design tool and its application in the development process of electronic control unit | |
CN108984163A (en) | A kind of multi-platform code generating method of isomery formula based on IMCL model | |
Wang et al. | Study on integrated modeling methods toward co-simulation of cyber-physical system | |
Fellah et al. | Automata-based timed event program comprehension for real-time systems | |
Ramirez | Re-use of tests and arguments for assessing dependable mixed-criticality systems |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140611 Termination date: 20210504 |
|
CF01 | Termination of patent right due to non-payment of annual fee |