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

📄 dcmot2.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  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			  "Ra"
	}
	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		  Gain
	  Name			  "rpm"
	  Position		  [560, 45, 595, 75]
	  Gain			  "30/pi"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ia"
	  Position		  [245, 15, 275, 30]
	  Orientation		  "up"
	}
	Block {
	  BlockType		  Outport
	  Name			  "n"
	  Position		  [610, 52, 640, 68]
	  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 {
	  SrcBlock		  "va"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tl"
	  SrcPort		  1
	  Points		  [9, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	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		    "rpm"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "rpm"
	  SrcPort		  1
	  DstBlock		  "n"
	  DstPort		  1
	}
	Annotation {
	  Name			  "BLOCK DIAGRAM MODEL OF A DC MOTOR"
	  Position		  [302, 241]
	  ForegroundColor	  "blue"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Info"
      Ports		      []
      Position		      [80, 196, 126, 226]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('INFO')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Info"
	Location		[561, 680, 925, 772]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "This demo simulates the ramp start of a DC "
"motor\nwith constant field or pm excitation\n(5 hp 240V 1200 rpm)\nrated torq"
"ue Tr = 30 N.m"
	  Position		  [186, 39]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [155, 78, 185, 112]
      ShowName		      off
      LimitOutput	      on
      UpperSaturationLimit    "240"
      LowerSaturationLimit    "-240"
      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		      Step
      Name		      "Tl"
      Position		      [155, 140, 185, 170]
      ForegroundColor	      "red"
      Time		      "3"
      Before		      "4"
      After		      "30"
      SampleTime	      "0"
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "current"
      Ports		      [1]
      Position		      [385, 79, 415, 111]
      Location		      [557, 133, 1126, 423]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"Armature current [A]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "4"
      YMax		      "35"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "model"
      Ports		      []
      Position		      [162, 188, 215, 240]
      ForegroundColor	      "darkGreen"
      DropShadow	      on
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('MODEL')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"model"
	Location		[180, 525, 480, 684]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "Mathematical model of the dc machine "
	  Position		  [154, 17]
	  ForegroundColor	  "blue"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	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(wm) +"
" f(wm)\n                   where Te = K.ia                     "
	  Position		  [20, 30]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontName		  "Arial"
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "ramping rate\nV/s"
      Position		      [60, 79, 125, 111]
      ForegroundColor	      "red"
      Value		      "[100 150 200]"
    }
    Block {
      BlockType		      Scope
      Name		      "speed"
      Ports		      [1]
      Position		      [385, 139, 415, 171]
      Location		      [559, 488, 1138, 787]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"Speed [rpm]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "4"
      YMin		      "-200"
      YMax		      "1200"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "voltage"
      Ports		      [1]
      Position		      [235, 14, 265, 46]
      Location		      [20, 158, 552, 422]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"Voltage [V]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "4"
      YMin		      "0"
      YMax		      "250"
      DataFormat	      "StructureWithTime"
    }
    Line {
      Name		      "Tl"
      Labels		      [1, 0]
      SrcBlock		      "Tl"
      SrcPort		      1
      DstBlock		      "DC \nMOTOR"
      DstPort		      2
    }
    Line {
      Name		      "ia"
      Labels		      [-1, 1]
      SrcBlock		      "DC \nMOTOR"
      SrcPort		      1
      DstBlock		      "current"
      DstPort		      1
    }
    Line {
      Name		      "n"
      Labels		      [0, 1]
      SrcBlock		      "DC \nMOTOR"
      SrcPort		      2
      DstBlock		      "speed"
      DstPort		      1
    }
    Line {
      Name		      "va"
      Labels		      [2, 0]
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	DstBlock		"DC \nMOTOR"
	DstPort			1
      }
      Branch {
	Points			[0, -65]
	DstBlock		"voltage"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "ramping rate\nV/s"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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