版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
本科毕业设计(论文)中英文对照翻译院(系部)电气工程与自动化学院专业名称电气工程及其自动化年级班级电气05-5班学生姓名辛玉龙指导老师封海潮2009年6月10日
可编程序控制器可编程序控制器或可编程逻辑控制器(PLC),是一个具有编程能力且完成一定控制功能的设备。PLC是1968年被美国通用汽车公司的一组工程师设想出来。可编程控制器起初被设计用于基于程序的灵敏性控制和执行逻辑指令。人们意识到它的主要优点是被用于梯形图编程语言,简化了维修并且减少了其余部分的清查。而且,PLC提供了更短的安装时间并通过程序实现比硬接线更加快捷的传输。当前,世界上已有50多个不同的可编程控制器的生产厂家,因为有如此多的PLC在使用,所以涵盖市场上所有类型的设备是不可能的,幸运的是,根本就没有必要去理解每一个可用的PLC。所有的机器都有许多的相同之处。1可编程控制器的组成所有的可编程控制器都有输入输出接口、存储器编程方法、中央处理器、电源。输入接口为机器提供一个连接,或使过程被控制。输入接口是模块且是可扩展的,当控制任务增加时,可以通过扩展模块来接收更多的输入。输入数量的多少是由CPU和存储容量来限制的。输入接口的功能与输出接口相反,它将信号从CPU输出,且将其转换成被外部设备螺线圈、电机启动器等设备来产生控制动作。输出接口本质上也是一个模块,所以当需要时,可以加入输出扩展功能。PLC的编程语言有多种形式,大多数PLC语言都是基本梯形逻辑,它比继电器逻辑更加先进。流程图程序语言也被用于一些PLC中,流程图是图形语言,它显示出一个过程中的变量相互之间的关系。编程设备或程序终端允许用户用程序的形式来键入指令,并存入存储器。程序是由用户编写且存储于PLC的存储器当中,是在特定处理条件下用来产生正确的控制信号的所需动作的表现形式。这样一个程序包括允许处理数据进入控制器的存储器中、处理阶段和将命令转换为外部动作阶段。电源,像中央处理单元一样,电源必须能高质、清洁、可靠供电。PLC系统的制造厂家采用专门的设计和生产方法对系统进行供电。虽然其它的系统将电源作为CPU的内部组成部分,便有些设计却允许对CPU进行外部供电。不管物理结构有何不同,电源的基本功能是相同的:那就是,提供一个持续的低压的直流电给电力系统,然后保证系统线电压的波动在正常范围内。2扫描功能为了让PLC执行存储器中的程序,它必须能够识别在变化莫测的存储地址中都发了生了什么变化读取所在输入输出状态、检查应用程序指令和执行程序都涉及到了PLC的扫描功能。CPU不断地与系统存储相互作用,去解释执行控制机器或过程的应用程序CPU读取程序所需时间的多少都存储在随机存储器的。执行控制功能更新所有输出就称为扫描时间。扫描时间对于一个PLC来说是相当重要的因素,例如,如果一个输入信号在一次扫描仪中状态变化了2次,则PLC将不能识别该信号,这种病况就发生在输入信号变化快于扫描时间。如果扫描一个程序要用7ms的时间,一个输入触点每3ms就开关一次,则CPU就不知触点的状态在改变。在多数PLC的扫描时间都是以纠错、编译等不用的操作而调整。每一个指令进入到程序中都需要一定的时间因为指令要被执行。所需时间的多少取决于指令。例如,CPU读取输出线圈的时间要比读取定时器累加器的时间要少。程序员的总长度本身也对扫描时间有影响。扫描一个完整程序的时间的长在1ms到255ms扫描时间。当程序终端与CPU相连,扫描时间也就增加了,因为字将花更长的时间将I/O状态传送到显示屏上。3PLC存储器“存储器使用”涉及到存储每一类型指令所需的存储地址的个数。每一个PLC生产厂家都用略微不同的方法去组织存储于PLC存储器中的信息。尽管每一个PLC在存储结构上都有相似性。例如RAM和ROM片。被存储信息的位地址和CPU读取这一数据的方法都非常地多变。典型的PLC完整的处理存储被分为三个主要部分:数据表、用户程序和信息存储区。这些区存储着关于输入输出设备状态的信息。同时也存储着程序指令和消息,图2示出了典型PLC的标准存储布局。这三个区中的每一个都有能力处理大量的信息。存储器本身的划分是依据多二进制数或位,它有处理能力。在任何I/O系统中都可行的是对输入输出指令编址的方法。可编程控制器的I/O被分为两类:一类为固定或不可改变的编址方案;别一类是灵活,可改变的。地址是在CPU中的控制程序到外部的传感器或传动装置的通路。PLC的设计决定于系统是否具有变址能力,或是严格地按照其编址操作。I/O系统基本上包括2个部分:I/O支架、I/O模块,对大多数PLC来说一个模块被插入的地址被定为每个连接设备的地址,一个模块通常包括8个输入或输出,尽管16个输入输出也可以利用。一个I/O插槽或支架,通常可支持8或16个模块。4I/O系统I/O系统提供硬接线元件与CPU的接口。输入接口允许在关的状态信息传送到CPU,同时也允许CPU通过输出接口与操作信号通信,在其控制下去操作设备。与其他微处理器一样,CPU也有和输入输出接口相连的时间和控制电路。在每个循环中输入都被定义为信号,检查它们的地址并不断更新。当这种相互改变发生时,被修改的输出寄存器内容在这些时间电路的控制下传送到输出接口灵活和编址方案允许设计PLC系统并分配一些区或阶段,这种安装方案允许系统设计都建立控制逻辑软件,而需限制在遵循顺序的I/O,导致了随机编址的I/O系统。灵活I/O编址的缺点是在一个在的PLC系统中,这样的设计会使当诊断和纠正错误非常困难。I/O地址或者是十进制或是八进制。十进制方法遵循顺序I/O分配。诸如,输入1到8是每一个模块,9到16上第二个模块,17到24是每三个等等,八进制系统基于8个数字,0到7,一个8点I/O模块使用8进制系统会用0~7作为每一个模块,10~17是第二个,20~27是第三个。在灵活编址方案中,I/O通常被物理设定为一系统并列编址,它与I/O支架上特殊的插槽一起,一些PLC系统使用紫外线擦除存储器保持I/O地址数据。地址通常都在初始系统配置中建立。而且是永久的,在不可变系统中,单个插槽和点地址一般取决于I/O支架连接在一起的顺序,在小型PLC机中系统包含一个支架连接在一起的顺序,在小型PLC机中,系统包含一个支架,因此,I/O地址被生产厂家固定。5PID模块比例—积分—微分模块被用来应用在过程控制中,其中,PID算法在涉及3种方式闭环反馈控制中比较常见。PID模块允许过程控制在CPU之外发生。这种安排可以让CPU免除复杂的计算,在PID模块中的微处理器处理数据和比较数据去置位,决定合适的输出信号。大多数PID模块每个模块有4个控制回路。状态和诊断指示器被提供允许简单的系统维护,一旦它被设定配置一个模块包括配置模拟信号的类型数字信号的类型和其他条件。6程序终端可编程控制器给用户提供一个在CPU存储器中的进入和监视程序的方法进入PLC程序有2种基本方法。它可用程序终端或电脑软件进行在2种情况下,程序终端被连接到由处理上的连接器CPU。这种连接器为典型25-pinRS-232C系列通信接口,且与大多数的IBM类计算机相兼容。程序终端是进入程序和PLC监控而大量使用的设备。终端最受欢迎的一种类型是迷你编程器,也叫手持编程器,这种类型的编程终端是不贵且可携带的,这就意味着使用更小的PLC,这些设备是与手持计算机一般大小,通常有LED或点阵LCD显示。键盘包括数字键程序指令键和特殊功能键。近几年,已经形成朝着使用基于个人电脑程序开发系统方向发展的趋势。手提电脑或笔记本电脑,微型计算机进行PLC编程起来越受欢迎。个人电脑也允许简化开发和更方便的PLC编程技术。
ProgrammableControllerAprogrammablecontroller,orprogrammablelogiccontroller(PLC),isadevicewhichiscapableofbeingprogrammedtoperformacontrollingfunction.ThePLCwasfirstconceivedbyagroupofengineersfromtheHydromanticdivisionofGeneralMotorsin1968.Programmablecontrollerswereoriginallydesignedtoprovideflexibilityincontrolbasedonprogrammingandexecutinglogicinstructions.Majoradvantagewererealizedbyadoptingtheladderdiagramprogramminglanguage,simplifyingmaintenance,andreducingthecostofsparepartsinventories.Also,PLCsallowedforshorterinstallationtimeandfastercommissioningthroughprogrammingratherthanwiring.Therearepresentlyover50differentmanufacturersofprogrammablecontrollers.BecausetherearesomanydifferentPLCsinuse,itisimpossibletocoverallthedifferenttypesofequipmentonthemarket.Fortunately,itreallyisn’tnecessarytounderstandeverysomeofthecommonfeaturesofprogrammablecontrollers.ProgrammableControllerComponentsAllprogrammablecontrollershaveinputandoutputinterfaces,memory,amethodofprogramming,acentralprocessingunit(CPU),andapowersupply.Theinputinterfaceprovidesaconnectiontothemachineorprocessbeingcontrolled.Theinputinterfaceismodularandcanbeexpandedbyaddingmoremodulestoallowmoreinputswhenthecontroltaskincreases.ThenumberofpossibleinputsisusuallylimitedbytheCPUandthesizeofmemory.Theoutputinterfaceperformstheoppositefunctionoftheinputinterface.IttakessignalsfromtheCPUandtranslatesthemintoformsthatareappropriatetoproducecontrolactionsbyexternaldevicessuchassolenoids,motorstarters,andsoon;Theoutputinterfaceisalsomodularinnature,sothatadditionaloutputfunctionscanbeincorporatedwhenrequired.PLCprogramminglanguageshavemanyforms.MostPLClanguagesarebasedonladderlogic,whichisanadvancedformofrelaylogic.Flowchartprogramminglanguageisalso-usedwithsomePLCs.Aflowchartisapictoriallanguagethatshowstheinterconnectionsofvariableswithinaprocess.Aprogrammingdevice,orprogrammingterminal,allowsausertoenterinstructionsintomemoryintheformofaprogram.AprogramthatiswrittenbyauserandstoredinaPLC’smemoryisarepresentationoftheactionsrequiredtoproducethecorrectoutputcontrolsignalsforagivenprocesscondition.Suchaprogramincludessectionsthatallowprocessdatatobebroughtintothecontrollermemory,sectionsthatrepresentdecisionmaking,andsectionsthatdealwithconvertingadecisionintophysicaloutputaction.PowerSupply,Assmartasthecentralprocessingunitis,itwouldbenothingwithoutgood,clean,reliablepower.Themanufactureroftheprogrammablecontrollersystemtakesspecialdesignandmanufacturingcarewiththesystempowersupply.SomedesignsallowthepowersupplytobeusedexternaltothemainCPUchassis,whileothersmakeitanintegralpartofthesystemchassis.Inspiteofthephysicaldifferences,theprimaryfunctionremainsthesame:thatis,toprovideaconsistentlevelofclean,lowvoltagedirectcurrent(DC)powertothesystemelectronics,andprotectsthesystemfromnormallinevoltagefluctuations.PLCScanFunctionInorderforaCPUtoexecuteaprogramstoredinmemory,itmustbeableto“see”whatisoccurringinthevariousmemorylocations.Theprocedureofreadingthestatusofallinputsandoutputs,examiningapplicationprograminstructions,andexecutingthecontrolprogramisreferredtoasthescanfunctionofaPLC.TheCPUisconstantlyinteractingwithsystemmemorytointerpretandexecutetheapplicationprogramthatcontrolsthemachineorprocess.TheamountoftimerequiredfortheCPUtoreadtheprogramstoredinRAMmemory,executethecontrolprogram,andupdatealloutputsiscalledthescantime.ScantimeisaveryimportantfactorinaPLC.Forexample,ifaninputsignalchangesstatestwiceduringonescan,thePLCwillneverbeableto“see”thesignal.Thissituationoccursifthechangeininputsignalisfasterthanscantime.Ifittakes7msfortheCPUtoscanaprogram,andaninputcontactisopeningandclosingevery3ms,theCPUdoesnotknowthatthecontactischangingstate.MostPLCshaveascantimewhichcanbeadjustedfordifferentoperationssuchastroubleshooting,ordebugging.Eachinstructionenteredintoaprogramrequiresacertainamountoftimefortheinstructiontobeexecuted.Theamountoftimerequireddependsontheinstruction.Forexample,ittakeslesstimeforaCPUtoreadstatusofanoutputcoilthanitdoestoreadtheaccumulatedvalueofatimer.Theoveralllengthoftheprogramitselfwillalsohaveaneffectonscantime.Thelengthoftimerequiredtoscananentireprogramoncevariesbetween1mand255ms,dependingonthemanufacturerandmodelnumberofthemachinebeingused.TheamountofRAMmemoryallocatedbyamanufacturerwillhaveaneffectontotalscantimeaswell.Typically,2msisaddedforeach1kilobyteofmemoryavailable.WhenaprogrammingterminalisconnectedtoCPU,scantimealsoincreasesbecauseittakeslongertotransmitthestatusofI/OtotheCRTscreen.PLCMemoryThetermmemoryutilizationreferstothenumberofmemorylocationsrequiredtostoreeachtypeofinstruction.EachPLCmanufacturerusesaslightlydifferentmethodoforganizingtheinformationwhichisstoredinthememoryofthePLC.AlthoughallPLCshavesimilaritiesintheirmemorystructure,suchasRAMandROMchips,thelocationswherebitsofinformationarestoredandthemethodtheCPUusestoreadthisdatacanvaryquitesubstantially.TheentireprocessormemoryofatypicalPLCisdividedintothreemajorparts:datatable,userprogram,andmessagestoragearea.Thesesectionsstoreinformationaboutthestatusofaninputoroutputdeviceandarealsousedtostoreprograminstructionsandmessages.Figures2showthestandardmemorylayoutforatypicalPLC.Eachofthethreesectionsiscapableofhandlingvariousamountsofinformation.Thememoryitselfisdividedaccordingtohowmanybinarydigits,orbits,itiscapableofhandling.I/OSystemTheI/OsystemprovidesaninterfacebetweenthehardwiredcomponentsinthefieldandtheCPU.TheinputinterfaceallowsstatusinformationregardingprocessestobecommunicatedtotheCPUandallowstheCPUtocommunicateoperatingsignalsthroughtheoutputinterfacetotheprocessdevicesunderitscontrol.Likeanyothermicroprocessor,theCPUhastimingandcontrollinesthatconnecttoinputandoutputinterfaces.Whilethisinterchangeistakingplace,therevisedoutputregistercontentsaretransferredtotheoutputinterfacecircuitsunderthecontrolofthesetiminglines.TheI/Osystembasicallyconsistsoftwocomponents:theI/OrackandtheI/Omodule.FormostPLCs,thelocationofwhereamoduleisinserteddefinestheaddressofeachconnecteddevice.Amoduleusuallyconsistsofeither8inputsoroutputs,althoughmoduleisalsoavailablewith16inputsoroutputs.AnI/Orack,orchassis,willgenerallyholdeither8or16modules.AnimportantconsiderationinanyI/Osystemisthemethodofaddressingtheinputandoutputinstructions.ProgrammablecontrollerI/Oisdividedintotwogeneralclasses:thosewithfixedornonflexibleaddressingschemesandthosewithflexible,adaptableaddressingschemes.AddressingisthewaythatthecontrolprogramintheCPUrelatestoaparticularreal-worldsensororactuator.ThedesignofaPLCdetermineswhetherornotthesystemiscapableofbeingaddressedflexibly,orisrigidinitsaddressingmethod.FlexibleaddressingschemesallowPLCsystemstobedesignedandinstalledinseveralsections,orstages.ThisinstallationschemeallowssystemdesignerstocreatecontrollogicsoftwarewithoutbeingconstrainedtofollowasequentialI/Oassignment,resultinginarandomlyaddressedI/Osystem.ThedisadvantageofflexibleI/OaddressingisthatinlargePLCsystemssuchadesignmaymakeitdifficulttodiagnoseandcorrectproblemswhentheyoccur.ThisisparticularlytruewhenproperPLCI/Odocumentationisnotprovided.I/Oaddressingiseitherindecimaloroctalform.ThedecimalmethodfollowsasequentialassignmentofI/Opoints,suchasinputs1through8forthefirstmodule,9through16forthesecondmodule,17through24forthethird,andsoon.Theoctalnumberingsystemisbasedon8digits,0through7.An8-pointI/Omoduleusingtheoctalnumberingsystemwouldhaveaddresses0through7forthefirstmodule,10through17forthesecond,and20through27forthethirdmodule.Inflexibleaddressingschemes,I/Oisoftenaddressedbyphysicallysettingaseriesofdualinlinepackageswitches,associatedwithaparticularslotintheI/Orack.SomePLCsystemsuseEEPROMmemorytoholdI/Oaddressdata.Addressingisgenerallyestablishedduringinitialsystemconfiguration,andisconsideredtobepermanent.Innonflexiblesystem,individualslotandpointaddressesarenormallydeterminedbythesequenceinwhichtheI/Oracksareconnectedtogether.InthecaseofsomesmallPLCs,thesystemcontainsonerackandthereforehasI/Oaddressingfixedbythemanufacturer.5.PIDModuleTheproportional-integral-derivative(PID)moduleisusedinprocesscontrolapplicationswherePIDalgorithmsareusedinwhatiscommonlyreferredtoasthree-modeclosed-loopfeedbackcontrol.APIDmoduleallowsprocesscontroltotakeplaceoutsidetheCPU.ThisarrangementpreventstheCPUfrombeingburdenedwithcomplexcalculations.ThemicroprocessorinthePIDmoduleprocessesdataandcomparesthedatatosetpointsprovidedbytheCPUanddeterminestheappropriateoutputsignal.MostPIDmoduleshaveatleastfourchannelsorloopsofcontrolpermodule.Statusanddiagnosticindicatorsareprovidedtoalloweasymaintenanceofthe
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年富锂锰基正极材料项目营销方案
- 2026年小提琴演奏情感传达考核方案试题及答案
- 工地消防演练方案
- 膜结构车棚方案施工
- 2025年保育员考试试题及答案
- 2025年全国职业院校技能大赛(植物病虫害防治)赛项试题库含答案
- 雨天养殖技术
- 2026年陕西省商洛市高职单招英语考试试卷及答案
- 2025年安徽省专升本理科真题及答案
- 甘肃省天水市2026年初一新生入学分班数学考试真题及答案
- 探秘世界气候解码甘肃生态-基于核心素养的初中地理深度教学设计
- 非标压力容器培训课件
- 2026-2031中国槟榔市场发展策略及投资潜力可行性预测报告
- 2026版二建《建设工程法规及相关知识》精讲课程讲义(完整打印版)
- 2025年江苏省常州中考物理试题
- 2025年复旦大学文科试题及答案
- 【北师大版】六年级数学上册寒假作业
- 村规民约用水管理制度
- 亿安科技作手教你炒股系列
- 六十四卦金钱课
- 人间残渣攻略
评论
0/150
提交评论