资源描述
1,DESIGNER,BristolBabcock软件培训,2,3,4,5,6,7,8,9,10,PhysicalHardwareRTU_CFGisthetypeofcodegenerationrequiredforthecontrollerforControlWavethisisalwaysIPC_30,RTU_RESOURCEdefinesthetypeofrun-timesystemusedTasksaretheactualmechanismbywhichprogramsareexecuted.System_Variablesdefinecertainvariableswhichmaintainstatisticsabouttheproject.IO_ConfigurationdefinestheinputsandoutputsoftheprocessI/OboardsintheControlWavecontrollerandoptionallytheControlWaveEthernetI/O.,11,TasksTasksdeterminethetimeschedulingoftheprogramsassociatedwiththem.Thismeansthatprogramshavetobeassociatedtotasks.Thesettingsofthetaskdeterminethetimescheduling.IEC61131-3describesdifferenttimeschedulingwhichleadtothreedifferenttasktypes:Cyclictasksareactivatedinacertaintimeintervalandtheprogramisexecutedperiodically.Eventorinterrupttasksareactivatedifacertaineventhashappened.SystemtaskswillbeactivatedifanerroroccurswhenexecutingthePLCprogram.Systemtasksareassociatedwithsystemprograms.Eachtaskhasacertainpriority.Insocalledpreemptiveschedulingsystems,anactivetaskwithlowpriorityisinterruptedimmediately,whenataskwithhigherprioritybecomesactiveduetoacertainevent.Insystemswithnon-preemptivescheduling,taskinterruptionsbytaskswithhigherpriorityarenotpossible.,12,13,14,Globalvariables10000LocalVariables15000Resourcesintheprojecttree100Tasksperresource15Programinstancespertask500Embeddedlibraries15Programsperlibrary1000Programsperproject2000Codebodyworksheetsperprogram64DifferentFunction/FunctionBlocksperprogram620SametypeFunction/FunctionBlocksperprogram1024Steps/Transitionsperprogram110Actionsperprogram165Contacts/coilsperprogram3000NestingFunctions/FunctionBlocks128Nestinglevelsforuser-defineddatatypes8Elementsinastructure200Elementsinanarray32766FOR/CASE/IFnestinglevels200OpenOn-linewindows30,ProjectLimit,15,16,变量类型,17,18,19,20,21,22,23,变量范围,ThescopeofeachvariablewhichisdeterminedbytheuseofthevariablekeywordislimitedeithertoaPOUortothewholeproject.Thereforetwotypescanbedistinguished:LocalvariablesGlobalvariablesIfavariablecanbeusedonlywithinaPOUitiscalledlocalvariable.InthosecasesthevariablekeywordsVAR,VAR_INPUTandVAR_OUTPUTmustbeused.Ifavariablecanbeusedwithinthewholeprojectitiscalledglobalvariable.IthastobedeclaredasVAR_GLOBALintheglobaldeclarationandasVAR_EXTERNALineachPOUwhereitisused.,24,定义变量的关键字,25,26,27,28,29,30,31,32,33,34,StartingControlWaveDesigner,35,36,37,38,39,40,Example:Creatasampleprogramme,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,PID模块,ParametersirInputDefault:0.0Format:REALInput/Output:Inputrepresentsthemeasuredvariable(MV).irSetpointDefault:0.0Format:REALInput/Output:Inputisthedesiredcontrolpoint(setpoint)atwhichthemeasuredvariableshouldbeheld.irDeadbandDefault:0.0Format:REALInput/Output:Inputmustbeapositivenumber.Itspurposeistoeliminatedisturbancessmallerthanthedeadband.,73,irProportionDefault:0.0Format:REALInput/Output:Inputdeterminestheamountofoutputchangethatwillbeproducedbyachangeoferror.Thehigherthenumberinthisparameter,thehighertheFunctionBlockgain.Avalueof1.0providesunitygain.rIntegralDefault:0.0Format:REALInput/Output:Inputestablishestheresetrateinrepeats-per-minute?forexample,avalueof1.0providesonerepeatperminute.Avalueofzeroturnsoffintegralaction.irDerivativeDefault:0.0Format:REALInput/Output:Inputrepresentstheamountofratecorrectioninminutes.,74,irResetDefault:0.0Format:REALInput/Output:InputibTrackDefault:0.0Format:BOOLInput/Output:Input,TheRESETandTRACKparametersforcetheFunctionBlockoutputtoaknownvalue.Theyareusedtoprevent“resetwindup”oftheFunctionBlockoutput,toestablishinitialoutputvalues,andtoprovidetransitionswithoutbumpswhenchangingfrommanualtoautomaticmode.,TheTRACKsignalisalogicalinputwhich,whensetON,forcestheFunctionBlockoutputtofollowtheRESETparameterinputvalue.ItisusedtogaincontroloftheFunctionBlockoutputwhenconditionswarrantit.,75,orOutputDefault:0.0Format:REALInput/Output:OutputisthecalculatedoutputvalueoftheFunctionBlockafterDEADBANDisapplied.ItisusuallywiredtotheOUTPUTparameterofanAnalogOutputasshowninthefigureabove.InitialOUTPUTvaluesareestablishedusingTRACKandRESET.orErrorDefault:0.0Format:REALInput/Output:Outputistheinputerror(SETPOINT-INPUT)oftheFunctionBlockmultipliedby-1.0.,76,iarFlowTempDefault:None,entryrequiredFormat:REALInput/Output:InputistheflowinggastemperatureindegreesFahrenheit.iarStatPressDefault:None,entryrequiredFormat:REALInput/Output:Inputisthestaticpressureinpsia.Ifthisparameterhasanegativevalue,computationswillnotbeperformed.iarBaseTempDefault:60degreesFFormat:REALInput/Output:InputisthegasbasetemperatureindegreesFahrenheit.,77,iarBasePressDefault:14.73psiaFormat:REALInput/Output:Inputisthegasbasepressureinpsia.Iftheparameterhasanegativevaluenocomputationsareperformed.iiListDefault:None,EntryrequiredifiarArrayisnotwired.Format:INTInput/Output:Inputisthenumberofalistcontainingthegascomponentinformation.ThegascomponentsMUSTbeplacedintheorderspecifiedintheComponentOrderportionofthissection.IfboththeiiListandiarArrayparametersarewired,onlytheiiListparameterwillbeused.,78,iarArrayDefault:None,EntryrequiredifiiListparameterisnotwired.Format:REALInput/Output:InputisaREALdatatypearraycontainingthegascomponentinformation.ThegascomponentsmustbeplacedintheorderspecifiedintheComponentOrderportionofthissection.Onedimensionalarraysmustbe1rowbyNcolumns,whereNcanbe1to21.Forcaseswherethearraycontainscomponentsfrommultiplegasstreams,morerowscanbeadded.IfboththeiiListandiarArrayparametersarewired,theiarArrayparameterisignored.,79,iiRowDefault:1Format:INTInput/Output:Inputisthearrayrowcontainingupto21gascomponentstobeusedinthecalculation.ThisparametercanbeusedtoperformsuccessiveAGA8DETAILcalculationsonmultiplegasstreamsbyindexingthroughthearrayrows.Invalidrowvaluesproduceanerrorandnocomputationisperformed.,odiStatusDefault:NoneFormat:DINTInput/Output:OutputisastatuscodewhichisupdatedafterexecutionoftheFunctionBlock.,80,orZFlowingDefault:NoneFormat:REALInput/Output:Outputisthecompressibilityatflowingconditions.,orZBaseDefault:NoneFormat:REALInput/Output:Outputisthecompressibilityatbaseconditions.orFPVDefault:NoneFormat:REALInput/Output:Outputisthesupercompressibilityratio(Zb/Z).,81,ComponentOrderGascomponentsinlistsorarrayrowsmustbeinthefollowingorder.Thenumberofcomponentscanvaryfrom1to21,buttheorderisimportantandmustbefollowed.Ifthelistorarrayisshort;i.e.,lessthan21components,theremainingundefinedcomponentswillbegivenadefaultvalueof0.,ComponentNameComponentName1Methane2Nitrogen3CarbonDioxide4Ethane5Propane6Water7HydrogenSulfide8Hydrogen9CarbonMonoxide10Oxygen11i-Butane12n-Butane13i-Pentane14n-Pentane15n-Hexane16n-Heptane17n-Octane18n-Nonane19n-Decane20Helium21Argon,82,83,84,85,
展开阅读全文