




已阅读5页,还剩17页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 TheProgrammableLogicController JohnR Hackworth FrederickD Hackworth Jr ProgrammableLogicControllers ProgrammingMethodsand Applications 2 5 2 8 TheProgrammableLogicController JohnR Hackworth FrederickD Hackworth Jr FirstEdition London PrenticeHall 2003 35 50 2 5SystemBlockDiagramAProgrammableControllerisaspecializedcomputer Sinceitisacomputer ithasallthebasiccomponentpartsthatanyothercomputerhas aCentralProcessingUnit Memory InputInterfacingandOutputInterfacing AtypicalprogrammablecontrollerblockdiagramisshowninFigure2 5 Figure2 5 ProgrammableControllerBlockDiagram TheCentralProcessingUnit CPU isthecontrolportionofthePLC Itinterpretstheprogramcommandsretrievedfrommemoryandactsonthosecommands InpresentdayPLC sthisunitisamicroprocessorbasedsystem TheCPUishousedintheprocessormoduleofmodularizedsystems Memoryinthesystemisgenerallyoftwotypes ROMandRAM TheROMmemorycontainstheprograminformationthatallowstheCPUtointerpretandactontheLadderLogicprogramstoredintheRAMmemory RAMmemoryisgenerallykeptalivewithanon boardbatteryso thatladderprogrammingisnotlostwhenthesystempowerisremoved Thisbatterycanbea standarddrycellorrechargeablenickel cadmiumtype NewerPLCunitsarenowavailablewithElectricallyErasableProgrammableReadOnlyMemory EEPROM whichdoesnotrequireabattery Memoryisalsohousedintheprocessormoduleinmodularsystems Inputunitscanbeanyofseveraldifferenttypesdependingoninputsignalsexpectedasdescribedabove Theinputsectioncanacceptdiscreteoranalogsignalsofvariousvoltageandcurrentlevels PresentdaycontrollersofferdiscretesignalinputsofbothACandDCvoltagesfromTTLto250VDCandfrom5to250VAC Analoginputunitscanacceptinputlevelssuchas 10VDC 5VDCand4 20ma currentloopvalues DiscreteinputunitspresenteachinputtotheCPUasasingle1or0whileanaloginputunitscontainanalogtodigitalconversioncircuitryandpresenttheinputvoltagetotheCPUasbinarynumbernormalizedtothemaximumcountavailablefromtheunit Thenumberofbitsrepresentingtheinputvoltageorcurrentdepends2 3 upontheresolutionoftheunit Thisnumbergenerallycontainsadefinednumberofmagnitudebitsandasignbit RegisterinputunitspresentthewordinputtotheCPUasitisreceived BinaryorBCD Outputunitsoperatemuchthesameastheinputunitswiththeexceptionthattheunitiseithersinking supplyingaground orsourcing providingavoltage discretevoltagesorsourcinganalogvoltageorcurrent TheseoutputsignalsarepresentedasdirectedbytheCPU TheoutputcircuitofdiscreteunitscanbetransistorsforTTLandhigherDCvoltageorTriacsforACvoltageoutputs Forhighercurrentapplicationsandsituationswhereaphysicalcontactclosureisrequired mechanicalrelaycontactsareavailable Thesehighercurrents however aregenerallylimitedtoabout2 3amperes Theanalogoutputunitshaveinternalcircuitrywhichperformsthedigitaltoanalogconversionandgeneratesthevariablevoltageorcurrentoutput 2 6Update SolvetheLadder Update Whenpowerisappliedtoaprogrammablelogiccontroller thePLC soperationconsistsoftwosteps 1 updateinputsandoutputsand 2 solvetheladder Thismayseemlikeaverysimplisticapproachtosomethingthathastobemorecomplicatedbuttheretrulyareonlythesetwosteps Ifthesetwostepsarethoroughlyunderstood writingandmodifyingprogramsandgettingthemostfromthedeviceismucheasiertoaccomplish Withthisunderstanding thethingsthatcanbeundertakenarethenuptotheimaginationoftheprogrammer Youwillnoticethatthe update solvetheladder sequencebeginsafterstartup TheactualstartupsequenceincludessomeoperationstransparenttotheuserorprogrammerthatoccurbeforeactualPLCoperationontheuserprogrambegins Duringthisstartuptheremaybeextensivediagnosticchecksperformedbytheprocessoronthingslikememory I Odevices communicationwithotherdevices ifpresent andprogramintegrity Insophisticatedmodularsystems theprocessorisabletoidentifythevariousmoduletypes theirlocationinthesystemandaddress Thistypeofsystemanalysisandtestinggenerallyoccursduringstartupbeforeactualprogramexecution 2 7Update ThefirstthingthePLCdoeswhenitbeginstofunctionisupdateI O Thismeansthatalldiscreteinputstatesarerecordedfromtheinputunitandalldiscretestatestobeoutputaretransferredtotheoutputunit Registerdatagenerallyhasspecificaddressesassociatedwithitforbothinputandoutputdatareferredtoasinputandoutputregisters Theseregistersareavailabletotheinputandoutputmodulesrequiringthemandareupdatedwiththediscretedata Sincethis isinput outputupdating itisreferredtoasI OUpdate TheupdatingofdiscreteinputandoutputinformationisaccomplishedwiththeuseofinputandoutputimageregisterssetasideinthePLCmemory Eachdiscreteinputpointhasassociatedwithitonebitofaninputimageregister Likewise eachdiscreteoutputpointhasonebitofanoutputimageregisterassociatedwithit WhenI Oupdatingoccurs eachinputpointthatisONatthattimewillcausea1tobesetatthebitaddressassociatedwiththatparticularinput Iftheinputisoff a0willbesetintothebitaddress Memoryintoday sPLC sisgenerallyconfiguredin16bitwords Thismeansthatone wordofmemorycanstorethestatesof16discreteinputpoints Therefore theremaybea numberofwordsofmemorysetasideastheinputandoutputimageregisters AtI Oupdate thestatusoftheinputimageregisterissetaccordingtothestateofalldiscreteinputsandthestatus oftheoutputimageregisteristransferredtotheoutputunit Thistransferofinformation typicallyonlyoccursatI Oupdate ItmaybeforcedtooccuratothertimesinPLC swhichhaveanImmediateI OUpdatecommand ThiscommandwillforcethePLCtoupdatetheI Oatothertimesalthoughthiswouldbeaspecialcase Onemajoritemofconcernaboutthefirstoutputupdateistheinitialstateofoutputs This isaconcernbecausetheirmaybeoutputsthatifinitiallyturnedoncouldcreateasafetyhazard particularlyinasystemwhichiscontrollingheavymechanicaldevicescapableofcausingbodilyharmtooperators Insomesystems alloutputsmayneedtobeinitiallysettotheiroffstatetoinsurethesafetyofthesystem However theremaybesystemsthatrequireoutputstoinitiallybesetupinaspecificway someonandsomeoff Thiscouldtaketheformofapredeterminedsetuporcouldbearequirementthattheoutputsremaininthestateimmediatelybeforepower down Morerecentsystemshaveprovisionsforbothsetupoptionsandevenacombinationofthetwo Thisisaprimeconcernoftheengineerandprogrammerandmustbedefinedasthesystemisbeingdevelopedtoinsurethesafetyofpersonnelthatoperateandmaintaintheequipment Safetyasrelatedtosystemandprogramdevelopmentwillbediscussedinalaterchapter 2 8SolvetheLadderAftertheI Oupdatehasbeenaccomplished thePLCbeginsexecutingthecommandsprogrammedintoit Thesecommandsaretypicallyreferredtoastheladderdiagram Theladderdiagramisbasicallyarepresentationoftheprogramstepsusingrelaycontactsandcoils The ladderisdrawnwithcontactstotheleftsideofthesheetandcoilstotheright Thisisa holdoverfromthetimewhencontrolsystemswererelaybased Thistypeofdiagramwasusedfortheelectricalschematicofthosesystems AsampleladderdiagramisshowninFigure2 6 4 Figure2 6 SampleLadderDiagram ThesymbolsusedinFigure2 6maybeforeignatthispoint soashortexplanationwillbenecessary ThesymbolsattherightoftheladderdiagramlabeledCR1 CR2 CR3andCR4andarecircularinshapearethesoftwarecoilsoftherelays Thesymbolsattheleftwhichlooklikecapacitors somewithdiagonallinesthroughthem arethecontactsassociatedwiththecoils Thesymbolsthatlooklikecapacitorswithoutthediagonallinesthroughthemarenormallyopencontacts Theseareanalogoustoaswitchthatisnormallyoff Whentheswitchisturnedon thecontactcloses Thecontactsymbolsattheleftthatlooklikecapacitorswithdiagonallinesthroughthemarenormallyclosedcontacts Anormallyclosedcontactisequivalenttoaswitchthatisnormallyturnedon Itwillturnoffwhentheswitchisactuated AscanbeseeninFigure2 6 contactandcoilpositionisasdescribedabove Also onecanseethereasonforthetermladderdiagramiftherungsofastepladderarevisualized Infact eachcompletelineofthediagramisreferredtoasonerungoflogic Theactualinterpretationofthediagramwillalsobediscussedlateralthoughsomeexplanationisrequiredhere Thecontactconfigurationontheleftsideofeachrungcanbevisualizedasswitchesandthecoilsontherightaslights Iftheswitchesareturnedonandoffintheproperconfiguration thelighttotherightwillilluminate ThePLCexecutesthisprogramfromlefttorightandtoptobottom inthatorder Itfirstlooksattheswitch contact configurationtodetermineifcurrentcanbepassedtothelight coil Thedataforthisdecisioncomesfromtheoutputandinputimageregisters Ifcurrentcanbepassed thelight coil willthenbeturnedon Ifnot thelight coil willbeturned off Thisisrecordedintheoutputimageregister OncethePLChaslookedattheleftsideof therungitignorestheleftsideoftherunguntilthenexttimeitsolvesthatparticularrung Once5 thelight coil hasbeeneitherturnedonoroffitwillremaininthatstateuntilthenexttimethePLCsolvesthatparticularrung Aftersolvingarung thePLCmovesontosolvethenextrunginthesamemannerandsoforthuntiltheentireladderhasbeenexecutedandsolved Onerulethatisdifferentfromgeneralelectricaloperationisthedirectionofcurrentflowintherung Inaladderlogic rungcurrentcanonlyflowfromlefttorightandupanddown neverfromrighttoleft Asanexample intheladdershowninFigure2 7 coilCR1willenergizeifanyofthefollowingconditionsexist Figure2 7 Illustrationofallowedcurrentflowinladderrung 1 CR7isoff CR6ison 2 CR7isoff CR2ison CR5ison 3 CR7isoff CR2ison CR3ison 4 CR1ison CR4ison CR3ison 5 CR1ison CR4ison CR5ison Youwillnoticethatthecurrentflowinthecircuitineachofthecaseslistedaboveisfromlefttorightandupanddown CR1willnotenergizeinthecaselistedbelow CR1ison CR4ison CR2ison CR6ison CR5isoff CR3isoff CR7ison ThisisbecausecurrentwouldhavetoflowfromrighttoleftthroughtheCR2contact Thisisnotallowedinladderlogiceventhoughcurrentcouldflowinthisdirectionifweweretobuilditwithrealrelays Remember weareworkinginthesoftwareworldnotthehardwareworld Toreview aftertheI Oupdate thePLCmovestothefirstrungofladderlogic Itsolvesthecontactconfigurationtodetermineifthecoilistobeenergizedorde energized Itthenenergizesorde energizesthecoil Afterthisisaccomplished itmovestotheleftsideofthenextrungand repeatstheprocedure Thiscontinuesuntilallrungshavebeensolved Whenthisprocedureis completewithallrungssolvedandallcoilsintheladdersetupaccordingtothesolutionofeachrung thePLCproceedstothenextstepofit ssequence theI Oupdate 6 AtI Oupdate thestatesofallcoilswhicharedesignatedasoutputsaretransferredfromtheoutputimageregistertotheoutputunitandthestatesofallinputsaretransferredtotheinputimageregister NotethatanyinputchangesthatoccurduringthesolutionoftheladderareignoredbecausetheyareonlyrecordedatI Oupdatetime Thestateofeachcoilisrecordedtotheoutputimageregisteraseachrungissolved However thesestatesarenottransferredtotheoutputunituntilI Oupdatetime Figure2 8ScanCycleThisprocedureofI OupdateandsolvingtheladderdiagramandI OupdateisreferredtoasscanningandisrepresentedinFigure2 8 TheperiodbetweenoneI OupdateandthenextisreferredtoasoneScan TheamountoftimeittakesthePLCtogetfromoneI OupdatetothenextisreferredtoasScanTime Scantimeistypicallymeasuredinmillisecondsandisrelatedto thespeedoftheCPUandthelengthoftheladderdiagramthathastobesolved Theslowerthe processororthelongertheladderdiagram thelongerthescantimeofthesystem ThespeedatwhichaPLCscansmemoryisreferredtoasScanRate Scanrateunitsareusuallylistedinmsec Kofmemorybeingutilizedfortheprogram Asanexample ifaparticularPLChasaratedscanrateof8msec Kandtheprogramoccupies6Kofmemory itwilltakethePLC48msectocompleteonescanoftheprogram 7 1 1Motivation ProgrammableLogicControllers PLC acomputingdeviceinventedbyRichardE Morley in1968 havebeenwidelyusedinindustryincludingmanufacturingsystems transportation systems chemicalprocessfacilities andmanyothers Atthattime thePLCreplacedthe hardwiredlogicwithsoft wiredlogicorso calledrelayladderlogic RLL aprogramming languagevisuallyresemblingthehardwiredlogic andreducedtherebytheconfigurationtime from6monthsdownto6days MoodyandMorley 1999 AlthoughPCbasedcontrolhasstartedtocomeintoplace PLCbasedcontrolwillremain thetechniquetowhichthemajorityofindustrialapplicationswilladhereduetoitshigher performance lowerprice andsuperiorreliabilityinharshenvironments Moreover accordingto astudyonthePLCmarketofFrostandSullivan 1995 anincreaseoftheannualsalesvolume to15millionPLCsperyearwiththehardwarevalueofmorethan8billionUSdollarshasbeen predicted thoughthepricesofcomputinghardwareissteadilydropping Theinventorofthe PLC RichardEMorley fairlyconsidersthePLCmarketasa5 billionindustryatthepresent time ThoughPLCsarewidelyusedinindustrialpractice theprogrammingofPLCbasedcontrol systemsisstillverymuchrelyingontrial and error Alikesoftwareengineering PLCsoftware designisfacingthesoftwaredilemmaorcrisisinasimilarway Morleyhimselfemphasizedthis aspectmostforcefullybyindicating MoodyandMorley 1999 p 110 Ifhouseswerebuiltlikesoftwareprojects asinglewoodpeckercoulddestroycivilization Particularly practicalproblemsinPLCprogrammingaretoeliminatesoftwarebugsandto reducethemaintenancecostsofoldladderlogicprograms ThoughthehardwarecostsofPLCs aredroppingcontinuously reducingthescantimeoftheladderlogicisstillanissueinindustry sothatlow costPLCscanbeused Ingeneral theproductivityingeneratingPLCisfarbehindcomparedtootherdomains for instance VLSIdesign whereefficientcomputeraideddesigntoolsareinpractice Existent softwareengineeringmethodologiesarenotnecessarilyapplicabletothePLCbasedsoftware designbecausePLC programmingrequiresasimultaneousconsiderationofhardwareand software Thesoftwaredesignbecomes thereby moreandmorethemajorcostdriver Inmany industrialdesignprojects morethanSO0 aofthemanpowerallocatedforthecontrolsystem designandinstallationisscheduledfortestinganddebuggingPLCprograms Rockwell 1999 Inaddition currentPLCbasedcontrolsystemsarenotproperlydesignedtosupportthe growingdemandforflexibilityandreconfigurabilityofmanufacturingsystems Afurther problem impellingtheneedforasystematicdesignmethodology istheincreasingsoftware complexityinlarge scaleprojects 1 2ObjectiveandSignificanceoftheThesis TheobjectiveofthisthesisistodevelopasystematicsoftwaredesignmethodologyforPLC operatedautomationsystems Thedesignmethodologyinvolveshigh leveldescriptionbasedon statetransitionmodelsthattreatautomationcontrolsystemsasdiscreteeventsystems astepwise designprocess andsetofdesignrulesprovidingguidanceandmeasurementstoachievea successfuldesign Thetangibleoutcomeofthisresearchistofindawaytoreducethe uncertaintyinmanagingthecontrolsoftwaredevelopmentprocess thatis reducing programminganddebuggingtimeandtheirvariation increasingflexibilityoftheautomation systems andenablingsoftwarereusabilitythroughmodularity Thegoalistoovercome shortcomingsofcurrentprogrammingstrategiesthatarebasedontheexperienceofthe individualsoftwaredeveloper DesignTheoryDevelopment Today theprimaryfocusofmostdesignresearchisbasedonmechanicalorelectrical products Oneoftheby productsofthisproposedresearchistoenhanceourfundamental understandingofdesigntheoryandmethodologybyextendingittothefieldofengineering systemsdesign Asystemdesigntheoryforlarge scaleandcomplexsystemisnotyetfully developed Particularly thequestionofhowtosimplifyacomplicatedorcomplexdesigntask hasnotbeentackledinascientificway Furthermore buildingabridgebetweendesigntheory andthelatestepistemologicaloutcomesofformalrepresentationsincomputersciencesand operationsresearch suchasdiscreteeventsystemmodeling canadvancefuturedevelopmentin engineeringdesign ApplicationinLogicalHardwareDesign Fromalogicalperspective PLCsoftwaredesignissimilartothehardwaredesignof integratedcircuits ModernVLSIdesignsareextremelycomplexwithseveralmillionpartsanda productdevelopmenttimeof3years Whitney 1996 Thedesignprocessisnormallyseparated intoacomponentdesignandasystemdesignstage Atcomponentdesignstage singlefunctions aredesignedandverified Atsystemdesignstage componentsareaggregatedandthewhole systembehaviorandfunctionalityistestedthroughsimulation Ingeneral acomplete verificationisimpossible Hence asystematicapproachasexemplifiedforthePLCprogram designmayimpactthelogicalhardwaredesign PLC PLC programmablelogicalcontroller faceevermorecomplexchallengethesedays Whereoncetheyquietlyrelaysandgaveanoccasionalreporttoacorporatemainframe theyare nowgroundedintocells givenewjobsandnewlanguages andareforcedtocompeteagainsta growingarrayofcontrolproducts Forthisyear sannualPLCtechnologyupdate wequeried PLCmakersonthesetopicsandmore Programminglanguages HigherlevelPLCprogramminglanguageshavebeenaroundforsometime butlatelytheir popularityhasbeenmushrooming AsRaymondLavelle vicepresidentandgeneralmanager SiemensEnergyandAutomation Inc ProgrammableControlsDivision pointsout As programmablecontrolsarebeingusedformoreandmoresophisticatedoperations languages otherthanladderlogicbecomemorepractical efficient andpowerful Forexample it svery difficulttowriteatrigonometricfunctionusingladderlogic Languagesgainingacceptance includeBoolean controlsystemflowcharting andsuchfunctionchartlanguagesasGraphtec anditsvariations Andthese sincreasinginterestinlanguageslikeCandBASIC PLCsinprocesscontrol Thusfar PLCshavenotbeenusedextensivelyforcontinuousprocesscontrol Willthis continue ThefeelingthatI vegotten saysKenJeannette manager productplanning SeriesOneandSeriesSixproducts atGEFrameNorthAmerica isthatPLCswillbeusedin theprocessindustrybutnotnecessarilyforprocesscontrol Severalvendors obviouslybettingthattheoppositewillhappen haveintroducedPLCs optimizedforprocessapplications RichRyan manager commercialmarketing Allen Bradley ProgrammableControlsDiv citesPLCs increasinguseinsuchindustriesasfood chemicals andpetroleum Ryanfeeltherearetwotypesofapplicationsinwhichthey reappropriate One hesays iswherethesizeoftheprocesscontrolsystemthat sbeingautomateddoesn tjustify DCS distributedcontrolsystems Withthestartingpricetagsofthoseproductsbeingrelatively high aprogrammablecontrollermakessenseforsmall lowloopcountapplications The secondswhereyouhavetointegratetheloopcloselywiththesequentiallogic Batchcontroller sereprimeexamples wherethesequenceandmaintainingtheprocessvariableareintertwinedso closelythatthebenefitsofhavingaprogrammablecontrollertodothesequentiallogic outweighssomeofthedisadvantagesofnothavingadistributedcontrolsystem BillBarkovtz presidentofTriconex predictsthat allfuturecontrollersthatcomeoutinthe processcontrolsystembusinesswillembracealotmorePLCtechnologyandalotmorePLC functionalitythantheyeverdidbefore TheProgrammableLogicController JohnR
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 宁河区学业测试数学试卷
- 湛江市徐闻县县直医疗卫生单位招聘考试真题2024
- 2024年石家庄市灵寿县中学选聘教师笔试真题
- 七年级满分数学试卷
- 广东省中医院海南医院招聘考试真题2024
- 2024年烟草四川公司招聘考试真题试卷及答案
- 青岛小学5年级数学试卷
- 钦州市八上数学试卷
- 清远教师招聘数学试卷
- 红细胞计数课件
- 管道cctv检测方案
- 职业技术学校物联网应用技术专业调研报告
- GB/T 43934-2024煤矿土地复垦与生态修复技术规范
- 2023年某技术有限公司技术规范
- 秋季传染病预防课件幼儿园
- 江苏农牧科技职业学院单招《英语》考试参考题库(含答案)
- 心得报告模板
- 义务教育数学新课程标准2022年版变化与解读解读课件
- 工程结构损伤机理及桅
- 私密艾灸培训课件
- 大健康马术俱乐部项目立项报告
评论
0/150
提交评论