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

📄 dcmotpos1.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	Line {
	  Name			  "Te"
	  Labels		  [-1, 1]
	  SrcBlock		  "Kt"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tl"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  Name			  "ia"
	  Labels		  [2, 0]
	  SrcBlock		  "armature"
	  SrcPort		  1
	  Points		  [0, 0; 40, 0]
	  Branch {
	    DstBlock		    "Kt"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "ia"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "load"
	  DstPort		  1
	}
	Line {
	  Name			  "wm"
	  Labels		  [0, 1]
	  SrcBlock		  "load"
	  SrcPort		  1
	  Points		  [0, 0; 80, 0]
	  Branch {
	    DstBlock		    "wm"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-35, 0; 0, 125]
	    DstBlock		    "Kv"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Kv"
	  SrcPort		  1
	  Points		  [-165, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "va"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "armature"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [855, 168, 885, 202]
      ShowName		      off
      Port {
	PortNumber		1
	Name			"a"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Gain
      Name		      "KA"
      Position		      [605, 115, 635, 145]
      Port {
	PortNumber		1
	Name			"va"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Kpp"
      Position		      [215, 115, 245, 145]
      Gain		      "250"
      Port {
	PortNumber		1
	Name			"wc"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Lookup
      Name		      "Look-Up\nTable1"
      Position		      [70, 115, 100, 145]
      NamePlacement	      "alternate"
      InputValues	      "[0  1]"
      OutputValues	      "[1 1]"
      Port {
	PortNumber		1
	Name			"ac"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [310, 24, 315, 91]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [475, 19, 480, 86]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [2, 1]
      Position		      [165, 24, 170, 91]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Relay
      Name		      "Speed controller"
      Position		      [375, 110, 420, 150]
      BackgroundColor	      "yellow"
      OnSwitchValue	      ".025"
      OffSwitchValue	      "-.025"
      OnOutputValue	      "18"
      OffOutputValue	      "-18"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [320, 120, 340, 140]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      Port {
	PortNumber		1
	Name			"we"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum4"
      Ports		      [2, 1]
      Position		      [475, 120, 495, 140]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum5"
      Ports		      [2, 1]
      Position		      [165, 120, 185, 140]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      Port {
	PortNumber		1
	Name			"ae"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Step
      Name		      "Tl"
      Position		      [620, 170, 650, 200]
      Time		      "0.04"
      After		      "0.38"
      SampleTime	      "0"
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "current"
      Ports		      [1]
      Position		      [500, 39, 530, 71]
      Location		      [559, 129, 1126, 298]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.08"
      YMin		      "-20"
      YMax		      "20"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "position"
      Ports		      [1]
      Position		      [195, 44, 225, 76]
      Location		      [30, 129, 560, 447]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.08"
      YMin		      "0"
      YMax		      "1.4"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "speed"
      Ports		      [1]
      Position		      [340, 44, 370, 76]
      Location		      [559, 365, 1127, 534]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.08"
      YMin		      "-100"
      YMax		      "300"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "va"
      Ports		      [1]
      Position		      [675, 39, 705, 71]
      ShowName		      off
      Location		      [557, 602, 1132, 791]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.08"
      YMin		      "-100"
      YMax		      "100"
      DataFormat	      "StructureWithTime"
    }
    Line {
      Name		      "Tl"
      Labels		      [0, 0]
      SrcBlock		      "Tl"
      SrcPort		      1
      DstBlock		      "DCmot"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "speed"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "current"
      DstPort		      1
    }
    Line {
      Name		      "wc"
      Labels		      [0, 1]
      SrcBlock		      "Kpp"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Sum3"
	DstPort			1
      }
      Branch {
	Points			[0, -90]
	DstBlock		"Mux1"
	DstPort			1
      }
    }
    Line {
      Name		      "ia"
      Labels		      [1, 0]
      SrcBlock		      "DCmot"
      SrcPort		      1
      Points		      [10, 0; 0, 110; -325, 0]
      Branch {
	DstBlock		"Sum4"
	DstPort			2
      }
      Branch {
	Points			[-25, 0]
	DstBlock		"Mux2"
	DstPort			2
      }
    }
    Line {
      Name		      "ae"
      Labels		      [1, 0]
      SrcBlock		      "Sum5"
      SrcPort		      1
      DstBlock		      "Kpp"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Look-Up\nTable1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux3"
      SrcPort		      1
      DstBlock		      "position"
      DstPort		      1
    }
    Line {
      Name		      "ac"
      Labels		      [0, 1]
      SrcBlock		      "Look-Up\nTable1"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	DstBlock		"Sum5"
	DstPort			1
      }
      Branch {
	Points			[0, -90]
	DstBlock		"Mux3"
	DstPort			1
      }
    }
    Line {
      Name		      "a"
      Labels		      [1, 0]
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [20, 0; 0, 150; -735, 0]
      Branch {
	DstBlock		"Sum5"
	DstPort			2
      }
      Branch {
	Points			[-30, 0; 0, -260]
	DstBlock		"Mux3"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Speed controller"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Sum4"
	DstPort			1
      }
      Branch {
	Points			[0, -95]
	DstBlock		"Mux2"
	DstPort			1
      }
    }
    Line {
      Name		      "we"
      Labels		      [1, 0]
      SrcBlock		      "Sum3"
      SrcPort		      1
      DstBlock		      "Speed controller"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum4"
      SrcPort		      1
      DstBlock		      "Current controller"
      DstPort		      1
    }
    Line {
      Name		      "va"
      Labels		      [1, 0]
      SrcBlock		      "KA"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[0, -75]
	DstBlock		"va"
	DstPort			1
      }
      Branch {
	DstBlock		"DCmot"
	DstPort			1
      }
    }
    Line {
      Name		      "wm"
      SrcBlock		      "DCmot"
      SrcPort		      2
      Points		      [30, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Integrator"
	DstPort			1
      }
      Branch {
	Points			[0, 85; -500, 0]
	Branch {
	  DstBlock		  "Sum3"
	  DstPort		  2
	}
	Branch {
	  Points		  [-35, 0]
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Current controller"
      SrcPort		      1
      DstBlock		      "KA"
      DstPort		      1
    }
    Annotation {
      Name		      "voltage"
      Position		      [693, 78]
    }
    Annotation {
      Name		      "speed loop"
      Position		      [444, 260]
      FontSize		      12
    }
    Annotation {
      Name		      "current loop"
      Position		      [570, 226]
      FontSize		      12
    }
    Annotation {
      Name		      "position loop"
      Position		      [336, 319]
      FontSize		      12
    }
    Annotation {
      Name		      "CASCADE POSITIONAL CONTROL OF A DC MOTOR"
      Position		      [469, 373]
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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