




已閱讀5頁,還剩17頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 湖北省當陽市第二高級中學2025屆高一下化學期末達標檢測試題含解析
- 福建泉州市2025年高二下化學期末達標檢測試題含解析
- 機耕道路維護管理辦法
- 內部成員沖突管理辦法
- 杭州學校宿舍管理辦法
- 民企職工公寓管理辦法
- 新疆引進資金管理辦法
- 江西房產經紀管理辦法
- 酵母代謝通路優(yōu)化-洞察及研究
- 汽配倉儲采購管理辦法
- 破碎安全培訓
- 2025年國家人民衛(wèi)生出版社有限公司招聘筆試參考題庫含答案解析
- 護理不良事件報告制度、激勵機制及上報流程
- 北師大版4四年級下冊數(shù)學期末復習試卷(5套)
- T-CEEMA 0203-2024 風力發(fā)電機組狀態(tài)檢修導則
- TCUWA40055-2023排水管道工程自密實回填材料應用技術規(guī)程
- 小兒腸梗阻護理課件
- 2024-2025學年譯林版新七年級英語上冊Unit2《Hobbies》單元卷(含答案解析)
- 遼寧省大連市甘井子區(qū)2023-2024學年七年級下學期期末生物學試題(原卷版)
- 5國家機構有哪些 第一課時(教學設計)部編版道德與法治六年級上冊
- AQ/T 1118-2021 礦山救援培訓大綱及考核規(guī)范(正式版)
評論
0/150
提交評論