




已閱讀5頁(yè),還剩17頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(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)益歸上傳用戶(hù)所有。
- 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ì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 銀行審計(jì)面試題目及答案
- 疫情公務(wù)員面試題及答案
- 一消防考試試題及答案
- 藥店消防安全試題及答案
- 2025年人教PEP英語(yǔ)小學(xué)四年級(jí)下冊(cè)期末檢測(cè)題附答案(三)
- 生物制造中試基地設(shè)備升級(jí)改造與維護(hù)服務(wù)合同
- 生物醫(yī)藥專(zhuān)利無(wú)效宣告應(yīng)對(duì)與知識(shí)產(chǎn)權(quán)風(fēng)險(xiǎn)防控合同
- 海外礦山安全網(wǎng)租賃及維護(hù)保養(yǎng)服務(wù)合同
- 抖音短視頻糾紛仲裁服務(wù)協(xié)議
- 電子商務(wù)平臺(tái)會(huì)員押金收取與結(jié)算規(guī)范協(xié)議
- 學(xué)生實(shí)習(xí)自主申請(qǐng)表
- 江蘇省南京師大附中、淮陰中學(xué)自主招生考試化學(xué)試題
- (6.4)-第四章 明確價(jià)值要求 踐行價(jià)值準(zhǔn)則
- 人教版小學(xué)數(shù)學(xué)五年級(jí)下冊(cè)課件 5.1《旋轉(zhuǎn)》
- 麥肯錫:戰(zhàn)略方法論三層面法和財(cái)務(wù)模型
- 捷藍(lán)大健康生活館運(yùn)營(yíng)手冊(cè)
- 婦產(chǎn)科學(xué)-盆腔器官脫垂課件
- 園藝植物種質(zhì)資源圖文
- 村史范本、模板
- 石膏板吊頂施工方案
- 投標(biāo)函(格式范本)
評(píng)論
0/150
提交評(píng)論