📄 foc_pmsm_02.mdl
字号:
}
Block {
BlockType Outport
Name "N"
Position [465, 218, 495, 232]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "belt"
SrcPort 1
Points [130, 0]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, 85]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "alf"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0; 0, 5]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [15, 0; 0, 20]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [15, 0; 0, -140]
Branch {
Points [0, -65]
Branch {
Points [0, -95]
DstBlock "Switch"
DstPort 3
}
Branch {
Points [20, 0]
DstBlock "Switch1"
DstPort 3
}
}
Branch {
DstBlock "Switch2"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [45, 0]
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [45, 0; 0, 95]
Branch {
Points [0, 90]
Branch {
Points [0, 110]
DstBlock "Switch2"
DstPort 3
}
Branch {
DstBlock "Switch1"
DstPort 1
}
}
Branch {
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [0, -5]
DstBlock "N"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [80, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [0, -65]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [10, 0; 0, -15; 40, 0]
DstBlock "Switch2"
DstPort 2
}
}
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [545, 170, 605, 200]
FunctionName "Tcm22"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [685, 14, 715, 46]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [3]
Position [910, 24, 940, 56]
Location [188, 390, 512, 629]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "10"
YMin "-5~-5~-5"
YMax "5~5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [3, 3]
Position [375, 44, 475, 306]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem2"
Location [471, 335, 969, 635]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "T1"
Position [110, 103, 140, 117]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Tm"
Position [110, 158, 140, 172]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ts"
Position [115, 208, 145, 222]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [260, 100, 320, 130]
Expr "(u[3]-u[1]-u[2])/4"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [265, 150, 325, 180]
Expr "(u[3]-u[1]-u[2])/4+(u[1]/2)"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [265, 205, 325, 235]
Expr "(u[3]-u[1]-u[2])/4+(u[1]/2)+(u[2]/2)"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [205, 103, 210, 207]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Ta"
Position [360, 103, 390, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Tb"
Position [370, 153, 400, 167]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Tc"
Position [370, 208, 400, 222]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "T1"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Tm"
SrcPort 1
Points [20, 0; 0, -10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Ts"
SrcPort 1
Points [20, 0; 0, -25]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -40]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 10]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Fcn2"
DstPort 1
}
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Ta"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Tb"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Tc"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [5, 2]
Position [245, 41, 335, 269]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem3"
Location [2, 78, 1022, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "120"
Block {
BlockType Inport
Name "X"
Position [30, 78, 60, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Y"
Position [35, 188, 65, 202]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Z"
Position [40, 293, 70, 307]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "N"
Position [25, 13, 55, 27]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ts"
Position [355, 273, 385, 287]
Port "5"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [540, 130, 600, 160]
Expr "u[1]*u[3]/(u[1]+u[2])"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [545, 415, 605, 445]
Expr "u[3]*u[1]/(u[3]+u[2])"
}
Block {
BlockType Gain
Name "Gain"
Position [115, 125, 145, 155]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [120, 225, 150, 255]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [120, 340, 150, 370]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [7, 1]
Position [280, 17, 315, 203]
Inputs "6"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [7, 1]
Position [280, 267, 315, 453]
Inputs "6"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [460, 13, 465, 127]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [460, 396, 465, 524]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [510, 211, 530, 344]
ShowName off
Inputs "|++-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [640, 154, 670, 206]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [645, 318, 675, 372]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "T1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -