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

📄 dc_motor_control.mdl

📁 This article focuses dc motor control and simulaion in Matlap Simulink SimPower and establish the co
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	  Port {
	    PortNumber		    3
	    Name		    "<Speed (rpm)>"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [2, 1]
	  Position		  [235, 33, 240, 77]
	  ShowName		  off
	  FontSize		  12
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux4"
	  Ports			  [2, 1]
	  Position		  [235, 104, 240, 146]
	  ShowName		  off
	  FontSize		  12
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [80, 170, 100, 190]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Va"
	  Position		  [275, 18, 305, 32]
	  FontSize		  12
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ia"
	  Position		  [275, 48, 305, 62]
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "N"
	  Position		  [275, 118, 305, 132]
	  FontSize		  12
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Mux2"
	  SrcPort		  1
	  DstBlock		  "Ia"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux4"
	  SrcPort		  1
	  DstBlock		  "N"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Motor"
	  SrcPort		  1
	  DstBlock		  "Bus\nSelector3"
	  DstPort		  1
	}
	Line {
	  Name			  "<Armature Voltage (V)>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector3"
	  SrcPort		  1
	  DstBlock		  "Va"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ctrl."
	  SrcPort		  1
	  DstBlock		  "Bus\nSelector1"
	  DstPort		  1
	}
	Line {
	  Name			  "<Ia* (A)>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector1"
	  SrcPort		  1
	  Points		  [85, 0; 0, -55]
	  DstBlock		  "Mux2"
	  DstPort		  2
	}
	Line {
	  Name			  "<Reference>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector1"
	  SrcPort		  3
	  Points		  [120, 0; 0, -15]
	  DstBlock		  "Mux4"
	  DstPort		  2
	}
	Line {
	  Name			  "<Armature current ia (A)>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector3"
	  SrcPort		  2
	  DstBlock		  "Mux2"
	  DstPort		  1
	}
	Line {
	  Name			  "<Speed (rpm)>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector3"
	  SrcPort		  3
	  Points		  [75, 0; 0, 50]
	  DstBlock		  "Mux4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Conv."
	  SrcPort		  1
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Speed reference"
      Position		      [40, 20, 70, 50]
      NamePlacement	      "alternate"
      FontSize		      12
      Value		      "1750"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator"
      Position		      [385, 155, 405, 175]
      ShowName		      off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [625, 180, 685, 210]
      VariableName	      "speed"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [680, 15, 740, 45]
      VariableName	      "V"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [730, 85, 790, 115]
      VariableName	      "I"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Reference
      Name		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      Ports		      [2, 4, 0, 0, 0, 2]
      Position		      [235, 60, 355, 180]
      UserDataPersistent      on
      UserData		      "DataTag0"
      SourceBlock	      "electricdrivelib/DC drives/Two-Quadrant Single-Phase\nRectifier DC Drive"
      SourceType	      "Two-Quadrant Single-Phase Rectifier DC Drive"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      AverageValue	      off
      MechanicalLoad	      "Torque Tm"
    }
    Block {
      BlockType		      Reference
      Name		      "powergui"
      Ports		      []
      Position		      [35, 225, 131, 266]
      DropShadow	      on
      ShowName		      off
      Priority		      "2"
      UserDataPersistent      on
      UserData		      "DataTag1"
      FontSize		      11
      SourceBlock	      "powerlib/powergui"
      SourceType	      "PSB option menu block"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimulationMode	      "Discrete"
      SampleTime	      "Ts"
      echomessages	      off
      RestoreLinks	      "warning"
      x0status		      "blocks"
      Frange		      "[0:2:500]"
      Ylog		      off
      Xlog		      on
      ShowGrid		      off
      save		      off
      variable		      "ZData"
      ZoomFFT		      on
      StartTime		      "0.0"
      cycles		      "1"
      DisplayStyle	      "1"
      fundamental	      "60"
      FreqAxis		      off
      MaxFrequency	      "1000"
      frequencyindice	      "50"
      frequencyindicesteady   "1"
      RmsSteady		      "1"
      display		      off
      Ts		      "0"
      frequency		      "60"
      methode		      off
      HookPort		      off
      Interpol		      off
      SPID		      off
      FunctionMessages	      off
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "220 V  50 Hz"
      SrcPort		      RConn1
      DstBlock		      "Linear Transformer"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Linear Transformer"
      SrcPort		      RConn1
      DstBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Linear Transformer"
      SrcPort		      RConn2
      DstBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      DstPort		      LConn2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Linear Transformer"
      SrcPort		      LConn2
      Points		      [-70, 0]
      DstBlock		      "220 V  50 Hz"
      DstPort		      LConn1
    }
    Line {
      SrcBlock		      "Speed reference"
      SrcPort		      1
      Points		      [70, 0; 0, 40]
      DstBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Load torque"
      SrcPort		      1
      Points		      [55, 0; 0, 25]
      DstBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      SrcPort		      1
      DstBlock		      "Selector1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      SrcPort		      2
      DstBlock		      "Selector1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      SrcPort		      3
      DstBlock		      "Selector1"
      DstPort		      3
    }
    Line {
      Name		      "Armature voltage"
      FontSize		      12
      SrcBlock		      "Selector1"
      SrcPort		      1
      Points		      [0, -5; 50, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"To Workspace1"
	DstPort			1
      }
    }
    Line {
      Name		      "Armature current"
      FontSize		      12
      Labels		      [1, 0]
      SrcBlock		      "Selector1"
      SrcPort		      2
      Points		      [95, 0]
      Branch {
	DstBlock		"Scope"
	DstPort			2
      }
      Branch {
	Points			[0, -5]
	DstBlock		"To Workspace2"
	DstPort			1
      }
    }
    Line {
      Name		      "Speed"
      FontSize		      12
      Labels		      [2, 0]
      SrcBlock		      "Selector1"
      SrcPort		      3
      Points		      [0, 5; 55, 0]
      Branch {
	DstBlock		"Scope"
	DstPort			3
      }
      Branch {
	Points			[0, 55]
	DstBlock		"To Workspace"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Two-Quadrant Single-Phase\nRectifier DC Drive"
      SrcPort		      4
      DstBlock		      "Terminator"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  2
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    X (   8    (     @         %    \"     $    !     0         %  0 #     $   !X    <&]W97)G=6D     <W1E861Y<W1A=&4 :6YI='-T871E<P  ;&]A9&9L;W<     ;'1I=FEE=P      >FUE=&5R        9F9T=&]O;       <F5P;W)T        :'ES=&5R97-I<P  ;&EN97!A<F%M    #@   #     &    \"     8         !0    @               $         \"0         .    ,     8    (    !@         %    \"                0         )          X    P    !@    @    &          4    (               !          D         #@   #     &    \"     8         !0    @               $         \"0         .    ,     8    (    !@         %    \"                0         )          X    P    !@    @    &          4    (               !          D         #@   #     &    \"     8         !0    @               $         \"0         .    ,     8    (    !@         %    \"                0         )          X    P    !@    @    &          4    (               !          D         #@   #     &    \"     8         !0    @               $         \"0         "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    D H   8    (     @         %    \"     $    !     0         %  0 %0    $    J    <VEM=6QI;FL                 :7-#:&%N9VEN9TUA<VM686QU97,         #@   . )   &    \"     $         !0    @    !    !@    $         #@   #@\"   &    \"     $         !0    @    !    \"0    $         #@   #@    &    \"     0         !0    @    !    !0    $         $     4    Q+C(S-     X    P    !@    @    $          4    (     0    0    !         !  !  P+C<X#@   #@    &    \"     0         !0    @    !    !0    $         $     4    P+C Q-@    X    P    !@    @    $          4    (     0    ,    !         !   P Q-3  #@   #@    &    \"     0         !0    @    !    !0    $         $     4    Q,3(N-0    X    P    !@    @    $          4    (     0    0    !         !  !  P+C(U#@   #     &    \"     0         !0    @    !    !     $         $  $ # N,#$.    ,     8    (    !          %    \"     $    !     0         0  $ ,     X    P    !@    @    $          4    (     0    $    !         !   0 P    #@   ! !   &    \"     $         !0    @    !    !     $         #@   #     &    \"     0         !0    @    !     P    $         $  # #)E,P .    .     8    (    !          %    \"     $    &     0         0    !@   #4P,&4M.0  #@   #     &    \"     0         !0    @    !    !     $         $  $ #%E+3,.    ,     8    (    !          %    \"     $    #     0         0  , ,2XS  X   \"  0  !@    @    !          4    (     0    8    !          X    X    !@    @    $          4    (     0    8    !         !     &    ,34P92TS   .    ,     8    (    !          %    \"     $    #     0         0  , ,34P  X    P    !@    @    $          4    (     0    ,    !         !   P R,C  #@   #     &    \"     0         !0    @    !     @    $         $  \" #4P   .    ,     8    (    !          %    \"     $    $     0         0  0 ,64M-@X    P    !@    @    $          4    (     0    $    !         !   0 P    #@   + !   &    \"     $         !0    @    !    !P    $         #@   #     &    \"     0         !0    @    !    !     $         $  $ #$W-3 .    ,     8    (    !          %    \"     $    !     0         0  $ ,     X    P    !@    @    $          4    (     0    (    !         !   @ T,   #@   #     &    \"     0         !0    @    !     @    $         $  \" #@P   .    ,     8    (    !          %    \"     $    #     0         0  , ,C P  X    P    !@    @    $          4    (     0    ,    !         !   P R-3  #@   #     &    \"     0         !0    @    !    !     $         $  $ \"TR-3 .    @ $   8    (     0         %    \"     $    &     0         .    .     8    (    !          %    \"     $    %     0         0    !0   #4J-S0V    #@   #     &    \"     0         !0    @    !     P    $         $  # #(T,  .    ,     8    (    !          %    \"     $    !     0         0  $ ,0    X    P    !@    @    $          4    (     0    (    !         !   @ X,   #@   #     &    \"     0         !0    @    !     @    $         $  \" #4P   .    ,     8    (    !          %    \"     $    #     0         0  , ,2XU  X   \"0 0  !@    @    !          4    (     0    8    !          X    P    !@    @    $          4    (     0    (    !         !   @ R,   #@   #     &    \"     0         !0    @    !     P    $         $  # #$V,  .    ,     8    (    !          %    \"     $    \"     0         0  ( -3    X    P    !@    @    $          4    (     0    (    !         !   @ Q,   #@   #@    &    \"     0         !0    @    !    !@    $         $     8    Q,#!E+38   X   !     !@    @    $          4    (     0   !     !         !     0    4W!E960@<F5G=6QA=&EO;@X    X    !@    @    &          4    (     0    $    !          D    (               "
  }
}

⌨️ 快捷键说明

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