2012届毕业设计说明书外文文献院、部:电气与信息工程学院学生姓名:周可指导教师:桂友超职称讲师专业:自动化班级:0804完成时间:2012-05-27ProgrammablelogiccontrollerAprogrammablelogiccontroller(PLC)orprogrammablecontrollerisadigitalcomputerusedforautomationofelectromechanicalprocesses,suchascontrolofmachineryonfactoryassemblylines,amusementrides,orlightingfixtures.PLCsareusedinmanyindustriesandmachines.Unlikegeneral-purposecomputers,thePLCisdesignedformultipleinputsandoutputarrangements,extendedtemperatureranges,immunitytoelectricalnoise,andresistancetovibrationandimpact.Programstocontrolmachineoperationaretypicallystoredinbattery-backedornon-volatilememory.APLCisanexampleofarealtimesystemsinceoutputresultsmustbeproducedinresponsetoinputconditionswithinaboundedtime,otherwiseunintendedoperationwillresult.1HistoryThePLCwasinventedinresponsetotheneedsoftheAmericanautomotivemanufacturingindustry.Programmablelogiccontrollerswereinitiallyadoptedbytheautomotiveindustrywheresoftwarerevisionreplacedthere-wiringofhard-wiredcontrolpanelswhenproductionmodelschanged.BeforethePLC,control,sequencing,andsafetyinterlocklogicformanufacturingautomobileswasaccomplishedusinghundredsorthousandsofrelays,camtimers,anddrumsequencersanddedicatedclosed-loopcontrollers.Theprocessforupdatingsuchfacilitiesfortheyearlymodelchange-overwasverytimeconsumingandexpensive,aselectriciansneededtoindividuallyrewireeachandeveryrelay.In1968GMHydramatic(theautomatictransmissiondivisionofGeneralMotors)issuedarequestforproposalforanelectronicreplacementforhard-wiredrelaysystems.ThewinningproposalcamefromBedfordAssociatesofBedford,Massachusetts.ThefirstPLC,designatedthe084becauseitwasBedfordAssociates'eighty-fourthproject,wastheresult.BedfordAssociatesstartedanewcompanydedicatedtodeveloping,manufacturing,selling,andservicingthisnewproduct:Modicon,whichstoodforMOdularDIgitalCONtroller.OneofthepeoplewhoworkedonthatprojectwasDickMorley,whoisconsideredtobethefatherofthePLC.TheModiconbrandwassoldin1977toGouldElectronics,andlateracquiredbyGermanCompanyAEGandthenbyFrenchSchneiderElectric,thecurrentowner.Oneoftheveryfirst084modelsbuiltisnowondisplayatModicon'sheadquartersinNorthAndover,Massachusetts.ItwaspresentedtoModiconbyGM,whentheunitwasretiredafternearlytwentyyearsofuninterruptedservice.Modiconusedthe84monikerattheendofitsproductrangeuntilthe984madeitsappearance.TheautomotiveindustryisstilloneofthelargestusersofPLCs.2DevelopmentEarlyPLCsweredesignedtoreplacerelaylogicsystems.ThesePLCswereprogrammedinladderlogic,whichstronglyresemblesaschematicdiagramofrelaylogic.Thisprogramnotationwaschosentoreducetrainingdemandsfortheexistingtechnicians.OtherearlyPLCsusedaformofinstructionlistprogramming,basedonastack-basedlogicsolver.ModernPLCscanbeprogrammedinavarietyofways,fromladderlogictomoretraditionalprogramminglanguagessuchasBASICandC.AnothermethodisStateLogic,averyhigh-levelprogramminglanguagedesignedtoprogramPLCsbasedonstatetransitiondiagrams.ManyearlyPLCsdidnothaveaccompanyingprogrammingterminalsthatwerecapableofgraphicalrepresentationofthelogic,andsothelogicwasinsteadrepresentedasaseriesoflogicexpressionsinsomeversionofBooleanformat,similartoBooleanalgebra.Asprogrammingterminalsevolved,itbecamemorecommonforladderlogictobeused,fortheaforementionedreasons.NewerformatssuchasStateLogicandFunctionBlock(whichissimilartothewaylogicisdepictedwhenusingdigitalintegratedlogiccircuits)exist,buttheyarestillnotaspopularasladderlogic.AprimaryreasonforthisisthatPLCssolvethelogicinapredictableandrepeatingsequence,andladderlogicallowstheprogrammer(thepersonwritingthelogic)toseeanyissueswiththetimingofthelogicsequencemoreeasilythanwouldbepossibleinotherformats.2.1ProgrammingEarlyPLCs,uptothemid-1980s,wereprogrammedusingproprietaryprogrammingpanelsorspecial-purposeprogrammingterminals,whichoftenhaddedicatedfunctionkeysrepresentingthevariouslogicalelementsofPLCprograms.Programswerestoredoncassettetapecartridges.Facilitiesforprintinganddocumentationwereveryminimalduetolackofmemorycapacity.TheveryoldestPLCsusednon-volatilemagneticcorememory.Morerecently,PLCsareprogrammedusingapplicationsoftwareonpersonalcomputers.ThecomputerisconnectedtothePLCthroughEthernet,RS-232,RS-485orRS-422cabling.Theprogrammingsoftwareallowsentryandeditingoftheladder-stylelogic.GenerallythesoftwareprovidesfunctionsfordebuggingandtroubleshootingthePLCsoftware,forexample,byhighlightingportionsofthelogictoshowcurrentstatusduringoperationorviasimulation.ThesoftwarewilluploadanddownloadthePLCprogram,forbackupandrestorationpurposes.Insomemodelsofprogrammablecontroller,theprogramistransferredfromapersonalcomputertothePLCthoughaprogrammingboardwhichwritestheprogramintoaremovablechipsuchasanEEPROMorEPROM.3FunctionalityThefunctionalityofthePLChasevolvedovertheyearstoincludesequentialrelaycontrol,motioncontrol,processcontrol,distributedcontrolsystemsandnetworking.Thedatahandling,storage,processingpowerandcommunicationcapabilitiesofsomemodernPLCsareapproximatelyequivalenttodesktopcomputers.PLC-likeprogrammingcombinedwithremoteI/Ohardware,allowageneral-purposedesktopcomputertooverl