ARCHIVO Simulink Controlador PID

download ARCHIVO Simulink Controlador PID

of 11

Transcript of ARCHIVO Simulink Controlador PID

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    1/11

    Model { Name "pid" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off S howLineDimensions off ShowPortDataTypes off

    ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off D ataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Sep 06 16:22:24 2006" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%"

    LastModifiedBy "Maquina15" ModifiedDateFormat "%" LastModifiedDate "Mon Sep 11 18:40:30 2006" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off

    ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    2/11

    BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode45" SolverMode "Auto" StartTime "0.0" StopTime "10.0" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-3" AbsTol "auto" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime on

    TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints on MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning"

    UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType on ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on A ssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32"

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    3/11

    RTWSystemTargetFile "grt. tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block {

    BlockType Abs SaturateOnIntegerOverflow on ZeroCross on } Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType Fcn Expr "sin(u[1])" } Block { BlockType Gain

    Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1"

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    4/11

    ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" Init ialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block {

    BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto"

    RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block {

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    5/11

    BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "auto" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal"

    } System { Name "pid" Location [239, 162, 875, 381] Open on ModelBrowserVisibility off M odelBrowserWidth 212 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Display Name "IAE" Ports [1] Position [80, 120, 170, 150] Orientation "left" Decimation "1" } Block { BlockType SubSystem Name "PID Sencillo" Ports [2, 2] Position [250, 74, 335, 156]

    Orientation "left" TreatAsAtomicUnit off MaskType "Controlador PID" MaskDescription "Este es un diseno muy sencillo de controlador ""PID. Tiene la capacidad de poder trabajar como controlador P, PI, PD y PID. S""e puede especificar si la accion de trabajo es Directa o Reversa. Al colocarl""o en modo manual, se desconecta toda accion del controlador, enviando como s""alida la senal de estado estacionario especificada.\nEsta basado en la Ecuaci""on 5-3.17 del Smith/Corripio, 2d. Edicion. pag. 236.\n\nProf. Edinzo Iglesias""\nEscuela Ingenieria Quimica, ULA, Venezuela" MaskPromptString "Modo de Funcionamiento del Controlador:|Kc|Tau ""I|Tau D|Constante de filtro alpha|m bar|Accion Integral|Accion Derivativa|Acc""ion del controlador: Reversa o Directa" MaskStyleString "popup(Automatico|Manual),edit,edit,edit,edit,ed""it,checkbox,checkbox,popup(Directa|Reversa)" MaskTunableValueString "on,on,on,on,on,on,on,on,on" MaskCallbackString "||||||||" MaskEnableString "on,on,on,on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on,on,on,on"

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    6/11

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    7/11

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    8/11

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    9/11

    SrcBlock "Sum3" SrcPort 1 Points [50, 0] Branch { Points [0, -190] DstBlock "Abs" DstPort 1 } Branch { Points [100, 0] Branch { Points [0, -105] DstBlock "Sum2" DstPort 1 } Branch { DstBlock "Accion integral" DstPort 1 } Branch { Points [0, 105] DstBlock "Accion derivativa" DstPort 1

    } }}Line { SrcBlock "Kc" SrcPort 1 DstBlock "directa o reversa" DstPort 1}Line { SrcBlock "Sum" SrcPort 1 DstBlock "Saturation" DstPort 1}Line { SrcBlock "Saturation" SrcPort 1 DstBlock "m" DstPort 1}Line { SrcBlock "directa o reversa" SrcPort 1 DstBlock "auto o manual" DstPort 1}

    Line { SrcBlock "auto o manual" SrcPort 1 DstBlock "Sum" DstPort 1}

    } } Block { BlockType Step Name "cset_PV" Position [590, 120, 620, 150] Orientation "left" After "0" SampleTime "0" } Block { BlockType SubSystem Name "escalado"

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    10/11

    Ports [1, 1] Position [415, 118, 510, 152] Orientation "left" TreatAsAtomicUnit off MaskPromptString "PVmin|PVmax" MaskStyleString "edit ,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskVariables "PVmin=@1;PVmax=@2;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" M askValueString "0|0" System {

    Name "escalado"Location [476, 103, 860, 359]Open offModelBrowserVisibility off

    ModelBrowserWidth 200ScreenColor "white"PaperOrientation "landscape"PaperPositionMode "auto"PaperType "usletter"PaperUnits "inches"ZoomFactor "100"Block { BlockType Inport Name "PV set" Position [75, 113, 105, 127]}Block { BlockType Gain Name "Kt" Position [205, 105, 235, 135] Gain "100/(PVmax-PVmin)"}Block { BlockType Sum Name "Sum" Ports [2, 1] Position [145, 110, 165, 130] ShowName off IconShape "round" Inputs "|+-"}

    Block { BlockType Constant Name "Tmin" Position [75, 157, 105, 173] Value "PVmin"}Block { BlockType Outport Name "c1 set" Position [265, 113, 295, 127]}Line { SrcBlock "Kt" SrcPort 1 DstBlock "c1 set" DstPort 1}Line { SrcBlock "Sum"

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl

    e 11 12/04/2012 10:18 p.m.

  • 7/25/2019 ARCHIVO Simulink Controlador PID

    11/11

    SrcPort 1 DstBlock "Kt" DstPort 1}Line { SrcBlock "PV set" SrcPort 1 DstBlock "Sum" DstPort 1}Line { SrcBlock "Tmin" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2}

    } } Line { SrcBlock "escalado" SrcPort 1 DstBlock "PID Sencillo"

    DstPort 2 } Line { SrcBlock "PID Sencillo" SrcPort 2 DstBlock "IAE" DstPort 1 } Line { SrcBlock "cset_PV" SrcPort 1 DstBlock "escalado" DstPort 1 } }}

    http://webdelprofesor.ula.ve/ingenieria/iedinzo/pid.mdl