关于PLC英文文献

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

DesignofPLCTimerSystemBasedonFPGALiKejian,LiuTong,CaiQizhongSchoolofElectronicInformationandControlEngGuangxiUniversityofTechnologyLiuzhouGuangxiChinalijian6262@I26.com;srk04I26@I26.com;cqiqzh@163.comAbstract-AimingatthedesignofthesmallPLCtimersystem,basedontheanalysisofoperationalcharacteristicsofPLCtimerandtheprocessofPLCusertimerprogramandthedatatransmissionrequirementsofPLCuserprogramexecutionmoduleandthetimer,amethodwhichappliestheFPGAParallelalgorithmtodesigningsmallPLCtimersystem,ispresented.Thetimersystemiscomposedofclockgeneratorunit,timingunit,timingcontrolunitandthechipselectcircuit.Whilethetimerrunsatthespeedoflmstimedpulse,theoperationoftimeristranslatedintotheoperationofRAMmemorycellwhichismadeupofFPGA.ThatmakesusercanoperateonRAMmemorycellinsteadofthetimer,anditjusttakeupafewexecutiontimeofPLCuserprogram.ThispaperintroducesthetheoryandstructureoftheFPGAtimersystem,thestatetransitiondiagramoftimercontrolmodule,thetimingdiagramofuserprogramexecutionmoduleoperatingontimer,finallytakeanexperimentandgivesanalysisoftheresults.Keywords-PLetimersystem;FPGA;dynamicin/ormationcode;paralle/operation;statetransition;1.INTRODUCTIONTimerisanimportantsoft-devicesofProgrammableLogicController(PLC)[1][2],whichisusedasthetimerelayofrelaycontrolsystem.Timeriswidelyusedinautomaticcontrolsystem,suchastimingsampling,timinginspection,timingscanning,etc.Theimplementationsoftimingarenon-programmablehardwaretiming,softwaretimingandprogrammablehardwaretiming.PLCprovideshundredstothousandsoftimers[3][4],andtheirtimingunittypicallyhasthreekindslike1ms,10msandlOOms.Ifthetimerwereimplementedallbyhardwaredesign,itwouldberelativelysimplebutwouldtakeupalotofhardwareresources.Therefore,ithasgreatpracticalsignificancetoimplementedthislargenumberoftimerfunctionsreasonably.ThispaperproposesatheoryusingtheFPGAParallelalgorithmtodesignasmallPLCtimersystem.Thistimersystemiscomposedofclockgeneratorunit,timingunit,timingcontrolunitandthechipselectcircuit.Eachtimingunitismadeupof3bitdynamicinformationdataand28bittimingparametersdata.Severalmemorycellswillconstituteonetimingunit.Whileoperatingatthespeedof1mstimingpulse,timercontrolmodulejudgesthestateofthe3bitdynamicinformationcodeoftimingunitandoperatesthetimingprocess.Atthesametime,thetimercontrolmodulewillscanthestatusofuserprogramexecutionmoduleoperatingtimer,thatmakesuserprogramexecutionmoduleoperatesonRAMmemorycellinsteadofthetimeritselfanditjusttakeupalittletheexecutivetimeofPLCuserprogram.ThispaperintroducesthetheoryandstructureoftheFPGAtimersystem,thestatetransitiondiagramoftimercontrolmodule,thetimingdiagramofuserprogramexecutionmoduleoperatingontimer,finallytakeanexperimentandgivesanalysisoftheresults.II.SYSTEMDESIGNA.TheoperationontimerbyPLCuserprogramexecutionmoduleThenumbersofdifferenttypesPLCtimeraredifferentandneitherthetypesoftimers.ThesmallPLCtimerhasthreekindsofworkingstate.Thefirststateiswhentheinputconditionsarenotsatisfied,thesoftcomponentoftimercoilisinpower-downstateandthecorrespondingcontactisdisconnected.Thesecondstateiswhentheinputconditionsaresatisfied,timerworksinatimingstateandthecorrespondingcontactisdisconnected.Thethirdstateiswhenthetimingiscompleted,theinputconditionsarestillsatisfiedandthecorrespondingcontactisclosed.ThePLCtimertimingvalueT=timingresolutionfactormultipletimingconstantK.Inprogrammingapplications,oncethetimerisselected,thetimingresolutionfactorissubsequentlyidentifiedasIms,10msorlOOms.Figure1isaladderprogramdiagramoftimerTO.TimerTOisonesoftcomponentwhichmadeupofcoilanditsstatusis1whenpowerisonandOwhenpowerisoff.Whentimingiscompleted,thesoftcomponentoftimerTOispoweron,itscontactclosesanditsstatusbecomes1,whentimingisnotcompleted,thesoftcomponentoftimerTOispoweroff,itscontactbreaksanditsstatusstays0.IfthetimingresolutionfactorofTOis1OOmsandKis100thenthetimevalueT=lOOmsx100=lOs.AnexampleofthetimingprocessisshowninFig.1.WhentheinputsignalXOisconnected,thecoiloftimerTOisdriven.ThetimercountsthelOOmspulses,atthesametime,thecountingvalueiscontinuallycomparedwiththepresetvalue.Whenthesetwovaluesareequal,thecontactofTOwillbeconnected.Thefunctionis,oncethetimingcoilsispoweron,itscontactswillbeclosedafterlOstime-delay.WhentheinputsignalXOisdisconnected,thecoilwillberesetandpoweroff,thecountervalueandtheoutputofcontactTOwillbothberesetimmediately.B.ThedatatransmissionofPLeuserprogramexecutionmoduleandtimerInordertotransferonetimerdatabetweenthePLCuserprogramexecutionmoduleandtimerinonetime,a32-bitdatalineisadopted,showninFigure2.theoperationsofUserprogramexecutionmoduleontimerareOUTTxxx,Kxxx,andthecorrespondingstateoftimer'sinputconditions.Txxxistheaddress,Kxxxisthetimingdata.ThentheinformationthatPLCuserprogramexecutionmoduleexportstothetimersystemmainlycontainthetimingdata,thetimingaddress,thestatusofsoftcoilandtheflagstatusoftimer(beingusedornot).TheinformationthatthetimersystemexportstoPLCuserprogramexecutionmodulemainlycontainthetimingaddress,thecompletingstatusoftheprocessoftiming,thecontrolinformationofmessagereadorwritten,etc.Timerunitisinde

1 / 13
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功