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

📄 sep_motor_vary_n.mdl

📁 MATLAB电机仿真精华50例,源代码!!!!!!!!
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "sep_motor_vary_n"
    Location		    [2, 74, 1014, 724]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Current Controller"
      Ports		      [2, 1]
      Position		      [170, 315, 210, 390]
      Orientation	      "left"
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MaskDescription	      "Hysteresis Current Controller"
      MaskPromptString	      "Hysteresis band (A)"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "h=@1;"
      MaskDisplay	      "plot(0,0,100,100,[45,45],[35,65],[55,55],[35,65"
"],[45,65],[65,65],[35,55],[35,35])"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1"
      System {
	Name			"Current Controller"
	Location		[263, 192, 532, 347]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Iref"
	  Position		  [30, 93, 60, 107]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ia"
	  Position		  [30, 48, 60, 62]
	  Port			  "2"
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [130, 60, 160, 90]
	  OnSwitchValue		  "h/2"
	  OffSwitchValue	  "-h/2"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [95, 64, 110, 86]
	  ShowName		  off
	  Inputs		  "-+"
	}
	Block {
	  BlockType		  Outport
	  Name			  "g"
	  Position		  [200, 68, 230, 82]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Relay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay"
	  SrcPort		  1
	  DstBlock		  "g"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ia"
	  SrcPort		  1
	  Points		  [10, 0; 0, 15]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Iref"
	  SrcPort		  1
	  Points		  [10, 0; 0, -20]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "D1"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [1, 2]
      Position		      [210, 200, 250, 240]
      Orientation	      "up"
      SourceBlock	      "powerlib2/Power\nElectronics/Diode"
      SourceType	      "Diode"
      Ron		      "0.05"
      Lon		      "5e-6"
      Vf		      "0.7"
      IC		      "0"
      Rs		      "Inf"
      Cs		      "0.1e-6"
      PSBOutputType	      "10"
    }
    Block {
      BlockType		      Reference
      Name		      "DC_Machine\n5 HP / 240 V"
      Ports		      [3, 3]
      Position		      [520, 107, 595, 183]
      SourceBlock	      "powerlib2/Machines/DC Machine"
      SourceType	      "DC machine"
      RLa		      "[0.5  0.01]"
      RLf		      "[240  0]"
      Laf		      "1.23"
      J			      "0.05"
      Bm		      "0.02"
      Tf		      "0"
      w0		      "1e-1"
      PSBOutputType	      "110"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Demux"
      Ports		      [1, 4]
      Position		      [585, 303, 610, 412]
      Orientation	      "left"
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      Port {
	PortNumber		1
	Name			"wm (rad/s)"
	PropagatedSignals	"w"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		2
	Name			"Ia"
	PropagatedSignals	"Ia"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"Demux"
	Location		[446, 290, 642, 464]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "m"
	  Position		  [25, 58, 55, 72]
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 4]
	  Position		  [80, 28, 95, 97]
	  ShowName		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "wm"
	  Position		  [120, 13, 150, 27]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ia"
	  Position		  [120, 43, 150, 57]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "If"
	  Position		  [130, 78, 160, 92]
	  Port			  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Te"
	  Position		  [120, 118, 150, 132]
	  Port			  "4"
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "wm"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [5, 0]
	  DstBlock		  "Ia"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "m"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [15, 0]
	  DstBlock		  "If"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [5, 0]
	  DstBlock		  "Te"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Filter"
      Position		      [475, 371, 520, 429]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      Numerator		      "1"
      Denominator	      "[1e-5 1]"
      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		      Reference
      Name		      "Ground"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [1]
      Position		      [630, 160, 660, 190]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Ground (input)"
      SourceType	      "Ground"
    }
    Block {
      BlockType		      Reference
      Name		      "Gto"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [2, 2]
      Position		      [100, 137, 140, 173]
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib2/Power\nElectronics/Gto"
      SourceType	      "Gto"
      Ron		      "0.05"
      Lon		      "1e-6"
      Vf		      "1"
      Tf		      "1e-6"
      Tt		      "1e-6"
      IC		      "0"
      Rs		      "100"
      Cs		      "0.1e-6"
      PSBOutputType	      "10"
    }
    Block {
      BlockType		      Constant
      Name		      "Load_torque\n(N.m)"
      Position		      [450, 158, 475, 182]
      Value		      "10"
      ShowAdditionalParam     on
    }
    Block {
      BlockType		      Step
      Name		      "Load_torque "
      Position		      [450, 215, 480, 235]
      Time		      "1.2"
      Before		      "5"
      After		      "25"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Ls"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [1, 1]
      Position		      [455, 131, 495, 159]
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib2/Elements/Parallel RLC Branch"
      SourceType	      "Parallel RLC Branch"
      a			      "inf"
      b			      "10e-03"
      c			      "0"
      mesure		      "None"
      PSBOutputType	      "1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "More Info"
      Ports		      []
      Position		      [520, 450, 547, 475]
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('?')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"More Info"
	Location		[108, 205, 854, 647]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "Start the simulation. Observe the motor cur"
"rent, voltage, and speed during the starting on the scope.\n\nAt the end of t"
"he simulation time (1.5 s), the system has attained its steady-state. The fin"
"al state vector can\nbe saved by previously  selecting 'Workspace I/O/Save to"
" workspace/Final state' in Simulation/Parameters window.\nOnce the simultion "
"is finished save the xFinal variable into xInitial.   \n\nNote : The initial "
"conditions state vector xInitial to start with wm = 120 rad/s and Te = 5 N.m "
"is stored in the psbdcdrive_init.mat file.  \n\nReplace the constant wref and"
" TL blocks by the two Simulink step functions with different starting times."
"\n(Refence speed wref changed from 120 to 160 rad/s at t = 0.4 s and load tor"
"que changed from 5 to 25 N.m at  t= 2s)\nSelect  'Workspace I/O/Load from wor"
"k space/Initial state' in Simulation parameters window to load the steady-sta"
"te  vector xInitial.\nRestart the simulation  and observe the drive response "
"to successive changes in speed reference and load torque. "
	  Position		  [19, 246]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontName		  "Arial"
	  FontSize		  12
	}
	Annotation {
	  Name			  "Case study: Chopper-Fed DC Motor Drive"
	  Position		  [19, 22]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontSize		  14
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "Circuit Description"
	  Position		  [19, 72]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  ForegroundColor	  "blue"
	  FontSize		  14
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "Demonstration"
	  Position		  [19, 222]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  ForegroundColor	  "blue"
	  FontSize		  14
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "The DC motor is fed by the DC source throug"
"h a chopper which consists of GTO thyristor Th1\nand free-wheeling diode D1. "
"The motor drives a mechanical load characterized by inertia J, friction\ncoef"
"icient B, and load torque TL.\n\nThe hysteresis current controller compares t"
"he sensed current with the reference and generates \nthe trigger signal for t"
"he GTO thyristor to force the motor current to follow the reference.      \nT"
"he speed control loop uses a proportional-integral controller which produces "
"the reference for the current loop.\nCurrent and Voltage Measurement blocks p"
"rovide signals for visualization purpose.           "
	  Position		  [18, 93]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontName		  "Arial"
	  FontSize		  12
	}
	Annotation {
	  Name			  "H. Le-Huy (Universit

⌨️ 快捷键说明

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