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

📄 pmsm_ideal.mdl

📁 simulink下的理想模型,采用矢量控制方案,在它的基础上可加入实际干扰因素,进一步设计控制器.
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "5|10| [-500, 500]"
      System {
	Name			"iqref1"
	Location		[257, 231, 611, 401]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In_1"
	  Position		  [25, 75, 45, 95]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Integral"
	  Position		  [110, 67, 145, 103]
	  Numerator		  "[I]"
	  Denominator		  "[1 0]"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional"
	  Position		  [120, 28, 140, 52]
	  NamePlacement		  "alternate"
	  Gain			  "P"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 53, 255, 77]
	  UpperLimit		  "max"
	  LowerLimit		  "min"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [180, 15, 200, 110]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out_1"
	  Position		  [285, 55, 305, 75]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Proportional"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In_1"
	  SrcPort		  1
	  Points		  [15, 0; 15, 0]
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Proportional"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Integral"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Integral"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "iqref2"
      Ports		      [1, 1]
      Position		      [130, 88, 155, 112]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskType		      "PI Controller"
      MaskPromptString	      "Integral|Proportional:|Minimum and maximum outp"
"uts:"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskInitialization      "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
      MaskDisplay	      "disp('PI')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "5|10| [-30, 30]"
      System {
	Name			"iqref2"
	Location		[257, 231, 611, 401]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In_1"
	  Position		  [25, 75, 45, 95]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Integral"
	  Position		  [110, 67, 145, 103]
	  Numerator		  "[I]"
	  Denominator		  "[1 0]"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional"
	  Position		  [120, 28, 140, 52]
	  NamePlacement		  "alternate"
	  Gain			  "P"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 53, 255, 77]
	  UpperLimit		  "max"
	  LowerLimit		  "min"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [180, 15, 200, 110]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out_1"
	  Position		  [285, 55, 305, 75]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Proportional"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In_1"
	  SrcPort		  1
	  Points		  [15, 0; 15, 0]
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Proportional"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Integral"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Integral"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "n_ref"
      Position		      [20, 85, 50, 115]
      Value		      "300"
    }
    Block {
      BlockType		      SubSystem
      Name		      "park"
      Ports		      [3, 2]
      Position		      [585, 261, 655, 379]
      Orientation	      "left"
      TreatAsAtomicUnit	      off
      System {
	Name			"park"
	Location		[242, 288, 753, 600]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "I_alpha"
	  Position		  [70, 138, 100, 152]
	}
	Block {
	  BlockType		  Inport
	  Name			  "I_beta"
	  Position		  [70, 168, 100, 182]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Theta"
	  Position		  [70, 78, 100, 92]
	  Port			  "3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [130, 104, 170, 126]
	  ShowName		  off
	  Expr			  "sin(u)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [130, 74, 170, 96]
	  ShowName		  off
	  Expr			  "cos(u)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [335, 95, 365, 125]
	  ShowName		  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [335, 130, 365, 160]
	  ShowName		  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [200, 71, 205, 189]
	  ShowName		  off
	  Inputs		  "[1 1 1 1]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "id"
	  Position		  [265, 98, 305, 122]
	  NamePlacement		  "alternate"
	  Expr			  "u[1]*u[3]+u[2]*u[4]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "iq"
	  Position		  [265, 133, 305, 157]
	  Expr			  "-u[2]*u[3]+u[1]*u[4]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Id"
	  Position		  [395, 103, 425, 117]
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Iq"
	  Position		  [395, 138, 425, 152]
	  Port			  "2"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Theta"
	  SrcPort		  1
	  Points		  [0, 0; 5, 0]
	  Branch {
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [0, 15]
	    DstBlock		    "iq"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -20]
	    DstBlock		    "id"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "I_alpha"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "iq"
	  SrcPort		  1
	  DstBlock		  "Gain1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "id"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Id"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "Iq"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "I_beta"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "park_inv"
      Ports		      [3, 2]
      Position		      [420, 144, 475, 206]
      TreatAsAtomicUnit	      off
      Port {
	PortNumber		1
	Name			"Valpha"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		2
	Name			"Vbeta"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"park_inv"
	Location		[370, 276, 881, 588]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "iq"
	  Position		  [70, 138, 100, 152]
	}
	Block {
	  BlockType		  Inport
	  Name			  "id"
	  Position		  [70, 168, 100, 182]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Theta"
	  Position		  [70, 78, 100, 92]
	  Port			  "3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [130, 104, 170, 126]
	  ShowName		  off
	  Expr			  "sin(u)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [130, 74, 170, 96]
	  ShowName		  off
	  Expr			  "cos(u)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [335, 95, 365, 125]
	  ShowName		  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [335, 130, 365, 160]
	  ShowName		  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [200, 71, 205, 189]
	  ShowName		  off
	  Inputs		  "[1 1 1 1]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "i_alpha"
	  Position		  [265, 98, 305, 122]
	  NamePlacement		  "alternate"
	  Expr			  "u[1]*u[4]-u[2]*u[3]"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "i_beta"
	  Position		  [265, 133, 305, 157]
	  Expr			  "u[2]*u[4]+u[1]*u[3]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "I_apha"
	  Position		  [395, 103, 425, 117]
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "I_beta"
	  Position		  [395, 138, 425, 152]
	  Port			  "2"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Theta"
	  SrcPort		  1
	  Points		  [0, 0; 5, 0]
	  Branch {
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [0, 15]
	    DstBlock		    "i_beta"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -20]

⌨️ 快捷键说明

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