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

📄 mybldc_mdl2.mdl

📁 一个无刷电机仿真的模型
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator5"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "U"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "V"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "W"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "CHANGER"
      Ports		      [7, 3]
      Position		      [75, 554, 185, 706]
      Orientation	      "left"
      ForegroundColor	      "[0.501961, 0.000000, 0.250980]"
      TreatAsAtomicUnit	      off
      MaskDescription	      "This block is used to switch the bldc operation"
" from an open loop to an initial one.\nFill in the amount of time bldc is to "
"be run under open loop condition in the field \n'Threshold time'"
      MaskHelp		      "The controller by itself cannot start the motor"
". This is because the controller operation\nis heavily dependent upon the Bac"
"k EMF (BEMF) voltages. Initially, the rotor is at\nstandstill, and the back e"
"mf voltages have not built up. Thus, the controller does not\nhave any synchr"
"onizing information. \n\nTherefore, for some inital time called the 'threshol"
"d time' , the motor is 'blindly' ramped \nup. This is done by the '120 deg tr"
"igger' block which forces the 6 step commutation \nsequence on the motor. \n"
"\nAfter the 'threshold time' sufficient back emf voltages have built up and t"
"hen the 'CHANGER'\nblock just puts the BLDC motor into the closed loop operat"
"ion.\n\nFor more information refer to the accompanying manual."
      MaskPromptString	      "Threshold time"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "T=@1;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "400e-6"
      System {
	Name			"CHANGER"
	Location		[2, 82, 1014, 744]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "DRIVER_U"
	  Position		  [25, 28, 55, 42]
	}
	Block {
	  BlockType		  Inport
	  Name			  "DRIVER_V"
	  Position		  [25, 98, 55, 112]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "DRIVER_W"
	  Position		  [25, 158, 55, 172]
	  Port			  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "INIT_U"
	  Position		  [25, 63, 55, 77]
	  Port			  "4"
	}
	Block {
	  BlockType		  Inport
	  Name			  "INIT_V"
	  Position		  [25, 128, 55, 142]
	  Port			  "5"
	}
	Block {
	  BlockType		  Inport
	  Name			  "INIT_W"
	  Position		  [25, 188, 55, 202]
	  Port			  "6"
	}
	Block {
	  BlockType		  Inport
	  Name			  "TIME_SW"
	  Position		  [25, 238, 55, 252]
	  Port			  "7"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [160, 45, 190, 75]
	  Criteria		  "u2 > Threshold"
	  Threshold		  "T"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [160, 105, 190, 135]
	  Criteria		  "u2 > Threshold"
	  Threshold		  "T"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch2"
	  Position		  [160, 165, 190, 195]
	  Criteria		  "u2 > Threshold"
	  Threshold		  "T"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "U"
	  Position		  [280, 53, 310, 67]
	}
	Block {
	  BlockType		  Outport
	  Name			  "V"
	  Position		  [280, 113, 310, 127]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "W"
	  Position		  [275, 173, 305, 187]
	  Port			  "3"
	}
	Line {
	  SrcBlock		  "DRIVER_U"
	  SrcPort		  1
	  Points		  [40, 0; 0, 15]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "DRIVER_V"
	  SrcPort		  1
	  Points		  [40, 0; 0, 5]
	  DstBlock		  "Switch1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "DRIVER_W"
	  SrcPort		  1
	  Points		  [40, 0; 0, 5]
	  DstBlock		  "Switch2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "INIT_U"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "INIT_V"
	  SrcPort		  1
	  Points		  [40, 0; 0, -5]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "INIT_W"
	  SrcPort		  1
	  Points		  [40, 0; 0, -5]
	  DstBlock		  "Switch2"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "TIME_SW"
	  SrcPort		  1
	  Points		  [75, 0; 0, -65]
	  Branch {
	    Points		    [0, -60]
	    Branch {
	      Points		      [0, -60]
	      DstBlock		      "Switch"
	      DstPort		      2
	    }
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	  }
	  Branch {
	    DstBlock		    "Switch2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Switch2"
	  SrcPort		  1
	  DstBlock		  "W"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  DstBlock		  "V"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "U"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "CONTROLLER_MOD"
      Ports		      [6, 6]
      Position		      [460, 537, 560, 733]
      Orientation	      "left"
      ForegroundColor	      "blue"
      TreatAsAtomicUnit	      off
      System {
	Name			"CONTROLLER_MOD"
	Location		[2, 82, 1014, 744]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "IU_in"
	  Position		  [30, 43, 60, 57]
	}
	Block {
	  BlockType		  Inport
	  Name			  "IUSTAR_in"
	  Position		  [25, 88, 55, 102]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "IV_in"
	  Position		  [25, 188, 55, 202]
	  Port			  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "IVSTAR_in"
	  Position		  [25, 233, 55, 247]
	  Port			  "4"
	}
	Block {
	  BlockType		  Inport
	  Name			  "IW"
	  Position		  [25, 338, 55, 352]
	  Port			  "5"
	}
	Block {
	  BlockType		  Inport
	  Name			  "IWSTAR_in"
	  Position		  [25, 383, 55, 397]
	  Port			  "6"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "SET1"
	  Ports			  [2, 2]
	  Position		  [165, 25, 290, 120]
	  TreatAsAtomicUnit	  off
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "SET1"
	    Location		    [257, 457, 812, 717]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "IU"
	      Position		      [20, 101, 40, 119]
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "IUSTAR"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      Ports		      [1, 1]
	      Position		      [270, 180, 320, 220]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      Tag		      "Stateflow S-Function mybldc_mdl2 1"
	      Ports		      [2, 3]
	      Position		      [180, 100, 230, 180]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[2 3]"
	      Port {
		PortNumber		2
		Name			"Q1"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	      Port {
		PortNumber		3
		Name			"Q4"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 191, 480, 209]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q1"
	      Position		      [460, 101, 480, 119]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q4"
	      Position		      [460, 136, 480, 154]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IU"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IUSTAR"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      Name		      "Q1"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "Q1"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Q4"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      3
	      DstBlock		      "Q4"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "SET2"
	  Ports			  [2, 2]
	  Position		  [165, 170, 290, 265]
	  TreatAsAtomicUnit	  off
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "SET2"
	    Location		    [257, 457, 812, 717]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "IV"
	      Position		      [20, 101, 40, 119]
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "IVSTAR"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      Ports		      [1, 1]
	      Position		      [270, 180, 320, 220]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      Tag		      "Stateflow S-Function mybldc_mdl2 2"
	      Ports		      [2, 3]
	      Position		      [180, 100, 230, 180]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[2 3]"
	      Port {
		PortNumber		2
		Name			"Q3"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	      Port {
		PortNumber		3
		Name			"Q6"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 191, 480, 209]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q3"
	      Position		      [460, 101, 480, 119]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q6"
	      Position		      [460, 136, 480, 154]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	    Line {

⌨️ 快捷键说明

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