驱动器实现说明-v0-july_第1页
驱动器实现说明-v0-july_第2页
驱动器实现说明-v0-july_第3页
驱动器实现说明-v0-july_第4页
驱动器实现说明-v0-july_第5页
已阅读5页,还剩22页未读 继续免费阅读

下载本文档

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

文档简介

若驱动器工作在FeedbackOnly模式下,其状态图如

ShudowRunnShudowRunnInhibitstartOSAnystatewilltransfertoInitializingwithConnectionCloseEventAnystatewilltransfertoFaultedwithConnectionLostEventShutdownresetalsocanresetfaultinfaultedstates下面,关于每一状态驱动器具体执行的动作详述如 Self-Test(自检SelfTestWhenpowerisappliedtothecontroller,thecontrollertypicallygoesthroughaseriesofself-testdiagnostics.ThesetestsincludecheckingwhethertheCIPMotionaxisisassociatedwithanactualCIPMotiondeviceandthattheaxisisalsoproperlyincludedinacollectionofaxescalledaMotionGroup.AllaxesintheMotionGroupareprocessedsynchronouslybythecontroller’sMotionTask.IfanassociatedCIPMotiondeviceorMotionGroupisnotfoundfortheaxis,theaxisstateinthecontrollerreflectsthisconditionasNoDeviceandNotGrouped,respectively.Theaxiswillremaininthisstateuntiltheanomalyiscorrected.Similarly,whenpowerisappliedtothedevice,orthedeviceisreset,thedevicealsogoesthroughaseriesofself-testdiagnosticsandinternaldeviceparametersaresettotheirpower-updefaultvalues.Ifunsuccessful,theimpactedaxisinstancestransitionimmedia ytotheFaultedstatebydeclaringanInitializationFaultthatisclassifiedasUn-recoverableaccordingtotheterminologydefinedbytheIdentityObject.Clearingthisfaultcanonlybeplishedthroughapowercycleandismostlikelytheresultofadevicehardwareanomaly.OncetheseselftestshavebeencompletedsuccessfullybytheCIPMotioncontrollerandtheassociatedCIPMotiondevice,theaxisstatetransitionstotheInitializingstatewhereCIPMotionconnectionsarecreatedandthedevicesareconfiguredbythecontroller.Fromthispointon,theAxisStatevalueinthecontrollerisinfluencedbytheAxisStatevalueinthedeviceviatheCIPMotionIftheCIPMotiondevicesupportsstandaloneoperationunderlocalcontrolwithlocalconfigurationdata,thedeviceisfreetotransitionfromtheSelf-teststatetothePre-chargestateandontotheStoppedstate.IfthedevicereceivesasubsequentForwardOpenservicetoopenaCIPMotionconnection,thedrivedisablesallaxesandtransitionbacktotheInitializingstate,followingthestatesequenceoutlinedbelow.IfthedevicedoesnotsupportstandaloneoperationanddependsonremoteconfigurationdatatobedoveraCIPMotionconnection,thedevicetransitionstotheInitializingstateandwait(Standby)fortheForwardservicefromthecontrollertoopentheCIPMotion驱动器上电,开始自检(如下面几项,请补 ,硬件需要的自检内容ChecksumorCRCerrorforBootBlockofCIPMotiondevicedetectedaspartofSelf-ChecksumorCRCerrorforMainBlockofCIPMotiondevicedetectedaspartofSelf-ChecksumorCRCerrorforNVMemoryofCIPMotiondevicedetectedaspartofSelf-(InitializingInitializingDuringtheInitializingstate,thedevicewaitsfortheCIPMotionconnectionstothedevicetobeestablishedbythecontrollerviaaForwardOpenservice.OncetheForwardOpenserviceissuccessfullyprocessed,thedriveinitializesallattributestotheirfactorydefaultvalues,resetsallactivefaults,andresetsapplicableaxisstatusconditionsincludingtheshutdownbit,inpreparationfordriveattributeconfiguration.Onceconnectionsareestablished,thecontrollersendsSetservicestothedevicetosettheMotionDeviceAxisObjectconfigurationattributestovaluesstoredinthecontroller.Anyconfigurationerrorencounteredduringthisprocess,forexample,duetovalueoutofrangeorvaluenotapplicable,arehandledbythedeviceerringtheSetserviceresponse.Thecontrollerdoesnotcompletetheconfigurationprocess(ConfigurationComplete)untilallconfigurationattributeshavebeensuccessfullyacknowledged.Ifthedevicesupportssynchronousoperation,thecontrollerthensynchronizeswiththedevicebyusingtheGroupSyncservice.Oncethisentireprocesshasbeencompletedsuccessfully,thedeviceandallitsassociatedaxisinstancestransitiontothePre-chargestate.Ifananomalyisfoundduringthisinitializationprocess,forexample,aprocessthat thescopeofaSetserviceerror,thedevicegeneratesanInitializationFault.AnInitializationFaultisviewedasanunrecoverablefaultsoclearingthefaultcanbe plishedonlythroughapowercycleoradeviceresetservicetotheassociatedIdentityObject.IftheCIPMotionconnectionisintentionallyclosedforanyreasonduringoperationviaaForwardCloseservice,thedriveclearsallactivefaultsandalarmsandreturnstotheInitializingState.IftheCIPMotionconnectionislostforanyotherreasonduringoperation,thedrivegeneratesaNodeFaultandtransitionstotheMajorFaultedstate.Ineithercase,thedrivewillwaitfortheCIPMotionconnectionstothedevicetobere-establishedbythecontrollerviaaForwardOpenservice.TheInitializingStateisclassifiedasanIdentityObjectStandbystateand,therefore,thedrivewillinsurethatallassociatedpowerstructuresaredisabled.驱动器网络状态,与控制器(参见网络协议文档TCP(TCP连接RegisterSession(建立会话层连接ForwardOpen(建立应用层连接),初始化轴出厂参数(CIP等所有出厂默认参数ExcelP连接建立完成之后,控制器就要与驱动间传输参数。首先是驱动器开始往控28UDPP2222IEE802.1Q协议,S6PDP55(0x3,UDP发送的数seUpdeeriORP)时间会发送一次。有可能是驱动器往控制器器先发数据包一(二同时,驱动器进行一些数据初始化,若完成,其发送的NodeControl字段内容将DataValid1,0ConnectionHeader之后的所有内容。一般1.若在数据交互中,发生Nodefault,如果驱动器自身检测到有NodeFault,那么驱动器发往控制器的数据包此位置1,并根据Faults类型将后面数据段置相应内容(见网络(6)NodeFaultsandAlarms:00(1byte444NodeFaultCode4NodeAlarmCodeNodeFault或NodeAlarmNodeFaultCodeNodeAlarmCodeNodeFaultCodeNodeAlarmCodeRM3P221-224)控制器收到驱动器报告的NodeFaults后,会给驱动器发送FaultReset(1),尝试让驱动器清除NodeFault,如果驱动器已经清除NodeFault(NodeFaultcode0),那么控0NodeFaultFaultReset1NodeFault。保证数据完整有效后,会将DataValid字段设置为1,这时的数据包就是三类数据 从3类数据包到32段类数据包开始,驱动器响应控制器,将其轴配置参数更SynControl1,表示已(InitializationgComplete事件)Precharge。在(Intializing)初始化过有故障产生,则进Faults状态(见下表,RM3样本P243- 无故障产生,进Precharge状Pre-chargeInthePre-chargestate,thedeviceiswaitingfortheDCBustofullycharge(DCBusUpstatusbitisclear).OncetheDCBusreachesanoperationalvoltagelevel(DCBusUpstatusbitisset),theaxistransitionstotheStoppedstate.Thedrive’spowerstructureisalwaysdisabledinthisstate(PowerStructureEnabledstatusbitclear).AnyattemptforthecontrollertoenablethedriveviatheAxisControlmechanismwhileitisinthePre-chargestateisreportedbacktothecontrollerasanerrorintheResponseStatusandtheaxisremainsinthePre-chargestate.ThePre-chargestateisclassifiedasanIdentityObjectStandbystateand,therefore,requiresthattheassociateddrivepowerstructureisdisabled.驱动器打开继电器开始进行预充当预充到电压为额定电压的(xx%?? 确认预充继电器动作,并将驱动器整流桥接通,使DBBUS达到额定值。此时需要将DCBUSUP为置1,将PowerstructureEnabledStatus为清零。若过程有故障产生,其进入Fault状无故障产生,其将进入Stop状收到Shutdown指令,其将进入Shutdown状Stop状StoppedIntheStoppedstate,thedevice’sinverterpowerstructurewilleitherbedisabledandfreeoftorque(PowerStructureEnabledstatusbitclear)orheldinastaticconditionviaanactivecontrolloop(PowerStructureEnabledstatusbitset).NomotioncanbeinitiatedbythedeviceintheStoppedStatenorcanthedevicerespondtoaplannergeneratedcommandreference(TrackingCommandstatusbitclear).Ingeneral,theaxiswillbeatrest,butifanexternalforceortorqueisappliedtotheload,abrakemaybeneededtomaintaintherestcondition.IntheStoppedstate,mainpowerisappliedtothedeviceandtheDCBusisatanoperationalvoltagelevel.IfthereareanyStartInhibitconditionsdetectedwhileinthisstate,theaxistransitionstotheStartInhibitedstate.IfanEnablerequestoroneoftheRunTestservicerequestsisappliedtoanaxisintheStoppedstate,themotionaxistransitionstotheStartingstate.在停止过程中,有故障产生(详细故障列表参见P225-242),则进入Majorfault状ShutDownShutDownStartInhibit条件(RM3P246),则进入StartInhibitEnableStartingTeststartingStarting状StartingWhenanEnablerequestisgiventoanaxisintheStopped,orStopstatewhenperformingaFlyingStart,theaxisimmediaytransitionstotheStartingstate.Inthisstate,thedevicechecksvariousconditionsbeforetransitioningtotheRunningstate.TheseconditionscanincludeBrakeReleasedelaytimeandInductionMotorfluxlevel.ThedevicecontrolandpowerstructuresareactivatedduringtheStartingstate(PowerStructureEnabledstatusbitset),butthecommandreferenceissettoalocalstaticvalueandwillnottrackthecommandreferencederivedfromtheMotionPlanner(TrackingCommandstatusbitclear).Ifallthestartingconditionsaremet,theaxisstatetransitionstoeithertheRunningstateortheTestingstate.当驱动器进入Starting状态后,其开始检查下一步的条件是否满足,包括抱闸时可以工作,其将PowerStructureEnabledstatusbit1。此时开始接受控制器命令,但有故障产生(详细故障列表参见P225-242),则进入Aborting状ShutDownShutDown收到Disable指令,则进入Stop状态Starting过程结束(Startcomplete),IP(AxisStatus位:InProcess)=0,则进入running状态,若IP=1,则进入Testing状态Running状RunningTheRunningstateiswheretheworkgetsdone.Inthisstate,thedevice’spowerstructureisactive(PowerStructureEnabledstatusbitset)andtheselectedControlModeisenabledandactivelytrackingcommanddatafromthecontrollerbasedordevicebasedMotionPlanneroutputtoaffectaxismotion(TrackingCommandstatusbitset).ThemotionaxisremainsintheRunningstateuntileitherafaultoccursoritisexplicitlycommandedtostopviaaAxisControlInthecaseofaFeedbackOnlyControlMode,theRunningstatesimplyindicatesthatthefeedbackdeviceisfullyoperational(PowerStructureEnabledandtheTrackingCommandstatusbitsclear).ThemotionaxisremainsintheRunningstateuntileitherafaultoccursoritisexplicitlycommandedtoShutdownviaanAxisControlrequest.驱动器进入运行状态,其会在CUP接到控制器传来的位置指令信息,根据配置的不用的模式进行输出,驱动电机旋转。附录1会详细介绍驱动器实现算法ThesearetheControlNNoControlModes(单独介绍P-PositionControlV-VelocityControlTTorqueControlMode(暂时不会用到FVelocityControlMode:FrequencyControlMethod(暂时不会用到有故障产生(详细故障列表参见P225-242),则进入Aborting状ShutDownShutDown收到Disable指令,则进入Stop状态Testing状TestingWhenanyoneoftheRunTestrequestservicesissenttothemotionaxiswhileintheStoppedstate,forexample,servicesthatrequireanactivepowerstructuretoexecute,theaxisimmediaytransitionstotheStartingState(PowerStructureEnabledstatusbitset).ThenoncetheStartingconditionsaremet,theaxistransitionstotheTestingstate.ThisTestingstateisliketheRunningstateinthatthedevice’spowerstructureisactive,butintheTestingstateoneofthedevice’sbuilt-intestalgorithmsiscontrollingthemotor,notcommanddatafromaMotionPlanner(TrackingCommandstatusbitclear).IntheTestingstate,thedeviceexcitesthemotorinvariouswayswhileperformingmeasurementstodeterminecharacteristicsofthemotorandload.ThemotionaxisremainsinthisstateforthedurationoftherequestedtestprocedureandthenreturnstotheStoppedstate.ThemotionaxiscsoexittheTestingstatebyeitherafaultoranexplicitAxisControlrequestTest状态和Run状态类似,唯一不同是其是由驱动器的算法命令其运行一定的测试,如Autotune(InertialtestHookup等。针对每Test指令的具体算法见协议样本详Test过程中有故障产生(详细故障列表参见P225-242),则进入Aborting状ShutDownShutDown收到Disable指令,则进入 状态StartInhibitedStartInhibitedTheStartInhibitedstateisthesameastheStoppedstatewiththeexceptionthattheaxishasoneormore‘startinhibit’conditionsthatpreventitfromsuccessfullytransitioningtotheStartingstate.TheseconditionscanbefoundintheStartInhibitsattribute.Oncecorrected,theaxisstateautomaticallytransitionsbacktotheStoppedstate.ForFeedbackOnlyControlMode,anaxisintheStartInhibitedstateispreventedfromtransitioningtotheRunningstatebyoneormorespecificconditions,suchaswhentheassociatedfeedbackdeviceisnotfullyconfiguredforoperation.Again,oncecorrected,theaxisstateautomaticallytransitionstotheRunningstate.TheStartInhibitedStateisclassifiedasanIdentityObjectStandbystateand,therefore,requiresthattheassociateddrivepowerstructureisdisabled.StartInhibitedStopped状态相近,当下列条件满足时(RM3P245-246),驱动器会从Stopped状态或者Fault状态(需要收到FaultReset命令),进入StartInibited状StartInhibit有故障产生(详细故障列表参见P225-242),则进入Fault状ShutDownShutDownFeedbackonlyStoppedStoppedStopWhenaDisablerequestisissuedtotheMotionDeviceAxisObjectintheStarting,Running,orTestingstates,theaxisimmedia ytransitionstotheStopstate.Inthisstate,theaxisisintheprocessofstopandisnolongertrackingcommanddatafromtheMotionPlanner(TrackingCommandstatusbitThereareanumberofdifferentStopActionssupportedbytheMotionDeviceAxisObject.MostoftheseStopActionsactivelydeceleratetheaxistoastop.Thepowerstructuremayremainactive(PowerStructureEnabledstatusbitset)aslongastheStopActionproceduretakestocomplete.Oncetheselected Actionprocedurehascompleted,theaxistotheStoppedstate.WhentheStopActionisDisableandCoast,however,thepowerstructureisimmediaydisabled(PowerStructureEnabledstatusbitclear)andtheaxiscoaststoastopwhileintheStopstate.Inanycase,thedrivewaitsuntiltheaxishasreachedzerospeed,oratimeoutoccurs,beforetransitioningtotheStoppedstate.Insomecases,suchaswhentheaxisisstationary,thistransitioncanbe mendedcriteriaforzerospeedisbasedonvelocityfeedback,orinthecaseofFrequencyControldrive,thisimpliesVelocityCommandbeinglessthan1%ofmotorratedspeed.Ultima ythiscriteriaislefttothevendors在Stop状态中,驱动器不再控制器指令位置,而是根据驱动器的停止配(详见RM3P205-209),进行控制停车在Stop过程中有故障产生(详细故障列表参见P225-242),则进入Aborting状ShutDownShutDownStoppedAbortingAbortingWhenaMajorFaultoccursinthemotiondevicewhiletheaxisisineithertheStarting,Running,Testing,orStopstate,themotionaxisimmedia transitionstotheAbortingstate.Inthisstate,theaxisisintheprocessofstopandisnolongertrackingcommanddatafromtheMotionPlanner(TrackingCommandstatusbitclear).TheAbortingstateexecutestheappropriatestopactionasspecifiedbythedevicevendor.Whenactivelystop theaxis,intheAbortingstatethepowerstructureremainsactive(PowerStructureEnabledstatusbitset)aslongasthestopactiontakestocomplete.Insomecases,thepowerstructuremustbe ydisabledsotheaxismaycoasttoastopwhileintheAbortingstate.Inanycase,thedrivewaitsuntiltheaxishasreachedzerospeed,oratimeoutoccurs,beforetransitioningtotheMajorFaultedstate.Oncethestopprocedureiscompleteandtheaxishasreachedzerospeed,theaxistransitionstotheFaultedstate.Insomecases,suchaswhentheaxisisstationary,thistransitioncanbeimmediate.mendedcriteriaforzerospeedisbasedonvelocityfeedback,orinthecaseofFrequencyControldrive,thisimpliesVelocityCommandbeinglessthan1%ofmotorratedspeed.Ultima ythiscriteriaislefttothevendorsdiscretion.Whenfaultconditionsaredetectedinthecontrollerthatarenotvisibletothemotiondevice,orwhenthemotiondevicereportsaMinorFaultcondition,thecontrollerisresponsibleforbringingtheaxistoastop,eitherdirectlyviaanAxisControlstatechangerequestorMotionPlannerstop,orindirectlyviaafaulthandlerintheuserprogram.IftheAxisStatereportedbythemotiondeviceisStop,thenthecontrollersetstheCIPAxisStatetoAbortingbasedonthepresenceofthefaultcondition.WhenanAbortRequestisissuedtotheMotionDeviceAxisObject,aControllerInitiatedExceptionisgenerated.IftheassociatedAxisExceptionActionissettogenerateaMajorFault,thedrivestopstheaxisaccordingtotheconfiguredStopActionbeforetransitioningtotheFaultedstate.当驱动器在驱动电机运转时,包括Testing,running,starting,stop,若发生故障,其将先进入Aborting状态,按照设定Stop方式(configuredStopAction)停机。FaultedTheMotionDeviceAxisObjectdefinesaMajorFaultedstatethatisidenticaltotheStoppedstate(or,ifaShutdownfaultactionwasinitiated,theShutdownstate)withtheexceptionthatthereareoneormoreFaultsactive.Inotherwords,aMajorFaultedaxisisaStopped(orShutdown)axiswithaMajorFaultconditionpresent.TheMotionDeviceAxisObjectalsodefinesaMinorFaultasafaultthatallowsdeviceoperationtocontinueanddoesnotaffecttheAxisStateinthemotiondevice.ThereisnosuchdistinctionbetweenMajorFaultandMinorFaultinthecontroller;bothMajorFaultsandMinorFaultsreportedbythedriveresultintheaxistransitioningtotheFaultedstateinthecontroller.Thus,inthecontrolleritisnotgenerallytruethataFaultedaxisisaStopped(orShutdown)axiswithaFaultconditionpresent.WhenthemotiondevicereportsaMinorFaultcondition,orwhenfaultconditionsaredetectedinthecontrollerthatarenotvisibletothemotiondevice,thecontrollerisresponsibleforbringingtheaxistoastop,eitherdirectlyviaanAxisControlstatechangerequestorMotionPlannerstop,orindirectlyviaafaulthandlerintheuserprogram.Untilthisisdone,theAxisStateinthemotiondevicemaybesomethingotherthantheMajorFaultedstate,perhapsevenintheRunningstate.Thisisreasonablegiventhatthemotiondeviceisonlyonecomponentinamuchbiggermotioncontrolsystem.TheCIPMotioncontrollerisresponsibleforrollingupalltheconditionsofthesystemintotheAxisStatethatispresentedtoyou.Becausefaultsarelatchedconditions,aFaultResetisrequiredtoclearthefaultsand,assumingtheoriginalfaultconditionhasbeenremoved,theaxistransitionstotheAxisStateofmotiondevice.ThistableprovidessourcedescriptionsofFaultStoppedRetset才能进入ShutdownWhenaShutdownrequestisissuedtothedeviceoraShutdownfaultactionisexecutedbythedevice,theedaxistransitionstotheShutdownstate.InthecaseofaShutdownrequest,theaxisimmedia ytransitionsfromwhateverstateitiscurrentlyintotheShutdownstate.TheShutdownstatehasthesamebasiccharacteristicsoftheStoppedstateexceptthatitcanbeconfiguredviatheShutdownActionattributetodroptheDCBuspowertothedevice’spowerThisisgenerallydonebyopeninganACContactorEnableoutputprovidedbythedrivethatcontrolspowertotheconverter.RegardlessofwhetherornotDCBuspowerisdisconnected,thisstaterequiresanexplicitShutdownResetrequestfromthecontrollertotransitiontothePre-chargestate.IfthedeviceisconfiguredtokeeptheDCBuspoweractivewhileintheShutdownstate,thenthemotionaxistransitionsthroughthePre-chargestatetotheStoppedstate.TheShutdownstateoffersanextralevelofsafetyagainstunexpectedmotion.InthecasewhereaShutdownfaultactionisinitiatedbythedriveinresponsetoanexceptionconditionthatisconfiguredtobeaMajorFault,thedeviceexecutestheShutdownaction,buttheaxisgoestotheFaultedstate,nottheShutdownstate.Similarly,whentheaxisisintheShutdownstateandamajorfaultconditionoccurs,theaxistransitionstotheFaultedstate.Inotherwords,themajorfaultconditionhasprecedenceovertheshutdownconditionandtheshutdownconditioncanbeconsideredasub-state.Ineitherofthesecases,aFaultResetrequestfromthecontrollerclearsthefaultand,assumingtheoriginalfaultconditionhasbeenremoved,theaxisthentransitionstotheShutdownstate.AShutdownResetrequestfromthecontroller,however,bothclearsthefaultandperformsashutdownresetso,assumingtheoriginalfaultconditionhasbeenremoved,theaxistransitionstothePre-chargestateasdescribedabove.InadditiontotheShutdownactionfunctionality,theShutdownstatecsobeusedbythecontrollertodisableanyslavegearingorcammingMotionPlannerfunctionsthatreferencethisdeviceaxisasamasteraxis.Forthisreason,theShutdownstateissupportedinthecaseofaFeedbackOnlyControlModewheretheaxisinstanceissimplyassociatedwithafeedbackdevice.TheShutdownStateisclassifiedasanIdentityObjectStandbystateand,therefore,requiresthattheassociateddrivepowerstructureisdisabled.Shutdown状态需要ShutdownReset才能重新进入pre-charge状态NoDeviceIftheCIPMotionaxisinstanceinthecontrolleriscreated,butnotcurre

温馨提示

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

最新文档

评论

0/150

提交评论