PLC

Johdanto

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.

Kehityshistoria

Alkuperä

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.

Kehitys

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.

Perusrakenne

Programmablelogiccontrollerisessentiallyacomputerdedicatedtoindustrialcontrol.Itshardwarestructureisbasicallythesameasthatofamicrocomputer.ThebasiccompositionisshowninFigure1.Thebasicstructureisdescribedindetailasfollows:

Virtalähde

ThepowersupplyisusedtoconvertACpowerintoDCpowerrequiredbythePLC.Atpresent,mostPLCsuseswitched-modestabilizedpowersuppliesforpowersupply.

Prosessori

Thecentralprocessingunit(CPU)isthecontrolcenterofthePLCandthecorecomponentofthePLC.ItsperformancedeterminestheperformanceofthePLC.

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

Muisti

Muistiisasemiconductorcircuitwithmemoryfunction.Itsfunctionistostoresystemprograms,userprograms,logicvariablesandotherinformation.Amongthem,thesystemprogramistheprogramthatcontrolsthePLCtorealizevariousfunctions.ItiswrittenbythePLCmanufacturerandsolidifiedintheread-onlymemory(ROM),whichcannotbeaccessedbytheuser.

Syöttöyksikkö

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

Lähtöyksikkö

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

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

Toimintaperiaate

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

Tulonäytteenotto

Ohjelmoitava logiikkaohjain (2 kuvaa)

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

Käyttäjäohjelman suoritus

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.

Yhteenveto

Accordingtothedescriptionoftheaboveprocess,thecharacteristicsofthePLCworkingprocesscanbesummarizedasfollows:

①ThePLCadoptstheworkingmodeofcentralizedsamplingandcentralizedoutput.Thiswayreducestheinfluenceofexternalinterference.

②TheworkingprocessofthePLCisacyclicscanningprocess,andthelengthofthecyclicscanningtimedependsonfactorssuchastheinstructionexecutionspeedandthelengthoftheuserprogram.

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

④Tulostekuvarekisterin sisältö riippuu käyttäjäohjelmien skannaussuorituksen tuloksesta.

⑤Tulostussalvan sisältö määräytyytulostuskuvarekisterin tietojen perusteella viimeisen lähdön päivityksen aikana.

⑥PLC:n nykyinen todellinen lähtötila määräytyy lähtösalvan sisällön mukaan.

ominaisuudet

(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.

Järjestelmän integrointi

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.

Valintasäännöt

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

Pisteiden lukumäärän arvio

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

Muisticapacity

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

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

Ohjaustoimintojen valinta

Thisselectionincludestheselectionoffeaturessuchascalculationfunction,controlfunction,communicationfunction,programmingfunction,diagnosisfunctionandprocessingspeed.

1. Käyttötoiminto

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.Ohjaustoiminnot

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

3. Viestintätoiminto

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. Ohjelmointitoiminto

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. Diagnoositoiminto

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

Thestrengthofthediagnosticfunctionoftheprogrammablelogiccontrollerdirectlyaffectstherequirementsforthetechnicalcapabilitiesoftheoperationandmaintenancepersonnel,andaffectstheaveragemaintenancetime.

6. Käsittelynopeus

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.

Ohjaintyyppi

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.

Inputandoutputtype

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

1.Digitaaliset määrät

Physicalquantitiesthatarediscreteintimeandquantityarecalleddigitalquantities.Thesignalthatrepresentsadigitalquantityiscalledadigitalsignal.Anelectroniccircuitthatworksunderadigitalsignaliscalledadigitalcircuit.

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

2. Analoginen määrä

Physicalquantitiesthatarecontinuousintimeorvaluearecalledanalogquantities.Thesignalthatrepresentsananalogquantityiscalledananalogsignal.Anelectroniccircuitthatworksunderananalogsignaliscalledananalogcircuit.

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

Muuntamisen periaate

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.Analogia-digitaalimuunninjärjestelmä, joka muuntaasanalogiset signaalit digitaalisiksi signaaleiksi. Se on prosessisuodatus, näytteen säilyttäminen ja koodaus.

Analoginen signaalikaistarajoitettu suodatettu, näyte-ja pidä-piiri,tikkaamaiseksi signaaliksi,ja sittenkooderin kauttajokainentasoinen tikapuun muotoinen signaali binaarikoodiksi.

Valitse malli

TherearemanytypesofPLCproducts.DifferentPLC-malliscorrespondtotheirdifferentstructure,performance,capacity,instructionsystem,programmingmethod,price,etc.,andtheirapplicableoccasionsalsohavetheirownemphasis.Therefore,areasonableselectionofPLCisofgreatsignificanceforimprovingthetechnicalandeconomicindicatorsofthePLCcontrolsystem.

PLC-malli

ThechoiceofPLCshouldbecomprehensivelyconsideredfromtheaspectsofPLC-malli,capacity,I/Omodules,powersupplymodules,specialfunctionmodules,andcommunicationnetworkingcapabilities.ThebasicprincipleofPLC-malliselectionistostriveforthebestperformance-to-priceratiounderthepremiseofmeetingfunctionalrequirementsandensuringreliabilityandconvenientmaintenance.Theselectionshouldmainlyconsiderfactorssuchasreasonablestructuretype,choiceofinstallationmethod,correspondingfunctionalrequirements,responsespeedrequirements,systemreliabilityrequirements,andunifiedmodelsasmuchaspossible.

Rakennetyyppi

PLCmainlyhastwostructuraltypes:integraltypeandmodulartype.

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

Asennusmenetelmä

TheinstallationmethodofPLCsystemisdividedintocentralizedtype,remoteI/Otype,anddistributedmultiplePLCnetworking.

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

Toiminnalliset vaatimukset

Yleensä pienillä (halvoilla) PLC:illä on toimintoja, kuten loogisia toimintoja, ajoitusta ja laskentaa, jotka voidaan täyttää laitteille, jotka edellyttävät vain kytkinohjausta.

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

Vastausnopeus

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

Luotettavuus

ItcanmeetthereliabilityofgeneralsystemPLC.Forsystemswithhighreliabilityrequirements,considerationshouldbegiventowhethertoadoptaredundantsystemorahotstandbysystem.

Yritä yhtenäistäämallejamahdollisuuksien mukaan

AcompanyshouldtrytounifythePLC-mallis.Thefollowingthreeaspectsaremainlyconsidered:

1)Themodelisunified,anditsmodulescanbeusedassparesforeachother,whichisconvenientfortheprocurementandmanagementofspareparts.

2)Themodelisunified,anditsfunctionsandusagemethodsaresimilar,whichisconducivetothetrainingoftechnicalforceandtheimprovementoftechnicallevel.

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

Sovelluksen yleiskatsaus

Openloop-ohjaus

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

Analoginen suljettu silmukka

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

Digitaalinen ohjaus

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

Tiedonhankinta ja seuranta

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

Related Articles
TOP