📄 dtc3.mdl
字号:
OnSwitchValue "0"
OffSwitchValue "-.02"
OnOutputValue "0"
OffOutputValue "-1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [100, 100, 120, 120]
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "-+|"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [175, 160, 195, 180]
ShowName off
IconShape "round"
Inputs "+++"
}
Block {
BlockType Constant
Name "d"
Position [135, 160, 155, 180]
ShowName off
}
Block {
BlockType Reference
Name "num2bin"
Ports [1, 1]
Position [355, 142, 410, 198]
SourceBlock "simulink/Look-Up\nTables/Direct Look-Up\nTa"
"ble (n-D)"
SourceType "LookupNDDirect"
maskTabDims "2"
explicitNumDims "1"
outDims "Column"
tabIsInput off
mxTable "[0 0 0;1 0 0;0 1 0;1 1 0;0 0 1;1 0 1;0 1 1;"
"1 1 1]'"
clipFlag "Error"
}
Block {
BlockType Reference
Name "num2bin1"
Ports [3, 1]
Position [235, 139, 300, 201]
SourceBlock "simulink/Look-Up\nTables/Direct Look-Up\nTa"
"ble (n-D)"
SourceType "LookupNDDirect"
maskTabDims "3"
explicitNumDims "1"
outDims "Element"
tabIsInput off
mxTable "a"
clipFlag "Error"
}
Block {
BlockType Display
Name "sector #"
Ports [1]
Position [315, 218, 400, 242]
Decimation "1"
}
Block {
BlockType SubSystem
Name "sector selector"
Ports [1, 1]
Position [305, 259, 395, 321]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "sector selector"
Location [345, 546, 1015, 720]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "fs"
Position [15, 43, 45, 57]
}
Block {
BlockType Gain
Name "1/(pi/3)"
Position [425, 35, 455, 65]
Gain "1/(pi/3)"
}
Block {
BlockType Gain
Name "2*pi"
Position [255, 75, 285, 105]
Gain "2*pi"
}
Block {
BlockType Constant
Name "Constant1"
Position [155, 80, 185, 110]
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [330, 80, 360, 110]
ShowName off
Value "pi/6"
}
Block {
BlockType Constant
Name "Constant3"
Position [485, 75, 515, 105]
ShowName off
Value "6"
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [2, 1]
Position [555, 29, 590, 111]
ShowName off
Operator "mod"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [205, 72, 235, 103]
ShowName off
Operator "<"
}
Block {
BlockType Rounding
Name "Rounding\nFunction"
Position [485, 35, 515, 65]
ShowName off
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [290, 40, 310, 60]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum7"
Ports [2, 1]
Position [370, 40, 390, 60]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Fcn
Name "x->theta"
Position [75, 38, 155, 62]
ShowName off
Expr "atan2(u(2),u(1))"
}
Block {
BlockType Outport
Name "sector"
Position [635, 63, 665, 77]
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "2*pi"
DstPort 1
}
Line {
SrcBlock "2*pi"
SrcPort 1
Points [10, 0]
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Sum7"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [15, 0]
DstBlock "Sum7"
DstPort 2
}
Line {
SrcBlock "Sum7"
SrcPort 1
DstBlock "1/(pi/3)"
DstPort 1
}
Line {
SrcBlock "1/(pi/3)"
SrcPort 1
DstBlock "Rounding\nFunction"
DstPort 1
}
Line {
SrcBlock "Rounding\nFunction"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 2
}
Line {
SrcBlock "fs"
SrcPort 1
DstBlock "x->theta"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
DstBlock "sector"
DstPort 1
}
Line {
SrcBlock "x->theta"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
DstBlock "Sum6"
DstPort 1
}
}
Annotation {
Name "Sector selector"
Position [336, 140]
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "(0 to 5)"
Position [340, 162]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
}
}
Block {
BlockType Display
Name "state"
Ports [1]
Position [345, 71, 430, 99]
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Outport
Name "s3"
Position [480, 163, 510, 177]
}
Line {
SrcBlock "num2bin1"
SrcPort 1
Points [-5, 0; 30, 0]
Branch {
DstBlock "state"
DstPort 1
}
Branch {
DstBlock "num2bin"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
Name "Bf"
Labels [0, 1]
SrcBlock "Relay"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -25]
DstBlock "Bf"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "num2bin1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [-150, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "num2bin1"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [50, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Relay2"
SrcPort 1
Points [50, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "d"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "T_er"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 35]
DstBlock "Relay2"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Relay1"
DstPort 1
}
}
Line {
SrcBlock "f_ref"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "num2bin"
SrcPort 1
DstBlock "s3"
DstPort 1
}
Line {
SrcBlock "fs"
SrcPort 1
Points [385, 0; 0, -60]
Branch {
Points [0, -250]
DstBlock "Fcn"
DstPort 1
}
Branch {
DstBlock "sector selector"
DstPort 1
}
}
Line {
SrcBlock "sector selector"
SrcPort 1
Points [0, 0; -40, 0]
Branch {
Points [-55, 0; 0, -100]
DstBlock "num2bin1"
DstPort 3
}
Branch {
Points [0, -60]
DstBlock "sector #"
DstPort 1
}
}
Annotation {
Name "Stator voltage selector"
Position [292, 373]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
}
}
Block {
BlockType Constant
Name "F_ref"
Position [50, 120, 80, 150]
ForegroundColor "red"
NamePlacement "alternate"
Value "fso"
}
Block {
BlockType SubSystem
Name "IM"
Ports [3, 4]
Position [900, 159, 1070, 321]
BackgroundColor "yellow"
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
TreatAsAtomicUnit off
MaskPromptString "Stator resistance [pu]|Rotor resistance [pu]|St"
"ator leakage inductance [pu]|Rotor leakage inductance [pu]|Magnetizing induct"
"ance [pu]|Base frequency [rad/s]"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "Rs=@1;Rr=@2;Lsl=@3;Lrl=@4;Lm=@5;wo=@6;"
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
"),[-.5 -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('INDUCTION\\nMOTOR\\npu')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01|0.02|0.10|0.10|4.5|2*pi*60"
Port {
PortNumber 1
Name "Te"
PropagatedSignals "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "IM"
Location [482, 383, 1074, 761]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "vs"
Position [15, 133, 45, 147]
}
Block {
BlockType Inport
Name "wk"
Position [15, 78, 45, 92]
Port "2"
}
Block {
BlockType Inport
Name "wm"
Position [25, 343, 55, 357]
Port "3"
}
Block {
BlockType SubSystem
Name " ckt"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -