欢迎来到天天文库
浏览记录
ID:33550399
大小:71.45 KB
页数:7页
时间:2019-02-27
《基于单片机的modbus总线协议实现技术研究》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、基于单片机的MODBUS总线协议实现技术研究中南大学硕士学位论文基于单片机的MODBUS总线协议实现技术研究姓名:邓元生中请学位级别:硕士专业:电工理论与新技术指导教师:李力争20090530中南大学硕士论文摘要摘要现场总线是当今自动化领域发展的热点之一,被誉为自动化领域的计算机局域网。它作为工业数据通信网络的基础,沟通了生产过程现场设备之间的联系。当今现场总线有许多标准,MODBUS协议就是其中重要的标准之一,它已经是全球工业领域最流行的协议之一,作为它们之间的通信标准。木文为创建单片机组网的平台,实现PC机和单片机的通信,达到用PC机控制
2、单片机的目的,构建了以PC机为主机,MODBUS协议为联络载体,单片机为从机的“主一从〃式装置;设计了RS—232和RS・485的电平转换器,实现了PC串口和单片机串口的电平的兼容;釆用CRC校验方法,保证了通信数据的准确性。装置中的主机釆用和DAC0832等辅助元件,以及Intel8155芯片作为装置扩展接口。的串行通信,从机系统釆用C51编程实现了通信数据的提取、解析和发送。本文以单片机实现MODBUS协议通信,具有广泛的实际应用前景。串行通信中南大学硕士论文ABSTRACTinautomationFieldbusisoneoftheis
3、hotspotdevelopment,andafoundationofasaLANinautomationarea.Asrcgardcdcomputcrindustrialcoinmunicationlinksthefieldnetwork.fieldbusupequipmentsarcfieldbusofproductionprocess.Therenowadaysmanystandards,butimportantpopularprocessindustrialasandPLC,DCSareas•Manyequipments,suchin
4、telligentinstrumenLsuseMODBUSastheircommunicationstandards.atunitedaforMCUintoAimingcreatingplatformbeingnetworks,thecommunicationbetweenPCandtheimplementingMCU'achievingofMCUconstruetsamaster-slavebyPC,thisgoalcontrollinginwhichPCactsaspaperasslaveandMODBUSapplianccmaster,
5、MCUascarrierThealsoaintcrfaccforProtocolconnectingpaperdesignsachievestheR$232scrialtoleranceRS485.whichconversingvoltagebetweenPCserialandMCUserial•Theapplicanccadoptscy1icchecktoensuretheofcommunicationdata.Theredundancyaccuracyconsistsofthebellowedunits:commonPCasapplian
6、cemaster,蔽89S52tllecoreandasunitsemdMCUasunit.ADC0809DAC0832auxi1iarylntel8155MCUastheextensionalinterface.BasedontheonMoDBUSProtocolandtothcofinformationthecharacteristicMODBUSframe•toimplementcommunicationbetweenmasterserialandmasterPCusesMCU,theVC++6・Oastheslaveachievest
7、heprogramminglanguagc,andsystemfunctionofandinformationdatathecapturing,analyzingsendingbyinC51realizedcompiledprogramprogramminglanguage.ThispaperMoDBUSProtocolbvMCU.Itwillhavcbccnaofwideprospectutility.KEYWORDS:fietdbus,modbusprotocol,AT89S52,cylicredundancycommunicationc
8、heck,serial原创性声明本人声明,所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。尽我所知,除了论文中特别加以标注和致谢的地方外,论文中不
此文档下载收益归作者所有