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

📄 power_3levelvsc.mdl

📁 三电平异步电机控制程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  Ports			  [3, 1]
	  Position		  [355, 39, 445, 171]
	  BackgroundColor	  "lightBlue"
	  DropShadow		  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  MaskType		  "DC Regulator"
	  MaskPromptString	  "DC Voltage setpoint (Volts)|Vdc Regulator G"
"ains: [ Kp  Ki ]|Current Regulators Gain: [ Kp Ki Kd ]|Nominal Voltage and po"
"wer: [ Vnom (volts rms L-L)  Pnom (VA) ]|Time Step (s)"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "Vdc_Ref=@1;Par_VdcReg=@2;Par_IReg=@3;Par_No"
"m=@4;Ts=@5;"
	  MaskInitialization	  "Vnom=Par_Nom(1);\nPnom=Par_Nom(2);\nKp_I=Pa"
"r_IReg(1);\nKi_I=Par_IReg(2);\nKp_Vdc=Par_VdcReg(1);\nKi_Vdc=Par_VdcReg(2);\n"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Vdc_Ref|[0.015 1.6]|[0.3 20]|[600 500e3]|Ts"
"_Control"
	  MaskTabNameString	  ",,,,"
	  System {
	    Name		    "Controller"
	    Location		    [146, 172, 1065, 635]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Vabc"
	      Position		      [15, 123, 45, 137]
	      IconDisplay	      "Port number"
	      PortDimensions	      "3"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Iabc"
	      Position		      [115, 243, 145, 257]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      PortDimensions	      "3"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Vdc"
	      Position		      [275, 348, 305, 362]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "A->pu"
	      Position		      [170, 235, 200, 265]
	      Gain		      "sqrt(3)*Vnom/sqrt(2)/Pnom"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [510, 240, 530, 260]
	      ShowName		      off
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant6"
	      Position		      [295, 383, 345, 407]
	      ShowName		      off
	      Value		      "Vdc_Ref"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Current\nRegulators"
	      Ports		      [4, 1]
	      Position		      [605, 178, 685, 277]
	      BackgroundColor	      "yellow"
	      DropShadow	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      MaskHideContents	      off
	      MaskType		      "Current Regulators"
	      MaskDescription	      "Sign convention:\nId positive(+) flowin"
"g into converter ==> Converter absorbing real power = P positive(+) \nIq nega"
"tive(-) flowing into converter (inductive current) ==> Converter absorbing re"
"active power = Q positive(+) "
	      MaskPromptString	      "Proportional gain (Kp):|Integral gain ("
"Ki):|Derivative gain (Kd):|Time constant for derivative (s):|Output limits: ["
" Upper   Lower ]|Output initial value:|Sample time:"
	      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit"
	      MaskTunableValueString  "on,on,on,on,on,on,on"
	      MaskCallbackString      "||||||"
	      MaskEnableString	      "on,on,on,on,on,on,on"
	      MaskVisibilityString    "on,on,on,on,on,on,on"
	      MaskToolTipString	      "on,on,on,on,on,on,on"
	      MaskVarAliasString      ",,,,,,"
	      MaskVariables	      "Kp=@1;Ki=@2;Kd=@3;TcD=@4;Par_Limits=@5;"
"Init=@6;Ts=@7;"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "Kp_I|Ki_I|0|0.2e-3|[12 -12]|0|Ts"
	      MaskTabNameString	      ",,,,,,"
	      System {
		Name			"Current\nRegulators"
		Location		[58, 157, 947, 662]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	"[1.270000, 1.270000, 1.270000, 1.2700"
"00]"
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "IdIq"
		  Position		  [30, 173, 60, 187]
		  IconDisplay		  "Port number"
		  PortDimensions	  "2"
		}
		Block {
		  BlockType		  Inport
		  Name			  "Vd"
		  Position		  [60, 83, 90, 97]
		  Port			  "2"
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Inport
		  Name			  "IdIq_Ref"
		  Position		  [25, 273, 55, 287]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  PortDimensions	  "2"
		}
		Block {
		  BlockType		  Inport
		  Name			  "Vdc"
		  Position		  [545, 333, 575, 347]
		  Port			  "4"
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Gain
		  Name			  " Ltot"
		  Position		  [365, 410, 395, 440]
		  Gain			  "0.1055"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  Ports			  [1, 2]
		  Position		  [185, 141, 190, 214]
		  ShowName		  off
		  Outputs		  "2"
		  Port {
		    PortNumber		    1
		    Name		    "Id"
		    PropagatedSignals	    "Vd"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		  Port {
		    PortNumber		    2
		    Name		    "Iq"
		    PropagatedSignals	    "Vq"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux1"
		  Ports			  [1, 2]
		  Position		  [185, 241, 190, 314]
		  ShowName		  off
		  Outputs		  "2"
		  Port {
		    PortNumber		    1
		    Name		    "Id_Ref"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		  Port {
		    PortNumber		    2
		    Name		    "Iq_Ref"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Goto
		  Name			  "Goto1"
		  Position		  [105, 304, 160, 326]
		  ForegroundColor	  "darkGreen"
		  ShowName		  off
		  GotoTag		  "IdIqref"
		  TagVisibility		  "global"
		}
		Block {
		  BlockType		  Goto
		  Name			  "Goto3"
		  Position		  [115, 201, 150, 219]
		  ForegroundColor	  "darkGreen"
		  ShowName		  off
		  GotoTag		  "IdIq"
		  TagVisibility		  "global"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Id \nPID"
		  Ports			  [1, 1]
		  Position		  [360, 137, 405, 183]
		  DialogController	  "POWERSYS.PowerSysDialog"
		  SourceBlock		  "powerlib_extras/Discrete \nControl "
"Blocks/Discrete\nPID Controller"
		  SourceType		  "Discrete 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"
		  Kp			  "Kp"
		  Ki			  "Ki"
		  Kd			  "Kd"
		  TcD			  "TcD"
		  Par_Limits		  "Par_Limits"
		  Init			  "Init"
		  Ts			  "Ts"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Iq \nPID"
		  Ports			  [1, 1]
		  Position		  [355, 322, 400, 368]
		  DialogController	  "POWERSYS.PowerSysDialog"
		  SourceBlock		  "powerlib_extras/Discrete \nControl "
"Blocks/Discrete\nPID Controller"
		  SourceType		  "Discrete 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"
		  Kp			  "Kp"
		  Ki			  "Ki"
		  Kd			  "Kd"
		  TcD			  "TcD"
		  Par_Limits		  "Par_Limits"
		  Init			  "Init"
		  Ts			  "Ts"
		}
		Block {
		  BlockType		  Gain
		  Name			  "Ltot "
		  Position		  [380, 220, 410, 250]
		  Gain			  "0.1055"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Mean Value"
		  Ports			  [1, 1]
		  Position		  [160, 66, 210, 114]
		  DialogController	  "POWERSYS.PowerSysDialog"
		  SourceBlock		  "powerlib_extras/Discrete\nMeasureme"
"nts/Discrete \nMean value"
		  SourceType		  "Discrete Mean value"
		  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"
		  Freq			  "60"
		  Vinit			  "1.007"
		  Ts			  "Ts"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [2, 1]
		  Position		  [570, 198, 575, 267]
		  ShowName		  off
		  Inputs		  "2"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [3, 1]
		  Position		  [755, 221, 790, 289]
		  ShowName		  off
		  Inputs		  "**/"
		  CollapseMode		  "All dimensions"
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Saturate
		  Name			  "Saturation"
		  Position		  [605, 325, 635, 355]
		  UpperLimit		  "10000"
		  LowerLimit		  "10"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [280, 145, 310, 175]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|-+"
		  CollapseMode		  "All dimensions"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [275, 330, 305, 360]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|-+"
		  CollapseMode		  "All dimensions"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum2"
		  Ports			  [3, 1]
		  Position		  [455, 145, 485, 175]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "+|-|+"
		  CollapseMode		  "All dimensions"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum3"
		  Ports			  [2, 1]
		  Position		  [455, 330, 485, 360]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|--"
		  CollapseMode		  "All dimensions"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Vdc value for converter AC \noutput"
" of 1 pu for m=1"
		  Position		  [590, 243, 720, 267]
		  Value			  "240*sqrt(2)/(sqrt(3)/2)"
		}
		Block {
		  BlockType		  Reference
		  Name			  "mean Value "
		  Ports			  [1, 1]
		  Position		  [675, 315, 725, 365]
		  DialogController	  "POWERSYS.PowerSysDialog"
		  SourceBlock		  "powerlib_extras/Discrete\nMeasureme"
"nts/Discrete \nMean value"
		  SourceType		  "Discrete Mean value"
		  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"
		  Freq			  "60"
		  Vinit			  "500"
		  Ts			  "Ts"
		}
		Block {
		  BlockType		  Outport
		  Name			  "VdVq"
		  Position		  [825, 248, 855, 262]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Sum3"
		  SrcPort		  1
		  Points		  [30, 0; 0, -95]
		  DstBlock		  "Mux"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Vdc"
		  SrcPort		  1
		  DstBlock		  "Saturation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "mean Value "
		  SrcPort

⌨️ 快捷键说明

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