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

📄 dcpwm21.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      }
    }
    Block {
      BlockType		      Scope
      Name		      "current"
      Ports		      [1]
      Position		      [570, 94, 600, 126]
      Location		      [592, 130, 1115, 400]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.4"
      YMin		      "0"
      YMax		      "20"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "6000"
    }
    Block {
      BlockType		      SubSystem
      Name		      "cycle\n average"
      Ports		      [1, 1]
      Position		      [480, 65, 520, 95]
      ForegroundColor	      "blue"
      TreatAsAtomicUnit	      off
      System {
	Name			"cycle\n average"
	Location		[544, 522, 961, 676]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "sig"
	  Position		  [25, 38, 55, 52]
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [80, 30, 110, 60]
	  ShowName		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [260, 35, 280, 55]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	}
	Block {
	  BlockType		  TransportDelay
	  Name			  "Transport\nDelay 1/fo"
	  Position		  [225, 70, 255, 100]
	  DelayTime		  "1/1000"
	}
	Block {
	  BlockType		  Gain
	  Name			  "fo"
	  Position		  [135, 28, 180, 62]
	  Gain			  "1000"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ave"
	  Position		  [305, 38, 335, 52]
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "fo"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "fo"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "Transport\nDelay 1/fo"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "sig"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay 1/fo"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "ave"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "cycle\n average1"
      Ports		      [1, 1]
      Position		      [250, 20, 290, 50]
      ForegroundColor	      "blue"
      TreatAsAtomicUnit	      off
      System {
	Name			"cycle\n average1"
	Location		[544, 522, 961, 676]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "sig"
	  Position		  [25, 38, 55, 52]
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [80, 30, 110, 60]
	  ShowName		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [260, 35, 280, 55]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	}
	Block {
	  BlockType		  TransportDelay
	  Name			  "Transport\nDelay 1/fo"
	  Position		  [225, 70, 255, 100]
	  DelayTime		  "1/1000"
	}
	Block {
	  BlockType		  Gain
	  Name			  "fo"
	  Position		  [135, 28, 180, 62]
	  Gain			  "1000"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ave"
	  Position		  [305, 38, 335, 52]
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "fo"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "fo"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "Transport\nDelay 1/fo"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "sig"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay 1/fo"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "ave"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "info"
      Ports		      []
      Position		      [360, 251, 406, 281]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('INFO')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"info"
	Location		[119, 604, 483, 701]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "This demo simulates the running of a DC mot"
"or\nwith PWM (bipolar) excitation\n(5 hp 240V 1200 rpm)\nrated torque Tr = 30"
" N.m"
	  Position		  [196, 49]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "speed"
      Ports		      [1]
      Position		      [570, 179, 600, 211]
      Location		      [592, 464, 1113, 789]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.4"
      YMin		      "98.5"
      YMax		      "103"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "6000"
    }
    Block {
      BlockType		      Fcn
      Name		      "tri"
      Position		      [55, 185, 90, 215]
      Expr		      "2/pi*asin(sin(2*pi*1000*u))"
    }
    Block {
      BlockType		      Scope
      Name		      "va"
      Ports		      [1]
      Position		      [340, 49, 370, 81]
      Location		      [37, 133, 585, 399]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-250"
      YMax		      "250"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "6000"
    }
    Block {
      BlockType		      Constant
      Name		      "va_pu"
      Position		      [35, 120, 65, 150]
      ForegroundColor	      "red"
      Value		      "0.8"
    }
    Line {
      Name		      "wm"
      Labels		      [1, 0]
      SrcBlock		      "DC \nMOTOR1"
      SrcPort		      2
      DstBlock		      "speed"
      DstPort		      1
    }
    Line {
      SrcBlock		      "cycle\n average"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "current"
      DstPort		      1
    }
    Line {
      Name		      "ia"
      Labels		      [0, 0]
      SrcBlock		      "DC \nMOTOR1"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Labels			[1, 1]
	Points			[65, 0]
	DstBlock		"Mux"
	DstPort			2
      }
      Branch {
	DstBlock		"cycle\n average"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sign"
      SrcPort		      1
      DstBlock		      "Vr"
      DstPort		      1
    }
    Line {
      Name		      "Tl"
      SrcBlock		      "Tl_pu"
      SrcPort		      1
      DstBlock		      "Tr"
      DstPort		      1
    }
    Line {
      SrcBlock		      "tri"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Sum2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      DstBlock		      "Sign"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "tri"
      DstPort		      1
    }
    Line {
      SrcBlock		      "va_pu"
      SrcPort		      1
      DstBlock		      "Sum2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "cycle\n average1"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Mux1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "va"
      DstPort		      1
    }
    Line {
      Name		      "va"
      SrcBlock		      "Vr"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[0, -100]
	DstBlock		"cycle\n average1"
	DstPort			1
      }
      Branch {
	Labels			[1, 1]
	Points			[60, 0]
	Branch {
	  DstBlock		  "DC \nMOTOR1"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -60]
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
      }
    }
    Line {
      Name		      "Tl"
      Labels		      [-1, 1]
      SrcBlock		      "Tr"
      SrcPort		      1
      DstBlock		      "DC \nMOTOR1"
      DstPort		      2
    }
    Annotation {
      Name		      "PWM controller"
      Position		      [94, 85]
      FontSize		      12
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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