📄 pmsm.mdl
字号:
}
Block {
BlockType Inport
Name "Sb"
Position [25, 123, 55, 137]
Port "2"
}
Block {
BlockType Inport
Name "Sc"
Position [30, 218, 60, 232]
Port "3"
}
Block {
BlockType Constant
Name "Constant"
Position [300, 25, 330, 55]
Value "2/3"
}
Block {
BlockType Constant
Name "Constant1"
Position [310, 230, 340, 260]
Value "2/3"
}
Block {
BlockType Constant
Name "Constant2"
Position [295, 115, 325, 145]
Value "310"
}
Block {
BlockType Gain
Name "Gain"
Position [150, 70, 180, 100]
Gain "0.5"
}
Block {
BlockType Gain
Name "Gain1"
Position [165, 175, 195, 205]
Gain "0.5"
}
Block {
BlockType Gain
Name "Gain2"
Position [165, 230, 195, 260]
Gain "sqrt(3)/2"
}
Block {
BlockType Gain
Name "Gain3"
Position [155, 115, 185, 145]
Gain "sqrt(3)/2"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [375, 41, 410, 109]
Inputs "3"
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [3, 1]
Position [380, 183, 425, 227]
Inputs "3"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [230, 32, 260, 118]
ShowName off
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [255, 173, 275, 237]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Ualf"
Position [465, 68, 495, 82]
}
Block {
BlockType Outport
Name "Ubeta"
Position [470, 198, 500, 212]
Port "2"
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [10, 0; 0, 15]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Product1"
DstPort 3
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Ubeta"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Ualf"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [50, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [20, 0; 0, -20]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sa"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sb"
SrcPort 1
Points [0, 0; 75, 0]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Sc"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, 20]
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Product"
DstPort 3
}
Branch {
Points [0, 60]
DstBlock "Product1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [3, 2]
Position [225, 45, 290, 125]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "Subsystem2"
Location [781, 587, 1181, 891]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ia"
Position [25, 33, 55, 47]
}
Block {
BlockType Inport
Name "ib"
Position [25, 58, 55, 72]
Port "2"
}
Block {
BlockType Inport
Name "ic"
Position [15, 213, 45, 227]
Port "3"
}
Block {
BlockType Gain
Name "Gain"
Position [265, 35, 295, 65]
Gain "2/3"
}
Block {
BlockType Gain
Name "Gain1"
Position [265, 85, 295, 115]
Gain "2/3"
}
Block {
BlockType Gain
Name "Gain2"
Position [115, 50, 145, 80]
Gain "0.5"
}
Block {
BlockType Gain
Name "Gain3"
Position [135, 100, 165, 130]
Gain "sqrt(3)/2"
}
Block {
BlockType Gain
Name "Gain4"
Position [135, 215, 165, 245]
Gain "sqrt(3)/2"
}
Block {
BlockType Gain
Name "Gain5"
Position [135, 165, 165, 195]
Gain "0.5"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [190, 14, 215, 86]
ShowName off
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [210, 187, 235, 243]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "ialf"
Position [340, 43, 370, 57]
}
Block {
BlockType Outport
Name "ibeta"
Position [345, 73, 375, 87]
Port "2"
}
Line {
SrcBlock "ic"
SrcPort 1
Points [50, 0]
Branch {
Points [20, 0]
DstBlock "Gain4"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Gain5"
DstPort 1
}
}
Line {
SrcBlock "ib"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Gain3"
DstPort 1
}
}
Line {
SrcBlock "ia"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, -20]
DstBlock "ibeta"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "ialf"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [10, 0; 0, -10]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [25, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain5"
SrcPort 1
Points [5, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [25, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0; 0, -105]
DstBlock "Gain1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem7"
Ports [5, 1]
Position [380, 147, 485, 303]
TreatAsAtomicUnit off
System {
Name "Subsystem7"
Location [771, 277, 1256, 520]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "fai_ref"
Position [125, 33, 155, 47]
}
Block {
BlockType Inport
Name "fai_alf"
Position [20, 83, 50, 97]
Port "2"
}
Block {
BlockType Inport
Name "fai_beta"
Position [25, 113, 55, 127]
Port "3"
}
Block {
BlockType Inport
Name "Te_ref"
Position [155, 128, 185, 142]
Port "4"
}
Block {
BlockType Inport
Name "Te"
Position [170, 168, 200, 182]
Port "5"
}
Block {
BlockType Constant
Name "Constant"
Position [285, 70, 315, 100]
}
Block {
BlockType Fcn
Name "Fcn"
Position [110, 95, 170, 125]
Expr "sqrt(u[1]^2+u[2]^2)"
}
Block {
BlockType Gain
Name "Gain"
Position [305, 25, 335, 55]
Gain "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [90, 91, 95, 129]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Relay
Name "Relay"
Position [245, 25, 275, 55]
}
Block {
BlockType Relay
Name "Relay1"
Position [290, 120, 320, 150]
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [180, 25, 210, 55]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [365, 35, 405, 85]
ShowName off
IconShape "round"
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [210, 120, 240, 150]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "S"
Position [430, 53, 460, 67]
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [14, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [60, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "fai_ref"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "S"
DstPort 1
}
Line {
SrcBlock "fai_alf"
SrcPort 1
Points [0, 10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "fai_beta"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Te_ref"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Te"
SrcPort 1
Points [20, 0]
DstBlock "Sum2"
DstPort 2
}
}
}
Block {
BlockType SubSystem
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -