PLC

Въведение

ProgrammableLogicController(PLC),adigitaloperationcontrollerwithmicroprocessorforautomaticcontrol,canloadcontrolinstructionsatanytimeIntothememoryforstorageandexecution.TheprogrammablecontrolleriscomposedoffunctionalunitssuchasCPU,instructionanddatamemory,input/outputinterface,powersupply,anddigital-to-analogconversion.Theearlyprogrammablelogiccontrollershadonlylogiccontrolfunctions,sotheywerenamedprogrammablelogiccontrollers.Later,withcontinuousdevelopment,thesecomputermoduleswithsimplefunctionsatthebeginninghaveincludedlogiccontrol,timingcontrol,analogcontrol,Thenameofvariousfunctionssuchasmulti-computercommunicationhasalsobeenchangedtoProgrammableController.However,duetotheconflictbetweenitsabbreviationPCandtheabbreviationofPersonalComputer(PersonalComputer),aswellashabitualreasons,peoplestilloftenuseit.Theterm"programminglogiccontroller"stillusestheacronymPLC.

Theprogrammablelogiccontrollerusedintheindustrynowisequivalenttoorclosetothehostofacompactcomputer,anditsadvantagesinscalabilityandreliabilitymakeitwidelyusedinvariouscurrenttypesIndustrialcontrolfield.NomatterinthecomputerdirectcontrolsystemorthecentralizeddistributedcontrolsystemDCS,orthefieldbuscontrolsystemFCS,therearealwaysalargenumberofvariousPLCcontrollersused.TherearemanyPLCmanufacturers,suchasSiemens,Schneider,Mitsubishi,Delta,etc.,almostallmanufacturersinvolvedinthefieldofindustrialautomationwillprovidetheirPLCproducts.

История на развитието

Произход

ThedevelopmentofproductiontechnologyrequirementsoftheAmericanautomobileindustrypromotedtheemergenceofPLC.Inthe1960s,GeneralMotorsCorporationoftheUnitedStatesWhentheproductionlinewasadjusted,itwasfoundthattherelayandcontactorcontrolsystemweredifficulttomodify,largeinsize,noisy,inconvenienttomaintain,andpoorinreliability,sothefamous"tenuniversal"biddingindicatorswereproposed.

In1969,theAmericanDigitalEquipmentCorporationdevelopedthefirstprogrammablecontroller(PDP-14).AftertrialingitontheproductionlineofGeneralMotors,theeffectwasremarkable;in1971,Japandevelopedthefirstprogrammablecontroller(PDP-14).Taiwanprogrammablecontroller(DCS-8);in1973,Germanydevelopedthefirstprogrammablecontroller;in1974,mycountrybegantodevelopprogrammablecontrollers:in1977,mycountrypromotedPLCinthefieldofindustrialapplications.

Theoriginalpurposeistoreplacemechanicalswitchingdevices(relaymodules).However,since1968,thefunctionofPLCgraduallyreplacedtherelaycontrolboard,modernPLChasmorefunctions.Itsuseextendsfromsingleprocesscontroltothecontrolandmonitoringoftheentiremanufacturingsystem.

развитие

Themicroprocessorappearedintheearly1970s.Peoplesoonintroduceditintoaprogrammablelogiccontroller,whichaddedfunctionssuchascalculation,datatransmissionandprocessing,andcompletedanindustrialcontroldevicewithrealcomputercharacteristics.Theprogrammablelogiccontrolleratthistimeistheproductofthecombinationofmicrocomputertechnologyandtheconventionalcontrolconceptofrelays.Afterthedevelopmentofpersonalcomputers,inordertofacilitateandreflectthefunctionalcharacteristicsofprogrammablecontrollers,programmablelogiccontrollerswerenamedProgrammableLogicController(PLC).

Inthemid-to-late1970s,programmablelogiccontrollersenteredthestageofpracticaldevelopment.Computertechnologyhasbeenfullyintroducedintoprogrammablecontrollers,makingtheirfunctionsleapforward.Highercomputingspeed,ultra-smallsize,morereliableindustrialanti-jammingdesign,analogcomputing,PIDfunctionandextremelyhighcostperformancehaveestablisheditspositioninmodernindustry.

Intheearly1980s,programmablelogiccontrollershavebeenwidelyusedinadvancedindustrialcountries.Thenumberofcountriesproducingprogrammablecontrollersintheworldisincreasing,andtheoutputisrisingdaybyday.Thisindicatesthattheprogrammablecontrollerhasenteredamaturestage.

Fromthe1980stothemid-1990s,programmablelogiccontrollersdevelopedthefastestperiod,withanannualgrowthrateof30-40%.Duringthisperiod,PLC’sabilitytohandleanalog,digitalcomputing,human-machineinterfaceandnetworkcapabilitieshasbeengreatlyimproved.ProgrammablelogiccontrollershavegraduallyenteredtheprocessThedominantDCSsystem.

Attheendofthe20thcentury,thecharacteristicsofthedevelopmentofprogrammablelogiccontrollersweremoreadaptedtotheneedsofmodernindustry.Duringthisperiod,mainframesandultra-minicomputersweredeveloped,variousspecialfunctionunitswereborn,andvariousman-machineinterfaceunitsandcommunicationunitswereproduced,makingiteasiertomatchindustrialcontrolequipmentusingprogrammablelogiccontrollers.

Основна структура

Programmablelogiccontrollerisessentiallyacomputerdedicatedtoindustrialcontrol.Itshardwarestructureisbasicallythesameasthatofamicrocomputer.ThebasiccompositionisshowninFigure1.Thebasicstructureisdescribedindetailasfollows:

Захранване

ThepowersupplyisusedtoconvertACpowerintoDCpowerrequiredbythePLC.Atpresent,mostPLCsuseswitched-modestabilizedpowersuppliesforpowersupply.

Централен процесор

Thecentralprocessingunit(CPU)isthecontrolcenterofthePLCandthecorecomponentofthePLC.ItsperformancedeterminestheperformanceofthePLC.

Thecentralprocessingunitiscomposedofacontroller,arithmeticunit,andregisters.Thesecircuitsareallconcentratedonachip,andareconnectedtotheinput/outputinterfacecircuitofthememorythroughanaddressbusandacontrolbus.Theroleofthecentralprocessingunitistoprocessandrunuserprograms,performlogicalandmathematicaloperations,andcontroltheentiresystemtocoordinate.

памет

паметisasemiconductorcircuitwithmemoryfunction.Itsfunctionistostoresystemprograms,userprograms,logicvariablesandotherinformation.Amongthem,thesystemprogramistheprogramthatcontrolsthePLCtorealizevariousfunctions.ItiswrittenbythePLCmanufacturerandsolidifiedintheread-onlymemory(ROM),whichcannotbeaccessedbytheuser.

Входна единица

TheinputunitistheinputinterfacethatconnectsthePLCtothecontrolleddevice.ItisthebridgeforthesignaltoenterthePLC.Itsfunctionistoreceivethemastercomponentandthedetectioncomponent.Signal.TheinputtypesareDCinput,ACinput,ACandDCinput.

Изходна единица

TheoutputunitisalsotheconnectionpartbetweenthePLCandthecontrolleddevice.ItsfunctionistotransmittheoutputsignalofthePLCtothecontrolleddevice,thatis,sendthecentralprocessorTheweakcurrentsignalisconvertedintoalevelsignaltodrivetheactuatorofthecontrolleddevice.Theoutputtypesincluderelayoutput,transistoroutput,andthyristoroutput.

Inadditiontotheabove-mentionedparts,PLCalsohasavarietyofexternaldevicesaccordingtodifferentmodels.Itsfunctionistohelpprogramming,realizemonitoringandnetworkcommunication.Commonlyusedexternaldevicesareprogrammers,printers,cassettetaperecorders,computersandsoon.

Принцип на работа

Whenaprogrammablelogiccontrollerisputintooperation,itsworkingprocessisgenerallydividedintothreestages,namelyinputsampling,userprogramexecutionandoutputrefresh.Completingtheabovethreestagesiscalledascancycle.Duringthewholeoperationperiod,theCPUoftheprogrammablelogiccontrollerrepeatedlyexecutestheabovethreestagesatacertainscanningspeed.

Входящо вземане на проби

Програмируем логически контролер (2 снимки)

Intheinputsamplingstage,theprogrammablelogiccontrollerisscannedsequentiallyReadinallinputstatusanddata,andstoretheminthecorrespondingunitintheI/Oimagearea.Aftertheinputsamplingisover,itgoestotheuserprogramexecutionandoutputrefreshstage.Inthesetwostages,eveniftheinputstatusanddatachange,thestatusanddataofthecorrespondingunitintheI/Omapareawillnotchange.Therefore,iftheinputisapulsesignal,thewidthofthepulsesignalmustbegreaterthanonescanperiodtoensurethattheinputcanbereadunderanycircumstances.

Изпълнение на потребителска програма

Intheuserprogramexecutionstage,theprogrammablelogiccontrolleralwaysscanstheuserprogram(ladderdiagram)sequentiallyfromtoptobottom.Whenscanningeachladderdiagram,thecontrolcircuitformedbythecontactsontheleftsideoftheladderdiagramisalwaysscannedfirst,andthelogicoperationisperformedonthecontrolcircuitformedbythecontactsintheorderofleftandright,upanddown.,Andthenaccordingtotheresultofthelogicoperation,refreshthestateofthecorrespondingbitofthelogiccoilinthesystemRAMstoragearea;orrefreshthestateofthecorrespondingbitoftheoutputcoilintheI/Oimagearea;ordeterminewhethertoexecutetheladderdiagramThespecifiedspecialfunctioninstructions.

Thatis,duringtheexecutionoftheuserprogram,onlythestateanddataoftheinputpointintheI/Oimageareawillnotchange,whileotheroutputpointsandsoftwaredevicesareintheI/Oimagearea.OrthestateanddataintheRAMstorageareaof​​thesystemmaychange,andtheladderdiagramslistedabovewillhaveaneffectontheladderdiagramslistedbelowthatusethesecoilsordata;onthecontrary,theladderdiagramslistedabovewillbeaffected.Intheladderdiagrambelow,thestateordataofthelogiccoiltoberefreshedcanonlytakeeffectontheprogramaboveituntilthenextscancycle.

Intheprocessofprogramexecution,ifyouuseimmediateI/Oinstructions,youcandirectlyaccessI/Opoints.EveniftheI/Oinstructionisused,thevalueoftheinputprocessimageregisterwillnotbeupdated.TheprogramdirectlyfetchesthevaluefromtheI/Omodule,andtheoutputprocessimageregisterwillbeupdatedimmediately,whichissomewhatdifferentfromtheimmediateinput.

Опресняване на изхода

Whenthescanninguserprogramends,theprogrammablelogiccontrollerenterstheoutputrefreshphase.Duringthisperiod,theCPUrefreshesalloutputlatchcircuitsaccordingtothecorrespondingstateanddataintheI/Oimagearea,andthendrivesthecorrespondingperipheralsthroughtheoutputcircuit.Atthistime,itistherealoutputoftheprogrammablelogiccontroller.

Резюме

Accordingtothedescriptionoftheaboveprocess,thecharacteristicsofthePLCworkingprocesscanbesummarizedasfollows:

①ThePLCadoptstheworkingmodeofcentralizedsamplingandcentralizedoutput.Thiswayreducestheinfluenceofexternalinterference.

②TheworkingprocessofthePLCisacyclicscanningprocess,andthelengthofthecyclicscanningtimedependsonfactorssuchastheinstructionexecutionspeedandthelengthoftheuserprogram.

③Theinfluenceofoutputoninputhasahysteresis.ThePLCadoptsacentralizedsamplingandcentralizedoutputworkingmode.Whenthesamplingphaseisover,theinputstatechangewillnotbereceiveduntilthenextsamplingperiod.Therefore,thelengthofthislagtimemainlydependsonthelengthofthecycleperiod.Inaddition,thefactorsthataffectthelagtimeincludetheinputfiltertime,thelagtimeoftheoutputcircuit,andsoon.

④Съдържанието на регистъра на изходния образ зависи от резултата от изпълнението на сканирането на потребителските програми.

⑤Съдържанието на резето за изход се определя от регистъра на данните за изходно изображение по време на последното опресняване на изхода.

⑥Текущото действително изходно състояние на PLC се определя от съдържанието на изходното резе.

Характеристика

(1)Highreliability.SincePLCsmostlyusesingle-chipmicrocomputers,theyarehighlyintegrated,coupledwithcorrespondingprotectioncircuitsandself-diagnosticfunctions,whichimprovethereliabilityofthesystem.

(2)Easytoprogram.PLCprogrammingmostlyusesrelaycontrolladderdiagramsandcommandstatements,andtheirnumberismuchlessthanmicrocomputerinstructions.Exceptformediumandhigh-endPLCs,thereareonlyabout16smallPLCsingeneral.Becausetheladderdiagramisvisualandsimple,itiseasytomasterandeasytouse,anditcanbeprogrammedevenwithoutcomputerexpertise.

(3)Flexibleconfiguration.AsthePLCadoptsabuildingblockstructure,theusercanflexiblychangethefunctionandscaleofthecontrolsystembysimplycombiningit.Therefore,itcanbeappliedtoanycontrolsystem.

(4)Completeinput/outputfunctionmodules.OneofthebiggestadvantagesofPLCisthatfordifferentfieldsignals(suchasDCorAC,switching,digitaloranalog,voltageorcurrent,etc.),therearecorrespondingtemplatesthatcanbeusedwithindustrialfielddevices(suchasbuttons,switches,etc.),Sensorcurrenttransmitter,motorstarterorcontrolvalve,etc.)aredirectlyconnected,andconnectedtotheCPUmainboardthroughthebus.

(5)Easytoinstall.Comparedwithcomputersystems,PLCinstallationneitherrequiresadedicatedcomputerroomnorstrictshieldingmeasures.Whenusing,onlyneedtocorrectlyconnectthedetectiondevicewiththeactuatorandtheI/OinterfaceterminalofthePLC,anditcanworknormally.

(6)Fastrunningspeed.BecausePLCcontrolisexecutedbyprogramcontrol,regardlessofitsreliabilityoroperatingspeed,itisincomparabletorelaylogiccontrol.

Inrecentyears,theuseofmicroprocessors,especiallywiththelarge-scaleadoptionofsingle-chipmicrocomputers,hasgreatlyenhancedthecapabilitiesofPLCandmadethedifferencebetweenPLCandmicrocomputercontrolsystemssmallerandsmaller,especiallyThisisespeciallytrueforhigh-endPLCs.

Системна интеграция

Inthemanufacturingindustry,therearealargenumberofswitch-basedopen-loopsequentialcontrol,whichperformssequentialactionsaccordingtologicalconditionsandoperatesintimesequence;inaddition,thereareThecontrolofthechainprotectionactioniscarriedoutaccordingtothelogicalrelationshipregardlessofsequenceandtiming;andalargenumberofstatequantitiessuchasswitchquantity,pulsequantity,timing,counter,analogquantityover-limitalarm,etc.—discretedataacquisitionandmonitoring.Duetothesecontrolandmonitoringrequirements,PLChasdevelopedintoaproductthatreplacesrelaycircuitsandperformssequentialcontrol.PLCmanufacturershavegraduallyincreasedvariouscommunicationinterfacesontheoriginalCPUtemplate,andthefieldbustechnologyandEthernettechnologyhavealsodevelopedsimultaneously,whichhasmadetheapplicationscopeofPLCmoreandmoreextensive.PLChastheadvantagesofstability,reliability,lowprice,completefunctions,flexibleandconvenientapplication,andconvenientoperationandmaintenance.Thisisthefundamentalreasonwhyitcanoccupythemarketforalongtime.

ThehardwareofthePLCcontrolleritselfadoptsabuildingblockstructure.Therearemotherboards,digitalI/Otemplates,analogI/Otemplates,aswellasspecialpositioningtemplates,barcoderecognitiontemplatesandothermodules.UserscanfollowNeedtoadoptthemethodofexpandingonthemotherboardorusingthebustechnologytoequiptheremoteI/OslavestationtogetthedesiredI/Oquantity.

PLCiscapableofoutputtinganalogvoltageanddigitalpulsewhilerealizingvariousnumbersofI/Ocontrol,sothatitcancontrolallkindsofservomotors,steppingmotorsthatcanreceivethesesignals,Variablefrequencymotors,etc.,coupledwithtouchscreenman-machineinterfacesupport,PLCcanmeetyourneedsatanylevelinprocesscontrol.

Правила за избор

Whendesigningaprogrammablelogiccontrollersystem,thecontrolplanshouldfirstbedetermined,andthenextstepistoselecttheprogrammablelogiccontrollerengineeringdesign.Thecharacteristicsoftheprocessflowandapplicationrequirementsarethemainbasisforthedesignandselection.Programmablelogiccontrollersandrelatedequipmentshouldbeintegratedandstandard,accordingtotheprincipleofeasyintegrationwithindustrialcontrolsystemsandeasyexpansionoftheirfunctionsForawell-established,matureandreliablesystem,thesystemhardware,softwareconfigurationandfunctionsoftheprogrammablelogiccontrollershouldbecompatiblewiththescaleandcontrolrequirementsofthedevice.Familiarwithprogrammablecontroller,functiontablediagramsandrelatedprogramminglanguages​​willhelpshortentheprogrammingtime.Therefore,whenselectingandestimatingengineeringdesign,thecharacteristicsoftheprocessandcontrolrequirementsshouldbeanalyzedindetail,andthecontroltasksandscopedeterminationrequirementsshouldbeclarified.Thenaccordingtothecontrolrequirements,estimatethenumberofinputandoutputpoints,therequiredmemorycapacity,determinethefunctionoftheprogrammablelogiccontroller,thecharacteristicsoftheexternalequipment,etc.,andfinallyselecttheprogrammablelogiccontrolleranddesignwithahighercostperformanceThecorrespondingcontrolsystem.

Оценка на броя точки

WhenestimatingthenumberofI/Opoints,anappropriatemarginshouldbeconsidered.Usuallybasedonthenumberofinputandoutputpoints,anexpandablemarginof10%to20%isadded.,Astheestimateddataofthenumberofinputandoutputpoints.Whenactuallyordering,theinputandoutputpointsneedtoberoundedaccordingtotheproductcharacteristicsofthemanufacturer'sprogrammablelogiccontroller.

паметcapacity

Thememorycapacityisthesizeofthehardwarestorageunitthattheprogrammablecontrolleritselfcanprovide,andtheprogramcapacityisthesizeofthestorageunitusedbytheuserapplicationinthememory,sotheprogramThecapacityislessthanthememorycapacity.Inthedesignstage,sincetheuserapplicationprogramhasnotbeencompiledyet,theprogramcapacityisunknowninthedesignstageandneedstobeknownaftertheprogramisdebugged.Inordertohaveacertainestimateoftheprogramcapacitywhendesigningandselecting,theestimateofthememorycapacityisusuallyusedinstead.

Thereisnofixedformulaforestimatingthememorycapacity.Manyliteraturesgivedifferentformulas,whicharegenerally10-15timesthenumberofdigitalI/Opoints,plusanalogI/O.100timesthenumberofpoints,thisnumberisthetotalnumberofwordsinthememory(16bitsisaword),and25%ofthisnumberisusedtoconsiderthemargin.

Контролна функцияизбор

Thisselectionincludestheselectionoffeaturessuchascalculationfunction,controlfunction,communicationfunction,programmingfunction,diagnosisfunctionandprocessingspeed.

1. Оперативна функция

Theoperationfunctionofsimpleprogrammablelogiccontrollerincludeslogicoperation,timingandcountingfunction;theoperationfunctionofordinaryprogrammablelogiccontrolleralsoincludesdatashift,Comparisonandothercalculationfunctions;morecomplexcalculationfunctionsincludealgebraiccalculations,datatransmission,etc.;therearealsoanalogPIDcalculationsandotheradvancedcalculationfunctionsinlargeprogrammablelogiccontrollers.Withtheadventofopensystems,programmablelogiccontrollershavealreadyhadcommunicationfunctions.Someproductshavecommunicationwiththelowercomputer,someproductshavecommunicationwiththesameoruppercomputer,andsomeproductsalsohavecommunicationwiththefactoryorenterprisenetwork.Thefunctionofdatacommunication.Whendesigningandselectingmodels,weshouldproceedfromtherequirementsofactualapplications,andreasonablyselecttherequiredcomputingfunctions.Mostapplicationsrequireonlylogicoperationsandtimingcountingfunctions.Someapplicationsrequiredatatransmissionandcomparison.Whenusedforanalogdetectionandcontrol,algebraicoperations,numericalconversionandPIDoperationsareused.Todisplaydata,operationssuchasdecodingandencodingarerequired.

2.Контролни функции

ControlfunctionsincludePIDcontrolcalculations,feedforwardcompensationcontrolcalculations,ratiocontrolcalculations,etc.,whichshouldbedeterminedaccordingtocontrolrequirements.Programmablelogiccontrollersaremainlyusedforsequentiallogiccontrol.Therefore,inmostoccasions,single-loopormulti-loopcontrollersareoftenusedtosolveanalogcontrol,andsometimesdedicatedintelligentinputandoutputunitsareusedtocompletetherequiredcontrolfunctionsandimprovetheProgramtheprocessingspeedofthelogiccontrollerandsavememorycapacity.Forexample,PIDcontrolunit,high-speedcounter,analogunitwithspeedcompensation,ASCcodeconversionunit,etc.areused.

3. Комуникационна функция

Largeandmedium-sizedprogrammablelogiccontrollersystemsshouldsupportmultiplefieldbusesandstandardcommunicationprotocols(suchasTCP/IP),andshouldbeabletocommunicatewiththefactorywhenneededInternet(TCP/IP)connection.ThecommunicationprotocolshouldconformtotheISO/IEEEcommunicationstandard,anditshouldbeanopencommunicationnetwork.

Thecommunicationinterfaceoftheprogrammablelogiccontrollersystemshouldincludeserialandparallelcommunicationinterfaces,RIOcommunicationports,commonlyusedDCSinterfaces,etc.;largeandmedium-sizedprogrammablelogiccontrollercommunicationbus(includinginterfaceequipmentandcables)Itshallbeconfiguredwith1:1redundancy,thecommunicationbusshallcomplywithinternationalstandards,andthecommunicationdistanceshallmeettheactualrequirementsofthedevice.

Inthecommunicationnetworkoftheprogrammablelogiccontrollersystem,theupper-levelnetworkcommunicationrateshouldbegreaterthan1Mbps,andthecommunicationloadshouldnotbegreaterthan60%.Themainformsofthecommunicationnetworkoftheprogrammablelogiccontrollersystemareasfollows:

1)PCisthemasterstation,andmultipleprogrammablelogiccontrollersofthesamemodelareslavestationstoformasimpleprogrammablelogiccontrolControllernetwork;

2)Oneprogrammablelogiccontrolleristhemasterstation,andotherprogrammablelogiccontrollersofthesamemodelareslavestations,formingamaster-slaveprogrammablelogiccontrollernetwork;

3)TheprogrammablelogiccontrollernetworkisconnectedtoalargeDCSasasubnetoftheDCSthroughaspecificnetworkinterface;

4)Dedicatedprogrammablelogiccontrollernetwork(dedicatedprogrammablelogicofvariousmanufacturersControllercommunicationnetwork).

InordertoreducetheCPUcommunicationtask,accordingtotheactualneedsofnetworkcomposition,communicationprocessorswithdifferentcommunicationfunctions(suchaspoint-to-point,fieldbus,)shouldbeselected.

4. Функция за програмиране

Offlineprogrammingmode:TheprogrammablelogiccontrollerandtheprogrammershareaCPU.Whentheprogrammerisintheprogrammingmode,theCPUonlyprovidesservicesfortheprogrammer.Fielddevicesarecontrolled.Aftertheprogrammingiscompleted,theprogrammerswitchestotheoperatingmode,andtheCPUcontrolsthefielddevicesandcannotperformprogramming.Offlineprogrammingcanreducesystemcosts,butitisinconvenienttouseanddebug.Onlineprogrammingmode:CPUandprogrammerhavetheirownCPU.ThehostCPUisresponsibleforon-sitecontrolandexchangesdatawiththeprogrammerduringascancycle.Theprogrammersendstheprogramordatacompiledonlinetothehost.Thenextscancycle,Thehostrunsaccordingtothenewlyreceivedprogram.Thismethodhasahighcost,butitisconvenientforsystemdebuggingandoperation,andisoftenusedinlargeandmedium-sizedprogrammablelogiccontrollers.

Fivestandardizedprogramminglanguages:SequentialFunctionChart(SFC),LadderDiagram(LD),FunctionModuleDiagram(FBD),threegraphicallanguages​​andstatementlist(IL)andstructuredtext(ST)Textlanguage.Theselectedprogramminglanguageshouldcomplywithitsstandard(IEC6113123).Atthesametime,itshouldalsosupportmultiplelanguageprogrammingforms,suchasC,Basic,etc.,tomeetthecontrolrequirementsofspecialcontroloccasions.

5.Диагностична функция

Thediagnosisfunctionofprogrammablelogiccontrollerincludeshardwareandsoftwarediagnosis.Thehardwarediagnosisdeterminesthefaultlocationofthehardwarethroughthelogicaljudgmentofthehardware,andthesoftwarediagnosisisdividedintointernaldiagnosisandexternaldiagnosis.DiagnosingtheinternalperformanceandfunctionsofthePLCthroughsoftwareisinternaldiagnosis,anddiagnosingtheinformationexchangefunctionsoftheprogrammablelogiccontroller'sCPUandexternalinputandoutputcomponentsthroughsoftwareisexternaldiagnosis.

Thestrengthofthediagnosticfunctionoftheprogrammablelogiccontrollerdirectlyaffectstherequirementsforthetechnicalcapabilitiesoftheoperationandmaintenancepersonnel,andaffectstheaveragemaintenancetime.

6. Скорост на обработка

Programmablelogiccontrollersworkinscanningmode.Fromthepointofviewofreal-timerequirements,theprocessingspeedshouldbeasfastaspossible.Ifthesignaldurationislessthanthescanningtime,theprogrammablelogiccontrollerwillnotbeabletoscanthesignal,resultinginthelossofsignaldata.

Theprocessingspeedisrelatedtothelengthoftheuserprogram,CPUprocessingspeed,softwarequality,etc.Theprogrammablelogiccontrollercontactshavefastresponseandhighspeed,andtheexecutiontimeofeachbinaryinstructionisabout0.2-0.4Ls,soitcanmeettheneedsofapplicationswithhighcontrolrequirementsandcorrespondingrequirements.Thescanperiod(processorscanperiod)shouldsatisfy:thescantimeofasmallprogrammablelogiccontrollerisnotmorethan0.5ms/K;thescantimeofalargeandmedium-sizedprogrammablelogiccontrollerisnotmorethan0.2ms/K.

Тип контролер

Programmablelogiccontrollersaredividedintointegraltypeandmodulartypeaccordingtothestructure.Accordingtotheapplicationenvironment,theyaredividedintotwotypes:on-siteinstallationandcontrolroominstallation;accordingtoCPUThewordlengthisdividedinto1bit,4bit,8bit,16bit,32bit,64bit,etc.Fromtheapplicationpointofview,itcanusuallybeselectedaccordingtothecontrolfunctionorthenumberofinputandoutputpoints.

TheintegralprogrammablelogiccontrollerhasafixednumberofI/Opoints,sousershavelessroomforchoice,whichisusedinsmallcontrolsystems;modularprogrammablelogiccontrollersprovideavarietyofI/OcardsOrinsertacard,sotheusercanselectandconfiguretheI/Opointsofthecontrolsystemmorereasonably,andthefunctionexpansionisconvenientandflexible.Itisgenerallyusedforlargeandmedium-sizedcontrolsystems.

Тип вход и изход

Theswitchquantitymainlyreferstothebinaryinputandoutput,whichreferstotheauxiliarypointofadevice,suchastherelayofthetemperaturecontrollerofthetransformer.Auxiliarypoint(displacementaftertransformerover-temperature),auxiliarypointofvalvecamswitch(displacementaftervalveswitch),auxiliarypointofcontactor(displacementaftercontactoraction),thermalrelay(afterthermalrelayaction)Displacement),thesepointsaregenerallytransmittedtothePLCorcomprehensiveprotectiondevice.ThepowersupplyisgenerallyprovidedbythePLCorcomprehensiveprotectiondevice.Itdoesnothaveapowersourceitself,soitiscalledapassivecontact,alsocalledtheopeningofthePLCorcomprehensiveprotectiondevice.quantity.

1. Цифрови количества

Physicalquantitiesthatarediscreteintimeandquantityarecalleddigitalquantities.Thesignalthatrepresentsadigitalquantityiscalledadigitalsignal.Anelectroniccircuitthatworksunderadigitalsignaliscalledadigitalcircuit.

Forexample:whenusinganelectroniccircuittorecordthenumberofpartsoutputfromanautomaticproductionline,everytimeapartissent,asignalisgiventotheelectroniccircuittomakeitrecord1,andusuallynopartsaresenttotheelectroniccircuitThesignalis0,whereitiscounting.Itcanbeseenthatthesignalofthenumberofpartsisdiscontinuousinbothtimeandquantity,soitisadigitalsignal.Thesmallestquantityunitis1.

2.Аналогово количество

Physicalquantitiesthatarecontinuousintimeorvaluearecalledanalogquantities.Thesignalthatrepresentsananalogquantityiscalledananalogsignal.Anelectroniccircuitthatworksunderananalogsignaliscalledananalogcircuit.

Forexample:thevoltagesignaloutputbythethermocoupleisananalogsignal,becausethemeasuredtemperatureisunlikelytohaveasuddenjumpunderanycircumstances,sothemeasuredvoltagesignaliseitherintimeorinThenumbersarecontinuous.Moreover,anyvalueofthisvoltagesignalinthecontinuouschangeprocesshasaspecificphysicalmeaning,thatis,representsacorrespondingtemperature.

Принцип на преобразуване

1.Adigital-to-analogconverterisasystemthatconvertsadigitalsignalintoananalogsignal,whichcangenerallyberealizedbylow-passfiltering.Thedigitalsignalisdecodedfirst,thatis,thedigitalcodeisconvertedintoacorrespondingleveltoformasteppedsignal,andthenlow-passfilteringisperformed.

Accordingtothetheoryofsignalsandsystems,adigitalsteppedsignalcanberegardedastheconvolutionofanidealimpulsesamplingsignalandarectangularimpulsesignal.Thenaccordingtotheconvolutiontheorem,thefrequencyspectrumofthedigitalsignalistheimpulsesamplingsignalTheproductofthefrequencyspectrumandtherectangularpulsefrequencyspectrum(thatis,theSafunction).Inthisway,thereciprocaloftheSafunctionisusedasthespectralcharacteristiccompensation,andthedigitalsignalcanberestoredtothesampledsignal.Accordingtothesamplingtheorem,thefrequencyspectrumofthesampledsignalisfilteredthroughideallow-passfilteringtoobtainthefrequencyspectrumoftheoriginalanalogsignal.

Ingeneralimplementation,itisnotdirectlybasedontheseprinciples,becausesharpsamplingsignalsaredifficulttoobtain.Therefore,thesetwofilters(Safunctionandideallow-pass)canbecombined(cascaded),andbecauseofthisThefilteringcharacteristicsofeachsystemarephysicallyunrealizable,soitcanonlybeapproximatedinarealsystem.

2.Аналогово-цифровият преобразувател е система, която преобразува аналогови сигнали в цифрови сигнали. Това е процес на филтриране, задържане на проби и кодиране.

Аналоговият сигнал е филтриран с ограничена честотна лента, схема за вземане на проби и задържане, в сигнал във формата на стълба и след това през енкодера, така че всяко ниво на сигнала във формата на стълба да се преобразува в двоичен код.

Изберете модел

TherearemanytypesofPLCproducts.DifferentPLC моделscorrespondtotheirdifferentstructure,performance,capacity,instructionsystem,programmingmethod,price,etc.,andtheirapplicableoccasionsalsohavetheirownemphasis.Therefore,areasonableselectionofPLCisofgreatsignificanceforimprovingthetechnicalandeconomicindicatorsofthePLCcontrolsystem.

PLC модел

ThechoiceofPLCshouldbecomprehensivelyconsideredfromtheaspectsofPLC модел,capacity,I/Omodules,powersupplymodules,specialfunctionmodules,andcommunicationnetworkingcapabilities.ThebasicprincipleofPLC моделselectionistostriveforthebestperformance-to-priceratiounderthepremiseofmeetingfunctionalrequirementsandensuringreliabilityandconvenientmaintenance.Theselectionshouldmainlyconsiderfactorssuchasreasonablestructuretype,choiceofinstallationmethod,correspondingfunctionalrequirements,responsespeedrequirements,systemreliabilityrequirements,andunifiedmodelsasmuchaspossible.

Структурен тип

PLCmainlyhastwostructuraltypes:integraltypeandmodulartype.

TheaveragepriceofeachI/OpointoftheintegratedPLCischeaperthanthatofthemodulartype,andthevolumeisrelativelysmall.Itisgenerallyusedinasmallcontrolsystemwitharelativelyfixedsystemprocess;whilethemodularPLCThefunctionexpansionisflexibleandconvenient.ThereisalargechoiceinthenumberofI/Opoints,theratioofthenumberofinputpointstothenumberofoutputpoints,thetypesofI/Omodules,etc.,andthemaintenanceisconvenient,generallyinmorecomplexcontrolsystems.

Метод на инсталиране

TheinstallationmethodofPLCsystemisdividedintocentralizedtype,remoteI/Otype,anddistributedmultiplePLCnetworking.

CentralizedtypedoesnotneedtosetupthedriveremoteI/Ohardware,thesystemrespondsquickly,andthecostislow;theremoteI/Otypeissuitableforlarge-scalesystems,thesystemdevicesaredistributedinawiderange,andtheremoteI/OcanbedispersedInstallednearthefielddevice,theconnectionisshort,butthedriveandremoteI/Opowersupplyneedtobeadded;thedistributednetworkofmultiplePLCsissuitablefortheoccasionswheremultipledevicesareindependentlycontrolledandconnectedtoeachother.SmallPLCscanbeused,butAcommunicationmodulemustbeattached.

Функционални изисквания

Като цяло малките (от нисък клас) PLC притежават функции като логически операции, синхронизация и отчитане, които могат да бъдат изпълнени за устройства, които изискват само контрол на превключвател.

Forsystemsthatarebasedonon-offcontrolandwithasmallamountofanalogcontrol,anenhancedlow-endsystemwithA/DandD/Aconversionunits,plusandminusarithmeticoperations,anddatatransmissionfunctionscanbeusedPLC.Formorecomplexcontrol,itisrequiredtorealizefunctionssuchasPIDcalculation,closed-loopcontrol,communicationnetworking,etc.,dependingonthesizeandcomplexityofthecontrol,selectmid-rangeorhigh-endPLC.However,mediumandhigh-endPLCsaremoreexpensive,andaregenerallyusedinlarge-scaleprocesscontrolanddistributedcontrolsystems.

Скорост на реакция

PLCisageneral-purposecontrollerdesignedforindustrialautomation.TheresponsespeedofdifferentgradesofPLCcangenerallymeettheneedsofitsapplication.IfyouwanttousethePLCacrossarange,orwhencertainfunctionsorsignalshavespecialspeedrequirements,youshouldcarefullyconsidertheresponsespeedofthePLC.YoucanchooseaPLCwithhigh-speedI/Oprocessingfunctions,orchooseafastresponsemoduleandinterruptinputModulePLC,etc.

Надеждност

ItcanmeetthereliabilityofgeneralsystemPLC.Forsystemswithhighreliabilityrequirements,considerationshouldbegiventowhethertoadoptaredundantsystemorahotstandbysystem.

Опитайте се да обедините моделите, доколкото е възможно

AcompanyshouldtrytounifythePLC моделs.Thefollowingthreeaspectsaremainlyconsidered:

1)Themodelisunified,anditsmodulescanbeusedassparesforeachother,whichisconvenientfortheprocurementandmanagementofspareparts.

2)Themodelisunified,anditsfunctionsandusagemethodsaresimilar,whichisconducivetothetrainingoftechnicalforceandtheimprovementoftechnicallevel.

3)Themodelisunified,theexternalequipmentisuniversal,theresourcescanbeshared,anditiseasytocommunicatewiththenetwork.Whenequippedwithahostcomputer,itiseasytoformamulti-leveldistributedcontrolsystem.

Преглед на приложението

Управление с отворен контур

TheopenloopcontroloftheswitchisthemostbasiccontrolfunctionofPLC.ThePLCcommandsystemhaspowerfullogicoperationcapabilities,anditiseasytoimplementvariouslogiccontrolmethodssuchastiming,counting,andsequence(stepping).MostPLCsareusedtoreplacetraditionalrelaycontactorcontrolsystems.

Аналогов затворен контур

Foranalogclosed-loopcontrolsystems,inadditiontodigitalinputandoutput,theremustalsobeanaloginputandoutputpointsforsamplinginputandadjustmentTheoutputrealizescontinuousadjustmentandcontroloftemperature,flow,pressure,displacement,speedandotherparameters.ThecurrentPLCnotonlyhasthisfunctionforlargeandmedium-sizedmachines,butalsosomesmallmachineshavethisfunction.

Цифрово управление

Whenthecontrolsystemhasarotaryencoderandpulseservodevice(suchasasteppermotor),PLCcanbeusedtorealizethefunctionofreceivingandoutputtinghigh-speedpulsestorealizedigitalControl,themoreadvancedPLChasalsospeciallydevelopedadigitalcontrolmodulethatcanrealizecurveinterpolation.Recently,anewtypeofmotionunitmodulehasbeenintroduced,anditcanalsoprovideaprogramminglanguagefordigitalcontroltechnology,makingiteasierforPLCtorealizedigitalcontrol.

Събиране на данни и наблюдение

SincePLCismainlyusedforon-sitecontrol,itisaverynecessaryfunctiontocollecton-sitedata.Onthisbasis,connectthePLCtothehostcomputerortouchscreen,whichisThecurrentvalueofthesedatacanbeobserved,andstatisticalanalysiscanbeperformedintime.SomePLCshaveadatarecordingunit,andageneralpersonalcomputermemorycardcanbeinsertedintotheunittosavethecollecteddata.AnothercharacteristicofPLCisthattherearemanyself-checksignals.Usingthisfeature,thePLCcontrolsystemcanrealizeself-diagnosticmonitoring,reducesystemfailures,andimprovesystemreliability.

Related Articles
TOP