S7200与S7300400的以太网通讯_第1页
S7200与S7300400的以太网通讯_第2页
S7200与S7300400的以太网通讯_第3页
S7200与S7300400的以太网通讯_第4页
S7200与S7300400的以太网通讯_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、QUESTION:HowdoIconfigureanS7connectionfordatacommunicationbetweenanS7-200andanS7-300viaEthernet?ANSWER:TheconfigurationofanS7connectionbetweenanS7-200andanS7-300viaEthernethastobedoneontheonehandinSTEP7Micro/WINwiththeEthernetWizardfortheS7-200andontheotherinNetProfortheS7-300.FortheEthernetcommunic

2、ationbetweenthetwostationsyouneedcommunicationprocessorsandCPUsthatsupportS7communication.InthisentrywehaveexplainedallthesettingsrequiredfortheS7-200andtheS7-300usingasampleconfigurationwithCPU226,CP243-1,CPU315-2DPandCP343-1.ConfigurationoftheCP243-1usingtheEthernetWizardofSTEP7Micro/WINOpenSTEP7M

3、icro/WINandthenstarttheEthernetWizardviaToolsEthernetWizard.Fig.1:StartingtheEthernetWizardInthefirststepoftheWizardisadescriptionoftheEthernetWizard.ClickonNexttostarttheconfigurationprocess.ELhernetWizardThis诟対id皿Ihelp卩削cwfigurelheCP243-1Ethane*rnodJeinoideieonnEetanS7-200PLCIoanElbamatnclworkElhe

4、mstisb酩cdonIhoIEEE8023stafidaid.vdlhcammunlcaliorpidtocohbas:EdcnISDsdTCP/IFTheCF2-43-1modulecf恒隆d&日t阳门wmi阴iwiypLa100MbitAorathenetHoikrandsupparlsupto0cancurrentconnecliDns.IndustiidEthernetisdesignedfwindustiy.Itcanbeused、础eihwnoisc-lrceinduslirdlhstedpail(IIPJtedmotogy,orhaIrKjghy点ardadl鹹tedp由|TP

5、technDtagy.InduslrialElhernfitcanbeinfiptenltedIooffera亦duftfiQeof占击nspecifitus*s$Uchesswilchiig.highspeedrnediimredundancyfas-tconnectandrEdjndartnekuouks.UwirglheCP243-1module,theS7-2COFLCi$meicfeconalftle吋ihaixideianaeof扇linopiaTucis出alsijppoitEiheanBl.DickNeftoconfigureaCPmodiieFnyQurpiagrarrLPr

6、tM-F1farheJp口仃anyWizaidicrecnCancalFig.2:DescriptionoftheEthernetWizardInthewindowthatisdisplayedyouareinformedthatyourSTEP7Micro/WINprojectmustbecompiledandbeinSymbolicAddressingmode.AcknowledgethemessagewithYes.EthernetWizardeCP243-1Elhfirn試modjleinoideiioconned!anEEh&ined祢basedonlheIEEEBD23stanef

7、iard,MicDnrnurncaijonspiotOMlsbasedonISOdndTCP/IP.IheCP243-1rnadufecifcrda4tranrnissiDnupbo1OOMbi/s口verlheHBlwukrardsqppartsupto9cancuirentconrecbans.IndiKiialEthHnBlisdesignedlorhdugbyHt右日仃beuaedwthBibernoise-lrEehdugbkJt5lcdEMii(ITPIIechralciap.orfrc:InduslrvtandaidtestedrailIIPtwhnobo1皿$曲百京當|PrKS

8、Flfarhem列Wizardscreen.CdncdFig.3:CompilingtheprojectandenablingtheSymbolicAddressingmodeIfyouareconnectedwiththeCP243-1inyourS7-200station,youcandeterminethemodulepositionoftheCP243-1automaticallyviatheReadModulesbutton.Youcanalsoenterthemodulepositionmanually.ClickonNext.Fig.4:Determiningthemodulep

9、ositionDefineauniqueIPaddressfortheCP243-1andspecifytheassociatedsubnetworkmask.AcknowledgethesettingswithNext.Fig.5:DefiningtheIPaddressandsubnetworkmaskfortheCP243-1InourexampleweneedanS7connectionforcommunicationtotheS7-300.So,forNumberofconnectionstoconfigureforthismoduleyouenter1.ClickonNext.Et

10、hErnBtWizard-ModUeCommasBjiteDeterimineIheQ-adEs:s;by匚punlingIhe口utputbplasusedbyanyl/DrradulejattachedLatheFLCbeforeiheCP243-1modde.阴P3-Feer-ba-PaerCannBctiansThaCP2431modiJewilcuppedanuaximurnd!8asjTchranousB,canDixrentownecliDns.Selectho蚀npconnKfcn$wuwishioconfiguretoUisHiodwleNumbei&conneciionst

11、oeorfiguieroithisiredulfiF31啊匸lickTJelaedilKbcomeciiorrsfartfis亡口nligut日litsn.Fig.6:NumberofS7connectionsThedialogforconfiguringtheS7connectionopens.TheS7connectioncanbeconfiguredasaclientorserverconnection.Inourexamplewehaveusedaclientconnectionforthedatatransfer,i.e.theS7connectionissetupactivelyb

12、ytheCP243-1.EntertheTSAPforconnectionidentificationbetweenthetwostations.ThefirstpartoftheTSAP(xx.)istakenfrom10+connectionnumber,andthesecondpart(.xx)oftheTSAPistakenfromtheracknumberandtheslotoftheCP343-1.InourexampletheTSAPis10.07,i.e.theconnectionnumber=0,theracknumber=0andtheslotoftheCP=7.Enter

13、theIPaddressoftheCP343-1.Specifyasymbolicnamefortheconnection.ClickontheDataTransfersbuttontodefineanewdatatransferforthisconnection.Fig.7:ConnectionconfigurationInordertoreaddatafromtheS7-300youselectReaddatafromtheremoteserverconnection.Enterthenumberofdatabytestobereadfromtheserverandspecifywhere

14、thisdataislocatedintheS7-300.DefineastorageareaintheS7-200forthedataread.Assignasymbolicnameforthedatatransfer.AcknowledgethesettingswithOK.Fig.8:ConfiguringthedatatransferSincetheconfigurationoftheCP243-1modulemaynolongerbechanged,youselectthesettingwithCRCprotection.YoucanspecifytheKeepAliveInterv

15、alwiththedefaulttime.ClickonNext.EthernetWizard-CHCPVQieciiortThewizardcangEnertea匚R匚toheipcdlBdltheradule-ccflfiguratiQnFiomininl日nlionmlmerrwovswites.Hortevei.ihi$picectionwil洌鮒川proamfiommakingmadficatiantolhecanligLralionsflrunliime.丫begenerateCHCpaatecliorifor臧canligualionhIhBdatablock.No,danatg

16、EneratcCRCpratccbanFathisconfiguialjon.KwpALveIrteiYsilWhenCTHHECed啊Ih臼阳mctEODmrrjnictnnspartnef,.gi艸hsccCanedFig.10:Selectingastorageareafortheconfiguration11.ClosetheEthernetWizardwithFinish.TheEthernetWizardgeneratestheprojectcomponentsrequired.Fig.11:ClosingtheEthernetWizard12.Inthemainprogram(M

17、AIN(OB1)youaddthecalloftheETH0_CTRL(communicationsetup)andthecalloftheETH0_XFR(readdatapackages).TheparametersChan_IDandDataoftheETH0_XFRblockcanbeselectedwitharight-click.Fig.12:Addingtheprogramcodeinthemainprogram13.SavetheconfigurationandloaditintheS7200.ConfiguringanunspecifiedS7connectioninNetP

18、ro1.OpenyourSTEP7projectwiththeconfiguredSIMATICS7-300stationandswitchtoNetProviaOptionsConfigureNetwork.Fig.13:StartingNetPro2.MarktheCPUintheSIMATICS7-300stationandcreateaconnectionviaInsertNewConnection.Fig.14:Insertinganewconnection3.SelectanunspecifiedS7connectionasconnectiontype.Fig.15:CreatinganunspecifiedS7connectionThePropertiesDialogfortheS7connectionopens.RemovethecheckmarkforEstablishanactiveconnection,becausetheconnectionissetupbytheS7-200.ForthepartneraddressyouentertheIPaddressoftheS7-200.ThenclickonAddressDetails.Fig.16:PropertiesoftheS7connecti

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论