Vous êtes sur la page 1sur 26

TechNote303

SettingUpanMPIConnectionwithSiemensSIMATICNET6.0SoftwareUsingaCP5611ProfibusCard andanS7400PLC(CPU4131)

AllTechNotesandKBCDdocumentsandsoftwareareprovided"asis"withoutwarrantyofanykind.Seethe TermsofUseformoreinformation. Topic:001110 Created:March2003

ThisTechNoteoutlineshowtosetupanMPIconnectionwithSiemensSIMATICNET6.0softwareusingaCP5611ProfibusCardandanS7400PLC (CPU4131).

BeforeYouGetstarted,PleaseDotheFollowing:
1.InstalltheSiemensCP5611adaptercardpartnumber(6GK15611AM00CP5611+MPIcable)onyourpc. ThefollowingarepartnumbersfortheCP5611separately: 6GK15611AA00SIMATICNET,PB,CP5611PCICARD(32BIT)FORCONNECTIONOFAPGORPCWITHPCIBUSTOPROFIBUSORMPI 6GK15611AM00SIMATICNET,PB,CP5611MPICONS.OF:PCICARDCP5611(32BIT)F.CONN.OFPC/PGWITHPCIBUSTOPROFIBUSORMPI INCL.MPICABLE,5M 2.InstalltheSiemensSIMATICNET6.0Software+SP2orhigher. 3.InstalltheMPIcable(ConnectitfromtheCP5611adaptercardtotheMPIportontheCPUoftheS7.)Siemenspartnumber(6ES79010BF00 0AA0). 4.InstalltheWonderwareSiemensS7I/OServerversion7,5,0,11. 5.MakesurethattheS7PlcisconnectedviatheMPIcabletothepcandisin Runmode.

StartinganewProjectwithSIMATICManager
1.ClickonFile/NewfromtheSIMATICManagermainmenu. Thefollowingscreenappears:

FIGURE 1:NEWPROJECT

NoteOnyourdesktop,youshouldseeanICONlikethefollowing: clickontheicontostartanewproject.

.ItmightreadSIMATICManager.Youcanalsodouble

2.EnteraprojectnameintheName:boxandclickOK.Intheaboveexample,MPI2wasused. ThefollowingProjectisnowcreated:

FIGURE 2:NEWPROJECT 3.SelectInsert/Station/SIMATICPCStation(seefollowingfigure)fromthemainmenu:

FIGURE 3:INSERT...PCS TATION 4.HighlightSIMATICPCStation,rightclick,andselectRename.EnterPCStation(followingfigures)asthenewname:

FIGURE 4:R ENAME NoteThePCStationnameMUSTmustmatchupwiththenameintheStationConfigurationEditor(seeFigure51).

FIGURE 5:PCS TATION 5.HighlightandexpandtheMPI2icon.Thefollowingwindowappears:

FIGURE 6:C ONFIGURATION ICON 6.DoubleclicktheConfigurationIconintherightpaneoftheabovefiguretoopenuptheSIMATICManagerPCConfigscreen.Thisenablesthe PCStationsetup.

SettingupthePCStationintheSIMATICManagerPCConfigScreen
Thefollowingwindowshouldnowbevisible:

FIGURE 7:PCC ONFIGURATION WINDOW 1.AddtheApplicationcomponentofthePCStationbyselectingitintherighthandpaneofthePCConfigwindow.Inthepreviousfigure,it appearsunderUserApplication.Dragitovertothethetopleftboxlabeled(0)PC,anddropinthefirstlineinordertoconfigurethe Application componentasIndex1(seefollowingfigure):

FIGURE 8:INDEX1 2.SelecttheCP5611module(undertheCPProfibusfolder),anddragittothesecondlineofthe(0)PCbox.ThiscreatesIndex2forthe CP5611componentinthePCStation(seefollowingfigure):

FIGURE 9:CP5611(RO/S2) DIALOG BOX 3.ClickOK.ThefollowingfigureshowstheCP5611inindex2:

F IGURE 10:I TEM 2CP5611 4.DoubleclicktheCP5611modulethatyoujustaddedtoIndex2.Thefollowingdialogboxappears:

FIGURE 11:SELECTINTERFACE TYPE :DIALOG 5.IntheInterfaceType:area(shownabove),opentheType:dropdownlistandselectMPI. 6.ClickOK.Thefollowingmessageappears:

FIGURE 12:O BJECTPROPERTIES MESSAGE 7.ClickYes.ThePropertiesCP5611dialogboxreappears. 8.ClickProperties(seefollowingfigure):

F IGURE 13:P ROPERTIES CP5611 DIALOG BOX TheMPIinterfacedialogboxappears(followingfigure): 9.ClickNew(followingfigure):

F IGURE 14:N EW INTERFACE SETTING (CAPTION ) NoteWewillchangetheBusaddresstocorrespondtotheactualBusaddressoftheCP5611cardinasubsequentstep. TheNewsubnetMPIdialogboxappears:

FIGURE 15:MPI CONFIGURATION 10.SelecttheNetworkSettingstab(seefollowingfigure):

FIGURE 16:P ROPERTIES /NETWORKSETTINGS TAB 11.SelecttheTransmissionrate:.Forthistest,187.5kbpsisselected. NoteYourMPICableshouldhavethebaudrateprintedonit. 12.ClickOK. NoteThecorrectaddressoftheCP5611adaptercardMUSTbeselectedfortheMPIinterface.Inthisexample,itis0.Settingsareconfiguredand verifiedfromwithintheConfigurationConsole.MPIBusaddressesareverifiedbyrunningStart/Simatic/SIMATICNET/ Settings/ConfigurationConsole:(iftheWizardappears,clickCanceltoreturntotheConfigurationConsolewindow).Thefollowingfigureshows theConfigurationConsolescreen:node0istheCP5611adaptercard,andtheCPUis3:

FIGURE 17:C ONFIGURATION C ONSOLEINTERFACE 13.Next,selectthecorrectaddressoftheCP5611inthePropertiesMPIinterfacedialog:

FIGURE 18:A DDRESS LIST

FIGURE 19:A DDRESS SELECTED 14.ClickOK(onboththeMPIInterfaceandCP5611dialogs)tosavetheconfigurationandexitthedialogboxes. YourPCConfigofPCStationshouldnowlooklikethefollowingfigure:

FIGURE 20:PCC ONFIG COMPLETED 15.(Optional)AddingtheOPCServercomponenttothePCConfigPCStation:UndertheUserApplicationfolderinrighthandpaneofthePC Configwindow,selecttheOPCServercomponentanddragitovertoline3inthe(0)PCpane.ThiscreatestheOPCServerasIndex3.ThePC ConfigPCStationwindowshouldnowlooklikethefollowingfigure:

FIGURE 21:SELECTOPCS ERVER 16.ClickStation,thenSaveandCompile,tocheckforerrorsinyour configuration(seefollowingfigure):

FIGURE 22:SAVEANDC OMPILE

FIGURE 23:C OMPILING PROGRESS YourconfigurationinPCConfigforPCStationshouldnowbecomplete.

VerifyingYourConfigurationinNetPro,andCreatingConnectionsfortheCP5611MPIandOPCServer.
1.SelectOptions/ConfigureNetworkfromthemainmenutostartNetPro(seefollowingfigure):

FIGURE 24:STARTNETPRO ThefollowingNetProWindowdisplaysyourcurrentPCStationconfigurationwithoutanyconnectionstotheCP5611moduleortheOPCServer components:

FIGURE 25:N ETPRO WINDOW 2.HighlighttheApplicationindexinthePCStationbox(seepreviousfigure)todisplaytheconnectionwindow.Rightclickthefirstrowinthe connectionwindowandselectInsertNewConnection:

FIGURE 26:INSERTNEWC ONNECTION Thefollowingdialogboxappears:

FIGURE 27:INSERTNEWC ONNECTIONDIALOG BOX(DEFAULTSELECTIONS ) 3.SelectUnspecifiedfromtheStationdropdownlist,thenS7connectionfromtheConnectionType:dropdownlist(seefollowing3figures):

FIGURE 28:STATION :UNSPECIFIED

FIGURE 29:C ONNECTION:S7CONNECTION

FIGURE 30:C ONNECTIONCONFIGURED 4.ClickApply.(TheOKbuttonchangestoClose). ThePropertiesS7dialogboxappears:

FIGURE 31:S7C ONNECTIONPROPERTIES NoteThethreefieldsinFigure29labledLocalID,Partner,andPartnerAddressareveryimportant.Youneedtoinputthecorrectinformation. Inthefollowingfigure,noticethatthePartneraddressis3andcorrespondstotheBusaddressesfoundinthetestthatwasrunintheConfiguration Consoleearlierinthistechnote.Inthisexample,theLocalID:willbeMPI1andthePartnerEndpoint:willbeMPI.

FIGURE 32:L OCALID,P ARTNER FIELDS 5.ClicktheAddressDetailsbutton.Thefollowingdialogboxappears:

FIGURE 33:A DDRESS DETAILS DIALOG BOX NoteTheconnectionresourceisautomaticallyassignedbySIMATICNETwhenyouaddanewconnection,soleavethedefaultvalue.Itisvery importantthatthePartnerRack/Slotvaluebecorrect.SincetheMPIportisontheCPUmodule,itislikelytobe3.Usetheslotnumberofthe CPUforthisentry. TheCPUinourexampleislocatedinslot3,sothatiswhatisentered(seefollowingfigure):

FIGURE 34:MPIR ACK/SLOT:SETTINGS 6.ClickOKtwicetoexitthedialogboxes.TheInsertNewConnectiondialogboxshouldnowbevisible:

F IGURE 35:I NSERT NEW C ONNECTION DIALOG BOXWITH C LOSE BUTTON 7.ClickClose. ThemainNetProwindowshouldnowbevisible.ThefollowingfigureshowsthenewconnectionintheNetProwindow:

FIGURE 36:M AINNETPRO WINDOW CONNECTIONDISPLAY 7.SaveandcompileyourPCStationinNetProbyselectingNetwork/SaveandCompilefromthemainmenu(seefollowingfigure):

FIGURE 37:SAVEANDC OMPILE THE CONNECTIONCONFIGURATION NoteWheneveryoumakechangestoNetPro(i.e.addanewconnection),youMUSTSaveandCompile. Thefollowingdialogboxappears:

FIGURE 38:C OMPILE ANDCHECKEVERYTHING 8.ClickOK.

Youshouldseethefollowing:

FIGURE 39:C OMPILE PROGRESS

FIGURE 40:N OCOMPILEERRORS (Optional)ForanOPCServerConnection,repeatthesteps2thru7(above)fortheCP5611OPCconnection. InStep#2,clicktheOPCServertohighlightitinsteadoftheApplication.Thencontinuethroughsteps3 7tocompletetheconfiguration. ToseewhatthefinalNetProconfigurationlookslike,selectWindowfromthemainNetPromenu,thenselectyourprojectfromthesubmenu(see followingfigure):

F IGURE 41:S ELECT YOUR PROJECT Atthispointyourprojectiscomplete.Thefollowingfigureshowstwoconnections:onefortheApplicationCP5611atBusaddress0,andthe optionalOPCServerconnection:

FIGURE 42:OPC CONNECTIONDISPLAY NoteIfnecessary,youcanedityourS7connectionsbydoubleclickingtheblankcellunderthePartnerIDcolumnheadingintheMPI2row. IfyouopenyourcurrentprojectMPI2inSIMATICManager,youwillseethefollowingscreen.ItcontainsanoverviewofthePCStationinPC Config,andNetPro(seefollowingfigure):

FIGURE 43:C ONNECTIONOVERVIEW

SettingtheAccessPointActiveintheSIMATICNETConfigurationConsole
1.StarttheConfigurationConsole(Start/Simatic/SIMATICNET/Settings/ConfigurationConsole). Note1:IfyouarerunningtheConfigurationConsoleforthefirsttime,orifyouswitchyourPCStationfromonemoduletoanother,(i.e.,you setupaTCP/IPconnectioninsteadofanMPI)youwilllikelyseetheCommissioningWizard.Ifyouhavealreadysetyouraccesspointtoreflect thecurrentmodule,thenyoucancanceloutoftheCommissioningWizardandcontinuetousetheConfigurationConsole.Evenifyouhavent configuredanyaccesspointsintheConfigurationConsoleatthetimeyoufirstopenit,youcanstillclickthe Cancelbuttontocontinuemaking manualconfigurationchangesintheConfigurationConsole.Doingsoisrecommendedforthistechnote(seefollowingfigure):

FIGURE 44:C ANCELLINGTHE WIZARD TO MAKEMANUALCONFIGURATION CHANGES ClickCancelandcontinuethroughStep2(below)afteryouseetheConfigurationconsolemainscreen:

FIGURE 45:C ONTINUE MANUALCONFIGURATION NoteInthepreviousfigure,the(default)MPIAccesspointistheCP5611Module. 2.HighlightAccessPoints,andexpandthehierarchytreetoviewtheavailableaccesspointsfortheCP5611module(seefollowingfigure):

FIGURE 46:HIGHLIGHTANDEXPANDMODULES IntheabovefiguretheAccesspoint MPIishighlighted.YouwillusethisaccesspointwhenyouconfiguretheS7I/OServerlaterinthistechnote.

3.ExpandthePCStationentryintheConfigurationConsole(inthetreeviewpane/lefthandsideofthewindow).Drilldowntothe Modules/CP5611. 4.IntheGeneral:Modulepropertiespane,selectConfigurationmodefromthedropdownlistasthemodeofthemodule(seefollowingfigure):

FIGURE 47:SELECTTHE MODULE MODE 5.AfterselectingtheModeofthemodule:tobeConfigurationmode,aselectionfortheIndexvalueappears. 6.Expandthedropdownlistandselectindex2,sinceitwasconfiguredinyourS7Project.NoticethattheApplybuttonbecomesenabled(see followingfigure):

FIGURE 48:SELECTINDEX VALUE 7.ClickApply.Thefollowingdialogboxappears:

FIGURE 49:C HANGECONFIGURATION PROMPT 8.ClickOKsinceyouneedtoconfigurethePCStationinyourprojecttousethe CP5611module. ThefollowingscreenshowsthattheCP5611moduleisnowconfiguredandreadyforusewithyourS7project:

FIGURE 50:C OMPLETED CONFIGURATION Youcannowclosethe ConfigurationConsole.

ConfiguringtheStationConfigurationEditor(ItAppearsintheSystemTray,anditLooksLikeaComputer!)
1.OpentheStationConfigurationEditor.AftersettingtheCP5611to ConfigurationMode,itwillautomaticallybeaddedtotheStation ConfigurationEditorasindex2(seefollowingfigure): NoteTheStation:name(PCStation)inthefollowingfigureisthesameastheoneenteredinStep4of StartingaNewProject. ReturntoStep4

FIGURE 51:STATION C ONFIGURATION EDITOR 2.Highlightindex1(asshownintheabovefigure),andclickthe AddbuttontoaddtheApplicationcomponenttotheStationConfigurationEditor (seefollowingfigure):

FIGURE 52:A DDCOMPONENT NoteTheconfigurationintheStationConfigurationEditorshouldmatchupwiththeconfigurationinNetPro.(i.e.index1Application,index2 CP5611,[optional:index3OPCServer]). 3.EnterApplicationinthenamefieldtomatchthecomponenttype(seefollowingfigure):

FIGURE 53:N AMEAPPLICATION COMPONENT 4.ClickOKtoaddtheApplicationcomponent.Thefollowingpopupmessagewillappear:

FIGURE 54:C HANGECONFIGURATION MESSAGE 5.ClickOK.TheStationConfigurationEditorshouldnowdisplaytwocomponents,Applicationasindex1,andtheCP5611asindex2(see followingfigure):

FIGURE 55:A PPLICATION ANDCP5611 COMPONENTS 5.Ifrequired,repeatsteps2thru5toaddtheOPCServercomponentasindex3(seefollowingfigure):

FIGURE 56:A DDOPCS ERVER COMPONENT 6.ThefollowingfigureshowsthecompletedStationConfigurationEditorwindowwithallthreecomponentsfrom PCStation(Application,CP5611, andOPCServer):

FIGURE 57:THREE PCSTATION COMPONENTS NotetheredXnexttotheApplicationandOPCServerrowsintheabovefigure.Thismeansthatthedatabaseisnotupdated. YoumustnowdownloadtheconfigurationfromthethePCStation(Configuration)mainwindowandtheNetProinterface(step12below). 7.ThefollowingfigureshowsdownloadingyourcurrentprojectconfigurationtotheS7CPUthroughyourMPIconnection(PLC/Download):

FIGURE 58:D OWNLOADTHE PROJECTCONFIGURATION 8.WhenyouselecttheDownloadcommandfromthemenu,thefollowingpopupappears:

FIGURE 59:TARGETMODULE SELECTION 9.ClickOKtoselectthefourmodules.

FIGURE 60:SELECTSTATION ADDRESS 10.ClickOKtocontinuewiththedownload.

FIGURE 61:STOP TARGETMODULES 11.ClickOKtoselecttheCP5611module. 12.InNetPro,highlightPCStationandselectPLC/DownloadSelectedStationsfromthemainmenu(seefollowingfigure).ClickOKwhenthe downloadiscomplete.

F IGURE 62:D OWNLOAD SELECTED STATIONS Atthispoint,yourSIMATICNETconfigurationiscomplete.ProceedtothenextsectiontoconfiguretheS7IOServer.

ConfiguringtheS7I/OServer
1.StarttheS7I/OServer.SelectConfigure/TopicDefinitionfromthemainmenu(seefollowingfigure):

FIGURE 63:C ONFIGURE /TOPIC DEFINITION AblankTopicDefinitiondialogboxappears. 2.ClickNewtoaddthetopicMPITESTorwhateveryouwanttocallyourtopic.Afteradding MPITESTasyourtopicname,selectMPIasyourCP Name,ApplicationastheVFD,andMPI1asyourconnection. NoteIftheVFDandConnectionvaluesdontshowupautomatically,youmighthavedonesomethingwronginyourS7Project.Tryrestartingthe I/OServerandrecreatingthetopic,orresaveandcompileyourconfigurationintheSIMATICPCConfig.sectionofSIMATICManager(see followingfigure):

FIGURE 64:N EWTOPIC 3.ClickOKtosavethenewtopic.

FIGURE 65:N EWTOPIC DEFINITION 4.ClickDonetoexittheTopicDefinitiondialogbox. TheS7I/OServerconfigurationisnowcomplete.

TestingYourS7ConfigurationWithwwClient
1.StartwwClient,selectConnections/CreatetocreateanewconnectiontotheS7ioserver(seefollowingfigure):

FIGURE 66:C REATE ANEWCONNECTION

FIGURE 67:DDE CONNECTION 2.Afterenteringtheaboveinformation,clicktheCreatebutton,andthenDone.ThefollowingfigureshowstheDDEconnectiontotheS7 I/Oserver:

FIGURE 68:DDEC ONNECTION 3.ClickonItem,andthefollowingwindowappears:

FIGURE 69:ITEM PROPERTIES 4.Enterinmb90(oranyvaliditeminthePLC)fortheItem,andclicktheAdviseEx,andDonebuttons.Thefollowingfigureshowsa"good"value (0X00C0)countingonthesecondlineofthewwClientwindow:

FIGURE 70: WWC LIENTWINDOW ThefollowingfigureshowstheS7I/OServerwindowwiththeitemmb90onadviseandatopicstatusofGOOD,and0errors:

FIGURE 71:S7I/OS ERVER WINDOW ThefollowingscreenshowstheS7DataMonitorwiththeitemMB90withagoodQualityvalue(00C0).

FIGURE 72:S7D ATA MONITOR YouhavesuccessfullyconfiguredSIMATICNET6.0tocommunicatetotheWonderwareSiemensS7IOServer.


D.Plesset TechNotesarepublishedoccasionallybyWonderwareTechnicalSupport.Publisher:InvensysSystems,Inc.,26561RanchoParkwaySouth,LakeForest,CA92630.Thereisalso technicalinformationonoursoftwareproductsat www.wonderware.com/support/mmi .

Fortechnicalsupportquestions,sendanemailtosupport@wonderware.com. backtotop

2002InvensysSystems,Inc.Allrightsreserved.Nopartofthematerialprotectedbythiscopyrightmaybereproducedorutilizedinanyformorbyanymeans,electronicor mechanical,includingphotocopying,recording,broadcasting,orbyanyinformationstorageandretrievalsystem,withoutpermissioninwritingfromInvensysSystems,Inc. TermsofUse.

Vous aimerez peut-être aussi