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

📄 dcmotspdb.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  BlockType		  Gain
	  Name			  "Bm"
	  Position		  [410, 105, 460, 135]
	  Orientation		  "left"
	  Gain			  "Bm"
	  Port {
	    PortNumber		    1
	    Name		    "Tf"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [195, 45, 225, 75]
	  ShowName		  off
	  Port {
	    PortNumber		    1
	    Name		    "ia"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator1"
	  Ports			  [1, 1]
	  Position		  [470, 44, 500, 76]
	  ShowName		  off
	  Port {
	    PortNumber		    1
	    Name		    "wm"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Kt"
	  Position		  [275, 44, 310, 76]
	  Gain			  "K"
	  Port {
	    PortNumber		    1
	    Name		    "Te"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Kv"
	  Position		  [275, 170, 310, 200]
	  Orientation		  "left"
	  Gain			  "K"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Ra"
	  Position		  [170, 105, 200, 135]
	  Orientation		  "left"
	  Gain			  "0.60"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1]
	  Position		  [70, 45, 100, 75]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "||+--"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [3, 1]
	  Position		  [335, 45, 365, 75]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "||+--"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "model1"
	  Ports			  []
	  Position		  [37, 198, 131, 252]
	  ForegroundColor	  "darkGreen"
	  DropShadow		  on
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('MATHEMATICAL\\nMODEL')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "model1"
	    Location		    [530, 501, 830, 660]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Annotation {
	      Name		      " Electrical  system equation: \n       "
"     va = Ra.ia + La.dia/dt + ea\n                  where  ea = K.wm\n       "
"     \n Mechanical system equation:\n             Te = J.dwm/dt + Tl.signum(w"
"m) + f(wm)\n                   where Te = K.ia                     "
	      Position		      [20, 30]
	      HorizontalAlignment     "left"
	      VerticalAlignment	      "top"
	      FontName		      "Arial"
	      FontSize		      12
	    }
	    Annotation {
	      Name		      "Mathematical model of the dc machine "
	      Position		      [154, 17]
	      ForegroundColor	      "blue"
	      FontSize		      12
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "ia"
	  Position		  [245, 15, 275, 30]
	  Orientation		  "up"
	}
	Block {
	  BlockType		  Outport
	  Name			  "wm"
	  Position		  [525, 15, 555, 30]
	  Orientation		  "up"
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Kv"
	  SrcPort		  1
	  Points		  [-206, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Ra"
	  SrcPort		  1
	  Points		  [-80, 0]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  Name			  "Te"
	  Labels		  [1, 0]
	  SrcBlock		  "Kt"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  Name			  "Tf"
	  Labels		  [0, 0]
	  SrcBlock		  "Bm"
	  SrcPort		  1
	  Points		  [-55, 0]
	  DstBlock		  "Sum1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "1/La"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/La"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  Name			  "ia"
	  Labels		  [1, 0]
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [30, 0]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Ra"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 0]
	    Branch {
	      DstBlock		      "Kt"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "ia"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "1/J"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/J"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
	Line {
	  Name			  "wm"
	  Labels		  [1, 0]
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  Points		  [35, 0]
	  Branch {
	    Points		    [0, 60]
	    Branch {
	      DstBlock		      "Bm"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 65]
	      DstBlock		      "Kv"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "wm"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "va"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tl"
	  SrcPort		  1
	  Points		  [9, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Annotation {
	  Name			  "BLOCK DIAGRAM MODEL OF A DC MOTOR"
	  Position		  [302, 241]
	  ForegroundColor	  "blue"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Lookup
      Name		      "Look-Up\nTable"
      Position		      [75, 115, 105, 145]
      NamePlacement	      "alternate"
      InputValues	      "[0 .03 .03 .08]"
      OutputValues	      "[100 100 -100 -100]"
      Port {
	PortNumber		1
	Name			"wc"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [170, 24, 175, 91]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [335, 19, 340, 86]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [2, 1]
      Position		      [525, 46, 530, 84]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Product
      Name		      "Product2"
      Ports		      [2, 1]
      Position		      [475, 172, 495, 203]
      ShowName		      off
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [385, 110, 430, 150]
      OnSwitchValue	      "2"
      OffSwitchValue	      "-2"
      OnOutputValue	      "60"
      OffOutputValue	      "-60"
      Port {
	PortNumber		1
	Name			"va"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Signum
      Name		      "Sign"
      Position		      [447, 205, 473, 225]
      Orientation	      "up"
      NamePlacement	      "alternate"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Speed controller"
      Ports		      [1, 1]
      Position		      [225, 104, 285, 156]
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MaskDescription	      "Proportional-Integral Speed Controller"
      MaskPromptString	      "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "Kp=@1;Ki=@2;sat=@3;"
      MaskDisplay	      "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1.5|650|18"
      System {
	Name			"Speed controller"
	Location		[691, 558, 998, 683]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "we"
	  Position		  [20, 78, 50, 92]
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [85, 71, 110, 99]
	  ShowName		  off
	  Gain			  "Ki"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [120, 16, 150, 44]
	  ShowName		  off
	  Gain			  "Kp"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [130, 70, 155, 100]
	  ShowName		  off
	  LimitOutput		  on
	  UpperSaturationLimit	  "sat"
	  LowerSaturationLimit	  "-sat"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 50, 245, 70]
	  ShowName		  off
	  UpperLimit		  "sat"
	  LowerLimit		  "-sat"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [175, 50, 195, 70]
	  ShowName		  off
	  IconShape		  "round"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ic"
	  Position		  [260, 53, 290, 67]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "ic"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}

⌨️ 快捷键说明

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