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

📄 dianji.mdl

📁 电机的仿真
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.06"
      YMin		      "-20"
      YMax		      "35"
      DataFormat	      "Structure"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "dq2abc"
      Ports		      [4, 1]
      Position		      [195, 56, 265, 144]
      TreatAsAtomicUnit	      off
      System {
	Name			"dq2abc"
	Location		[641, 450, 913, 653]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "iqref"
	  Position		  [15, 30, 35, 50]
	}
	Block {
	  BlockType		  Inport
	  Name			  "idref"
	  Position		  [15, 70, 35, 90]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "ioref"
	  Position		  [15, 110, 35, 130]
	  Port			  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "the"
	  Position		  [15, 150, 35, 170]
	  Port			  "4"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [120, 50, 160, 70]
	  Expr			  "u(1)*cos(u(4)) + u(2)*sin(u(4)) + u(3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [120, 90, 160, 110]
	  Expr			  "u(1)*cos(u(4)-2*pi/3) + u(2)*sin(u(4)-2*pi/"
"3) + u(3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn2"
	  Position		  [120, 130, 160, 150]
	  Expr			  "u(1)*cos(u(4)+2*pi/3) + u(2)*sin(u(4)+2*pi/"
"3) + u(3)"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [65, 21, 95, 179]
	  ShowName		  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [3, 1]
	  Position		  [180, 41, 205, 159]
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "iabcr"
	  Position		  [225, 90, 245, 110]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "the"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "ioref"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "idref"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "iqref"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 0]
	    Branch {
	      DstBlock		      "Fcn1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 0; 0, 40]
	      DstBlock		      "Fcn2"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [0, 0; 0, -40]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "iabcr"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "ioref"
      Position		      [140, 100, 160, 120]
      ShowName		      off
      Value		      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "iqref"
      Ports		      [1, 1]
      Position		      [135, 58, 160, 82]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskType		      "PI Controller"
      MaskPromptString	      "Integral|Proportional:|Minimum and maximum outp"
"uts:"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskInitialization      "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
      MaskDisplay	      "disp('PI')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "5|100| [-30, 30]"
      System {
	Name			"iqref"
	Location		[136, 98, 490, 268]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In_1"
	  Position		  [25, 75, 45, 95]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Integral"
	  Position		  [110, 67, 145, 103]
	  Numerator		  "[I]"
	  Denominator		  "[1 0]"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional"
	  Position		  [120, 28, 140, 52]
	  NamePlacement		  "alternate"
	  Gain			  "P"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 53, 255, 77]
	  UpperLimit		  "max"
	  LowerLimit		  "min"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [180, 15, 200, 110]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out_1"
	  Position		  [285, 55, 305, 75]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Integral"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In_1"
	  SrcPort		  1
	  Points		  [15, 0; 15, 0]
	  Branch {
	    DstBlock		    "Integral"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Proportional"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Proportional"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Out_1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "is_abc (A)"
      Ports		      [1]
      Position		      [725, 15, 755, 45]
      BackgroundColor	      "green"
      Location		      [5, 60, 1029, 741]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.06"
      YMin		      "-30"
      YMax		      "35"
      DataFormat	      "Structure"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Constant
      Name		      "speed ref"
      Position		      [20, 53, 50, 77]
      Value		      "104"
    }
    Block {
      BlockType		      Reference
      Name		      "vbc"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [2, 1]
      Position		      [410, 178, 435, 202]
      SourceBlock	      "powerlib2/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      PhasorSimulation	      off
      OutputType	      "Magnitude"
      PSBOutputType	      "0"
      PSBequivalent	      "1"
    }
    Block {
      BlockType		      Scope
      Name		      "vbc (V)"
      Ports		      [1]
      Position		      [465, 175, 495, 205]
      BackgroundColor	      "green"
      Location		      [31, 509, 278, 702]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.06"
      YMin		      "-500"
      YMax		      "500"
      DataFormat	      "Structure"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "we (rad/s)"
      Ports		      [1]
      Position		      [725, 70, 755, 100]
      BackgroundColor	      "green"
      Location		      [5, 60, 1029, 741]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.06"
      YMin		      "0"
      YMax		      "800"
      DataFormat	      "Structure"
      LimitDataPoints	      off
    }
    Line {
      SrcBlock		      "ioref"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[0, -20]
	DstBlock		"dq2abc"
	DstPort			2
      }
      Branch {
	DstBlock		"dq2abc"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "iqref"
      DstPort		      1
    }
    Line {
      SrcBlock		      "speed ref"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "iqref"
      SrcPort		      1
      DstBlock		      "dq2abc"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Step"
      SrcPort		      1
      DstBlock		      "Permanent Magnet\nSynchronous Machine"
      DstPort		      4
    }
    Line {
      SrcBlock		      "dq2abc"
      SrcPort		      1
      DstBlock		      "PWM inv."
      DstPort		      2
    }
    Line {
      SrcBlock		      "PWM inv."
      SrcPort		      1
      DstBlock		      "Permanent Magnet\nSynchronous Machine"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PWM inv."
      SrcPort		      2
      Points		      [20, 0]
      Branch {
	Points			[0, 100]
	DstBlock		"vbc"
	DstPort			1
      }
      Branch {
	DstBlock		"Permanent Magnet\nSynchronous Machine"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "PWM inv."
      SrcPort		      3
      Points		      [30, 0]
      Branch {
	DstBlock		"Permanent Magnet\nSynchronous Machine"
	DstPort			3
      }
      Branch {
	Points			[0, 90]
	DstBlock		"vbc"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Permanent Magnet\nSynchronous Machine"
      SrcPort		      1
      DstBlock		      "Machines\nMeasurement\nDemux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Machines\nMeasurement\nDemux"
      SrcPort		      1
      Points		      [20, 0; 0, -35]
      Branch {
	Points			[-365, 0; 0, 40]
	DstBlock		"PWM inv."
	DstPort			1
      }
      Branch {
	DstBlock		"is_abc (A)"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Machines\nMeasurement\nDemux"
      SrcPort		      4
      Points		      [80, 0]
      DstBlock		      "Te (N.m)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "vbc"
      SrcPort		      1
      DstBlock		      "vbc (V)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Machines\nMeasurement\nDemux"
      SrcPort		      2
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, 180; -630, 0; 0, -190]
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	DstBlock		"we (rad/s)"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Machines\nMeasurement\nDemux"
      SrcPort		      3
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      Points		      [10, 0; 0, 135; -515, 0; 0, -110]
      DstBlock		      "dq2abc"
      DstPort		      4
    }
  }
}

⌨️ 快捷键说明

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