⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 foc_pmsm.mdl

📁 PMSM的向量控制系统
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      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"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "FOC_PMSM"
    Location		    [-173, 126, 1247, 913]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "300V 50Hz"
      Ports		      [0, 0, 0, 0, 0, 0, 3]
      Position		      [35, 84, 115, 156]
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Electrical\nSources/Three-Phase Source"
      SourceType	      "Three-Phase Source"
      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"
      Voltage		      "400"
      PhaseAngle	      "0"
      Frequency		      "50"
      InternalConnection      "Yg"
      SpecifyImpedance	      off
      Resistance	      "0.02"
      Inductance	      "0.05e-3"
      ShortCircuitLevel	      "100e6"
      BaseVoltage	      "25e3"
      XRratio		      "7"
    }
    Block {
      BlockType		      SubSystem
      Name		      "HTS-PMSM Drive"
      Ports		      [2, 4, 0, 0, 0, 3]
      Position		      [260, 35, 380, 155]
      AncestorBlock	      "electricdrivelib/AC drives/PM Synchronous Motor Drive"
      UserDataPersistent      on
      DeleteFcn		      "driveGuiManager('Delete','AC6',gcbh)"
      OpenFcn		      "if (power_openblockproxy ('secondary'))\ndriveGuiManager('Create','AC6',gcbh)\nend;"
      CloseFcn		      "driveGuiManager('Delete','AC6',gcbh)"
      ParentCloseFcn	      "driveGuiManager('Hide','AC6',gcbh)"
      FontName		      "Arial"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskType		      "PM Synchronous Motor Drive"
      MaskHelp		      "web(psbhelp)"
      MaskPromptString	      "Average value model|Mechanical input:"
      MaskStyleString	      "checkbox,popup(Torque Tm|Speed w)"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "AverageValue=@1;MechanicalLoad=@2;"
      MaskInitialization      "block = gcbh;\n[X1,X1m,X2,X2m,X3,X4,Y1,Y1m,Y2,Y2m,Y3,Y4,color1,color2]=spsdrivelogo;\nTs = drivelibInitSampleTime(block);    \ndriveGuiManager('Siminit','AC6',block);\nSetInternalDriveModel('AC6',AverageValue,block);\nsetInternalDriveMechInput('AC6',getfullname(block));\npower_initmask();\n\n"
      MaskDisplay	      "patch([X1 X1m],[Y1 Y1m],color1);\npatch(X3,Y3,color2);\nplot([X1 X1m X2 X2m X3 X4],[Y1 Y1m Y2 Y2m Y3 Y4]);\ntext(0.5,0.3,'AC6','HorizontalAlignment','center')"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
      MaskValueString	      "off|Torque Tm"
      MaskTabNameString	      ","
      System {
	Name			"HTS-PMSM Drive"
	Location		[-116, 119, 876, 519]
	Open			off
	ModelBrowserVisibility	off
	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			  "SP"
	  Position		  [45, 104, 75, 116]
	  FontSize		  12
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tm"
	  Position		  [560, 224, 590, 236]
	  NamePlacement		  "alternate"
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Braking chopper"
	  Ports			  [0, 1, 0, 0, 0, 2, 2]
	  Position		  [170, 199, 260, 281]
	  NamePlacement		  "alternate"
	  FontName		  "Arial"
	  FontSize		  12
	  SourceBlock		  "DriveInternalModels/AC drives/Braking chopper"
	  SourceType		  "Braking chopper"
	  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"
	  chopa			  "320"
	  chopd			  "310"
	  freq_chop		  "4000"
	  cap_bus		  "2000e-6"
	  br			  "8"
	}
	Block {
	  BlockType		  BusSelector
	  Name			  "Bus\nSelector"
	  Ports			  [1, 2]
	  Position		  [680, 101, 685, 139]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  OutputSignals		  "Rotor speed wm (rad/s),Rotor angle thetam (rad)"
	  Port {
	    PortNumber		    1
	    Name		    "<Rotor speed wm (rad/s)>"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	  Port {
	    PortNumber		    2
	    Name		    "<Rotor angle thetam (rad)>"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Measures"
	  Ports			  [0, 1, 0, 0, 0, 3, 3]
	  Position		  [445, 247, 525, 318]
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  System {
	    Name		    "Measures"
	    Location		    [87, 177, 442, 362]
	    Open		    off
	    ModelBrowserVisibility  off
	    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		      "Current Measurement"
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [145, 14, 165, 36]
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Current Measurement"
	      SourceType	      "Current Measurement"
	      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"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Current Measurement1"
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [145, 49, 165, 71]
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Current Measurement"
	      SourceType	      "Current Measurement"
	      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"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Current Measurement2"
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [145, 84, 165, 106]
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Current Measurement"
	      SourceType	      "Current Measurement"
	      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"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      Ports		      [3, 1]
	      Position		      [220, 124, 225, 176]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Ta"
	      Position		      [30, 18, 60, 32]
	      Port		      "1"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Tb"
	      Position		      [30, 53, 60, 67]
	      Port		      "2"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Tc"
	      Position		      [30, 88, 60, 102]
	      Port		      "3"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Mta"
	      Position		      [285, 23, 315, 37]
	      Orientation	      "left"
	      Port		      "4"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Mtb"
	      Position		      [285, 58, 315, 72]
	      Orientation	      "left"
	      Port		      "5"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Mtc"
	      Position		      [285, 93, 315, 107]
	      Orientation	      "left"
	      Port		      "6"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "I_abc"
	      Position		      [290, 143, 320, 157]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      DstBlock		      "I_abc"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Current Measurement2"
	      SrcPort		      1
	      Points		      [20, 0; 0, 75]
	      DstBlock		      "Mux1"
	      DstPort		      3
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Current Measurement2"
	      SrcPort		      RConn1
	      DstBlock		      "Mtc"
	      DstPort		      RConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Tc"
	      SrcPort		      RConn1
	      DstBlock		      "Current Measurement2"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Ta"
	      SrcPort		      RConn1
	      DstBlock		      "Current Measurement"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Current Measurement"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -