Model { Name "hw1rollmill" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Sun Sep 29 13:07:08 2002" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Sun Sep 29 16:15:19 2002" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "30.0" SolverMode "Auto" Solver "ode5" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep ".01" 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 "Array" LimitDataPoints on MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" 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 ExtModeLogAll on OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt off BooleanDataType off 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 "hw1rollmill" Location [492, 74, 1147, 591] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom off ReportName "simulink-default.rpt" Block { BlockType TransportDelay Name "Actuator\nDelay" Position [240, 140, 270, 170] DelayTime ".01" InitialInput "0" BufferSize "1024" PadeOrder "0" Port { PortNumber 1 Name "screw\nposition" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Step Name "Desired\nThickness, \nh_d, mm" Position [35, 140, 65, 170] Time "10" Before "3" After "3" SampleTime "0" VectorParams1D on } Block { BlockType Gain Name "Influence of\nInput Thickness" Position [340, 37, 380, 83] Gain "2/(1+2)" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Influence of \nScrew Position" Position [325, 132, 365, 178] Gain "1/(1+2)" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Constant Name "Input\nThickness, \nH, mm" Position [265, 45, 295, 75] Value "4" VectorParams1D on } Block { BlockType TransportDelay Name "Measurement\nDelay" Position [295, 235, 325, 265] Orientation "left" DelayTime "1" InitialInput "0" BufferSize "1024" PadeOrder "0" } Block { BlockType SubSystem Name "PI Controller" Ports [1, 1] Position [160, 125, 200, 185] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "PI Controller" Location [657, 228, 847, 310] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In1" Position [20, 88, 50, 102] Port "1" Interpolate on } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [120, 25, 150, 55] ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "Ki" Position [185, 24, 235, 56] BackgroundColor "orange" Gain "4" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Kp" Position [185, 135, 235, 165] BackgroundColor "orange" Gain "2" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [245, 85, 265, 105] ShowName off IconShape "round" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Out1" Position [310, 88, 340, 102] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "In1" SrcPort 1 Points [0, 0; 40, 0] Branch { Points [0, -55] DstBlock "Integrator" DstPort 1 } Branch { Labels [2, 0] Points [0, 55] DstBlock "Kp" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Ki" DstPort 1 } Line { SrcBlock "Ki" SrcPort 1 Points [15, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Kp" SrcPort 1 Points [15, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Saturate Name "Saturation" Position [480, 140, 510, 170] UpperLimit "Inf" LowerLimit "0" LinearizeAsGain on } Block { BlockType Scope Name "Scope" Ports [1] Position [565, 114, 595, 146] Floating off Location [156, 372, 480, 611] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "30" YMin "0" YMax "10" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [395, 145, 415, 165] NamePlacement "alternate" ShowName off IconShape "round" Inputs "++|" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "Output\nThickness, \nh, mm" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [100, 145, 120, 165] ShowName off IconShape "round" Inputs "|+-" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "error" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType ToWorkspace Name "To Workspace" Position [565, 175, 625, 205] VariableName "rollmill" MaxDataPoints "inf" Decimation "1" SampleTime "-1" SaveFormat "Structure" } Line { SrcBlock "Input\nThickness, \nH, mm" SrcPort 1 DstBlock "Influence of\nInput Thickness" DstPort 1 } Line { SrcBlock "Influence of\nInput Thickness" SrcPort 1 Points [20, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Influence of \nScrew Position" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { Name "Output\nThickness, \nh, mm" Labels [0, 1] SrcBlock "Sum" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Measurement\nDelay" SrcPort 1 Points [-180, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Desired\nThickness, \nh_d, mm" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { Name "error" Labels [0, 1] SrcBlock "Sum1" SrcPort 1 DstBlock "PI Controller" DstPort 1 } Line { Labels [0, 0] SrcBlock "PI Controller" SrcPort 1 DstBlock "Actuator\nDelay" DstPort 1 } Line { Name "screw\nposition" Labels [0, 1] SrcBlock "Actuator\nDelay" SrcPort 1 DstBlock "Influence of \nScrew Position" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 Points [15, 0] Branch { Points [0, 95] DstBlock "Measurement\nDelay" DstPort 1 } Branch { Points [20, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { DstBlock "To Workspace" DstPort 1 } } } } }