PLC

Úvod

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.

Historie vývoje

Původ

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.

Rozvoj

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.

Základní struktura

Programmablelogiccontrollerisessentiallyacomputerdedicatedtoindustrialcontrol.Itshardwarestructureisbasicallythesameasthatofamicrocomputer.ThebasiccompositionisshowninFigure1.Thebasicstructureisdescribedindetailasfollows:

Zdroj napájení

ThepowersupplyisusedtoconvertACpowerintoDCpowerrequiredbythePLC.Atpresent,mostPLCsuseswitched-modestabilizedpowersuppliesforpowersupply.

Centrální procesorová jednotka

Thecentralprocessingunit(CPU)isthecontrolcenterofthePLCandthecorecomponentofthePLC.ItsperformancedeterminestheperformanceofthePLC.

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

Paměť

Paměťisasemiconductorcircuitwithmemoryfunction.Itsfunctionistostoresystemprograms,userprograms,logicvariablesandotherinformation.Amongthem,thesystemprogramistheprogramthatcontrolsthePLCtorealizevariousfunctions.ItiswrittenbythePLCmanufacturerandsolidifiedintheread-onlymemory(ROM),whichcannotbeaccessedbytheuser.

Vstupní jednotka

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

Výstupní jednotka

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

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

Pracovní princip

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

Vstupní vzorkování

Programmablelogiccontroller (2 fotografie)

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

Provádění uživatelského programu

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.

Outputrefresh

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

souhrn

Accordingtothedescriptionoftheaboveprocess,thecharacteristicsofthePLCworkingprocesscanbesummarizedasfollows:

①ThePLCadoptstheworkingmodeofcentralizedsamplingandcentralizedoutput.Thiswayreducestheinfluenceofexternalinterference.

②TheworkingprocessofthePLCisacyclicscanningprocess,andthelengthofthecyclicscanningtimedependsonfactorssuchastheinstructionexecutionspeedandthelengthoftheuserprogram.

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

④Obsah registru výstupních obrazů závisí na výsledku provádění uživatelských programů.

⑤Obsah výstupní závory je určen datem registru výstupního obrazu během poslední obnovy výstupu.

⑥Aktuální skutečný výstupní stav PLC je určen obsahem výstupní západky.

Funkce

(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)Kompletní vstupní/výstupní funkční moduly.Jednou z největších výhod PLC je, že pro různé signály pole (jako jsou DC nebo AC, spínání, digitální analogové, napětí nebo proud atd.), existují odpovídající šablony šablon, které lze použít k přímému připojení zařízení v průmyslovém poli, k přímému připojení snímačů, k připojení k hlavním tlačítkům motoru nebo k.

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

(6)Fastrunningspeed.BecausePLCcontrolisexecutedbyprogramcontrol,regardlessofitsreliabilityoroperatingspeed,itisincomparabletorelaylogiccontrol.

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

Systémová integrace

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.

Pravidla výběru

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

Odhad počtu bodů

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

Paměťcapacity

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

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

Volba ovládacích funkcí

Thisselectionincludestheselectionoffeaturessuchascalculationfunction,controlfunction,communicationfunction,programmingfunction,diagnosisfunctionandprocessingspeed.

1. Provozní funkce

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.Ovládací funkce

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

3. Komunikační funkce

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.Funkce programování

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.Diagnostická funkce

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

Thestrengthofthediagnosticfunctionoftheprogrammablelogiccontrollerdirectlyaffectstherequirementsforthetechnicalcapabilitiesoftheoperationandmaintenancepersonnel,andaffectstheaveragemaintenancetime.

6.Rychlost zpracování

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.

Typ ovladače

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.

Typ vstupu a výstupu

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

1.Digitální veličiny

Physicalquantitiesthatarediscreteintimeandquantityarecalleddigitalquantities.Thesignalthatrepresentsadigitalquantityiscalledadigitalsignal.Anelectroniccircuitthatworksunderadigitalsignaliscalledadigitalcircuit.

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

2.Analogové množství

Physicalquantitiesthatarecontinuousintimeorvaluearecalledanalogquantities.Thesignalthatrepresentsananalogquantityiscalledananalogsignal.Anelectroniccircuitthatworksunderananalogsignaliscalledananalogcircuit.

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

Konverzní princip

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.Analogový převodník na digitální je systém, který převádí analogové signály na digitální signály. Jedná se o proces filtrování, uchovávání vzorků a kódování.

Analogový signál je pásmově omezený filtrovaný, vzorkovací a přidržovací obvod, do signálu ve tvaru žebříku a poté prostřednictvím kodéru, takže každá úroveň signálu ve tvaru žebříku je v binárním kódu.

Vyberte model

TherearemanytypesofPLCproducts.DifferentModel PLCscorrespondtotheirdifferentstructure,performance,capacity,instructionsystem,programmingmethod,price,etc.,andtheirapplicableoccasionsalsohavetheirownemphasis.Therefore,areasonableselectionofPLCisofgreatsignificanceforimprovingthetechnicalandeconomicindicatorsofthePLCcontrolsystem.

Model PLC

ThechoiceofPLCshouldbecomprehensivelyconsideredfromtheaspectsofModel PLC,capacity,I/Omodules,powersupplymodules,specialfunctionmodules,andcommunicationnetworkingcapabilities.ThebasicprincipleofModel PLCselectionistostriveforthebestperformance-to-priceratiounderthepremiseofmeetingfunctionalrequirementsandensuringreliabilityandconvenientmaintenance.Theselectionshouldmainlyconsiderfactorssuchasreasonablestructuretype,choiceofinstallationmethod,correspondingfunctionalrequirements,responsespeedrequirements,systemreliabilityrequirements,andunifiedmodelsasmuchaspossible.

Strukturální typ

PLCmainlyhastwostructuraltypes:integraltypeandmodulartype.

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

Způsob instalace

TheinstallationmethodofPLCsystemisdividedintocentralizedtype,remoteI/Otype,anddistributedmultiplePLCnetworking.

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

Funkční požadavky

Obecně mají malé (nízké) PLC funkce, jako jsou logické operace, časování a počítání, které lze splnit u zařízení, která vyžadují pouze ovládání spínačem.

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

Rychlost odezvy

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

Spolehlivost

ItcanmeetthereliabilityofgeneralsystemPLC.Forsystemswithhighreliabilityrequirements,considerationshouldbegiventowhethertoadoptaredundantsystemorahotstandbysystem.

Pokuste se sjednotit modely, jak je to jen možné

AcompanyshouldtrytounifytheModel PLCs.Thefollowingthreeaspectsaremainlyconsidered:

1)Themodelisunified,anditsmodulescanbeusedassparesforeachother,whichisconvenientfortheprocurementandmanagementofspareparts.

2)Themodelisunified,anditsfunctionsandusagemethodsaresimilar,whichisconducivetothetrainingoftechnicalforceandtheimprovementoftechnicallevel.

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

Přehled aplikace

Openloopcontrol

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

Analogová uzavřená smyčka

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

Digitální ovládání

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

Sběr a monitorování dat

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

Související články
HORNÍ