




已閱讀5頁(yè),還剩17頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 孩子探視權(quán)協(xié)議書范本3篇
- 前臺(tái)個(gè)人工作總結(jié)范文
- 初二學(xué)生個(gè)人計(jì)劃總結(jié)(30篇)
- 學(xué)會(huì)道歉夫妻吵架保證書3篇
- 勞動(dòng)合同中的加班與調(diào)休制度3篇
- 2025本月工作計(jì)劃范文(9篇)
- 學(xué)生誠(chéng)信作業(yè)保證書3篇
- 廢除貸款合同通知3篇
- 化工工程勞務(wù)合同(20篇)
- 稀土金屬礦選礦廠安全風(fēng)險(xiǎn)防控與事故應(yīng)急預(yù)案考核試卷
- 流動(dòng)式起重機(jī)(固定)定期檢驗(yàn)-自檢記錄
- 耳鼻咽喉科-咽腫瘤
- 宿舍樓設(shè)計(jì)開題報(bào)告
- 鄰苯二甲酸二辛酯MSDS
- 電梯日常檢查記錄
- 教育的起源和古代東方文明古國(guó)的教育
- 有機(jī)化學(xué)6章對(duì)映異構(gòu)-課件
- 抗菌藥物使用強(qiáng)度(DDD)解析與控制
- T∕CACM 1064-2018 針刀醫(yī)學(xué)臨床 通用要求
- 招聘求職簡(jiǎn)歷制作表格模板可編輯下載 精品簡(jiǎn)歷模板 標(biāo)準(zhǔn)表格單頁(yè)02
-
評(píng)論
0/150
提交評(píng)論