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

📄 pmsm_spwm.mdl

📁 永磁同步电机直接转矩控制
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      BlockType		      Gain
      Name		      "Gain3"
      Position		      [500, 275, 520, 295]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Gain		      "4"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground (output)"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [0, 1]
      Position		      [554, 70, 586, 100]
      Orientation	      "up"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Ground (output)"
      SourceType	      "Ground"
      PSBOutputType	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Machines\nMeasurement\nDemux1"
      Ports		      [1, 5]
      Position		      [625, 78, 695, 232]
      SourceBlock	      "powerlib2/Machines/Machines\nMeasurement\nDemux"
      SourceType	      "Machine measurements"
      machType		      "Permanent magnet synchronous"
      ssm1		      on
      ssm2		      on
      ssm3		      on
      ssm4		      on
      ssm5		      on
      ssm6		      on
      sm1		      off
      sm2		      on
      sm3		      off
      sm4		      off
      sm5		      off
      sm6		      on
      sm7		      off
      sm8		      on
      sm9		      off
      sm10		      off
      sm11		      off
      sm115		      off
      sm12		      off
      sm13		      off
      sm14		      off
      asm1		      on
      asm2		      on
      asm3		      on
      asm4		      on
      asm5		      on
      asm6		      on
      asm7		      on
      asm8		      on
      asm9		      on
      asm10		      on
      asm11		      on
      pmsm1		      on
      pmsm2		      on
      pmsm3		      off
      pmsm4		      on
      pmsm5		      on
      pmsm6		      on
      lastType		      "1"
    }
    Block {
      BlockType		      Memory
      Name		      "Memory2"
      Position		      [590, 270, 620, 300]
      Orientation	      "left"
      NamePlacement	      "alternate"
    }
    Block {
      BlockType		      Memory
      Name		      "Memory3"
      Position		      [695, 325, 725, 355]
      Orientation	      "left"
      NamePlacement	      "alternate"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [490, 455, 525, 575]
      Orientation	      "left"
      BackgroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [73, 136, 509, 626]
      Open		      off
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      YMin		      "-12.5~-20"
      YMax		      "12.5~5"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "5000000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [3]
      Position		      [850, 89, 880, 211]
      BackgroundColor	      "green"
      Location		      [87, 43, 802, 675]
      Open		      off
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      TimeRange		      "0.1"
      YMin		      "-4~0~-1"
      YMax		      "6~120~6.5"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "5000000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [855, 19, 885, 51]
      BackgroundColor	      "green"
      Location		      [53, 229, 489, 719]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.1"
      YMin		      "-34"
      YMax		      "-16"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "5000000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope4"
      Ports		      [1]
      Position		      [235, 209, 265, 241]
      BackgroundColor	      "green"
      Location		      [23, 224, 459, 714]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.1"
      YMin		      "-10"
      YMax		      "10"
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "5000000"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      Ports		      [1]
      Position		      [455, 39, 485, 71]
      BackgroundColor	      "green"
      Location		      [424, 226, 860, 716]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.1             "
      YMin		      "-35"
      YMax		      "70"
      SaveName		      "ScopeData5"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [105, 115, 125, 135]
      ShowName		      off
      Inputs		      "+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [180, 30, 200, 50]
      ShowName		      off
      Inputs		      "+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [200, 120, 220, 140]
      ShowName		      off
      Inputs		      "+-"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [395, 275, 415, 295]
      Orientation	      "left"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [380, 525, 440, 555]
      VariableName	      "t"
      MaxDataPoints	      "60000"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [925, 50, 985, 80]
      VariableName	      "dianya"
      MaxDataPoints	      "60000"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Reference
      Name		      "Voltage Measurement"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [2, 1]
      Position		      [745, 18, 775, 47]
      SourceBlock	      "powerlib2/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      PhasorSimulation	      off
      OutputType	      "Magnitude"
      PSBOutputType	      "0"
      PSBequivalent	      "1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "dq-ab"
      Ports		      [3, 2]
      Position		      [360, 75, 400, 135]
      TreatAsAtomicUnit	      off
      System {
	Name			"dq-ab"
	Location		[476, 568, 831, 743]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "d"
	  Position		  [85, 28, 115, 42]
	}
	Block {
	  BlockType		  Inport
	  Name			  "q"
	  Position		  [85, 63, 115, 77]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Teta"
	  Position		  [25, 123, 55, 137]
	  Port			  "3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [85, 96, 115, 114]
	  ShowName		  off
	  Expr			  "sin(u)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [85, 129, 115, 151]
	  ShowName		  off
	  Expr			  "cos(u)"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [175, 30, 180, 150]
	  ShowName		  off
	}
	Block {
	  BlockType		  Fcn
	  Name			  "ia"
	  Position		  [215, 55, 240, 75]
	  NamePlacement		  "alternate"
	  Expr			  "u(1)*u(4)-u(2)*u(3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "ib"
	  Position		  [215, 86, 240, 104]
	  Expr			  "u(1)*u(3)+u(2)*u(4)"
	}
	Block {
	  BlockType		  Outport
	  Name			  "a"
	  Position		  [295, 58, 325, 72]
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "b"
	  Position		  [300, 88, 330, 102]
	  Port			  "2"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    Points		    [0, 5]
	    DstBlock		    "ib"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -25]
	    DstBlock		    "ia"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Teta"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    Points		    [0, 0]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "d"
	  SrcPort		  1
	  Points		  [20, 0; 0, 10]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "q"
	  SrcPort		  1
	  Points		  [20, 0; 0, 5]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  Points		  [20, 0; 0, -5]
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "ia"
	  SrcPort		  1
	  DstBlock		  "a"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "ib"
	  SrcPort		  1
	  DstBlock		  "b"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "id"
      Position		      [20, 24, 45, 46]
      Value		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "pmsm"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [4, 1]
      Position		      [535, 112, 605, 198]
      LinkData {
	BlockName		"From"
	DialogParameters {
	  GotoTag		  "tp042279"
	}
	BlockName		"Goto"
	DialogParameters {
	  GotoTag		  "tp042278"
	}
      }
      SourceBlock	      "powerlib2/Machines/Permanent Magnet\nSynchronou"
"s Machine"
      SourceType	      "PM Synchronous Machine"
      x1		      "0.975"
      x2		      "[6e-3, 6e-3]"
      x3		      "0.2"
      x4		      "[ 1e-3, 0,  4]"
      PSBOutputType	      "0"
    }
    Block {
      BlockType		      Constant
      Name		      "pwmperiod"
      Position		      [410, 220, 440, 250]
      Value		      "2e-6"
    }
    Block {
      BlockType		      Constant
      Name		      "speed ref"
      Position		      [25, 108, 55, 132]
      Value		      "100"
    }
    Block {
      BlockType		      SubSystem
      Name		      "svpwm"
      Ports		      [4, 3]
      Position		      [445, 107, 485, 168]
      TreatAsAtomicUnit	      off
      MaskPromptString	      "pwmperiod"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "t=@1;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "2e-6"
      System {
	Name			"svpwm"
	Location		[-10, 268, 968, 655]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "ua*"
	  Position		  [25, 83, 55, 97]
	}
	Block {
	  BlockType		  Inport
	  Name			  "ub*"
	  Position		  [25, 143, 55, 157]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "vdc"
	  Position		  [30, 238, 60, 252]
	  Port			  "3"
	}
	Block {
	  BlockType		  Inport
	  Name			  "t"
	  Position		  [25, 53, 55, 67]
	  Port			  "4"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Ground (input)"
	  Tag			  "PoWeRsYsTeMbLoCk"
	  Ports			  [1]
	  Position		  [845, 240, 875, 270]
	  Orientation		  "down"
	  ShowName		  off
	  SourceBlock		  "powerlib2/Connectors/Ground (input)"
	  SourceType		  "Ground"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Ground (input)1"
	  Tag			  "PoWeRsYsTeMbLoCk"
	  Ports			  [1]
	  Position		  [855, 305, 885, 335]
	  Orientation		  "down"
	  ShowName		  off
	  SourceBlock		  "powerlib2/Connectors/Ground (input)"
	  SourceType		  "Ground"
	}
	Block {
	  BlockType		  Reference

⌨️ 快捷键说明

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