CN1963749A - Method for constructing embedded software system of industrial automation instrument - Google Patents
Method for constructing embedded software system of industrial automation instrument Download PDFInfo
- Publication number
- CN1963749A CN1963749A CN 200610095235 CN200610095235A CN1963749A CN 1963749 A CN1963749 A CN 1963749A CN 200610095235 CN200610095235 CN 200610095235 CN 200610095235 A CN200610095235 A CN 200610095235A CN 1963749 A CN1963749 A CN 1963749A
- Authority
- CN
- China
- Prior art keywords
- instrument
- meter
- software
- function
- source code
- 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
- Stored Programmes (AREA)
Abstract
This invention relates to one method to form industry automatic meter imbedded software system in the relative automatic meter technique field, which uses micro controller and outer device and comprises the following steps: firstly establishing meter regular micro controller and outer device parts database; then dispatching relative parts to generate rapid device software drive program; then adding relative function application program; then using Keil uVision2 software to code, link and adjust source codes program to orderly fulfill industry automatic meter each function module.
Description
Technical field
The invention belongs to the industrial automation instrument technical field, particularly the construction method of embedded software system of industrial automation instrument.
Background technology
Industrial automation instrument is the new high-tech product that integrates sensor technology, signal processing technology, computer technology, the network communications technology, this series products is with high content of technology, market capacity big, wide application, work under bad environment, reliability and measuring accuracy require high, are the emphasis problems of instrument and meter industry research.
Industrial automation instrument is of a great variety, as analytical instrument, optical instrument, enviromental protection instrument, Medical Instruments, electronic measuring instrument, geological instrument, meteorological ocean instrument, aero-space instrument, automobile instrument or the like.If segmentation again is divided into industrial electro conduction concentration analyzer, intelligent trace oxygen analyzer, intelligent infrared gas analyzer or the like again as analyser.Along with social progress and development in science and technology, industrial automation instrument will be had higher requirement to software systems towards the trend development of digitizing, intellectuality, networking, microminiaturization, high-performance, high reliability, high stability and optical, mechanical and electronic integration.
All be by signals collecting, transmission on the industrial automation instrument structure at present, functional modules such as processing, control constitute, include all kinds of microcontrollers commonly used and external unit module on the hardware, such as Intel (Intel) series, like special Mel (Atmel) series, Philip (Phlips) series, Xinhua imperial (Cygnal) Series of MCU etc., all kinds of analog to digital converter, digital to analog converter, universal serial bus and communication interface, export demonstration, width modulation etc.
The structure of existing industrial automation instrument software systems is all started from scratch, and carries out embedded software coding according to the instrument and meter function by the software engineer on hardware configuration.In fact in software engineer's written program, there are a large amount of reusable code segments, comprise all kinds of microcontrollers commonly used and the driver module of external unit.These codes all finish along with the end of primary production exploitation, have only used once, are not well accumulated and manage.Therefore software engineer's leaving office usually causes technology can't inherit overlapping development.This makes the R﹠D cycle of industrial automation instrument product long, difficulty is big, efficient is low, error rate is high, cost is also high.
In order to shorten the industrial automation instrument Products Development cycle, improve the quality of products, strengthen the market competitiveness, reduce software engineer's the working strength and the inheritance of enhancement techniques simultaneously, be necessary numerous reusable source code fragments is encapsulated, generate the high source code member of reusability, offer the software engineer and use.Component model commonly used at present comprises the The Component Object Model (COM/DCOM) of Microsoft, the common object request broker architecture (CORBA) of OMG (OMG) and the software assembly model (JavaBean/EJB) of the sun (SUN) company etc., and they have become the key of quick structure application system.But in the Embedded Application field, because the diversity of embedded platform, and embedded system is to the consideration of important non-functional factor such as memory consumption, real-time characteristic, reliability and stability, and above-mentioned component model is difficult to be applicable to effectively embedded system.For this reason, both at home and abroad research institution has released a series of embedded member models specially, is used for the embedded system component model (Pecos) of field apparatus technology etc. as the coupled channel optical model (CCOM) of penetrating Cisco (SEESCOA) project of Belgium international solder technology person (IWT) association patronage, koala (Koala) component model that PHILIPS Co. is used for consumer electronics and electric power and companies such as (ABB) of automatic technology group.The common feature of these models is: based on the component reusage of source code level, and corresponding method support is arranged.
But the member at the microcontroller commonly used of industrial automation instrument and external unit drive does not have corresponding codes and standards at present, does not have concrete framework based on the instrument and meter embedded software system of member yet.Therefore, more and more cause the great attention of academia and industrial community based on the embedded software system of industrial automation instrument construction method of member.
Summary of the invention
The objective of the invention is weak point at existing industrial automation instrument software system construction method, a kind of method that makes up embedded software system of industrial automation instrument is provided, solve software resource and can not get effectively accumulation and multiplexing, cause overlapping development, inefficient problem.This method pointed strong, practical, reduce investment outlay, reduce the duplication of labour, product quality height, error rate be low, shorten characteristics such as product development cycle greatly.
Mechanism of the present invention is: drive by common architectural, programming language, common function and microcontroller and external unit to the industrial automation instrument product, set up a kind of embedded software componentization model that is applicable to instrument and meter.The software engineer can submit the component base unified management to according to model standard design/generation source code member.On the basis of component base,, make up a kind of embedded software system of industrial automation instrument based on member according to instrument product software architecture and common function.In the actual exploitation, by calling corresponding member automatic generating software source code, thereby set up fast, realize control industrial automation instrument towards the embedded software driver of the instrument and meter of concrete model and application.The method of this structure embedded software system of industrial automation instrument will reduce development difficulty greatly, make the developer concentrate on function development and realization to energy, and development efficiency significantly improves.
The embedded software member is one section reusable code, size definition is a statement level, be that code snippet comprises a statement at least, make it have higher dirigibility and reusability, it also can be the member that comprises other members, therefore it can be function, process or object class, also can be more massive unit.Member is configurable and shared, and this is based on the foundation stone of component development, and can provide service mutually between the member.
In order to improve the multiplexing dynamics of Software Production process, not only need multiplexing old code, and want multiplexing similar analysis design result and architecture.Could reduce the cost of structure new software system like this, thereby improve the reliability of software, change in the past again and again, the situation of overlapping development application system one by one, the person frees from loaded down with trivial details work veritably to make the software work.Based on the software development methodology of framework a kind of software reuse technology that comes to this towards specific area.An object-oriented framework is meant the semi-manufacture of the application software in specific area, it is made up of one group of cooperating member, illustrated between whole design, member and to have relied on and the responsibility of member's member distributes, its advantage is and can provides high-rise service to shield the bottom details by software reuse, thereby improve types of applications procedure development efficient greatly, avoid repeating to write a large amount of identical code and issuable thus a large amount of mistakes.Framework multiplexingly is considered to a kind of very promising Object-oriented Technique owing to what great dynamics was provided.
Software systems of the present invention are based on the uVision2 software design of Ker Co.,Ltd (Keil).Keil company is the independent vendor of the leading microcontroller software developing instrument of a tame industry, the produce and market kind is developing instrument widely, comprises the C of American National Standards Institute compiler, macroassembler, debugger, connector, librarian, firmware and real time operating system.Have at present and surpass 100,000 microcontroller developers in this solution that obtains the industry approval of use.Keil company has released the 32-bit Windows environment, has been the Keil uVision2 software that development goal, high efficiency C language set become the foundational development platform with 51 series monolithics at 51 series monolithics.
Instrument and meter industry adopts Keil uVision2 software mostly, so engineering format of the compatible uVision2 software of software systems of the present invention's structure, can directly in uVision2 software, compile, download, debugging, greatly facilitate instrument and meter industry software practitioner's use, they needn't relearn and grasp new developing instrument, reduce investment outlay.
By writing the driving and the control program of hardware description operation for each microcontroller and all kinds of external unit hardware module, as D and D/A converter (ADC/DAC), serial ports 232 (RS232), internal integrated circuit (I2C), serial peripheral interface (SPI), Local Area Network controller (CAN) etc., thus drive member set up.Descriptive operation is meant only need be known when control hardware what will be finished, and does not need to know how to go to finish, and each operation all is some single actions.For example: for the baud rate that a serial ports is set, only need know it is which serial ports, how many baud rates is, and do not need to know and will write which register and how to write etc.Drive member is reserved interface and is called for the developer, and the programming personnel only need understand initialization order in the program development and initialized content and not need to understand initialized detail and just can finish writing of program.Can increase work efficiency the easiest place of makeing mistakes during minimizing hardware drive program detail is provided with so greatly.Set up the drive member storehouse, thereby significantly reduce the possibility of makeing mistakes, the embedded system application development process is oversimplified, save a large amount of time.
The object of the present invention is achieved like this: a kind of method that makes up embedded software system of industrial automation instrument, utilize microcontroller and external unit, as all kinds of analog to digital converters, digital to analog converter, universal serial bus and communication interface, output shows, width modulation etc., pass through source code, set up the component base of instrument and meter industry microcontroller commonly used and external unit earlier, after call the fast automatic generation instrument and meter of corresponding member software driver, add functional application again, with Keil uVision2 software source code program is compiled then, connect, debugging, thus each functional module of industrial automation instrument finished one by one.Concrete steps are as follows:
(1) sets up component base
Common architectural, programming language, common function and microcontroller and external unit to the industrial automation instrument product drive, set up a kind of embedded software componentization model that is applicable to instrument and meter, again according to componentization model construction source code member, and be positioned over the component base unified management, call during for repeated use.
(2) make up the instrument and meter embedded software system
(1) step finish after, software architecture and common function according to instrument product, from the component base of (1) step foundation, call corresponding microcontroller and external unit drive member, automatically generate the instrument and meter software driver by source code, thereby set up towards the driver source code framework of the instrument and meter of concrete model and application fast.
(3) add functional application
(2) step finish after, according to user's demand, add the function corresponding application program again, finish the structure of instrument and meter functional module fast.
(4) debug function module
(3) step finish after, by Keil uVision2 software functional module is compiled, connects, debugs, up to the function that reaches instrument and meter.The respective drive member and (3) step that turn back to another function of (2) step interpolation are again added functional application, and debug.So repeatedly, progressively increase application function, till the repertoire of finishing instrument and meter.
After the present invention adopts technique scheme, mainly contain following characteristics:
(1) with strong points.The microcontroller commonly used and the external unit that The present invention be directed to industrial automation instrument drive, and the embedded software member of foundation is with strong points, the efficient height.
(2) practical.The code snippet that the present invention selects is the duplicated code commonly used in the instrument and meter software, with its standardization, seriation, standardization, modularization, parametrization, form with the source code member is used, simple, reduce the duplication of labour, thereby the industrial automation instrument product development cycle is shortened greatly, and error rate is low, the product quality height.
(3) reduce investment outlay.Therefore software systems and uVision2 softwarecompatible that the present invention makes up can be good at combining with existing developing instrument and development mode, reduce investment outlay, and cost is low.
(4) favorable expandability.Construction method based on the software systems of component base can make up specific application system fast, help product construction, safeguard and renewal to have very strong extensibility.
The present invention can be widely used in the structure of various types of embedded software system of industrial automation instrument.
Description of drawings
Fig. 1 is existing industrial automation instrument software tradition development process figure;
Fig. 2 is component base figure of the present invention;
Fig. 3 is a program flow diagram of the present invention.
Embodiment
Below in conjunction with embodiment, further specify the present invention.
Turbine flow transducer is a kind of accurate flow measurement instrument, with supporting flow and the total amount that can be used for measuring liquid of corresponding flow totalizer meter, is widely used in metering, the control system in fields such as oil, chemical industry, metallurgy, scientific research.Shown in Fig. 2,3, a kind of construction method of liquid crystal display functional module of turbine flow transducer of industrial automation instrument, utilize the external unit of microcontroller and SPI driving, display driver, serial port drive, pass through source code, set up the component base of instrument and meter industry microcontroller commonly used and external unit earlier, after call the fast automatic generation instrument and meter of corresponding member software driver, add functional application again, with Keil uVision2 software source code program is compiled, connects, debugs then.The concrete grammar step of the liquid crystal display functional module of structure turbine flow transducer is as follows:
(1) sets up component base
Industrial automation instrument common architectural, programming language, common function and microcontroller and external unit driving are studied on the basis, set up a kind of embedded software componentization model that is applicable to instrument and meter, again according to componentization model construction source code member, and be positioned over the component base unified management, call during for repeated use.The liquid crystal functional module need be called the associated drives of SPI driving, display driver and microcontroller, so write its corresponding driving member, is placed in the component base so that call when reusing.
(2) make up the turbine flow transducer embedded software system
(1) step finish after, functional requirement according to liquid crystal display, from the component base of (1) step foundation, call associated drives and SPI driving, display driver and the serial port drive member of corresponding microcontroller, automatically generate liquid crystal Presentation Function driver by source code, thereby set up the source code framework that liquid crystal display drives fast.
(3) add liquid crystal Presentation Function application program
(2) step finish after, according to user's request, add the application program of liquid crystal Presentation Function again, finish the structure of Presentation Function module fast.
(4) debugging liquid crystal display functional module
(3) step finish after, by Keil uVision2 software the Presentation Function module is compiled, connects, debugs, up to reaching functional requirement.The respective drive member and (3) step that turn back to another serial communication function of (2) step interpolation are again added the application program of serial communication function, and debug, and finish the liquid crystal display and the serial communication function of turbine flow transducer.
Claims (2)
1, a kind of method that makes up embedded software system of industrial automation instrument, utilize microcontroller and all kinds of analog to digital converter, digital to analog converter, universal serial bus and communication interface, output shows, the external unit of width modulation, pass through source code, set up the component base of instrument and meter industry microcontroller commonly used and external unit earlier, after call the fast automatic generation instrument and meter of corresponding member software driver, add functional application again, with Keil uVision2 software source code program is compiled then, link, debugging, thus each functional module of industrial automation instrument finished one by one.Thereby finish each functional module of industrial automation instrument one by one, it is characterized in that concrete method step is as follows:
(1) sets up component base
Common architectural, programming language, common function and microcontroller and external unit to the industrial automation instrument product drive, set up a kind of embedded software componentization model that is applicable to instrument and meter, again according to componentization model construction source code member, and be positioned over the component base unified management, call during for repeated use;
(2) make up the instrument and meter embedded software system
(1) step finish after, software architecture and common function according to instrument product, from the component base of (1) step foundation, call corresponding microcontroller and external unit drive member, automatically generate the instrument and meter software driver by source code, thereby set up fast towards the driver source code framework of the instrument and meter of concrete model and application;
(3) add functional application
(2) step finish after, according to user's request, add the function corresponding application program again, finish the structure of instrument and meter functional module fast;
(4) debug function module
(3) step finish after, by Keil uVision2 software, functional module is compiled, connects, debugs, up to the function that reaches instrument and meter, the respective drive member and (3) step that turn back to another function of (2) step interpolation are again added functional application, and debug, so repeatedly, progressively increase application function, till the repertoire of finishing instrument and meter.
2, method according to claim 1 described structure embedded software system of industrial automation instrument, the construction method of liquid crystal display functional module that it is characterized in that a kind of turbine flow transducer of industrial automation instrument, utilize microcontroller and SPI to drive, display driver, the external unit of serial port drive, pass through source code, set up the component base of instrument and meter industry microcontroller commonly used and external unit earlier, after call the fast automatic generation instrument and meter of corresponding member software driver, add functional application again, with Keil uVision2 software source code program is compiled then, connect, debugging, the concrete grammar step of the liquid crystal display functional module of structure turbine flow transducer is as follows:
(1) sets up component base
Industrial automation instrument common architectural, programming language, common function and microcontroller and external unit driving are studied on the basis, set up a kind of embedded software componentization model that is applicable to instrument and meter, again according to componentization model construction source code member, and be positioned over the component base unified management, for repeating to call, the liquid crystal functional module need be called the associated drives of SPI driving, display driver and microcontroller, so write its corresponding driving member, be placed in the component base so that call when reusing;
(2) make up the turbine flow transducer embedded software system
(1) step finish after, functional requirement according to liquid crystal display, from the component base of (1) step foundation, call associated drives and SPI driving, display driver and the serial port drive member of corresponding microcontroller, automatically generate liquid crystal Presentation Function driver by source code, thereby set up the source code framework that liquid crystal display drives fast;
(3) add liquid crystal Presentation Function application program
(2) step finish after, according to user's request, add the application program of liquid crystal Presentation Function again, finish the structure of Presentation Function module fast;
(4) debugging liquid crystal display functional module
(3) step finish after, by Keil uVision2 software, the Presentation Function module is compiled, connects, debugs, up to reaching functional requirement, turn back to the respective drive member of another serial communication function of (2) step interpolation and the application program of (3) step interpolation serial communication function again, and debug, finish the liquid crystal display and the serial communication function of turbine flow transducer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610095235A CN1963749B (en) | 2006-11-24 | 2006-11-24 | Method for constructing embedded software system of industrial automation instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610095235A CN1963749B (en) | 2006-11-24 | 2006-11-24 | Method for constructing embedded software system of industrial automation instrument |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1963749A true CN1963749A (en) | 2007-05-16 |
CN1963749B CN1963749B (en) | 2010-05-12 |
Family
ID=38082823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200610095235A Expired - Fee Related CN1963749B (en) | 2006-11-24 | 2006-11-24 | Method for constructing embedded software system of industrial automation instrument |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1963749B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270127A (en) * | 2011-05-30 | 2011-12-07 | 桂林欧博仪器技术有限公司 | Method for programming and controlling flow of analytical instrument |
CN102567022A (en) * | 2011-12-28 | 2012-07-11 | 中国电子科技集团公司第四十一研究所 | Frame-type design method of instrument system for spectrum analyzers |
CN108268732A (en) * | 2018-01-25 | 2018-07-10 | 金肯职业技术学院 | A kind of method based on Keil software simulation systems and its emulation flexible circuit board |
CN112540744A (en) * | 2020-12-06 | 2021-03-23 | 苗改燕 | Method for constructing embedded software system of industrial automation instrument |
CN114443115A (en) * | 2020-11-05 | 2022-05-06 | 沈阳中科博微科技股份有限公司 | Method for constructing instrument component model and configurable method thereof |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222009A (en) * | 2011-06-02 | 2011-10-19 | 深圳市共进电子有限公司 | Method for producing assortment versions of home gateway system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1313562A (en) * | 2001-05-15 | 2001-09-19 | 北京慧讯信息技术有限公司 | Architectural structure of embedded open platform |
-
2006
- 2006-11-24 CN CN200610095235A patent/CN1963749B/en not_active Expired - Fee Related
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270127A (en) * | 2011-05-30 | 2011-12-07 | 桂林欧博仪器技术有限公司 | Method for programming and controlling flow of analytical instrument |
CN102567022A (en) * | 2011-12-28 | 2012-07-11 | 中国电子科技集团公司第四十一研究所 | Frame-type design method of instrument system for spectrum analyzers |
CN102567022B (en) * | 2011-12-28 | 2015-05-20 | 中国电子科技集团公司第四十一研究所 | Frame-type design method of instrument system for spectrum analyzers |
CN108268732A (en) * | 2018-01-25 | 2018-07-10 | 金肯职业技术学院 | A kind of method based on Keil software simulation systems and its emulation flexible circuit board |
CN108268732B (en) * | 2018-01-25 | 2019-10-11 | 金肯职业技术学院 | A method of based on Keil software simulation system and its artificial circuit plate |
CN114443115A (en) * | 2020-11-05 | 2022-05-06 | 沈阳中科博微科技股份有限公司 | Method for constructing instrument component model and configurable method thereof |
CN112540744A (en) * | 2020-12-06 | 2021-03-23 | 苗改燕 | Method for constructing embedded software system of industrial automation instrument |
Also Published As
Publication number | Publication date |
---|---|
CN1963749B (en) | 2010-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1963749B (en) | Method for constructing embedded software system of industrial automation instrument | |
CN106371813B (en) | A kind of electric vehicle motor controller method for producing software based on Simulink | |
CN1514363A (en) | CPU imitation device and method | |
CN104794258A (en) | Automobile hardware-in-loop simulation system | |
CN102968377A (en) | Virtual machine technique based airborne software system testing general platform | |
CN205228803U (en) | Isolator state test device | |
CN101377795A (en) | SOC chip logical verification method special for industry portable terminal | |
CN201100900Y (en) | Built-in system teaching instrument based on programmable system chip | |
Zou et al. | Cost optimization in the construction of prefabricated buildings by using BIM and finite element simulation | |
CN102279736A (en) | D2P-based RMS motor controller development system | |
CN105162645A (en) | Interoperability test method based on PIIF configuration | |
CN201145858Y (en) | Spacecraft test equipment based on industry configuration | |
CN110018964A (en) | One kind researching and developing test assembly line construction method towards power industry | |
Guo et al. | ISDP: Interactive software development platform for household appliance testing industry | |
CN101025386A (en) | Automobile detection system | |
CN207688910U (en) | A kind of encoder test system | |
CN209231782U (en) | A kind of multi-channel portable test device for servo-system | |
Li et al. | Design of communication system in intelligent instrument based on HART protocol | |
Zhou | Soft PLC Research And Development System Based On PC | |
CN100576139C (en) | A kind of implementation method of digital angle converter | |
CN101169659A (en) | Control system integrated test set | |
CN105429698B (en) | A kind of multifunctional optical fiber link analyzer for intelligent substation | |
Wu et al. | Application of proteus in microcontroller comprehensive design projects | |
CN2211621Y (en) | Feedback circuit board tester for computer coder | |
CN215647386U (en) | Online reporting equipment for field engineering quantity of power transmission and transformation engineering based on Internet of things technology |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100512 Termination date: 20131124 |