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

📄 driveconfigurable.mdl

📁 This submission includes the presentation and model files that were used in delivering a webinar on
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Enabled\nSubsystem"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Enabled\nSubsystem"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem1"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    Points		    [0, 80; -510, 0]
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Torque"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Torque CMD"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shaft Speed"
	  SrcPort		  1
	  Points		  [20, 0; 0, -25]
	  DstBlock		  "Subsystem1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sample\nFrequency"
	  SrcPort		  1
	  DstBlock		  "Enabled\nSubsystem"
	  DstPort		  trigger
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Subsystem1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Fast Model: Inductance Ignored"
      Ports		      [2, 1]
      Position		      [480, 169, 630, 231]
      AncestorBlock	      "DriveConfigurable/Averaged PWM Voltage2"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "Torque Controlled Motor"
      MaskDescription	      "This is a model of a permanent magnet DC motor "
"with voltage regulation using a torque controlled pulse width modulation sche"
"me."
      MaskPromptString	      "Pulse Width Modulation Frequency (Hz)|Voltage R"
"ating (V)|Resistance (Ohms)|Inductance (Henries)|Torque Constant (N-m/A)|Back"
" EMF Constant (V-s/degree)|Zero Voltage Threshold Torque (N-m)"
      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	      "f=@1;V_rating=@2;r=@3;j=@4;kt=@5;kemf=@6;T_Thre"
"shold=@7;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "500|100|1|0.001|50|0.25|1000"
      MaskTabNameString	      ",,,,,,"
      System {
	Name			"Fast Model: Inductance Ignored"
	Location		[216, 407, 953, 733]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Torque CMD"
	  Position		  [25, 168, 55, 182]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Shaft Speed"
	  Position		  [390, 233, 420, 247]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [335, 160, 365, 190]
	  Gain			  "V_rating"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Subsystem"
	  Ports			  [1, 1]
	  Position		  [145, 154, 245, 196]
	  FontSize		  10
	  SourceBlock		  "DriveConfigurable/Averaged PWM Voltage/Subs"
"ystem"
	  SourceType		  "SubSystem"
	  ShowPortLabels	  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem1"
	  Ports			  [2, 1]
	  Position		  [485, 154, 585, 236]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskType		  "Permanent Magnet DC Motor"
	  MaskPromptString	  "Resistance (ohms)|Inductance (henries)|Torq"
"ue Constant (N-m/A)|Back EMF Constant (V-s/rad)"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "resistance=@1;inductance=@2;kt=@3;kemf=@4;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "r|j|kt|kemf"
	  MaskTabNameString	  ",,,"
	  System {
	    Name		    "Subsystem1"
	    Location		    [232, 336, 778, 722]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Voltage"
	      Position		      [25, 235, 55, 250]
	      Orientation	      "up"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Shaft Speed"
	      Position		      [470, 168, 500, 182]
	      Orientation	      "left"
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Back EMF Constant"
	      Position		      [370, 160, 400, 190]
	      Orientation	      "left"
	      Gain		      "kemf"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Controlled Voltage Source"
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [32, 110, 68, 155]
	      Orientation	      "up"
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled"
" Voltage Source"
	      SourceType	      "AC"
	      ShowPortLabels	      "on"
	      Initialize	      "on"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Controlled Voltage Source1"
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [277, 110, 313, 155]
	      Orientation	      "up"
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled"
" Voltage Source"
	      SourceType	      "AC"
	      ShowPortLabels	      "on"
	      Initialize	      "on"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Current Measurement"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [155, 198, 180, 222]
	      Orientation	      "left"
	      SourceBlock	      "powerlib/Measurements/Current Measureme"
"nt"
	      SourceType	      "Current Measurement"
	      ShowPortLabels	      "on"
	      PhasorSimulation	      "off"
	      OutputType	      "Complex"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Series RLC Branch"
	      Ports		      [0, 0, 0, 0, 0, 1, 1]
	      Position		      [140, 26, 210, 54]
	      SourceBlock	      "powerlib/Elements/Series RLC Branch"
	      SourceType	      "Series RLC Branch"
	      PhysicalDomain	      "powersysdomain"
	      SubClassName	      "unknown"
	      LeftPortType	      "p1"
	      RightPortType	      "p1"
	      LConnTagsString	      "__new0"
	      RConnTagsString	      "__new0"
	      BranchType	      "R"
	      Resistance	      "resistance"
	      Inductance	      "inductance"
	      SetiL0		      "off"
	      InitialCurrent	      "0"
	      Capacitance	      "[]"
	      Setx0		      "off"
	      InitialVoltage	      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Torque Constant"
	      Position		      [220, 255, 250, 285]
	      Gain		      "kt"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Torque"
	      Position		      [355, 263, 385, 277]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Voltage"
	      SrcPort		      1
	      DstBlock		      "Controlled Voltage Source"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Torque Constant"
	      SrcPort		      1
	      Points		      [0, 0]
	      DstBlock		      "Torque"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Current Measurement"
	      SrcPort		      1
	      Points		      [-40, 0; 0, 65]
	      DstBlock		      "Torque Constant"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Back EMF Constant"
	      SrcPort		      1
	      Points		      [-80, 0]
	      DstBlock		      "Controlled Voltage Source1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Shaft Speed"
	      SrcPort		      1
	      Points		      [0, 0]
	      DstBlock		      "Back EMF Constant"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Series RLC Branch"
	      SrcPort		      RConn1
	      Points		      [70, 0]
	      DstBlock		      "Controlled Voltage Source1"
	      DstPort		      RConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Current Measurement"
	      SrcPort		      LConn1
	      Points		      [110, 0]
	      DstBlock		      "Controlled Voltage Source1"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Controlled Voltage Source"
	      SrcPort		      RConn1
	      Points		      [0, -55]
	      DstBlock		      "Series RLC Branch"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Current Measurement"
	      SrcPort		      RConn1
	      Points		      [-80, 0]
	      DstBlock		      "Controlled Voltage Source"
	      DstPort		      LConn1
	    }
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [80, 165, 100, 185]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Torque"
	  Position		  [650, 188, 680, 202]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem1"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    Points		    [0, 80; -510, 0]
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Torque"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Torque CMD"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shaft Speed"
	  SrcPort		  1
	  Points		  [20, 0; 0, -25]
	  DstBlock		  "Subsystem1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Subsystem1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Torque Controlled PWM Motor"
      Ports		      [2, 1]
      Position		      [255, 48, 405, 112]
      BlockChoice	      "Averaged PWM Voltage"
      TemplateBlock	      "self"
      MemberBlocks	      "Averaged PWM Voltage,Detailed PWM Voltage,Fast "
"Model: Inductance Ignored"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"Torque Controlled PWM Motor"
	Location		[148, 182, 646, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Torque CMD"
	  Position		  [20, 40, 40, 60]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Shaft Speed"
	  Position		  [20, 80, 40, 100]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Averaged PWM Voltage"
	  Ports			  [2, 1]
	  Position		  [100, 40, 140, 80]
	  SourceBlock		  "DriveConfigurable/Averaged PWM Voltage"
	  SourceType		  "Torque Controlled Motor"
	  ShowPortLabels	  "on"
	  f			  "500"
	  V_rating		  "100"
	  r			  "1"
	  j			  "0.001"
	  kt			  "50"
	  kemf			  "0.25"
	  T_Threshold		  "1000"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Torque"
	  Position		  [200, 40, 220, 60]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Torque CMD"
	  SrcPort		  1
	  DstBlock		  "Averaged PWM Voltage"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shaft Speed"
	  SrcPort		  1
	  DstBlock		  "Averaged PWM Voltage"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Averaged PWM Voltage"
	  SrcPort		  1
	  DstBlock		  "Torque"
	  DstPort		  1
	}
      }
    }
  }
}

⌨️ 快捷键说明

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