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

📄 mrlib.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gr"
	      SrcPort		      1
	      Points		      [30, 0]
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "ir"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "INVERSE INDUCTANCE"
	      Position		      [142, 276]
	    }
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "poles/2"
	  Position		  [65, 324, 95, 356]
	  Gain			  "p/2"
	}
	Block {
	  BlockType		  Constant
	  Name			  "vr"
	  Position		  [125, 325, 155, 355]
	  Value			  "[0 0]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Te"
	  Position		  [740, 133, 770, 147]
	}
	Block {
	  BlockType		  Outport
	  Name			  "is"
	  Position		  [735, 218, 765, 232]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [-50, 0]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "vr"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [-50, 0]
	  DstBlock		  "Sum1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    Points		    [0, -90]
	    DstBlock		    "M"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "flux-current1"
	    DstPort		    1
	  }
	}
	Line {
	  Labels		  [2, 0]
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  Points		  [45, 0; 0, -85]
	  Branch {
	    Points		    [0, -80]
	    DstBlock		    "flux-current1"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "M1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "M1"
	  SrcPort		  1
	  Points		  [-80, 0; 0, 20]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "M"
	  SrcPort		  1
	  Points		  [-85, 0; 0, 20]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum4"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "vs"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "wk"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 215]
	    DstBlock		    "Sum4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "flux-current1"
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    Points		    [0, 95]
	    Branch {
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "is"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "Dot Product"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Dot Product"
	  SrcPort		  1
	  DstBlock		  "Gain2"
	  DstPort		  1
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  DstBlock		  "Te"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "wmec"
	  SrcPort		  1
	  DstBlock		  "poles/2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "poles/2"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Sum4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "M2"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Dot Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "flux-current1"
	  SrcPort		  2
	  Points		  [20, 0]
	  Branch {
	    Labels		    [1, 0]
	    DstBlock		    "M2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 230]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	}
	Annotation {
	  Name			  "ROTOR"
	  Position		  [258, 297]
	  ForegroundColor	  "red"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "STATOR"
	  Position		  [253, 86]
	  ForegroundColor	  "red"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "fs"
	  Position		  [352, 79]
	}
	Annotation {
	  Name			  "is"
	  Position		  [505, 120]
	}
	Annotation {
	  Name			  "Te"
	  Position		  [722, 133]
	}
	Annotation {
	  Name			  "VECTORIZED MODEL OF AN INDUCTION  MACHINE\n"
"SI UNITS"
	  Position		  [287, 460]
	  ForegroundColor	  "blue"
	  FontSize		  14
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "vs = Rs is + d(fs)/dt + wk M fs "
	  Position		  [141, 13]
	  FontSize		  14
	}
	Annotation {
	  Name			  "vr = Rr ir +d(fr)/dt + (wk-wm) M fr"
	  Position		  [144, 418]
	  FontSize		  14
	}
	Annotation {
	  Name			  "fs= (Lsl+Lm).is + Lm.ir"
	  Position		  [426, 254]
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "fr = Lm).is +(Lm+Lrl).ir"
	  Position		  [426, 279]
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "Te = 0.75pLm(is(cross)ir) = 0.75pLm(M.ir(do"
"t)ir)"
	  Position		  [627, 85]
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "M = [0 -1;1 0]"
	  Position		  [293, 14]
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "ir"
	  Position		  [501, 163]
	}
	Annotation {
	  Name			  "fr"
	  Position		  [344, 328]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Mechanical \nsystem"
      Ports		      [2, 1]
      Position		      [465, 47, 585, 143]
      ForegroundColor	      "orange"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Arial"
      FontSize		      11
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Inertia constant [s]|Viscous damping coefficien"
"t|Fan load factor|Fan load exponent"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables	      "H=@1;B1=@2;B2=@3;a=@4;"
      MaskDisplay	      "disp('Mechanical\\nSystem\\n(pu)')"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.3|1e-5|0|2"
      System {
	Name			"Mechanical \nsystem"
	Location		[421, 468, 763, 662]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Tl"
	  Position		  [15, 13, 45, 27]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Te"
	  Position		  [15, 48, 45, 62]
	  Port			  "2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/2H"
	  Position		  [115, 37, 175, 73]
	  ShowName		  off
	  Gain			  "1/(2*H)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Bm"
	  Position		  [150, 77, 200, 113]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "B1"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [195, 39, 225, 71]
	  ShowName		  off
	  InitialCondition	  ".82"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1]
	  Position		  [70, 45, 90, 65]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+-"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [100, 85, 120, 105]
	  Orientation		  "left"
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Tm"
	  Position		  [140, 131, 210, 159]
	  Orientation		  "left"
	  ShowName		  off
	  Expr			  "B2*abs(u)^a"
	}
	Block {
	  BlockType		  Outport
	  Name			  "wm"
	  Position		  [270, 48, 300, 62]
	}
	Line {
	  SrcBlock		  "Tl"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Te"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "wm"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 40]
	    Branch {
	      DstBlock		      "Bm"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 50]
	      DstBlock		      "Tm"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "1/2H"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/2H"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Bm"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  Points		  [-15, 0]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Tm"
	  SrcPort		  1
	  Points		  [-25, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Annotation {
	  Name			  "fan-type load"
	  Position		  [176, 175]
	  FontName		  "Arial"
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "PID controller"
      Ports		      [1, 1]
      Position		      [455, 309, 600, 391]
      ForegroundColor	      "blue"
      ShowName		      off
      FontName		      "Arial"
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDescription	      "Proportional-Integral Speed Controller"
      MaskPromptString	      "Proportional gain (Kp)|Integral gain (Ki)|Deriv"
"ative gain (Kd)|Saturation limit [pu]"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables	      "Kp=@1;Ki=@2;Kd=@3;sat=@4;"
      MaskDisplay	      "patch([18 18 75 75 18],[15 85 85 15 15],[0.9 .9"
" .9] )\nplot(0,0,100,100,[35,35,65],[70,30,30],[35,65],[45,60])\ntext(30, 10,"
"'PID controller')\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|10|0.1|inf"
      System {
	Name			"PID controller"
	Location		[570, 573, 929, 738]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"lightBlue"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "error"
	  Position		  [20, 73, 50, 87]
	}
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative"
	  Position		  [145, 115, 175, 145]
	  ShowName		  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [90, 66, 115, 94]
	  ShowName		  off
	  Gain			  "Ki"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [90, 16, 120, 44]
	  ShowName		  off
	  Gain			  "Kp"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"

⌨️ 快捷键说明

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