📄 work003.mdl
字号:
Line {
SrcBlock "Te*"
SrcPort 1
Points [0, 15]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Annotation {
Position [124, 91]
Text "Iq= ( 2/3) * (2/p) * ( Lr/Lm) * (Te / Phir)"
}
Annotation {
Position [319, 86]
Text "Lm = 34.7 mH"
}
Annotation {
Position [369, 104]
Text "Lr = Ll'r +Lm = 0.8 +34.7= 35.5 mH"
}
Annotation {
Position [329, 124]
Text "p= nb of poles = 4"
}
Annotation {
Position [89, 116]
Text "Iq= 0.341 * (Te / Phir)"
}
}
}
Block {
BlockType SubSystem
Name "n"
Ports [1, 1]
Position [240, 46, 335, 94]
NamePlacement "alternate"
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "i_M* Calculation"
MaskPromptString "KF"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "KF=@1;"
MaskDisplay "text(0.1,0.8,'i_M* Calculation')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "34.7e-3"
System {
Name "n"
Location [446, 119, 869, 283]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Phir*"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Gain
Name "KF"
Position [80, 29, 140, 61]
Gain "KF"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "I_M*"
Position [165, 38, 195, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "KF"
SrcPort 1
DstBlock "I_M*"
DstPort 1
}
Line {
SrcBlock "Phir*"
SrcPort 1
DstBlock "KF"
DstPort 1
}
Annotation {
Position [89, 98]
Text " "
}
}
}
Block {
BlockType SubSystem
Name "weak phir"
Ports [1, 1]
Position [130, 39, 180, 101]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "phir*:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "phir=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.96"
System {
Name "weak phir"
Location [104, 140, 892, 641]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "105"
Block {
BlockType Inport
Name "wr"
Position [110, 118, 140, 132]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion1"
Position [430, 224, 450, 246]
ShowName off
DataType "double"
SaturateOnIntegerOverflow on
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion2"
Position [385, 134, 405, 156]
ShowName off
DataType "double"
SaturateOnIntegerOverflow on
}
Block {
BlockType Fcn
Name "Fcn"
Position [445, 127, 480, 163]
Expr "u[1]*u[2]"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [490, 245, 550, 275]
Expr "u[1]*(u[3]/(u[2]+1e-5))*phir"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [355, 225, 385, 245]
ShowName off
Operator "NOT"
Inputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [360, 126, 365, 164]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [470, 223, 475, 297]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [255, 117, 285, 148]
Operator "<="
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [580, 167, 615, 223]
ShowName off
IconShape "rectangular"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "phir*1"
Position [305, 190, 335, 220]
Value "phir"
VectorParams1D on
}
Block {
BlockType Constant
Name "wn"
Position [110, 185, 140, 215]
Value "120"
VectorParams1D on
}
Block {
BlockType Outport
Name "phir*"
Position [710, 188, 740, 202]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "phir*"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [0, -45]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [40, 0; 0, 50]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion1"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion2"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Data Type \nConversion1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Data Type \nConversion2"
DstPort 1
}
Line {
SrcBlock "phir*1"
SrcPort 1
Points [0, -50]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 100]
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "wr"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 135]
DstBlock "Mux1"
DstPort 2
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "wn"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 85]
DstBlock "Mux1"
DstPort 3
}
Branch {
Points [65, 0; 0, -60]
DstBlock "Relational\nOperator"
DstPort 2
}
}
}
}
Block {
BlockType Step
Name "ωref"
Position [30, 140, 60, 170]
Time "0.3"
Before "60"
After "120"
SampleTime "0"
VectorParams1D on
}
Line {
SrcBlock "ωref"
SrcPort 1
DstBlock "Speed_controller"
DstPort 1
}
Line {
SrcBlock "Speed_controller"
SrcPort 1
DstBlock "i_T* Calculation"
DstPort 1
}
Line {
SrcBlock "Observor"
SrcPort 1
Points [15, 0; 0, -35; -90, 0]
DstBlock "i_T* Calculation"
DstPort 2
}
Line {
SrcBlock "Subsytem"
SrcPort 1
DstBlock "Observor"
DstPort 1
}
Line {
SrcBlock "n"
SrcPort 1
Points [30, 0; 0, 55]
DstBlock "MT-ABC"
DstPort 1
}
Line {
SrcBlock "i_T* Calculation"
SrcPort 1
Points [50, 0; 0, -25]
DstBlock "MT-ABC"
DstPort 2
}
Line {
SrcBlock "Observor"
SrcPort 2
Points [40, 0; 0, -90]
DstBlock "MT-ABC"
DstPort 3
}
Line {
SrcBlock "Unit Delay4"
SrcPort 1
Points [-60, 0]
Branch {
Points [0, -100]
DstBlock "Current Regulator"
DstPort 2
}
Branch {
Points [0, 55; -360, 0; 0, -90]
DstBlock "Subsytem"
DstPort 1
}
}
Line {
SrcBlock "Induction Motor\n50 HP / 460 V"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Bus Bar (thin horiz)"
SrcPort 1
DstBlock "Vdc"
DstPort 1
}
Line {
SrcBlock "Bus Bar (thin horiz)"
SrcPort 2
DstBlock "IGBT Inverter"
DstPort 2
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [35, 0]
DstBlock "IGBT Inverter"
DstPort 1
}
Line {
SrcBlock "Current Regulator"
SrcPort 1
DstBlock "IGBT Inverter"
DstPort 3
}
Line {
Labels [3, 1]
SrcBlock "Demux"
SrcPort 3
Points [20, 0; 0, -90]
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "IGBT Inverter"
SrcPort 3
DstBlock "Induction Motor\n50 HP / 460 V"
DstPort 3
}
Line {
SrcBlock "IGBT Inverter"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Induction Motor\n50 HP / 460 V"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Vab"
DstPort 1
}
}
Line {
SrcBlock "IGBT Inverter"
SrcPort 2
Points [0, 0; 15, 0]
Branch {
DstBlock "Induction Motor\n50 HP / 460 V"
DstPort 2
}
Branch {
Points [0, -100]
DstBlock "Vab"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 160]
DstBlock "Unit Delay4"
DstPort 1
}
Branch {
Labels [2, 1]
Points [0, -40]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Load_torque"
SrcPort 1
Points [30, 0]
DstBlock "Induction Motor\n50 HP / 460 V"
DstPort 4
}
Line {
SrcBlock "MT-ABC"
SrcPort 1
DstBlock "Current Regulator"
DstPort 1
}
Line {
SrcBlock "Unit Delay3"
SrcPort 1
Points [-140, 0]
Branch {
DstBlock "Observor"
DstPort 2
}
Branch {
Points [-175, 0; 0, -135]
Branch {
DstBlock "Speed_controller"
DstPort 2
}
Branch {
Points [0, -110]
DstBlock "weak phir"
DstPort 1
}
}
}
Line {
SrcBlock "Vab"
SrcPort 1
Points [180, 0]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0]
Branch {
Labels [1, 1]
DstBlock "Scope"
DstPort 4
}
Branch {
Points [0, 150]
DstBlock "Unit Delay3"
DstPort 1
}
}
Line {
SrcBlock "weak phir"
SrcPort 1
DstBlock "n"
DstPort 1
}
Annotation {
Position [514, 422]
Text "Vector Control of a Variable-Frequency Inductio"
"n Motor Drive"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -