需要金幣:![]() ![]() |
資料包括:完整論文 | ![]() |
![]() |
轉換比率:金額 X 10=金幣數(shù)量, 例100元=1000金幣 | 論文字數(shù):18468 | ![]() | |
折扣與優(yōu)惠:團購最低可5折優(yōu)惠 - 了解詳情 | 論文格式:Word格式(*.doc) | ![]() |
摘要:MCGS組態(tài)軟件在工業(yè)控制領域中有著廣泛的使用,通過對工業(yè)現(xiàn)場各種數(shù)據(jù)的采集來實現(xiàn)對現(xiàn)場的實時監(jiān)控,具有操作簡單、動態(tài)效果明顯等優(yōu)點,深受用戶的喜愛。但MCGS自身提供的設備驅動大多為使用較為廣泛的常見設備,不能滿足用戶的所有要求。 鑒于MCGS組態(tài)軟件對單片機的設備驅動的缺乏和當前高校實驗教學需求的迫切,研究、設計了MCGS串口設備驅動構件。本文首先分析開發(fā)MCGS驅動構件所要遵守Visual Basic 6.0的ActiveX DLL接口規(guī)范,并根據(jù)MCGS設備驅動構件必須具有的5個屬性和8個方法來制定驅動構件的編寫方案。利用MCGS高級開發(fā)包在Visual Basic 6.0環(huán)境下生成驅動構件程序的基本框架并根據(jù)設備驅動構件所要遵守的規(guī)范和其固有的屬性及方法編寫驅動程序,并在Visual Basic 6.0環(huán)境下調試、運行生成驅動構件。將生成的驅動構件掛接到MCGS組態(tài)軟件中,在MCGS組態(tài)環(huán)境中調試后再運用串口調試助手對驅動構件進行調試與驗證,證實該驅動構件的可行性。 關鍵詞 MCGS;設備驅動;Visual Basic 6.0
Abstract:The MCGS configuration software has been widely used in the field of industrial control, it realize the real-time monitoring on the spot by collecting a variety of the data in industrial field, and has the advantages of simple operation, obvious dynamic effect, and deeply loved by users. But most of the device driver provided by MCGS are for the use of common equipment, and cannot meet all the users’ requirements. As the lack of single chip microcomputers’ device driver and current requirements of experimental teaching in colleges and universities to MCGS, so research, design the serial device driver component of MCGS.At first, the present paper analyze the development of MCGS device driver component to observe the Visual Basic 6.0 ActiveX DLL interface specification and depend on five attributes and eight ways which MCGS device driver component must have to writing the device driver. Using MCGS advanced development generate driver component basic program frame in Visual Basic 6.0,and write device driver component based on device driver components to comply with the specifications and its inherent properties and methods, and debugging, running in Visual Basic 6.0 environment to generate drive components. Attaching the generated driver component to the MCGS configuration software, debugging in MCGS and using the serial debugging assistants to drive again after debug and validation to component confirmed the feasibility of the driver components. Keywords MCGS Device Drivers Visual Basic 6.0 |