会员注册 | 登录 | 微信快捷登录 QQ登录 微博登录 | 帮助中心 人人文库renrendoc.com美如初恋!
站内搜索 百度文库

热门搜索: 直缝焊接机 矿井提升机 循环球式转向器图纸 机器人手爪发展史 管道机器人dwg 动平衡试验台设计

外文翻译--基于物理实验SimaticPLC运行的实时显示测量 英文版.pdf外文翻译--基于物理实验SimaticPLC运行的实时显示测量 英文版.pdf -- 5 元

宽屏显示 收藏 分享

资源预览需要最新版本的Flash Player支持。
您尚未安装或版本过低,建议您

IEEETRANSACTIONSONNUCLEARSCIENCE,VOL.51,NO.3,JUNE2004489MeasurementofRealTimeAspectsofSimatic®PLCOperationintheContextofPhysicsExperimentsHaraldKleines,JanosSarkadi,FrankSuxdorf,andKlausZwollAbstractToday,mostslowcontrolsystemsforphysicsexperimentsatForschungszentrumJülichareimplementedwithProgrammableLogicControllerPLCtechnologyandfieldbussystems.Inmanycases,evendeterministicresponseisrequiredfromthePLCs.ThisraisesthequestionabouttherealtimeperformancethatcanbeexpectedfromaPLC.ResponsetimemeasurementsofSimatic®PLCsmanufacturedbytheworldmarketleaderSiemensarepresented.InfluenceofprogramstructureandhardwareconfigurationonperformanceanddeterministicbehaviorofaPLCisdiscussed.I.PROGRAMMABLELOGICCONTROLLERSPLCSINEXPERIMENTCONTROLSYSTEMSTODAY,industrialautomationtechnologyiswellestablishedininfrastructuresystemsforphysicsexperiments,e.g.,inwaterorgassupplysystems.ThisleadstotheheavyuseofProgrammableLogicControllersPLCs,whichtypicallyaretheintelligentautomationstationsformingthecoreofindustrialsystems1.Mainreasonsincludelowpricesinducedbymassmarketrobustnesslongtermavailabilityandsupportfrommanufacturerprofessionalityconnectors,conformancetostandards,Beyondthescopeofpureinfrastructuresystems,PLCsareincreasinglybecomingcentralcomponentsofexperimentcontrolsystems,replacingVMEorPCbasedrealtimesystems2,3.ThisiscausedbythefollowingfeaturesofmodernPLCfamilies.HighdegreeofscalabilityModernPLCfamilieshaveawidespectrumofCPUtypes,thatisscalablenotonlywithregardtoperformance,butalsowithregardtofunctionalityandformfactor.Foroutdoororfaulttolerantapplicationsspecialversionsareavailable.ExtensibilityThemodulardesignofPLCsenablestheextensionwithawiderangeofdigitalandanalogI/Omodules.Additionally,integratedtechnologymodulesareavailablefordifferentapplicationareas,e.g.,steppermotorcontrollers,servomotorcontrollers,orPIDcontrollers.ExtensivecommunicationcapabilitiesModernPLCshaveatleastoneintegratedcommunicationportandcanbeextendedbyavarietyofcommunicationcontrollersManuscriptreceivedMay16,2003revisedOctober1,2003.TheauthorsarewithZentrallaborfürElektronik,ForschungszentrumJülich,D52425Jülich,Germanyemailh.kleinesfzjuelich.de.DigitalObjectIdentifier10.1109/TNS.2004.828504fordifferentfieldandprocessbussystems,thusenablingconnectionofotherindustrialdevices.AkeyissueistheextensionofacentralPLCsystemwithdecentralperipheryviaspecialfieldbussese.g.,PROFIBUSDP,thatallowsthetransparentconnectionofunintelligentI/Omodules.ThusaPLCprogramcanaccessthisdecentralperipheryinthesamewayascentralPLCperiphery.PowerfuldevelopmentenvironmentModernPLCfamiliescomewithahomogeneouscrossdevelopmentenvironment,thatsupportsallthemajorIEC1131programminglanguages4.Typically,representationsininstructionlistIL,functionblockdiagramFBDorladderdiagramLDcanbeswitcheddynamically.Thedevelopmenttoolsallowsemigraphicalhardwareconfiguration,offerstrongdebuggingmechanismsandallowincrementaldevelopmentbytheexchangeofblocksduringruntime.Today,inFZJuelich,allnewandadvancedexperimentcontrolsystemsareheavilyPLCbased3,asillustratedbythearchitectureofaneutronspectrometercontrolsystemshowninFig.1.BecausetheworldmarketleaderSiemensdominatestheEuropeanmarket,Simatic®S7PLCsareusedinFZJuelich,almostexclusively.ThemidrangeseriesS7300®ismostpopular.ThehighendseriesS7400®istargetedatapplicationswithextremeperformancerequirementsandsupportsalsomultiprocessorconfigurations.TheminiPLCseriesS7200®israrelyused,becauseitgotthenameS7bypuremarketingreasonsanditsprogrammingenvironmentisincompatibletotheotherS7devices.InsteadoftheS7200®,theIM151/CPUservesasaminiPLC.TheIM151/CPUisanintelligentcontrollerforthedecentralperipheryfamilyET200S®.AlsothedecentralperipherysystemsET200L®andET200M®areusedcommonlyinJülich.TheSoftPLCWinAC®hasonlybeentestedintheLab,sofar.TheresponsibleplanningofPLCbasedcontrolsystemsrequiresknowledgeontheirrealtimefeatures.WhatisthemagnitudeofPLCresponsetime,dependingonPLCtypeCandeadlinesbeguaranteedWhatprogrammingruleshavetobefollowedThepaperaddressestheseissuesbymeasurementsatdifferentPLCtypesoftheSimatic®S7family.ThestandardIEC1131definesacommonframeworkforPLCfunctionalityandprogramminglanguages4,whichallthemajorPLCmanufacturersconformto.ThusgeneralresultscanbegeneralizedalsototheirPLCfamilies.00189499/0420.00©2004IEEE490IEEETRANSACTIONSONNUCLEARSCIENCE,VOL.51,NO.3,JUNE2004Fig.1.ControlsystemarchitectureoftheneutronspectrometerKWS3.Fig.2.Blockcallinghierarchy.II.SIMATIC®S7PROGRAMMINGMODELClassicalrealtimeapplicationsinresearchareimplementedwithrealtimekernelslikeOS9orVxWorks,thatfollowanasynchronousparallelprogrammingapproach,asdefinedinPOSIX5,forexample.Thesoftwaredeveloperstructureshisprogramintasksaccordingtothelogicalstructureoftheproblemtosolve.Thesetasksareexecutedquasiparallelbytheoperatingsystem,andtheexecutionisbasicallyeventtriggered.Byassigningprioritiestothetaskstheprogrammergiveshintstotheoperatingsystemaboutthedesiredexecutionorder.Thustheprogrammerdoesnothavetoplantheschedulingdetails.Ontheotherhanditisdifficulttounderstandtheexecutionorderandtodecide,ifaspecifictaskcanmeetitsdeadlines.TheprogrammingmechanismsinPLCsystemsaretotallydifferent,becausetheyfollowtheolderapproachofsynchronousprogramming6.Here,theexecutionoftasksiscompletelytimetriggered,andtheprogrammerhastoorganizehisprogramintotasksaccordingtothetime,whenataskhastorun.Sohemustplantheexecutionorderhimself,whichismorecomplicatedbutalsogivesmorecontrol.InStep7,thedevelopmentenvironmentoftheS7,allcodeexistsinblocks,asdefinedinIEC1131.TasksarerepresentedbyOrganizationBlocksOBs.OBsaretheschedulableitems,thatarecalledbytheoperatingsystemofthePLCatcertainevents,e.g.,whenatimerexpiresoranerroroccurs.Thus,theOBsaretheinterfaceoftheoperatingsystemtotheuserprogram.AsindicatedinFig.2,OBscancallFunctionsFCs,whichareblocksthatcorrespondtofunctionsinaprocedurallanguage.FCscancallotherFCsorsystemfunctionsSFCs,whichcorrespondtooperatingsystemcallsinaPOSIXenvironment.FunctionBlocksFBs/SystemFunctionBlocksSFCsareFCs/SFCswithanassigneddatablockforstaticfunctiondata.AnormalPLCprogramiscontainedinOB1,whichiscalledcyclicallybytheoperatingsystem,asindicatedinFig.3.BeforeOB1iscalledtheoperatingsystemtransfersdatafromtheinputmodulestoamemoryareacalledprocessimagetable.AfterOB1hasbeencalled,datafromtheprocessimagetableiscopiedtotheoutputmodules.TheindirectaccesstoI/Omodulesviatheprocessimagetablereducesaccesstimeandincreasesconsistency.KLEINESetal.SIMATIC®PLCOPERATION491Fig.3.ExecutionofmainprogramscancycleOB1.TheexecutiontimeofOB1ismonitored,andifapreconfiguredmaximumisexceeded,thetimeerrorOB80iscalled.OnS7400®andWinAC®alsoaminimumforthecycletimeofOB1canbeconfigured.IftheexecutiontimeforOB1islessthen,thebackgroundOB90iscalled,whichhasthelowestpriority.ThepriorityofallotherOBsincreaseswithitsnumber.OnlyonS7400®andWinAC®thisdefaultprioritycanbechanged.EachOBcanbeinterruptedbyOBswithahigherpriority.TableIliststhepossibleOBs.AvailabilityofOBsdependsontheCPUtype.IfmoreOBsofacertaintypearerequired,amoreexpensiveCPUhastobebought.TimeofdayinterruptOBsarestartedatapreconfiguredtime,e.g.,endofashift,whereastimedelaysinterruptOBsarestartedattheexpirationofaoneshottimer.CyclicinterruptOBsarestartedwithafixedfrequency.Thetimeintervalandthephaseoffsetcanbeconfiguredwithagranularityof1ms.HardwareinterruptsOBsarestartedbyaaneventataninputorfunctionmodule,e.g.,detectionoftherisingedgeofadigitalsignal.ThisfunctionalityisonlyavailablewithsocalledHighFeatureinputmodules.SynchronouserrorOBsarestartedbyerrorsintheuserprogram,whereasasynchronouserrorinterruptOBsarestartedbyPLCfaults,likepowerfailure,modulefailureortimeerrors.Atimeerroroccurs,whenanOBcannotmeetitsscheduledstarttime,andisanuniquefeatureofPLCs.III.REALTIMEPERFORMANCEMEASUREMENTSA.PerformanceEvaluationGoalsAkeyissueofrealtimeperformanceisthereactiontimetoexternalevents.BecausePLCsystemsbasicallyconformtoasynchronousprogrammingmodel,thisisdirectlydeterminedbythecycletime,whichhastobeanalyzedforthefreerunningcycleOB1andcyclicinterruptse.g.,OB35.TodeterminetheapplicationareaofPLCclasses,theminimumofhastobemeasuredfordifferentPLCtypes.TheactualvalueofinaspecificapplicationdependsontheamountofcodeinthecyclicOB,ofcourse.TABLEIOBTYPESOFASIMATIC®S7TABLEIIPLCSUNDERTESTDeterministicbehaviorofaPLCisdeterminedbythejitterof,whichisofprimaryinterestforcyclicinterrupts.WithHighFeatureinputmodules,alsohardwareinterruptsarepossible.Heretheminimumresponsetime,whichisdefinedasthetimetoactivateOB40,anditsjitterhastobemeasured.Inordertogetacompletepicture,themeasurementshavetobeconductedforaminiPLC,amidrangePLCandahighendPLC.TableIIshowstheCPUs,thathavebeenselectedforthemeasurementsinthispaper.Thetimeforafloatingpointadditionhasbeenmeasuredbyrepeatingittimes,inordertoconveyanimpressionoftheirrelativeperformance,whichdiffersconsiderably.BecauseofthedistributednatureofPLCbasedsystems,theimpactofPROFIBUScommunicationtoresponsetimeisanim492IEEETRANSACTIONSONNUCLEARSCIENCE,VOL.51,NO.3,JUNE2004Fig.4.Experimentsetup.Fig.5.HistogramofOB1cycletimeatIM151/CPU.portantissue.Thustheadditionaldelaysintroducedbycommunicationaswellastheadditionaljitterhavetobeanalyzed.Butpresentationofcommunicationrelatedmeasurementswouldgobeyondthescopeofthispaperandwillbecoveredbyafuturepublication.Theanalysisoftheresponsetimeasafunctionofthesystemload,e.g.,inducedbyharddiskactivity,communicationorbackgroundcomputing,isakeyissueonconventionalPOSIXlikerealtimesystems.ThisisnotanissueonPLCsystemsbecauseoftheirsynchronouscyclicoperation.EventhecommunicationonfieldbusseslikePROFIBUSDPV0orASInterfaceiscyclically,thusinducingaconstantload.Forasynchronoustypeofcommunication,e.g.,TCP/IP,intelligentcommunicationcontrollersareused,thusoffloadingtheCPU.AnexceptionfromthisruleistheMPIMultipointInterface,aproprietaryfieldbus,thatisintegratedineachCPU.ButinJülichMPIisonlyusedforprogramming.B.MeasurementScenarioAccordingtoFig.4theinputsofthePLCsundertestlistedinTableIIareconnectedtoapulsegenerator.OB40isactivatedbyarisingedgeoftheinputsignalandtogglesaoutputsignal.TheoutputofthepulsegeneratorandoutputsofthePLCundertestareconnectedtotheNationalInstrumentsanaloginputmoduleNI6062E.ThesignalsaresampledwithafreFig.6.HistogramofOB1cycletimeatCPU314C2DP.quencyof100kHz.Matlabcodehasbeendevelopedthatdetectsrisingedgesinthesampledsignals,computestherequiredtimedifferencesandformsanhistogramofthemeasureddata.ThusthedistributionoftheresponsetimeofthePLCcanbemeasured.Thedistributionofthecycletimeismeasuredinananalogousway.Alternatively,thesignalsareconnectedtotheTDCmoduleSIS3400fromStruckInnovativeSystems.Thusthecorrectnessandthesufficientprecisionofthemeasureddatacouldbeverified.C.MeasurementsoftheMainProgramScanCycleOB1Figs.5–7showthedistributionofforOB1measuredonthefirstthreePLCinTableI.TherewasnootheractivityonthesystemthanOB1,whichonlycontainedcodefortogglingadigitaloutputdirectlywithoutusingtheprocessimagetable.TheminimumforanditsjitterarecausedbyoperatingsystemactivitiesandgetbetterwithincreasingperformanceofthePLCundertest.AlthoughmevalueandvarianceoffortheS7300®aremuchbetterthanforIM151/CPUtheworstcaseiscomparable.CPU4122isalmostdetermistic,basicallytakingtwodiscretevalues.ThisisnotnecessarilycausedbyCPUbehavior,becauseatthesefrequenciesthebehaviorofthedigitaloutputsgetssignificant,too.ThiscausedartifactsontheCPU4141wherewemeasuredaminimumcycletimeof0.2ms.Butinthissituationthetimebetweentwostatechanges
编号:201311171128515897    大小:420.21KB    格式:PDF    上传时间:2013-11-17
  【编辑】
5
关 键 词:
教育专区 外文翻译 精品文档 外文翻译
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
0条评论

还可以输入200字符

暂无评论,赶快抢占沙发吧。

当前资源信息

4.0
 
(2人评价)
浏览:9次
英文资料库上传于2013-11-17

官方联系方式

客服手机:17625900360   
2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   

相关资源

相关资源

相关搜索

教育专区   外文翻译   精品文档   外文翻译  
关于我们 - 网站声明 - 网站地图 - 友情链接 - 网站客服客服 - 联系我们
copyright@ 2015-2017 人人文库网网站版权所有
苏ICP备12009002号-5