Model { Name "stoker" Version 7.0 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.216" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks on BrowserLookUnderMasks on Created "Thu Jul 05 14:24:58 2007" Creator "skj" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Heine" ModifiedDateFormat "%" LastModifiedDate "Wed May 28 16:02:27 2008" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SimulationMode "external" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" 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 off ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.3.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.3.0" StartTime "0.0" StopTime "inf" AbsTol "auto" FixedStep "TsPWM" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "ode4" SolverName "ode4" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.3.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.3.0" BlockReduction off BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnforceIntegerDowncast on ExpressionFolding off ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs off RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.3.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "none" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.3.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Zero" ProdEndianess "LittleEndian" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit xPC Target (AMD Athlon)" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "32-bit Generic" TargetUnknown off ProdEqTarget off } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.3.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 2 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" PropName "DisabledProps" } Version "1.3.0" SystemTargetFile "xpctarget.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "xpc_default_tmf" Description "xPC Target" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "xpctarget_make_rtw_hook" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off RTWCompilerOptimization "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 16 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } Version "1.3.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } xpctarget.xpcTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 15 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } Version "1.3.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on CompOptLevelCompliant off IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off RL32ModeModifier "Real-Time" ExtMode on ExtModeMexFile "ext_xpc" ExtModeIntrfLevel "Level2 - Open" ExtModeArmWhenConnect off RL32LogTETModifier off RL32LogBufSizeModifier "9000000" RL32IRQSourceModifier "Timer" xPCIRQSourceBoard "None/Other" xPCIOIRQSlot "-1" xpcDblBuff off xpcObjCom off xPCGenerateASAP2 off xPCGenerateXML on RL32ObjectName "tg" xPCisDownloadable on xPCisDefaultEnv on xPCTargetPCEnvName "tg" } PropName "Components" } } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 " CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType DataTypeConversion OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via back propagation" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType DiscreteIntegrator IntegratorMethod "Integration: Forward Euler" gainval "1.0" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" InitialConditionMode "State and output" SampleTime "1" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow off LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off IgnoreLimit off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Ground } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType RateTransition Integrity on Deterministic on X0 "0" OutPortSampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType SignalSpecification Dimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" SampleTime "inf" FramePeriod "inf" } Block { BlockType Lookup InputValues "[-4:5]" Table " rand(1,10)-0.5" LookUpMeth "Interpolation-Extrapolation" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" LUTDesignTableMode "Redesign Table" LUTDesignDataSource "Block Dialog" LUTDesignFunctionName "sqrt(x)" LUTDesignUseExistingBP on LUTDesignRelError "0.01" LUTDesignAbsError "1e-6" } Block { BlockType RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" ZeroCross on SampleTime "-1" } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "stoker" Location [0, 61, 1672, 1057] Open on ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "95" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Fan Speed Hz" Position [525, 115, 555, 145] Value "30" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType SubSystem Name "Feed screew gain" Ports [1, 1] Position [245, 316, 315, 354] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Feed screew gain" Location [433, 403, 931, 703] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gear Gain 5 10 20" Position [220, 95, 250, 125] Gain "5" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gear Gain 5 10 20" DstPort 1 } Line { SrcBlock "Gear Gain 5 10 20" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Reference Name "Filter \non/off" Ports [2, 1] Position [945, 92, 975, 128] NamePlacement "alternate" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off Port { PortNumber 1 Name "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Filter \non/off2" Ports [2, 1] Position [1005, 142, 1035, 178] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off Port { PortNumber 1 Name "Trøg" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Filter on/off1" Ports [2, 1] Position [950, 192, 980, 228] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off Port { PortNumber 1 Name "Lambda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Filter on/off3" Ports [2, 1] Position [1005, 242, 1035, 278] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off Port { PortNumber 1 Name "Retur" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType SubSystem Name "Gain Ts" Ports [1, 1] Position [405, 356, 460, 404] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Gain Ts" Location [412, 747, 910, 1047] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [160, 95, 190, 125] Gain "Ts" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Gain1" Position [215, 94, 275, 126] Gain "0.01" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Gain2" Position [300, 94, 360, 126] Gain "0.01" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType RateTransition Name "Rate Transition" Position [380, 89, 415, 131] OutPortSampleTime "TsPWM" } Block { BlockType Outport Name "Out1" Position [435, 103, 465, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "IO card " Ports [7, 25] Position [670, 89, 845, 711] NamePlacement "alternate" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "Temp" PropagatedSignals "Kedel Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Trøg" PropagatedSignals "Røg Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 6 Name "Lamda" PropagatedSignals "oxygen/Lambda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 7 Name "Retur" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "IO card " Location [288, 93, 1594, 1037] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "95" Block { BlockType Inport Name "Analog Out 1" Position [120, 83, 150, 97] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Inport Name "Calorifier Hz" Position [120, 118, 150, 132] NamePlacement "alternate" Port "2" IconDisplay "Port number" } Block { BlockType Inport Name " Blower\nPWM %" Position [95, 458, 125, 472] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Stoker engine" Position [95, 543, 125, 557] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Dig out 5" Position [95, 573, 125, 587] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Dig out 6" Position [95, 608, 125, 622] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Dig out 7" Position [95, 638, 125, 652] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Analog Out" Ports [2] Position [265, 71, 350, 144] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Analog Out" Location [381, 727, 879, 1027] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ana out 1" Position [40, 103, 70, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Calorifier" Position [40, 188, 70, 202] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [110, 95, 150, 125] Gain "0.5" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [115, 180, 155, 210] ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "PCL-812PG 1" Ports [1] Position [195, 165, 300, 225] SourceBlock "xpcadvantechlib/D//A/PCL-812PG " SourceType "daadvpcl812pg" channels "[2]" ranges "[5]" sample "-1" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG 2" Ports [1] Position [195, 80, 300, 140] SourceBlock "xpcadvantechlib/D//A/PCL-812PG " SourceType "daadvpcl812pg" channels "[1]" ranges "[5]" sample "-1" baseaddr "0x220" } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "PCL-812PG 1" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "PCL-812PG 2" DstPort 1 } Line { SrcBlock "Calorifier" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Ana out 1" SrcPort 1 DstBlock "Gain" DstPort 1 } } } Block { BlockType Constant Name "Constant" Position [205, 610, 235, 640] OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Constant3" Position [100, 365, 130, 395] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [185, 108, 245, 142] Gain "1/10" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Inputs / Sensor adjustments" Ports [0, 9] Position [610, 644, 725, 936] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "Kedel Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Røg Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 5 Name "Lambda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Inputs / Sensor adjustments" Location [472, 122, 1470, 753] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "Analog Input" Ports [0, 16] Position [140, 75, 195, 415] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "Ana In 1" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "Ana In 2" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Ana In 3" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 6 Name "Ano In 6" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Analog Input" Location [474, 443, 972, 1236] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "PCL-812PG" Ports [0, 1] Position [40, 67, 145, 123] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[1]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG1" Ports [0, 1] Position [40, 147, 145, 203] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[2]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG2" Ports [0, 1] Position [40, 222, 145, 278] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[3]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG3" Ports [0, 1] Position [40, 372, 145, 428] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[5]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG4" Ports [0, 1] Position [40, 457, 145, 513] SourceBlock "xpcadvantechlib/A//D/PCL-812PG" SourceType "adadvpcl812pg" channels "[6]" range "[-10]" sample "TsMaaling" baseaddr "0x220" } Block { BlockType Outport Name "Boiler temp" Position [200, 88, 230, 102] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp" Position [200, 168, 230, 182] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Oxygen/Lambda" Position [200, 243, 230, 257] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 4" Position [200, 318, 230, 332] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Return temp" Position [205, 393, 235, 407] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Water Flow" Position [205, 478, 235, 492] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 7" Position [200, 543, 230, 557] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 8" Position [200, 618, 230, 632] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 9" Position [410, 88, 440, 102] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 10" Position [405, 168, 435, 182] Port "10" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 11" Position [405, 243, 435, 257] Port "11" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 12" Position [405, 318, 435, 332] Port "12" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 13" Position [410, 393, 440, 407] Port "13" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 14" Position [410, 478, 440, 492] Port "14" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 15" Position [410, 543, 440, 557] Port "15" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Ana In 16" Position [410, 618, 440, 632] Port "16" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "PCL-812PG2" SrcPort 1 DstBlock "Oxygen/Lambda" DstPort 1 } Line { SrcBlock "PCL-812PG1" SrcPort 1 DstBlock "Smoke temp" DstPort 1 } Line { SrcBlock "PCL-812PG" SrcPort 1 DstBlock "Boiler temp" DstPort 1 } Line { SrcBlock "PCL-812PG3" SrcPort 1 DstBlock "Return temp" DstPort 1 } Line { SrcBlock "PCL-812PG4" SrcPort 1 DstBlock "Water Flow" DstPort 1 } } } Block { BlockType SubSystem Name "Filter Boiler Temp" Ports [1, 2] Position [605, 67, 705, 123] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Filter Boiler Temp" Location [493, 660, 991, 960] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [70, 53, 100, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [120, 46, 170, 74] Gain "0.2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [200, 105, 230, 135] Orientation "left" NamePlacement "alternate" Gain "0.8" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [185, 50, 205, 70] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [250, 103, 285, 137] Orientation "left" NamePlacement "alternate" SampleTime "-1" } Block { BlockType Outport Name "Out Filtret" Position [360, 53, 390, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out2" Position [365, 153, 395, 167] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Sum" SrcPort 1 Points [90, 0; 0, 0] Branch { DstBlock "Out Filtret" DstPort 1 } Branch { DstBlock "Unit Delay" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] Branch { Points [0, 100] DstBlock "Out2" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Gain1" DstPort 1 } } } Block { BlockType SubSystem Name "Filter Boiler return Temp" Ports [1, 2] Position [615, 317, 715, 373] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Filter Boiler return Temp" Location [493, 660, 991, 960] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [70, 53, 100, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [120, 46, 170, 74] Gain "0.2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [200, 105, 230, 135] Orientation "left" NamePlacement "alternate" Gain "0.8" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [185, 50, 205, 70] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [250, 103, 285, 137] Orientation "left" NamePlacement "alternate" SampleTime "-1" } Block { BlockType Outport Name "Boiler retrun temp Out Filtret" Position [360, 53, 390, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler return temp out" Position [365, 153, 395, 167] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Sum" SrcPort 1 Points [90, 0; 0, 0] Branch { DstBlock "Boiler retrun temp Out Filtret" DstPort 1 } Branch { DstBlock "Unit Delay" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] Branch { Points [0, 100] DstBlock "Boiler return temp out" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Gain1" DstPort 1 } } } Block { BlockType SubSystem Name "Filter Lambda" Ports [1, 2] Position [610, 229, 710, 296] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Filter Lambda" Location [6, 93, 1374, 788] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [70, 53, 100, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [185, 45, 355, 75] Gain "0.000946541" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [235, 90, 405, 120] Gain "-0.017526424" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [295, 145, 465, 175] Gain "0.010628084" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [350, 200, 520, 230] Gain "0.243987627" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" Position [410, 260, 580, 290] Gain "0.476863953" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" Position [480, 320, 650, 350] Gain "0.308076714" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" Position [545, 380, 715, 410] Gain "0.017785777" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" Position [620, 440, 790, 470] Gain "-0.042982142" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain8" Position [705, 495, 875, 525] Gain "0.002219871" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [9, 1] Position [815, 55, 1165, 435] ShowName off IconShape "round" Inputs "|+++++++++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [155, 88, 190, 122] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay1" Position [215, 143, 250, 177] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay2" Position [275, 198, 310, 232] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay3" Position [335, 258, 370, 292] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay4" Position [395, 318, 430, 352] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay5" Position [460, 378, 495, 412] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay6" Position [530, 438, 565, 472] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay7" Position [600, 493, 635, 527] SampleTime "-1" } Block { BlockType Outport Name "Oxygen/Lambda Filter" Position [1220, 238, 1250, 252] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Oxygen/Lambda" Position [1220, 628, 1250, 642] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Gain8" SrcPort 1 Points [110, 0] DstBlock "Sum" DstPort 9 } Line { SrcBlock "Gain7" SrcPort 1 Points [125, 0] DstBlock "Sum" DstPort 8 } Line { SrcBlock "Gain6" SrcPort 1 Points [142, 0] DstBlock "Sum" DstPort 7 } Line { SrcBlock "Gain5" SrcPort 1 Points [167, 0] DstBlock "Sum" DstPort 6 } Line { SrcBlock "Gain4" SrcPort 1 Points [218, 0] DstBlock "Sum" DstPort 5 } Line { SrcBlock "Gain3" SrcPort 1 Points [278, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "Gain2" SrcPort 1 Points [352, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Gain1" SrcPort 1 Points [135, 0; 0, -11] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Unit Delay7" SrcPort 1 DstBlock "Gain8" DstPort 1 } Line { SrcBlock "Unit Delay6" SrcPort 1 Points [15, 0] Branch { DstBlock "Gain7" DstPort 1 } Branch { DstBlock "Unit Delay7" DstPort 1 } } Line { SrcBlock "Unit Delay5" SrcPort 1 Points [10, 0] Branch { DstBlock "Gain6" DstPort 1 } Branch { Points [0, 60] DstBlock "Unit Delay6" DstPort 1 } } Line { SrcBlock "Unit Delay4" SrcPort 1 Points [10, 0] Branch { DstBlock "Gain5" DstPort 1 } Branch { DstBlock "Unit Delay5" DstPort 1 } } Line { SrcBlock "Unit Delay3" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain4" DstPort 1 } Branch { DstBlock "Unit Delay4" DstPort 1 } } Line { SrcBlock "Unit Delay2" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain3" DstPort 1 } Branch { DstBlock "Unit Delay3" DstPort 1 } } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain2" DstPort 1 } Branch { DstBlock "Unit Delay2" DstPort 1 } } Line { SrcBlock "Unit Delay" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain1" DstPort 1 } Branch { DstBlock "Unit Delay1" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Oxygen/Lambda Filter" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [560, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [10, 0] Branch { Points [25, 0] Branch { DstBlock "Unit Delay" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Branch { Points [0, 575] DstBlock "Oxygen/Lambda" DstPort 1 } } } } Block { BlockType SubSystem Name "Filter Smoke Temp" Ports [1, 2] Position [610, 138, 710, 202] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Filter Smoke Temp" Location [493, 660, 991, 960] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [70, 53, 100, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [120, 46, 170, 74] Gain "0.2" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [200, 105, 230, 135] Orientation "left" NamePlacement "alternate" Gain "0.8" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [185, 50, 205, 70] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [250, 103, 285, 137] Orientation "left" NamePlacement "alternate" SampleTime "-1" } Block { BlockType Outport Name "Smoke temp Filter" Position [360, 53, 390, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Røg temp" Position [360, 153, 390, 167] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 Points [0, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 100] DstBlock "Røg temp" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [90, 0; 0, 0] Branch { DstBlock "Smoke temp Filter" DstPort 1 } Branch { DstBlock "Unit Delay" DstPort 1 } } } } Block { BlockType SubSystem Name "Flow adjustments" Ports [1, 1] Position [385, 413, 510, 457] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Flow adjustments" Location [632, 503, 1466, 681] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [105, 42, 135, 73] Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Voltage" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Gain Name "Areal" Position [330, 45, 360, 75] Gain "0.491" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Full scale m/s devided by voltage scale" Position [210, 44, 250, 76] Gain "3/8" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "m/s" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Offset" Position [40, 75, 70, 105] Value "2" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Water flow [L/s]" Position [390, 53, 420, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Offset" SrcPort 1 Points [0, -25] DstBlock "Add" DstPort 2 } Line { Name "Voltage" Labels [1, 0] SrcBlock "Add" SrcPort 1 DstBlock "Full scale m/s devided by voltage scale" DstPort 1 } Line { Name "m/s" Labels [0, 0] SrcBlock "Full scale m/s devided by voltage scale" SrcPort 1 DstBlock "Areal" DstPort 1 } Line { SrcBlock "Areal" SrcPort 1 DstBlock "Water flow [L/s]" DstPort 1 } } } Block { BlockType SubSystem Name "Lambda sonde adjustment" Ports [1, 1] Position [385, 243, 505, 287] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "oxygen/Lambda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Lambda sonde adjustment" Location [585, 718, 1211, 1013] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [30, 43, 60, 57] ShowName off IconDisplay "Signal name" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "Oxygenlevel1" Position [275, 35, 335, 65] Expr "u[1]+11.5" Port { PortNumber 1 Name "ox1" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "Oxygenlevel2" Position [370, 35, 430, 65] Expr "exp((71.68-u[1])/23.545)" SampleTime "TsMaaling" } Block { BlockType Fcn Name "mV" Position [180, 35, 240, 65] Expr "(u[1]/4.5)-31" Port { PortNumber 1 Name "mV" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "Oxygen/Lambda" Position [470, 43, 500, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "Bit" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "mV" DstPort 1 } Line { Name "mV" Labels [0, 0] SrcBlock "mV" SrcPort 1 DstBlock "Oxygenlevel1" DstPort 1 } Line { Name "ox1" Labels [0, 0] SrcBlock "Oxygenlevel1" SrcPort 1 DstBlock "Oxygenlevel2" DstPort 1 } Line { SrcBlock "Oxygenlevel2" SrcPort 1 DstBlock "Oxygen/Lambda" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gain" DstPort 1 } } } Block { BlockType SubSystem Name "NTC adjustment" Ports [1, 1] Position [390, 73, 515, 117] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "boiler Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "NTC adjustment" Location [18, 261, 851, 388] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Omregning til bit" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit val" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "R" Position [200, 35, 260, 65] Expr "(2048000/(1024-u)-1000)" Port { PortNumber 1 Name "Ohm" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "T" Position [440, 35, 500, 65] Expr "(3730/(12.51048130136-u))-273.15" } Block { BlockType Fcn Name "t1" Position [315, 34, 385, 66] Expr "log(12000/u)" } Block { BlockType Outport Name "Boiler Temp" Position [555, 43, 585, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Labels [0, 0] SrcBlock "T" SrcPort 1 DstBlock "Boiler Temp" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Omregning til bit" DstPort 1 } Line { SrcBlock "t1" SrcPort 1 DstBlock "T" DstPort 1 } Line { Name "Ohm" Labels [0, 0] SrcBlock "R" SrcPort 1 DstBlock "t1" DstPort 1 } Line { Name "Bit val" Labels [0, 0] SrcBlock "Omregning til bit" SrcPort 1 DstBlock "R" DstPort 1 } } } Block { BlockType SubSystem Name "NTC adjustments return SMD" Ports [1, 1] Position [385, 323, 510, 367] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "NTC adjustments return SMD" Location [18, 261, 852, 439] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Omregning til bit" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit val" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "R" Position [200, 35, 260, 65] Expr "(2048000/(1024-u)-1000)" Port { PortNumber 1 Name "Ohm" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "T" Position [430, 35, 490, 65] Expr "(3435/(11.5094642785-u))-273.15" Port { PortNumber 1 Name "temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Fcn Name "t1" Position [315, 34, 385, 66] Expr "log(10000/u)" } Block { BlockType Outport Name "Retur Temp" Position [555, 43, 585, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "temp" Labels [0, 0] SrcBlock "T" SrcPort 1 DstBlock "Retur Temp" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Omregning til bit" DstPort 1 } Line { SrcBlock "t1" SrcPort 1 DstBlock "T" DstPort 1 } Line { Name "Ohm" Labels [0, 0] SrcBlock "R" SrcPort 1 DstBlock "t1" DstPort 1 } Line { Name "Bit val" Labels [0, 0] SrcBlock "Omregning til bit" SrcPort 1 DstBlock "R" DstPort 1 } } } Block { BlockType SubSystem Name "PT1000 adjustment " Ports [1, 1] Position [390, 149, 500, 191] ShowPortLabels "SignalName" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off Port { PortNumber 1 Name "smoke Temp" PropagatedSignals "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "PT1000 adjustment " Location [426, 258, 919, 445] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [40, 43, 70, 57] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [105, 35, 150, 65] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "Bit" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [295, 31, 300, 109] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "R" Position [195, 35, 255, 65] Expr "(2048000/(1024-u)-1000)" Port { PortNumber 1 Name "Ohm" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Constant Name "Sensor offset: 1000-Rsensor" Position [165, 103, 240, 127] Value "0.1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Fcn Name "T" Position [335, 55, 395, 85] Expr "((u[1]-1000+u[2])/3.85055e-1/10)" Port { PortNumber 1 Name "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "Temp" Position [445, 63, 475, 77] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Sensor offset: 1000-Rsensor" SrcPort 1 Points [0, -25] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "T" DstPort 1 } Line { Name "Bit" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "R" DstPort 1 } Line { Name "Ohm" Labels [0, 0] SrcBlock "R" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "Temp" Labels [0, 0] SrcBlock "T" SrcPort 1 DstBlock "Temp" DstPort 1 } } } Block { BlockType Outport Name "Boiler temp Filter" Position [765, 73, 795, 87] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler temp1" Position [765, 103, 795, 117] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp Filter" Position [765, 148, 795, 162] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp" Position [765, 178, 795, 192] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "oxygen/Lambda Filter" Position [765, 238, 795, 252] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "oxygen/Lambda" Position [765, 273, 795, 287] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler return temp Filter" Position [765, 323, 795, 337] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler return temp" Position [765, 353, 795, 367] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Water Flow" Position [765, 428, 795, 442] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "boiler Temp" Labels [0, 0] SrcBlock "NTC adjustment" SrcPort 1 DstBlock "Filter Boiler Temp" DstPort 1 } Line { SrcBlock "Filter Boiler Temp" SrcPort 1 DstBlock "Boiler temp Filter" DstPort 1 } Line { SrcBlock "Filter Boiler Temp" SrcPort 2 DstBlock "Boiler temp1" DstPort 1 } Line { Name "smoke Temp" Labels [0, 0] SrcBlock "PT1000 adjustment " SrcPort 1 DstBlock "Filter Smoke Temp" DstPort 1 } Line { SrcBlock "Filter Smoke Temp" SrcPort 1 DstBlock "Smoke temp Filter" DstPort 1 } Line { Name "oxygen/Lambda" Labels [0, 0] SrcBlock "Lambda sonde adjustment" SrcPort 1 DstBlock "Filter Lambda" DstPort 1 } Line { SrcBlock "Filter Lambda" SrcPort 1 DstBlock "oxygen/Lambda Filter" DstPort 1 } Line { SrcBlock "Filter Smoke Temp" SrcPort 2 DstBlock "Smoke temp" DstPort 1 } Line { Labels [0, 0] SrcBlock "Filter Lambda" SrcPort 2 DstBlock "oxygen/Lambda" DstPort 1 } Line { Name "Ana In 1" Labels [1, 0] SrcBlock "Analog Input" SrcPort 1 DstBlock "NTC adjustment" DstPort 1 } Line { Name "Ana In 2" Labels [3, 0] SrcBlock "Analog Input" SrcPort 2 Points [70, 0; 0, 55] DstBlock "PT1000 adjustment " DstPort 1 } Line { Name "Ana In 3" Labels [3, 0] SrcBlock "Analog Input" SrcPort 3 Points [60, 0; 0, 130] DstBlock "Lambda sonde adjustment" DstPort 1 } Line { SrcBlock "Analog Input" SrcPort 5 Points [45, 0; 0, 170] DstBlock "NTC adjustments return SMD" DstPort 1 } Line { SrcBlock "Filter Boiler return Temp" SrcPort 1 DstBlock "Boiler return temp Filter" DstPort 1 } Line { SrcBlock "Filter Boiler return Temp" SrcPort 2 DstBlock "Boiler return temp" DstPort 1 } Line { SrcBlock "NTC adjustments return SMD" SrcPort 1 DstBlock "Filter Boiler return Temp" DstPort 1 } Line { Name "Ano In 6" Labels [3, 0] SrcBlock "Analog Input" SrcPort 6 Points [25, 0; 0, 240] DstBlock "Flow adjustments" DstPort 1 } Line { SrcBlock "Flow adjustments" SrcPort 1 DstBlock "Water Flow" DstPort 1 } Annotation { Name "Ana In 5" Position [298, 341] } } } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [320, 442, 350, 478] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" varsize off } Block { BlockType Reference Name "Manual Switch1" Ports [2, 1] Position [325, 597, 355, 633] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" varsize off } Block { BlockType Reference Name "PCL-812PG " Ports [0, 16] Position [610, 29, 710, 616] SourceBlock "xpcadvantechlib/Digital\nInput/PCL-812PG " SourceType "diadvpcl812pg" channels "[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16]" sample "Ts" baseaddr "0x220" } Block { BlockType Reference Name "PCL-812PG \nDigital Output" Ports [2] Position [390, 423, 470, 572] SourceBlock "xpcadvantechlib/Digital\nOutput/PCL-812PG " SourceType "doadvpcl812pg" channels "[3 4]" sample "TsPWM" baseaddr "0x220" } Block { BlockType SubSystem Name "Voltage to PWM\n0-100=0-100%" Ports [1, 1] Position [200, 445, 275, 485] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Voltage to PWM\n0-100=0-100%" Location [832, 184, 1431, 508] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Analog" Position [35, 138, 65, 152] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "Ref" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Compare\nTo Zero" Ports [1, 1] Position [320, 120, 350, 150] SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Zero" SourceType "Compare To Zero" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" relop ">" LogicOutDataTypeMode "uint8" ZeroCross off } Block { BlockType Reference Name "Counter\nLimited" Ports [0, 1] Position [100, 70, 130, 100] SourceBlock "simulink/Sources/Counter\nLimited" SourceType "Counter Limited" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" uplimit "BlowerStep-1" tsamp "-1" } Block { BlockType DataTypeConversion Name "Data Type\n Conversion1" Position [380, 120, 415, 150] OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type \nConversion2" Position [150, 69, 195, 101] OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain" Position [210, 70, 240, 100] Gain "100/BlowerStep" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "trekant" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition" Position [120, 124, 160, 166] OutPortSampleTime "TsPWM" } Block { BlockType Scope Name "Scope" Ports [1] Position [455, 194, 485, 226] Floating off Location [372, 393, 696, 632] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [2] Position [270, 181, 300, 214] Floating off Location [280, 342, 916, 581] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-5~-5" YMax "5~5" SaveName "ScopeData3" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [265, 117, 305, 153] ShowName off Inputs "-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "PWM" Position [450, 128, 480, 142] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Data Type \nConversion2" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Data Type\n Conversion1" SrcPort 1 Points [5, 0] Branch { DstBlock "PWM" DstPort 1 } Branch { Points [0, 75] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Compare\nTo Zero" SrcPort 1 DstBlock "Data Type\n Conversion1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Compare\nTo Zero" DstPort 1 } Line { SrcBlock "Counter\nLimited" SrcPort 1 DstBlock "Data Type \nConversion2" DstPort 1 } Line { Name "trekant" Labels [0, 0] SrcBlock "Gain" SrcPort 1 Points [0, 40] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 65] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Rate Transition" SrcPort 1 Points [65, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [0, 60] DstBlock "Scope1" DstPort 2 } } Line { Name "Ref" Labels [0, 0] SrcBlock "Analog" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } } } Block { BlockType SubSystem Name "Voltage to PWM\n0-100=0-100%2" Ports [1, 1] Position [170, 529, 270, 571] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Voltage to PWM\n0-100=0-100%2" Location [826, 539, 1411, 950] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Analog" Position [35, 118, 65, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "Ref" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Compare\nTo Zero" Ports [1, 1] Position [280, 120, 310, 150] SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Zero" SourceType "Compare To Zero" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" relop ">" LogicOutDataTypeMode "uint8" ZeroCross off } Block { BlockType Reference Name "Counter\nLimited" Ports [0, 1] Position [25, 175, 55, 205] SourceBlock "simulink/Sources/Counter\nLimited" SourceType "Counter Limited" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" uplimit "Stokerstep-1" tsamp "TsStoker" } Block { BlockType DataTypeConversion Name "Data Type\n Conversion1" Position [345, 120, 380, 150] OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type \nConversion3" Position [145, 174, 190, 206] OutMin "[100/Stokerstep]" OutMax "[100]" OutDataTypeMode "double" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain" Position [70, 175, 100, 205] Gain "100/Stokerstep" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "trekant" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate \nTransition1" Position [420, 113, 455, 157] Integrity off Deterministic off OutPortSampleTime "TsPWM" } Block { BlockType RateTransition Name "Rate Transition" Position [110, 104, 150, 146] OutPortSampleTime "TsStoker" } Block { BlockType Scope Name "Scope" Ports [1] Position [490, 189, 520, 221] Floating off Location [6, 308, 834, 750] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } TimeRange "0.2806255310983801" YMin "0" YMax "1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [2] Position [255, 201, 285, 234] Floating off Location [245, 653, 881, 892] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } YMin "-5~-5" YMax "5~5" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [220, 117, 260, 153] ShowName off Inputs "+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Nearest" SaturateOnIntegerOverflow off SampleTime "TsStoker" } Block { BlockType Outport Name "PWM slow" Position [475, 128, 505, 142] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "Ref" Labels [0, 0] SrcBlock "Analog" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Compare\nTo Zero" DstPort 1 } Line { SrcBlock "Compare\nTo Zero" SrcPort 1 DstBlock "Data Type\n Conversion1" DstPort 1 } Line { SrcBlock "Data Type\n Conversion1" SrcPort 1 DstBlock "Rate \nTransition1" DstPort 1 } Line { Name "trekant" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "Data Type \nConversion3" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 Points [45, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 85] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Rate \nTransition1" SrcPort 1 Points [0, 0] Branch { DstBlock "PWM slow" DstPort 1 } Branch { Points [0, 70] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Counter\nLimited" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Data Type \nConversion3" SrcPort 1 Points [10, 0; 0, -15] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [15, 0; 0, 50] DstBlock "Scope1" DstPort 2 } } } } Block { BlockType Outport Name "Boiler temp Filter" Position [825, 663, 855, 677] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler temp1" Position [825, 693, 855, 707] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp Filter" Position [825, 723, 855, 737] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Smoke temp" Position [825, 753, 855, 767] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Oxygen/Lambda Filter" Position [825, 783, 855, 797] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Oxygen/Lambda" Position [825, 813, 855, 827] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler retur temp Filter" Position [825, 843, 855, 857] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Boiler retur temp" Position [825, 873, 855, 887] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "flow" Position [825, 903, 855, 917] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 1" Position [765, 53, 795, 67] Port "10" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 2" Position [765, 88, 795, 102] Port "11" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 3" Position [765, 123, 795, 137] Port "12" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 4" Position [765, 158, 795, 172] Port "13" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 5" Position [765, 193, 795, 207] Port "14" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 6" Position [765, 228, 795, 242] Port "15" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 7" Position [765, 263, 795, 277] Port "16" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 8" Position [765, 298, 795, 312] Port "17" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 9" Position [765, 333, 795, 347] Port "18" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 10" Position [765, 368, 795, 382] Port "19" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 11" Position [765, 403, 795, 417] Port "20" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 12" Position [765, 438, 795, 452] Port "21" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 13" Position [765, 473, 795, 487] Port "22" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 14" Position [765, 508, 795, 522] Port "23" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 15" Position [765, 543, 795, 557] Port "24" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Dig in 16" Position [765, 578, 795, 592] Port "25" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { Name "Kedel Temp" Labels [0, 0] SrcBlock "Inputs / Sensor adjustments" SrcPort 1 DstBlock "Boiler temp Filter" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 2 DstBlock "Boiler temp1" DstPort 1 } Line { Name "Røg Temp" Labels [0, 0] SrcBlock "Inputs / Sensor adjustments" SrcPort 3 DstBlock "Smoke temp Filter" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 4 DstBlock "Smoke temp" DstPort 1 } Line { Name "Lambda" Labels [0, 0] SrcBlock "Inputs / Sensor adjustments" SrcPort 5 DstBlock "Oxygen/Lambda Filter" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 6 DstBlock "Oxygen/Lambda" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 1 DstBlock "Dig in 1" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 2 DstBlock "Dig in 2" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 3 DstBlock "Dig in 3" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 4 DstBlock "Dig in 4" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 5 DstBlock "Dig in 5" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 6 DstBlock "Dig in 6" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 7 DstBlock "Dig in 7" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 8 DstBlock "Dig in 8" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 9 DstBlock "Dig in 9" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 10 DstBlock "Dig in 10" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 11 DstBlock "Dig in 11" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 12 DstBlock "Dig in 12" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 13 DstBlock "Dig in 13" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 14 DstBlock "Dig in 14" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 15 DstBlock "Dig in 15" DstPort 1 } Line { SrcBlock "PCL-812PG " SrcPort 16 DstBlock "Dig in 16" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 7 DstBlock "Boiler retur temp Filter" DstPort 1 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 8 DstBlock "Boiler retur temp" DstPort 1 } Line { SrcBlock " Blower\nPWM %" SrcPort 1 DstBlock "Voltage to PWM\n0-100=0-100%" DstPort 1 } Line { SrcBlock "Calorifier Hz" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Analog Out 1" SrcPort 1 DstBlock "Analog Out" DstPort 1 } Line { SrcBlock "Voltage to PWM\n0-100=0-100%2" SrcPort 1 Points [0, 55] DstBlock "Manual Switch1" DstPort 1 } Line { SrcBlock "Voltage to PWM\n0-100=0-100%" SrcPort 1 Points [25, 0] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Manual Switch" SrcPort 1 DstBlock "PCL-812PG \nDigital Output" DstPort 1 } Line { SrcBlock "Manual Switch1" SrcPort 1 Points [15, 0] DstBlock "PCL-812PG \nDigital Output" DstPort 2 } Line { SrcBlock "Stoker engine" SrcPort 1 DstBlock "Voltage to PWM\n0-100=0-100%2" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Analog Out" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Manual Switch1" DstPort 2 } Line { SrcBlock "Inputs / Sensor adjustments" SrcPort 9 DstBlock "flow" DstPort 1 } Line { SrcBlock "Constant3" SrcPort 1 Points [160, 0; 0, 70] DstBlock "Manual Switch" DstPort 1 } } } Block { BlockType Lookup Name "Lookup\nTable\nBlower" Position [540, 205, 590, 255] InputValues "[0,10,20,30,40,50,60,70,80,90,100]" Table "[0,2.2,4,6,8,12,14,17,21,28,30]" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "TsPWM" LUTDesignUseExistingBP off LUTDesignAbsError "NaN" Port { PortNumber 1 Name "Blower" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Lookup Name "Lookup\nTable\nStoker" Position [540, 435, 590, 485] InputValues "[0,10,20,30,40,50,60,70,80,90,100]" Table "[0,1,2,3,4,5,6,7,8,9,10]*10" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "TsPWM" LUTDesignUseExistingBP off LUTDesignAbsError "NaN" } Block { BlockType Reference Name "Manual\nSwitch" Ports [2, 1] Position [490, 217, 520, 253] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" varsize off } Block { BlockType Reference Name "Manual\nSwitch1" Ports [2, 1] Position [615, 262, 645, 298] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" varsize off } Block { BlockType Reference Name "Manual\nSwitch2" Ports [2, 1] Position [600, 347, 630, 383] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" varsize off } Block { BlockType Reference Name "Manual \nStoker %" Ports [2, 1] Position [485, 447, 515, 483] ForegroundColor "blue" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" varsize off } Block { BlockType Constant Name "Manuel Stoker %" Position [430, 500, 460, 530] Value "50" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Manuel blower %" Position [425, 230, 455, 260] Value "50" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Manuel blower %1" Position [435, 280, 465, 310] Value "100" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Reference Name "Model Info" Ports [] Position [205, 765, 395, 888] ShowName off SourceBlock "simulink/Model-Wide\nUtilities/Model Info" SourceType "CMBlock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialBlockCM "None" BlockCM "None" Frame "on" DisplayStringWithTags "Input - Output Configuration \nCreated: %\nLast modified : %\nLastmodyfied by: %\nRun Mysetup.m before compiling,\n to Give the sample time \"Ts\" aso." MaskDisplayString "Input - Output Configuration \\nCreated: Thu Jul 05 14:24:58 2007\\nLast modified : 28-maj-2008 11:53:48\\nLastmodyfied by: Heine\\nRun Mysetup.m before compiling,\\n to Give the sample time \"Ts\" aso." HorizontalTextAlignment "Center" LeftAlignmentValue "0.5" SourceBlockDiagram "stoker" TagMaxNumber "20" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [1200, 146, 1205, 199] ForegroundColor "red" ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [9, 1] Position [1030, 728, 1045, 1002] ForegroundColor "red" ShowName off Inputs "9" DisplayOption "bar" } Block { BlockType Lookup Name "O2 ref from \nBlower PID-Output" Position [147, 365, 193, 395] Orientation "down" NamePlacement "alternate" InputValues "[0,20,100]" Table "[12,12,12]" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" LUTDesignUseExistingBP off LUTDesignAbsError "NaN" } Block { BlockType SubSystem Name "PID antiwindup\nBlower" Ports [2, 1] Position [115, 135, 155, 195] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "PID antiwindup\nBlower" Location [333, 291, 1468, 905] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Input" Position [25, 103, 55, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Ref" Position [25, 153, 55, 167] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Antiwindup gain" Position [500, 516, 565, 554] Orientation "left" Gain "I0" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Derivative\nGain" Position [465, 373, 500, 397] Gain "D0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" Ports [1, 1] Position [395, 144, 430, 176] IntegratorMethod "Accumulation: Forward Euler" ExternalReset "none" InitialConditionSource "internal" InitialCondition "40" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" LimitOutput on UpperSaturationLimit "100" LowerSaturationLimit "-100" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" Port { PortNumber 1 Name "I" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Product Name "Divide" Ports [2, 1] Position [420, 242, 450, 273] Orientation "left" NamePlacement "alternate" Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Integral\nGain" Position [290, 148, 330, 172] Gain "I0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Gain Name "Integral\nGain1" Position [290, 263, 330, 287] Orientation "left" NamePlacement "alternate" Gain "0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Mux Name "Mux" Ports [5, 1] Position [920, 238, 930, 352] ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [355, 245, 390, 305] Orientation "left" NamePlacement "alternate" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Proportional\nGain" Position [280, 81, 320, 109] Gain "P0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType RateTransition Name "Rate" Position [795, 238, 810, 272] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "P" PropagatedSignals "P" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition" Position [75, 89, 110, 131] OutPortSampleTime "Ts" } Block { BlockType RateTransition Name "Rate Transition1" Position [75, 139, 110, 181] OutPortSampleTime "Ts" } Block { BlockType RateTransition Name "Rate1" Position [825, 258, 840, 292] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "I" PropagatedSignals "I" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate2" Position [795, 278, 810, 312] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "D" PropagatedSignals "D" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate3" Position [830, 298, 845, 332] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "e" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate4" Position [795, 323, 810, 357] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Out" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation" Position [690, 145, 720, 175] UpperLimit "100" LowerLimit "0" SampleTime "Ts" Port { PortNumber 1 Name "Out" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation1" Position [530, 370, 560, 400] UpperLimit "40" LowerLimit "-40" SampleTime "Ts" Port { PortNumber 1 Name "D" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation2" Position [400, 80, 430, 110] UpperLimit "100" LowerLimit "-100" SampleTime "Ts" Port { PortNumber 1 Name "P" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation3" Position [175, 145, 205, 175] UpperLimit "40" LowerLimit "-40" SampleTime "Ts" } Block { BlockType Reference Name "Scope (xPC) " Ports [1] Position [1030, 255, 1120, 315] SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "4" scopetype "Target" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "250*60" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "data.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [615, 145, 645, 175] ShowName off IconShape "round" Inputs "+++" CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [425, 375, 445, 395] ShowName off IconShape "round" Inputs "+-|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [135, 150, 155, 170] ShowName off IconShape "round" Inputs "-+|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [345, 150, 365, 170] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [650, 525, 670, 545] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+-|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [250, 150, 270, 170] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Ts/Ts norm gain" Position [270, 367, 330, 423] Gain "D01" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay" Position [360, 368, 395, 402] SampleTime "Ts" } Block { BlockType Outport Name "Out" Position [770, 153, 800, 167] IconDisplay "Port number" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Ref" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { Labels [0, 0] SrcBlock "Sum2" SrcPort 1 DstBlock "Saturation3" DstPort 1 } Line { SrcBlock "Integral\nGain" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Proportional\nGain" SrcPort 1 DstBlock "Saturation2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [10, 0] Branch { DstBlock "Saturation" DstPort 1 } Branch { DstBlock "Sum4" DstPort 1 } } Line { SrcBlock "Ts/Ts norm gain" SrcPort 1 Points [0, -10] Branch { DstBlock "Unit Delay" DstPort 1 } Branch { Points [0, -50; 100, 0] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "Antiwindup gain" SrcPort 1 Points [-235, 0] DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Antiwindup gain" DstPort 1 } Line { Name "Out" Labels [0, 0] SrcBlock "Saturation" SrcPort 1 Points [10, 0] Branch { DstBlock "Out" DstPort 1 } Branch { Points [0, 180] Branch { Points [0, 195] DstBlock "Sum4" DstPort 2 } Branch { DstBlock "Rate4" DstPort 1 } } } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Integral\nGain" DstPort 1 } Line { Name "I" Labels [0, 0] SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [40, 0] Branch { Labels [1, 0] Points [0, 90] DstBlock "Divide" DstPort 1 } Branch { Labels [1, 0] Points [125, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Labels [3, 0] Points [-10, 0; 0, 115] DstBlock "Rate1" DstPort 1 } } } Line { SrcBlock "Derivative\nGain" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { Name "D" Labels [0, 0] SrcBlock "Saturation1" SrcPort 1 Points [65, 0; 0, -90] Branch { Points [0, -5] Branch { DstBlock "Sum" DstPort 3 } Branch { DstBlock "Product" DstPort 2 } } Branch { Labels [1, 0] DstBlock "Rate2" DstPort 1 } } Line { Name "P" Labels [0, 0] SrcBlock "Saturation2" SrcPort 1 Points [65, 0] Branch { Points [110, 0] Branch { Points [20, 0] DstBlock "Sum" DstPort 1 } Branch { Labels [2, 0] Points [0, 160] DstBlock "Rate" DstPort 1 } } Branch { Labels [2, 0] Points [0, 170] DstBlock "Divide" DstPort 2 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Derivative\nGain" DstPort 1 } Line { SrcBlock "Input" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 Points [5, 0] Branch { Points [25, 0] DstBlock "Sum2" DstPort 1 } Branch { Points [0, 285] DstBlock "Ts/Ts norm gain" DstPort 1 } } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 Points [0, -10] DstBlock "Scope (xPC) " DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Integral\nGain1" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Integral\nGain1" SrcPort 1 Points [0, -70; 70, 0] DstBlock "Sum3" DstPort 2 } Line { Name "P" Labels [0, 0] SrcBlock "Rate" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { Name "I" Labels [0, 0] SrcBlock "Rate1" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { Name "D" Labels [0, 0] SrcBlock "Rate2" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { Name "e" Labels [0, 0] SrcBlock "Rate3" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { Name "Out" Labels [3, 0] SrcBlock "Rate4" SrcPort 1 Points [5, 0; 0, 10; 85, 0] DstBlock "Mux" DstPort 5 } Line { Labels [0, 0] SrcBlock "Saturation3" SrcPort 1 Points [20, 0] Branch { Points [0, -65] DstBlock "Proportional\nGain" DstPort 1 } Branch { DstBlock "Sum5" DstPort 1 } Branch { Points [0, 155] DstBlock "Rate3" DstPort 1 } } } } Block { BlockType SubSystem Name "PID antiwindup\nStoker" Ports [2, 1] Position [210, 388, 325, 452] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "PID antiwindup\nStoker" Location [120, 616, 1525, 1230] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ref" Position [45, 153, 75, 167] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Input" Position [45, 103, 75, 117] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Antiwindup gain" Position [585, 516, 650, 554] Orientation "left" Gain "I1" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Derivative\nGain" Position [580, 373, 615, 397] Gain "D1*0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" Ports [1, 1] Position [490, 144, 525, 176] IntegratorMethod "Accumulation: Forward Euler" ExternalReset "none" InitialConditionSource "internal" InitialCondition "30" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" LimitOutput on UpperSaturationLimit "100" LowerSaturationLimit "-100" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" Port { PortNumber 1 Name "I" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Product Name "Divide1" Ports [2, 1] Position [525, 227, 555, 258] Orientation "left" NamePlacement "alternate" Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Integral\nGain" Position [375, 148, 415, 172] Gain "I1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Gain Name "Integral\nGain2" Position [415, 248, 455, 272] Orientation "left" NamePlacement "alternate" Gain "0" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Gain Name "Invert" Position [780, 148, 820, 172] ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Gain Name "Invert e" Position [225, 148, 265, 172] Gain "-1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Mux Name "Mux" Ports [5, 1] Position [1095, 173, 1110, 307] ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [475, 230, 510, 290] Orientation "left" NamePlacement "alternate" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Proportional\nGain" Position [395, 81, 435, 109] Gain "P1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType RateTransition Name "Rate Transition" Position [95, 89, 130, 131] OutPortSampleTime "Ts" } Block { BlockType RateTransition Name "Rate Transition1" Position [95, 139, 125, 181] OutPortSampleTime "Ts" } Block { BlockType RateTransition Name "Rate Transition2" Position [980, 196, 990, 234] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "I" PropagatedSignals "I" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition3" Position [1030, 171, 1040, 209] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "P" PropagatedSignals "P" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition4" Position [1025, 221, 1035, 259] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "D" PropagatedSignals "D" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition5" Position [965, 246, 975, 284] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "e" PropagatedSignals "e" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition6" Position [1025, 271, 1035, 309] OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "out" PropagatedSignals "Out" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation" Position [885, 145, 915, 175] UpperLimit "100" LowerLimit "0" SampleTime "Ts" Port { PortNumber 1 Name "Out" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation1" Position [645, 370, 675, 400] UpperLimit "40" LowerLimit "-40" SampleTime "Ts" Port { PortNumber 1 Name "D" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Saturate Name "Saturation2" Position [515, 80, 545, 110] UpperLimit "100" LowerLimit "-100" SampleTime "Ts" Port { PortNumber 1 Name "P" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Scope (xPC) 1" Ports [1] Position [1210, 210, 1300, 270] SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "5" scopetype "Target" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "250*60" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "data.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [730, 145, 760, 175] ShowName off IconShape "round" Inputs "+++" CollapseMode "All dimensions" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [540, 375, 560, 395] ShowName off IconShape "round" Inputs "+-|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [145, 150, 165, 170] ShowName off IconShape "round" Inputs "-+|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" Port { PortNumber 1 Name "e" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [765, 525, 785, 545] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+-|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [335, 150, 355, 170] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [440, 150, 460, 170] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Gain Name "Ts/Ts norm gain" Position [395, 373, 430, 397] Gain "1/100" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay" Position [475, 368, 510, 402] SampleTime "Ts" } Block { BlockType Outport Name "Out" Position [965, 153, 995, 167] IconDisplay "Port number" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Rate Transition" SrcPort 1 Points [5, 0] Branch { Points [0, 275] DstBlock "Ts/Ts norm gain" DstPort 1 } Branch { Points [15, 0] DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "Input" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Derivative\nGain" DstPort 1 } Line { Name "P" Labels [0, 0] SrcBlock "Saturation2" SrcPort 1 Points [20, 0] Branch { Points [150, 0] Branch { Points [25, 0] DstBlock "Sum" DstPort 1 } Branch { Labels [2, 0] Points [0, 95] DstBlock "Rate Transition3" DstPort 1 } } Branch { Labels [1, 0] DstBlock "Divide1" DstPort 2 } } Line { Name "D" Labels [0, 0] SrcBlock "Saturation1" SrcPort 1 Points [65, 0; 0, -60] Branch { Points [0, -120] Branch { DstBlock "Sum" DstPort 3 } Branch { Labels [2, 0] Points [0, 35] DstBlock "Rate Transition4" DstPort 1 } } Branch { Labels [1, 0] Points [-120, 0; 0, -50] DstBlock "Product1" DstPort 2 } } Line { SrcBlock "Derivative\nGain" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { Name "I" Labels [0, 0] SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [50, 0] Branch { Labels [1, 0] Points [0, 75] DstBlock "Divide1" DstPort 1 } Branch { Labels [1, 0] Points [130, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Labels [2, 0] Points [0, 55] DstBlock "Rate Transition2" DstPort 1 } } } Line { Name "Out" Labels [0, 0] SrcBlock "Saturation" SrcPort 1 Points [10, 0] Branch { DstBlock "Out" DstPort 1 } Branch { Points [0, 130] Branch { Points [0, 245] DstBlock "Sum4" DstPort 2 } Branch { Labels [1, 0] DstBlock "Rate Transition6" DstPort 1 } } } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Antiwindup gain" DstPort 1 } Line { SrcBlock "Antiwindup gain" SrcPort 1 Points [-235, 0] DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Ts/Ts norm gain" SrcPort 1 Points [15, 0] Branch { Points [0, -50; 100, 0] DstBlock "Sum1" DstPort 1 } Branch { DstBlock "Unit Delay" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Invert" DstPort 1 } Line { SrcBlock "Proportional\nGain" SrcPort 1 DstBlock "Saturation2" DstPort 1 } Line { Name "e" Labels [0, 0] SrcBlock "Sum2" SrcPort 1 DstBlock "Invert e" DstPort 1 } Line { SrcBlock "Ref" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Scope (xPC) 1" DstPort 1 } Line { SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Invert" SrcPort 1 Points [40, 0] Branch { Points [0, 350] DstBlock "Sum4" DstPort 1 } Branch { DstBlock "Saturation" DstPort 1 } } Line { Name "P" Labels [0, 0] SrcBlock "Rate Transition3" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { Name "I" Labels [0, 0] SrcBlock "Rate Transition2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { Name "D" Labels [0, 0] SrcBlock "Rate Transition4" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { Name "e" Labels [0, 0] SrcBlock "Rate Transition5" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { Name "out" Labels [0, 0] SrcBlock "Rate Transition6" SrcPort 1 DstBlock "Mux" DstPort 5 } Line { SrcBlock "Invert e" SrcPort 1 Points [45, 0] Branch { Points [-20, 0] Branch { Points [0, -65] DstBlock "Proportional\nGain" DstPort 1 } Branch { DstBlock "Sum5" DstPort 1 } } Branch { Labels [3, 0] Points [-20, 0; 0, 160; 655, 0] DstBlock "Rate Transition5" DstPort 1 } } Line { SrcBlock "Divide1" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Integral\nGain2" DstPort 1 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Integral\nGain" DstPort 1 } Line { SrcBlock "Integral\nGain" SrcPort 1 DstBlock "Sum6" DstPort 1 } Line { SrcBlock "Sum6" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Integral\nGain2" SrcPort 1 Points [0, -55; 40, 0] DstBlock "Sum6" DstPort 2 } } } Block { BlockType Product Name "Product" Ports [2, 1] Position [355, 291, 370, 464] CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType RateTransition Name "Rate Transition" Position [635, 889, 670, 931] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Stok" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition1" Position [725, 854, 760, 896] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Blow" PropagatedSignals "Blower" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition10" Position [690, 989, 725, 1031] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Fan" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition2" Position [810, 819, 845, 861] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Lambda" PropagatedSignals "Lamda" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition3" Position [925, 721, 960, 749] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Temp" PropagatedSignals "Temp" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition4" Position [540, 924, 575, 966] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "O2_ref" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition5" Position [845, 749, 880, 791] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Retur" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition6" Position [965, 784, 1000, 826] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "Trøg" PropagatedSignals "Trøg" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition7" Position [215, 104, 250, 146] OutPortSampleTime "TsPWM" } Block { BlockType RateTransition Name "Rate Transition8" Position [1100, 764, 1135, 806] ForegroundColor "red" OutPortSampleTime "0.1" Port { PortNumber 1 PropagatedSignals "Temp, Retur, Trøg, Lambda, Blow, Stok, O2_ref, flow, Fan" ShowPropagatedSignals "on" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType RateTransition Name "Rate Transition9" Position [815, 949, 850, 991] ForegroundColor "red" OutPortSampleTime "TsMaaling" Port { PortNumber 1 Name "flow" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType SubSystem Name "Safty" Ports [2, 1] Position [590, 85, 630, 145] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Safty" Location [492, 350, 1571, 1055] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" Position [85, 178, 115, 192] IconDisplay "Port number" } Block { BlockType Inport Name "In2" Position [325, 313, 355, 327] Port "2" IconDisplay "Port number" } Block { BlockType Product Name "Divide" Ports [2, 1] Position [660, 462, 690, 493] Inputs "/*" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide1" Ports [2, 1] Position [780, 402, 810, 433] Inputs "*/" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Fan Max Cool" Position [550, 75, 580, 105] Value "50" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Fan speed max" Position [315, 455, 345, 485] Value "50" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Constant Name "Fan speed min" Position [315, 525, 345, 555] Value "8" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType Gain Name "Gain" Position [520, 450, 585, 490] Gain "1/10" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Max temp" Position [395, 210, 425, 240] Value "80" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "TsPWM" } Block { BlockType RateTransition Name "Rate Transition" Position [135, 164, 175, 206] } Block { BlockType RateTransition Name "Rate Transition1" Position [430, 299, 470, 341] } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [490, 164, 520, 246] InputSameDT off LogicOutDataTypeMode "boolean" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [460, 460, 480, 480] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [835, 410, 855, 430] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch" Position [625, 30, 685, 380] InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [895, 413, 925, 427] IconDisplay "Port number" } Line { SrcBlock "Max temp" SrcPort 1 DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Fan Max Cool" SrcPort 1 DstBlock "Switch" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 Points [75, 0] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 DstBlock "Relational\nOperator" DstPort 1 } Line { SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Switch" DstPort 3 } Line { SrcBlock "Fan speed max" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Fan speed min" SrcPort 1 Points [120, 0] Branch { DstBlock "Sum" DstPort 2 } Branch { Points [175, 0] DstBlock "Divide" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [5, 0] Branch { DstBlock "Divide" DstPort 1 } Branch { Points [0, -45] DstBlock "Divide1" DstPort 2 } } Line { SrcBlock "Divide1" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Reference Name "Scope (xPC) " Ports [1] Position [1225, 145, 1315, 205] ForegroundColor "red" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "1" scopetype "Target" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "250*60" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "data.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType Reference Name "Scope (xPC) 1" Ports [1] Position [1120, 835, 1210, 895] ForegroundColor "red" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "2" scopetype "Target" autostart on viewmode "Numerical" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "25" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "Oldscope.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType Reference Name "Scope (xPC) 2" Ports [1] Position [1185, 665, 1275, 725] ForegroundColor "red" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" scopeno "6" scopetype "File" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "10*60*60*24" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "step1.dat" mode "Commit" writesize "512" autorestart off } Block { BlockType Constant Name "Temp Ref" Position [30, 165, 60, 195] Value "70" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Temp Ref" SrcPort 1 DstBlock "PID antiwindup\nBlower" DstPort 2 } Line { SrcBlock "IO card " SrcPort 2 Points [0, -5] DstBlock "Filter \non/off" DstPort 2 } Line { SrcBlock "Feed screew gain" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Gain Ts" DstPort 1 } Line { SrcBlock "Gain Ts" SrcPort 1 Points [0, 75] DstBlock "Manual \nStoker %" DstPort 1 } Line { SrcBlock "PID antiwindup\nBlower" SrcPort 1 Points [10, 0] Branch { Points [0, 170] Branch { DstBlock "Feed screew gain" DstPort 1 } Branch { DstBlock "O2 ref from \nBlower PID-Output" DstPort 1 } } Branch { Points [0, -40] DstBlock "Rate Transition7" DstPort 1 } } Line { Name "Temp" SrcBlock "Filter \non/off" SrcPort 1 Points [95, 0] Branch { Labels [1, 0] Points [0, 40] DstBlock "Mux" DstPort 1 } Branch { Points [0, 0] Branch { Labels [3, 0] Points [280, 0; 0, 915; -445, 0] DstBlock "Rate Transition3" DstPort 1 } Branch { Points [0, -80; -560, 0] Branch { Points [-440, 0; 0, 120] DstBlock "PID antiwindup\nBlower" DstPort 1 } Branch { Labels [1, 0] Points [0, 70] DstBlock "Safty" DstPort 1 } } } } Line { Name "Temp" Labels [0, 0] SrcBlock "IO card " SrcPort 1 DstBlock "Filter \non/off" DstPort 1 } Line { SrcBlock "O2 ref from \nBlower PID-Output" SrcPort 1 Points [0, 5] Branch { DstBlock "PID antiwindup\nStoker" DstPort 1 } Branch { Points [0, 540] DstBlock "Rate Transition4" DstPort 1 } } Line { SrcBlock "PID antiwindup\nStoker" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Manuel blower %" SrcPort 1 DstBlock "Manual\nSwitch" DstPort 2 } Line { SrcBlock "Manuel Stoker %" SrcPort 1 Points [5, 0] DstBlock "Manual \nStoker %" DstPort 2 } Line { SrcBlock "Manual \nStoker %" SrcPort 1 Points [0, -5] DstBlock "Lookup\nTable\nStoker" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Scope (xPC) " DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 Points [20, 0] Branch { DstBlock "Scope (xPC) 1" DstPort 1 } Branch { Points [0, -80] DstBlock "Rate Transition8" DstPort 1 } } Line { Name "Lambda" Labels [0, 0] SrcBlock "Rate Transition2" SrcPort 1 Points [165, 0] DstBlock "Mux1" DstPort 4 } Line { SrcBlock "Lookup\nTable\nStoker" SrcPort 1 Points [15, 0] Branch { Points [0, 450] DstBlock "Rate Transition" DstPort 1 } Branch { Points [45, 0] DstBlock "IO card " DstPort 4 } } Line { Name "Lambda" Labels [0, 0] SrcBlock "Filter on/off1" SrcPort 1 Points [115, 0] Branch { Labels [2, 0] Points [0, 500; -620, 0] Branch { Labels [1, 0] Points [0, -5; -285, 0] DstBlock "PID antiwindup\nStoker" DstPort 2 } Branch { Labels [1, 0] Points [0, 130] DstBlock "Rate Transition2" DstPort 1 } } Branch { Points [0, -15] DstBlock "Mux" DstPort 4 } } Line { SrcBlock "IO card " SrcPort 5 DstBlock "Filter on/off1" DstPort 1 } Line { Name "Lamda" Labels [0, 0] SrcBlock "IO card " SrcPort 6 Points [0, -5] DstBlock "Filter on/off1" DstPort 2 } Line { Name "Trøg" Labels [0, 0] SrcBlock "IO card " SrcPort 3 DstBlock "Filter \non/off2" DstPort 1 } Line { SrcBlock "IO card " SrcPort 4 Points [0, -5] DstBlock "Filter \non/off2" DstPort 2 } Line { Name "Trøg" Labels [0, 0] SrcBlock "Filter \non/off2" SrcPort 1 Points [0, 20; 115, 0] Branch { DstBlock "Mux" DstPort 3 } Branch { Labels [4, 0] Points [0, -55; 185, 0; 0, 880; -400, 0; 0, -200] DstBlock "Rate Transition6" DstPort 1 } } Line { SrcBlock "Fan Speed Hz" SrcPort 1 Points [15, 0] Branch { DstBlock "Safty" DstPort 2 } Branch { Points [0, 35; 70, 0; 0, 845] DstBlock "Rate Transition10" DstPort 1 } } Line { SrcBlock "Safty" SrcPort 1 Points [20, 0] DstBlock "IO card " DstPort 2 } Line { Name "Retur" Labels [0, 0] SrcBlock "IO card " SrcPort 7 DstBlock "Filter on/off3" DstPort 1 } Line { SrcBlock "IO card " SrcPort 8 Points [0, -5] DstBlock "Filter on/off3" DstPort 2 } Line { Name "Temp" Labels [0, 0] SrcBlock "Rate Transition3" SrcPort 1 Points [50, 0] DstBlock "Mux1" DstPort 1 } Line { Name "Retur" Labels [0, 0] SrcBlock "Rate Transition5" SrcPort 1 Points [130, 0] DstBlock "Mux1" DstPort 2 } Line { Name "Trøg" Labels [0, 0] SrcBlock "Rate Transition6" SrcPort 1 DstBlock "Mux1" DstPort 3 } Line { Name "O2_ref" Labels [0, 0] SrcBlock "Rate Transition4" SrcPort 1 Points [435, 0] DstBlock "Mux1" DstPort 7 } Line { Name "Blow" Labels [0, 0] SrcBlock "Rate Transition1" SrcPort 1 Points [250, 0] DstBlock "Mux1" DstPort 5 } Line { Name "Stok" Labels [0, 0] SrcBlock "Rate Transition" SrcPort 1 Points [340, 0] DstBlock "Mux1" DstPort 6 } Line { Name "Retur" Labels [0, 0] SrcBlock "Filter on/off3" SrcPort 1 Points [110, 0] Branch { Points [30, 0; 0, -95] DstBlock "Mux" DstPort 2 } Branch { Labels [3, 0] Points [0, 455; -320, 0] DstBlock "Rate Transition5" DstPort 1 } } Line { SrcBlock "Manual\nSwitch" SrcPort 1 Points [0, -5] Branch { DstBlock "Lookup\nTable\nBlower" DstPort 1 } Branch { Points [0, 145] DstBlock "Manual\nSwitch2" DstPort 2 } } Line { SrcBlock "Rate Transition7" SrcPort 1 Points [220, 0] DstBlock "Manual\nSwitch" DstPort 1 } Line { Labels [0, 0] SrcBlock "Rate Transition8" SrcPort 1 Points [30, 0] DstBlock "Scope (xPC) 2" DstPort 1 } Line { SrcBlock "IO card " SrcPort 9 Points [145, 0; 0, 180; 330, 0; 0, 575; -560, 0; 0, -85] DstBlock "Rate Transition9" DstPort 1 } Line { Name "flow" Labels [0, 0] SrcBlock "Rate Transition9" SrcPort 1 Points [160, 0] DstBlock "Mux1" DstPort 8 } Line { SrcBlock "Manuel blower %1" SrcPort 1 Points [130, 0] DstBlock "Manual\nSwitch1" DstPort 2 } Line { SrcBlock "Manual\nSwitch1" SrcPort 1 Points [5, 0; 0, 25] Branch { DstBlock "IO card " DstPort 3 } Branch { Points [-70, 0] DstBlock "Manual\nSwitch2" DstPort 1 } } Line { Name "Blower" Labels [0, 0] SrcBlock "Lookup\nTable\nBlower" SrcPort 1 Points [0, 40] DstBlock "Manual\nSwitch1" DstPort 1 } Line { Name "Fan" Labels [0, 0] SrcBlock "Rate Transition10" SrcPort 1 Points [285, 0] DstBlock "Mux1" DstPort 9 } Line { SrcBlock "Manual\nSwitch2" SrcPort 1 Points [0, 510] DstBlock "Rate Transition1" DstPort 1 } } } # Finite State Machines # # Stateflow Version 6.7 (R2007b) dated Aug 7 2007, 16:48:14 # # Stateflow { machine { id 1 name "stoker" created "31-Jul-2007 12:27:28" isLibrary 0 firstTarget 2 sfVersion 67014000.000001 } target { id 2 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 3] } target { id 3 name "rtw" codeFlags " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 elseifdetection=1 constantfolding=1 redundantloadelimination=0 preservenames=0 preservenameswithparent=0 exportcharts=0" machine 1 linkNode [1 2 0] } }