资源描述:
《本科毕业设计_communication realization between pc and mcs-51 scm based on modbus protocol-外文文献.doc》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、CommunicationrealizationBetweenPCandMCS-51SCMBasedonMODBUSProtocolAbstract:ThepaperpresentsareliablemethodofreceivingRTU(RemoteTerminalUnit)modeMODBUSmessageframebyusingMSCommcontrolassociatedwithTimercontrolinVisualBasic6.0accordingtothemessageframe,whosestartingandfinishingismarkedbythetimega
2、plengthandthemessagelengthisnotchangeless,alsothereceivingprocessofmessageinSCM(SingleChipMicroprocessor)isdescribedbriefly.Inaddition,theconnectionofPCandMSC-51SCMusingRS-485networktocommunicateisgiveninthispaper.Keyword:MODBUSprotocol;MSCommcontrol;serialcommunication1ForewordAtpresent,Indust
3、rialcontrolisuptocentralizedcontrolanddistributedmeasurementfromsingleprocessorM&C(measurement&control)TheMODBUS,asthemostpopularnetworkapplicationprotocolinindustrialfield,isusedwidelyinelectricalinstrumentsandM&Csystemdesign.Usually,theM&CsystemusesaPC(personalcomputer)asthemasterdevice,andma
4、nyotherintelligentinstrumentsbasedonSCM(singlechipmicroprocessor)thatcommunicateswithothersbyitsserialportasslavedeviceboththemasterdeviceandtheslavedevicecommunicateviatheserialportInMODBUSM&Csystem,thedefaultmessagetransmissionmodeisRTU(RemoteTerminalUnit).InRTUmode,messageframeareseparatedby
5、asilentintervalofatleast3.5charactertimes,whilethelengthoftheframesischangeable,thatresultsinthedifficultyforprogramming.BasedontheanalysisofMODBUSprotocolandMSCommcontrolattributes,thispaperhasprovidedanefficientRTUcommunicationmethodbetweenPCandintelligentinstrument,alsoincludingsomesuggestio
6、nsforprogramming2IntroductionofMODBUSProtocolModicumCorporation,whichhadbeenannexedbySchneiderAutomationin1979,developedtheMODBUSprotocolandnowtheprotocolbecomesthemostprevalentindustrialcommunicationstandardtobeopen,SchneiderElectrichadtransferredtheMODBUScopyrighttoMODBUS-IDAinApril2004.MODBU
7、S-IDA,aimingattheadvancementofindustrialcommunication,isanonprofitorganizationfoundedbyMODBUSorganizationandIDAorganizationin2002.IntheSeptemberof2004,theprotocolwastakenasPAS(PubliclyAvailableSpecification)byIEC,whichisabigstepfo