📄 vectorcontrol111.mdl
字号:
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Id"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Iq"
DstPort 1
}
Line {
SrcBlock "Iab"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Teta"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -30]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "abc->ab"
Ports [1, 1]
Position [1010, 650, 1070, 690]
Orientation "left"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "abc->ab"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "156"
Block {
BlockType Inport
Name "Iabc"
Position [35, 73, 65, 87]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [125, 31, 405, 59]
NamePlacement "alternate"
ShowName off
Expr "u[1]-0.5*u[2]-0.5*u[3]"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [120, 101, 440, 129]
NamePlacement "alternate"
ShowName off
Expr "1.7321*u[2]/2-1.7321*u[3]/2"
}
Block {
BlockType Gain
Name "Gain1"
Position [460, 95, 520, 135]
Gain "(2/3)^0.5"
}
Block {
BlockType Gain
Name "Gain2"
Position [460, 21, 520, 69]
Gain "(2/3)^0.5"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [575, 61, 580, 99]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Iab"
Position [620, 73, 650, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Iabc"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -35]
DstBlock "Fcn"
DstPort 1
}
Branch {
DstBlock "Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Iab"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "dq->ab"
Ports [3, 1]
Position [665, 213, 725, 307]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "dq/ABC convert"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "dq->ab"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "243"
Block {
BlockType Inport
Name "Isd*"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Isq*"
Position [25, 73, 55, 87]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Teta"
Position [25, 108, 55, 122]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [130, 36, 300, 64]
NamePlacement "alternate"
ShowName off
Expr "u[1]*cos(u[3])-u[2]*sin(u[3])"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [120, 86, 325, 114]
NamePlacement "alternate"
ShowName off
Expr "u[1]*sin(u[3])+u[2]*cos(u[3])"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [90, 29, 95, 131]
ShowName off
Inputs "3"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [390, 27, 395, 123]
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "Iab*"
Position [420, 68, 450, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Isd*"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Isq*"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Teta"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -30]
DstBlock "Fcn"
DstPort 1
}
Branch {
DstBlock "Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Iab*"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "flux regulator"
Ports [2, 1]
Position [320, 204, 385, 251]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "PI controller"
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|Curre"
"nt Limit|Output initial isd*|Sampling time (s)"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Kp=@1;Ki=@2;Tlim=@3;isd=@4;Ts=@5;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|0.1|inf|2|1e-3"
MaskTabNameString ",,,,"
System {
Name "flux regulator"
Location [0, 82, 1016, 796]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "156"
Block {
BlockType Inport
Name "f_rd*"
Position [160, 108, 190, 122]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "f_rd"
Position [160, 153, 190, 167]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [235, 96, 260, 174]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [325, 117, 385, 153]
Numerator "[Kp Ki]"
Denominator "[1 0]"
}
Block {
BlockType Outport
Name "isd*"
Position [505, 128, 535, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "f_rd"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "f_rd*"
SrcPort 1
Points [0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "isd*"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "speed regulator"
Ports [2, 1]
Position [265, 380, 330, 420]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "PI controller"
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|Torqu"
"e limit (N.m)|Output initial Te*|Sampling time (s)"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Kp=@1;Ki=@2;Tlim=@3;Te=@4;Ts=@5;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|0.1|2000|2|1e-3"
MaskTabNameString ",,,,"
System {
Name "speed regulator"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "243"
Block {
BlockType Inport
Name "w*"
Position [35, 78, 65, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "w"
Position [35, 138, 65, 152]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [115, 96, 140, 134]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [225, 97, 285, 133]
Numerator "[Kp Ki]"
Denominator "[1 0]"
}
Block {
BlockType Outport
Name "Te*"
Position [345, 108, 375, 122]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "w*"
SrcPort 1
Points [0, 30]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
Points [0, -20]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Te*"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
}
}
Block {
BlockType Step
Name "w*"
Position [145, 375, 175, 405]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -