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

📄 matlab 仿真.mdl

📁 基于PI整定的PMSM直接转矩控制
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      CollapseMode	      "All dimensions"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      BusSelector
      Name		      "Bus\nSelector"
      Ports		      [1, 7]
      Position		      [675, 79, 695, 261]
      ShowName		      off
      OutputSignals	      "Stator current is_d (A),Stator current is_q (A)"
",Stator voltage Vs_d (V),Rotor angle thetam (rad),Stator voltage Vs_q (V),Rot"
"or speed wm (rad/s),Electromagnetic torque Te (N*m)"
      Port {
	PortNumber		1
	Name			"<Stator current is_d (A)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		2
	Name			"<Stator current is_q (A)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		3
	Name			"<Stator voltage Vs_d (V)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		4
	Name			"<Rotor angle thetam (rad)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		5
	Name			"<Stator voltage Vs_q (V)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		6
	Name			"<Rotor speed wm (rad/s)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		7
	Name			"<Electromagnetic torque Te (N*m)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      ComplexToMagnitudeAngle
      Name		      "Complex to\nMagnitude-Angle"
      Ports		      [1, 2]
      Position		      [810, 423, 840, 452]
      Orientation	      "left"
      Output		      "Magnitude and angle"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [190, 270, 220, 300]
      Orientation	      "left"
      Value		      "0.175"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [630, 435, 685, 455]
      Orientation	      "left"
      Expr		      "u+pi"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [85, 50, 115, 80]
      Gain		      "60"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [995, 195, 1025, 225]
      IgnoreLimit	      off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator1"
      Ports		      [1, 1]
      Position		      [990, 125, 1020, 155]
      IgnoreLimit	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "KAIGUANBIAO"
      Ports		      [3, 1]
      Position		      [310, 159, 360, 221]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      System {
	Name			"KAIGUANBIAO"
	Location		[138, 393, 563, 574]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "TQ"
	  Position		  [25, 28, 55, 42]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "YQ"
	  Position		  [25, 88, 55, 102]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "SQ"
	  Position		  [35, 143, 65, 157]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [120, 80, 150, 110]
	  Gain			  "2"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Lookup2D
	  Name			  "Lookup\nTable (2-D)"
	  Position		  [235, 83, 290, 132]
	  RowIndex		  "[1:3]"
	  ColumnIndex		  "[1:3]"
	  OutputValues		  "[4 5 6;16 19 20;10 18 23]"
	  InputSameDT		  off
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [160, 35, 180, 55]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "puluse"
	  Position		  [370, 93, 400, 107]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "YQ"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "TQ"
	  SrcPort		  1
	  Points		  [40, 0; 0, 10]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [15, 0; 0, 50]
	  DstBlock		  "Lookup\nTable (2-D)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SQ"
	  SrcPort		  1
	  Points		  [135, 0; 0, -30]
	  DstBlock		  "Lookup\nTable (2-D)"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Lookup\nTable (2-D)"
	  SrcPort		  1
	  Points		  [30, 0; 0, -10]
	  DstBlock		  "puluse"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "PID Controller"
      Ports		      [1, 1]
      Position		      [110, 145, 140, 175]
      ShowName		      off
      SourceBlock	      "simulink_extras/Additional\nLinear/PID Controll"
"er"
      SourceType	      "PID Controller"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      P			      "1"
      I			      "1"
      D			      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "PWM \nIGBT Inverter"
      Ports		      [1, 0, 0, 0, 0, 3, 2]
      Position		      [455, 126, 515, 219]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Power\nElectronics/Universal Bridge"
      SourceType	      "Universal Bridge"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Arms		      "3"
      SnubberResistance	      "5000"
      SnubberCapacitance      "inf"
      Device		      "IGBT / Diodes"
      Ron		      "1e-3"
      Lon		      "0"
      ForwardVoltages	      "[  0.0  0.0  ]"
      ForwardVoltage	      ".8"
      GTOparameters	      "[ 1e-6 ,1e-6 ]"
      IGBTparameters	      "[ 1e-6 , 2e-6 ]"
      Measurements	      "Device currents"
      converterType	      "Rectifier"
    }
    Block {
      BlockType		      Reference
      Name		      "Permanent Magnet\nSynchronous Machine"
      Ports		      [1, 1, 0, 0, 0, 3]
      Position		      [555, 133, 640, 207]
      DialogController	      "POWERSYS.PowerSysDialog"
      FontSize		      11
      SourceBlock	      "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
      SourceType	      "Permanent Magnet Synchronous Machine"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      FluxDistribution	      "Sinusoidal"
      MechanicalLoad	      "Torque Tm"
      PresetModel	      "No"
      ShowDetailedParameters  on
      Resistance	      "2.8750 "
      Inductance	      "8.5e-3"
      dqInductances	      "[8.5e-3, 8.5e-3]"
      Flux		      "0.175"
      Flat		      "120"
      Mechanical	      "[0.8e-3 1e-3 4]"
      PolePairs		      "4"
    }
    Block {
      BlockType		      RealImagToComplex
      Name		      "Real-Imag to\nComplex"
      Ports		      [2, 1]
      Position		      [1155, 143, 1185, 172]
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [240, 220, 270, 250]
    }
    Block {
      BlockType		      Relay
      Name		      "Relay1"
      Position		      [230, 155, 260, 185]
    }
    Block {
      BlockType		      Gain
      Name		      "Rs"
      Position		      [830, 65, 860, 95]
      Gain		      "2.875"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Rs1"
      Position		      [855, 185, 885, 215]
      Gain		      "2.875"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Step
      Name		      "Step"
      Position		      [15, 50, 45, 80]
      SampleTime	      "0"
    }
    Block {
      BlockType		      Step
      Name		      "Step1"
      Position		      [565, 85, 595, 115]
      Orientation	      "left"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "e"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [410, 150, 430, 185]
      Orientation	      "up"
      ShowName		      off
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Electrical\nSources/DC Voltage Source"
      SourceType	      "DC Voltage Source"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Amplitude		      "325"
      Measurements	      "None"
    }
    Block {
      BlockType		      SubSystem
      Name		      "zuobiaoxuanzhuan"
      Ports		      [3, 2]
      Position		      [1070, 120, 1110, 230]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      System {
	Name			"zuobiaoxuanzhuan"
	Location		[208, 119, 683, 362]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 28, 55, 42]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [25, 108, 55, 122]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In3"
	  Position		  [35, 203, 65, 217]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Add"
	  Ports			  [2, 1]
	  Position		  [345, 62, 375, 93]
	  Inputs		  "+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Add1"
	  Ports			  [2, 1]
	  Position		  [345, 152, 375, 183]
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {

⌨️ 快捷键说明

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