📄 foc_pmsm_02.mdl
字号:
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [425, 97, 450, 288]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "alf"
Position [625, 163, 655, 177]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "belt"
Position [615, 238, 645, 252]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0; 0, -5]
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Math\nFunction1"
DstPort 1
}
Branch {
Points [0, -180]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [20, 0; 0, -60]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "c"
SrcPort 1
Points [130, 0; 0, 25]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "b"
SrcPort 1
Points [130, 0; 0, -15]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "a"
SrcPort 1
Points [350, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0; 0, 75]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [40, 0; 0, -15]
DstBlock "alf"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [35, 0; 0, 45]
DstBlock "belt"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "dq0_to_abc\nTransformation"
Ports [2, 1]
Position [545, 375, 605, 430]
FontSize 10
SourceBlock "powerlib_extras/Measurements/dq0_to_abc\nTransf"
"ormation"
SourceType "dq0 to abc Transformation"
ShowPortLabels on
}
Block {
BlockType SubSystem
Name "dqtoabc"
Ports [3, 3]
Position [305, 249, 405, 291]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "dqtoabc"
Location [2, 78, 1022, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "q"
Position [110, 103, 140, 117]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "d"
Position [110, 168, 140, 182]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "theta"
Position [110, 243, 140, 257]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [260, 110, 320, 140]
Expr "sin(u(1)*exp(2.3*(-u(2))))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [260, 165, 320, 195]
Expr "sin(u(1)*exp(2.3*(-u(2))))"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [260, 225, 320, 255]
Expr "sin(u(1)*exp(2.3*(-u(2))))"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [210, 105, 215, 235]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "a"
Position [360, 118, 390, 132]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "b"
Position [360, 173, 390, 187]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "c"
Position [365, 233, 395, 247]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "q"
SrcPort 1
Points [25, 0; 0, 15]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "d"
SrcPort 1
Points [25, 0; 0, -5]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "theta"
SrcPort 1
Points [25, 0; 0, -35]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -45]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 10]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Fcn2"
DstPort 1
}
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "a"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "b"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "c"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "svpwm"
Ports [3, 6]
Position [750, 47, 850, 123]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "svpwm"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "belt"
Position [15, 48, 45, 62]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "alf"
Position [15, 83, 45, 97]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ts"
Position [20, 118, 50, 132]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [20, 145, 50, 175]
Value "300"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [630, 50, 635, 320]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [250, 370, 340, 400]
Decimation "1"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [835, 124, 865, 156]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [835, 209, 865, 241]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [1, 1]
Position [840, 294, 870, 326]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [515, 56, 520, 319]
ShowName off
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "N "
Ports [2, 1]
Position [95, 217, 195, 288]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "N "
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "belt"
Position [15, 133, 45, 147]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "alf"
Position [15, 228, 45, 242]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [180, 20, 210, 50]
}
Block {
BlockType Constant
Name "Constant1"
Position [195, 435, 225, 465]
Value "0"
}
Block {
BlockType Gain
Name "Gain"
Position [110, 220, 140, 250]
Gain "0.8660"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [110, 305, 140, 335]
Gain "0.8660"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [355, 215, 385, 245]
Gain "2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [355, 300, 385, 330]
Gain "4"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 203, 215, 247]
ShowName off
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [195, 315, 215, 345]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [410, 197, 435, 258]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [280, 125, 310, 155]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [280, 215, 310, 245]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch2"
Position [285, 305, 315, 335]
InputSameDT off
SaturateOnIntegerOverflow off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -