您好,欢迎访问三七文档
当前位置:首页 > 建筑/环境 > 电气安装工程 > FAQS OF WINCC5
FAQSOFWINCC5.0ONSIMENSONLINEHardcopyofpartialareasofimagesinWinCCV5.0SP2QUESTION:HowcanImakeahardcopyofpartialareasofanimage(e.g.agraph).ANSWER:Forexample,youhaveagraphplacedinyourwindowandyouwanttomakeahardcopyofthisimage.Toachievethis,youneedtoknowthecoordinatesandthesizeofyourwindow,thenyoucaninitiatethegenerationofahardcopywithabuttonasfollows:#includeapdefap.hvoidOnClick(char*lpszPictureName,char*lpszObjectName,char*lpszPropertyName){WinExec(PrtScr.exe/C=\20;10;800;400\,SW_SHOWNORMAL);}ThenumericalvaluesinthesequencePositionX;PositionY;Width;Heightcorrespondtothecoordinatesinthetopleftcornerandthesizeofthewindow(Figure1).Figure1:PrintareaPleasealsoconsiderentry-ID9414679aboutprintinghardcopiesinlandscapeformatwithWinCCV5(SP2)/WinCCV5.1Functions&Samples:displaydriverblocktechniquewiththepropertyTagprefixofpicturewindows(V5.0andhigher)QUESTION:HowdoesthedisplaydriverblocktechniqueworkwiththepropertyTagPrefixofscreenwindows?ANSWER:Inyourconfigurationyouareusingthedisplaydrivertechnique.SinceversionV5ofWinCCyoucanusethepropertyTagPrefixofscreenwindows.Inthisexamplethereisdynamizationwithtaglinking,dynamicdialogandCscript.DynamicdialogandCscriptworkwithatagtrigger.Important:Itisimportantthatthetagprefixofapicturewindowcorrespondstoaglobaldefinition.Thismeansthatthetagprefixofthepicturewindowisvalidforalltagsthatareeditedinthispicturewindoworchangedinanyotherway(script).Consequently,thesetagshavetobemembersofthestructurewhosenameyouhavespecifiedastagprefixfortheimagewindow.LetusassumethatyoudeclareatagwiththenameHallooutsidetheabove-mentionedstructureandtrytochangeitinthepicturewindow,thenanattemptismadetochangethetagwiththenameTag_prefix.Hallo.Thisleadstoanerror,becausethistagdoesnotexist.Furthermore,makesurethatthetagprefixofthepicturewindowisalsovalidwhenyoucreateanothertagprefixinthepicturewindow.Thefollowinginterpretationisvalidfortagsthatareeditedinthispicturewindoworchangedinanyotherway(script)inthesenseoftheseconddefinition:Tag_prefix1.Tag_prefix2.Tag_name.Noteondynamicdialog:Inordertobeabletoworkwiththedynamicdialogyoumustobservethefollowingtwoitems:TheitemmustbespecifiedwiththepropertyTagPrefix.Example:ampel13.Thedynamicdialogcheckswhetherthetabexists.Thereforeyouhavetocreateanothernormaltagagainforeachmembertagofastructure.Example:Thestructurehasthethreemembers.red,.yellowand.green.Thenyouhavetocreatethethreetagsred,yellowandgreen.Advantageofthisblocktechnique:Youdon'thavetouseanyunnecessaryCscripts.Agoodperformanceisalsoachievedthroughthetagtrigger.Noteonchangingthetagprefix:Pleasenotethatachangetoatagprefixonlybecomeseffectiveinapicturewindowwhenapicturechangetakesplaceinthepicturewindow.Thishasbeenimplementedinasampleproject.SeeherealsotheOnlineHelpoftheGraphicsDesigner,intheTagprefixpropertyofthepicturewindow.Chargedsoftware(paymentbySIMATICCard/AutomationValueCard):ThedownloadcontainsaWinCCV5projectwhichdemonstratesthefunctionalitydescribedusinganexample.ampel.exe(323KB,50units)Copytheampel.exefileintoaseparatedirectoryandstartthefilewithadouble-click.TheWinCCV5projectisnowunpackedwithallitsassociatedsubdirectories.ThenyoucanopenandprocesstheprojectwithWinCC.StepsrequiredforsettingupanOPCconnection(WinCCV5.0SP2)QUESTION:WhatstepsarerequiredtostartupaWinCCstationasOPCserverorasOPCclient(OLEforProcessControl)?ANSWER:StepsrequiredontheWinCCstationasOPCserverifyouwanttoaccessthisfromanothercomputer:1.TheOPCserver/clientcomponentmustbeinstalled(automaticallyinstalledatSetupwithWinCCV5.0SP2andhigher).2.TheDCOMinterfacemustbeparameterized.NecessarystepsontheWinCCstationasOPCclient:1.TheOPCservermustbeinthesamenetworkastheOPCclient.2.IntheWinCCExploreryouinserttheOPCchannelviaRight-clickonTagManagementAddNewDrivers.PleaseselectOPC.CHNhere.3.NowopentheOPCunitbyclickingthe+iconontheleftofitorbydouble-clickingtheOPCchannel.4.InOPCGroupsright-clickSystemParametersandtheOPCItemManageropens.5.ClicktheComputerbutton,enterthenameofthecomputeroftheOPCserverandthenclickOK.ThisisonlynecessaryiftheOPCserverisnotoperatedlocally.Ifusedlocallyonthesamecomputer,thendouble-clickLocal.6.IftheOPCserversupportsabrowser,thenthiscanbeselectedaccordinglythroughBrowseServertoofferthepossibleOPCtagsintheOPCItemManager.Ifthisisnotthecase,thentheOPCtagshavetobecreatedmanually.7.AcknowledgethesubsequentFilterCriteriawindowwithNext-.8.NowyouseeallthetagsthattheOPCserverhastooffer.SelecttherelevanttagwithAddItems.UsingtheCTRLkeyyoucanselectseveraltagsatonce.9.Ifthereisnoconnection,youcansetoneupbyacknowledgingwithYESinthewindowthatnowopens.10.SelectanappropriatenameandacknowledgewithOK.11.Youshouldgiveaprefixforthesakeofeasyrecognition.TheOPCconnectionshouldnowbepossibleiftheOPCsupportsabrowserlikeWinCC.InthecaseofotherOPCserversyoumustasktheproviderwhetherthisisthecase.Pleasenotethatthisisonlyaroughoverviewofthenecessarysteps.MoreinformationisavailableintheWinCCInformationSystem.Keywords:Setup,Connection,SoftwareinterfaceSavingprocesspictureslocallyonthemulti-clientwithWinCCmulti-usersystemswithWinCCV5.0+SP2andhigher.QUESTIO
本文标题:FAQS OF WINCC5
链接地址:https://www.777doc.com/doc-5332846 .html