如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
山东大学学士学位论文山东大学学士学位论文PAGE\*MERGEFORMATIIPAGE\*MERGEFORMATIPAGE\*MERGEFORMATIII摘要该论文主要介绍了基于Modbus通信协议的,在VisualC++6.0集成编译环境下实现的,智能仪表与计算机进行通信的测试软件系统的简单开发过程,同时介绍了利用VisualC++6.0进行简单软件设计的方法。本文简要介绍了常见的的通信方式(如RS232、RS485等)和其基本工作原理,同时本文详细阐述了Modbus通信协议、通信流程和CRC错误校验,进一步以实例的形式对Modbus通信协议和CRC错误校验进行详解。详细介绍了在VisualC++6.0中实现智能仪表与智能仪表通信测试软件之间进行串行通信方法:利用VisualC++6.0提供的MSComm通信控件建立串口连接。简单介绍了VisualC++语言及其开发环境,详细讲述了利用它实现界面设计的过程和步骤。关键词:智能仪表,VisualC++,人机界面,MSComm,串口通信ABSTRACTThispapermainlyintroduceshowtodesignasoftwarebyusingtheenvironmentofVisualC++basedonModbuscommunicationprotocoltotestthecommunicationbetweentheintelligentinstrumentsandcomputer.Atthesametime,thispaperalsointroducestheuseofVisualC++6.0softwaretodesignourprogram.Thispaperbrieflyintroducesthecommonwayofcommunications(suchasRS232andRS485,etc)andthebasicworkingprinciple,andatthesametimethispaperexpoundstheModbuscommunicationprotocol,communicationprocessandtheCRCerrorcheckingmethod.WealsomakesomeexamplesofModbuscommunicationsprotocolandCRCerrorcalibrationforfurtherexplanation.Alsoitintroducesthedesignprincipleanddesignmethodsofthehuman-computerinterface.Itdiscussesthemethodsoftheintelligentinstrumentandcomputer’sserialcommunicationindetail.ThatistheMSCommcontrolprovidedbyVisualC++thatoffersthelinkofserialcommunication.Besides,itsimplyintroducesthelanguageofVisualC++anditsdevelopingenvironment.Andfinallyittellstheprosessofmydesigninghuman-computerinterfaceforintelligentcommunicationindetail.KEYWORDS:intelligentinstrument,human-computerinterface,MSComm,serialcommunicationPAGE\*MERGEFORMATIII目录TOC\o"1-3"\u摘要PAGEREF_Toc325378478\hIABSTRACTPAGEREF_Toc325378479\hII第一章绪论PAGEREF_Toc325378481\h11.1概述PAGEREF_Toc325378482\h1第二章串行口通信概述PAGEREF_Toc325378483\h22.1接口的方式PAGEREF_Toc325378484\h22.1.1并行接口PAGEREF_Toc325378485\h22.1.2串行接口PAGEREF_Toc325378486\h22.2串行接口的标准PAGEREF_Toc325378487\h22.2.1RS-232通信PAGEREF_Toc3