Model { Name "PID_StepChangeInLoad_2" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0" StopTime "20" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" 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 off Created "Sun Mar 04 11:52:19 2001" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Sat Mar 17 16:10:23 2001" ModelVersionFormat "1.%" ConfigurationManager "none" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } 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_StepChangeInLoad_2" Location [281, 84, 781, 489] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom off ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "PID" Ports [1, 1, 0, 0, 0] Position [130, 103, 190, 147] FontSize 14 ShowPortLabels on MaskDescription "PID Controller:\nEnter the control parameters i" "n \nGain\nReset Rate (=1/Ti)\nDerivative Time\n" MaskHelp "c(t) = K(e(t) + (1/Ti)* Integral(e(t)dt) + Td*d" "erivativeerror)\nDone on: 04-Mar-20001;\nM.Subramanian\nmsubbu@svce.ac.in" MaskPromptString "Gain|Reset Rate (= 1/Ti)|Derivative Time" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskVariables "K=@1;OnebyTi=@2;Td=@3;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" MaskValueString "1|1|1" System { Name "PID" Location [354, 84, 784, 311] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In1" Position [25, 73, 55, 87] Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Gain Name "1" Position [205, 25, 235, 55] ShowName off Gain "1" SaturateOnIntegerOverflow on } Block { BlockType Derivative Name "Derivative" Position [250, 65, 280, 95] } Block { BlockType Gain Name "Derivative Time" Position [175, 65, 205, 95] Gain "Td" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "Integrator" Ports [1, 1, 0, 0, 0] Position [250, 120, 280, 150] ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "Proportional Gain" Position [80, 65, 110, 95] Gain "K" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Reset Rate" Position [175, 120, 205, 150] Gain "OnebyTi" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [3, 1, 0, 0, 0] Position [325, 46, 350, 109] IconShape "rectangular" Inputs "|+++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Out1" Position [375, 73, 405, 87] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Derivative Time" SrcPort 1 DstBlock "Derivative" DstPort 1 } Line { SrcBlock "Reset Rate" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Derivative" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "1" SrcPort 1 Points [70, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Proportional Gain" SrcPort 1 Points [20, 0] Branch { DstBlock "Derivative Time" DstPort 1 } Branch { Points [0, 55] DstBlock "Reset Rate" DstPort 1 } Branch { Points [0, -40] DstBlock "1" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Proportional Gain" DstPort 1 } Annotation { Position [229, 202] Text "PID Controller" FontSize 14 } } } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [405, 109, 435, 141] FontSize 14 Floating off Location [114, 139, 594, 496] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "auto" YMin "0" YMax "0.05" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Constant Name "Set point\n Constant" Position [15, 110, 45, 140] FontSize 14 Value "0" } Block { BlockType Step Name "Step" Position [305, 15, 335, 45] Orientation "down" NamePlacement "alternate" FontSize 14 Time "1" Before "0" After "1" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [310, 115, 330, 135] NamePlacement "alternate" ShowName off FontSize 14 IconShape "round" Inputs "++|" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [75, 115, 95, 135] NamePlacement "alternate" ShowName off FontSize 14 IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Transfer Fcn" Position [230, 107, 290, 143] ShowName off FontSize 14 Numerator "[10]" Denominator "[1 -1]" } Block { BlockType TransferFcn Name "Transfer Fcn1" Position [170, 192, 230, 228] Orientation "left" ShowName off FontSize 14 Numerator "[1]" Denominator "[1 1]" } Block { BlockType TransferFcn Name "Transfer Fcn2" Position [289, 60, 351, 95] Orientation "down" ShowName off FontSize 14 Numerator "[5]" Denominator "[1 -1]" } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Set point\n Constant" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [15, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { Points [0, 85] DstBlock "Transfer Fcn1" DstPort 1 } } Line { SrcBlock "PID" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { Labels [0, 0] SrcBlock "Sum1" SrcPort 1 DstBlock "PID" DstPort 1 } Line { SrcBlock "Transfer Fcn1" SrcPort 1 Points [-80, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 DstBlock "Transfer Fcn2" DstPort 1 } Line { SrcBlock "Transfer Fcn2" SrcPort 1 DstBlock "Sum" DstPort 1 } Annotation { Position [156, 276] Text "PID controller - Step change in Load" FontSize 14 } } }