Model { Name "motor2008" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions 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 DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Mar 13 11:11:54 2008" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "USER" ModifiedDateFormat "%" LastModifiedDate "Thu Apr 03 11:39:49 2008" 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 BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode45" SolverMode "Auto" StartTime "0.0" StopTime "0.2" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-6" 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 AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" 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 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 Inport Port "1" PortDimensions "-1" SampleTime "-1" 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" InitialCondition "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 Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow 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 { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" } Block { 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 "motor2008" Location [292, 143, 986, 737] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Display Name "Amperemeter" Ports [1] Position [460, 245, 550, 275] Decimation "1" } Block { BlockType Constant Name "Constant" Position [25, 15, 55, 45] } Block { BlockType Constant Name "Constant1" Position [15, 292, 90, 348] Value "100*0.074/2" } Block { BlockType Constant Name "Eanom" Position [35, 105, 65, 135] Value "240" } Block { BlockType SubSystem Name "Gangguan B" Ports [0, 1] Position [270, 414, 370, 456] FontSize 10 TreatAsAtomicUnit off System { Name "Gangguan B" Location [585, 339, 1121, 687] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Step" Position [85, 85, 115, 115] Time "4" After "0.25*0.8885" SampleTime "0" } Block { BlockType Step Name "Step1" Position [115, 155, 145, 185] Time "5" After "0.25*0.8885" SampleTime "0" } Block { BlockType Step Name "Step2" Position [85, 200, 115, 230] Time "6" After "-0.35*0.8885" SampleTime "0" } Block { BlockType Step Name "Step3" Position [115, 270, 145, 300] Time "6.5" After "-0.35*0.8885" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [165, 90, 185, 110] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [165, 205, 185, 225] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [260, 90, 280, 110] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Out1" Position [360, 93, 390, 107] } Line { SrcBlock "Step" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Step3" SrcPort 1 Points [25, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [80, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [100, 15, 130, 45] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [125, 305, 155, 335] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [135, 420, 165, 450] } Block { BlockType SubSystem Name "Motor DC" Ports [3, 2] Position [190, 101, 425, 239] TreatAsAtomicUnit off System { Name "Motor DC" Location [45, 213, 1219, 822] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "125" Block { BlockType Inport Name "Tegangan janglar [Volt]" Position [45, 138, 75, 152] } Block { BlockType Inport Name "Tahanan Seri Rs" Position [35, 258, 65, 272] Port "2" } Block { BlockType Inport Name "Beban Luar" Position [45, 363, 75, 377] Port "3" } Block { BlockType TransferFcn Name "1/J" Position [730, 127, 790, 163] Denominator "[0.236]" } Block { BlockType TransferFcn Name "1/La" Position [345, 127, 405, 163] Denominator "[0.0021]" } Block { BlockType Constant Name "Beban Nol" Position [635, 304, 700, 356] Value "0.01*0.8885" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [450, 130, 480, 160] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [825, 130, 855, 160] } Block { BlockType TransferFcn Name "Kb" Position [570, 392, 630, 428] Orientation "left" Numerator "[1.2531]" Denominator "[1]" } Block { BlockType TransferFcn Name "Kb1" Position [560, 127, 620, 163] ShowName off Numerator "[1.1631]" Denominator "[1]" } Block { BlockType TransferFcn Name "Kb2" Position [895, 92, 955, 128] ShowName off Numerator "60" Denominator "[2*pi]" } Block { BlockType Product Name "Product" Ports [2, 1] Position [345, 196, 390, 229] Orientation "left" InputSameDT off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [785, 231, 830, 264] Orientation "left" InputSameDT off } Block { BlockType Constant Name "Ra" Position [200, 296, 230, 324] Value "0.074" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [160, 125, 200, 165] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [250, 125, 290, 165] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [245, 245, 285, 285] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [655, 125, 695, 165] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [700, 265, 740, 305] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Kecepatan Putar [RPM]" Position [985, 103, 1015, 117] } Block { BlockType Outport Name "Arus Jangkar [Amp]" Position [985, 23, 1015, 37] Port "2" } Line { SrcBlock "Tegangan janglar [Volt]" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Kb" SrcPort 1 Points [-385, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "1/La" DstPort 1 } Line { SrcBlock "1/La" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [-70, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Integrator" SrcPort 1 Points [35, 0] Branch { Points [0, 60] DstBlock "Product" DstPort 1 } Branch { DstBlock "Kb1" DstPort 1 } Branch { Points [0, -115] DstBlock "Arus Jangkar [Amp]" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 Points [125, 0; 0, -45] DstBlock "Product" DstPort 2 } Line { SrcBlock "Ra" SrcPort 1 Points [30, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Tahanan Seri Rs" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Kb1" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "1/J" DstPort 1 } Line { SrcBlock "1/J" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [20, 0] Branch { Points [0, 95] Branch { DstBlock "Product1" DstPort 1 } Branch { Points [0, 170] DstBlock "Kb" DstPort 1 } } Branch { DstBlock "Kb2" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 Points [-105, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Beban Nol" SrcPort 1 Points [15, 0] DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 Points [110, 0; 0, -30] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Beban Luar" SrcPort 1 Points [515, 0; 0, -85] DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Kb2" SrcPort 1 DstBlock "Kecepatan Putar [RPM]" DstPort 1 } Annotation { Name "eb(t)" Position [207, 193] } Annotation { Name "Km" Position [595, 174] } Annotation { Name "B" Position [792, 304] } } } Block { BlockType Constant Name "Rs" Position [15, 163, 95, 197] Value "100*0.074" } Block { BlockType Constant Name "Rs1" Position [15, 218, 105, 252] Value "0.99*0.8885" } Block { BlockType Step Name "Step" Position [40, 420, 70, 450] Time "2" After "50*0.074" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [130, 160, 150, 180] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [205, 310, 225, 330] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [145, 205, 165, 225] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Display Name "Tachometer" Ports [1] Position [455, 49, 535, 71] Decimation "1" } Block { BlockType ToWorkspace Name "To Workspace" Position [165, 15, 225, 45] ShowName off VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [465, 120, 525, 150] ShowName off VariableName "omega" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [470, 190, 530, 220] ShowName off VariableName "arus" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace3" Position [130, 70, 190, 100] ShowName off VariableName "Rs" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace4" Position [300, 285, 360, 315] ShowName off VariableName "Beban" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "To Workspace" DstPort 1 } Line { SrcBlock "Motor DC" SrcPort 1 Points [10, 0] Branch { DstBlock "To Workspace1" DstPort 1 } Branch { DstBlock "Tachometer" DstPort 1 } } Line { SrcBlock "Motor DC" SrcPort 2 Points [5, 0] Branch { DstBlock "To Workspace2" DstPort 1 } Branch { Points [0, 55] DstBlock "Amperemeter" DstPort 1 } } Line { SrcBlock "Eanom" SrcPort 1 Points [0, 5] DstBlock "Motor DC" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [10, 0] Branch { DstBlock "Motor DC" DstPort 2 } Branch { Points [0, -30; -50, 0] DstBlock "To Workspace3" DstPort 1 } } Line { SrcBlock "Rs" SrcPort 1 Points [0, -10] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [20, 0; 0, -45; -110, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Rs1" SrcPort 1 Points [0, -20] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [5, 0] Branch { DstBlock "Motor DC" DstPort 3 } Branch { Points [0, 85] DstBlock "To Workspace4" DstPort 1 } } Line { SrcBlock "Gangguan B" SrcPort 1 Points [25, 0; 0, -170; -245, 0] DstBlock "Sum2" DstPort 2 } Annotation { Name "Waktu" Position [190, 51] } } }