📄 pmsm.mdl
字号:
Line {
SrcBlock "ibeta"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "fao_beta"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "fai_alf"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "磁链区判断"
Ports [1, 1]
Position [410, 339, 470, 441]
TreatAsAtomicUnit off
System {
Name "磁链区判断"
Location [256, 499, 1126, 794]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "theta"
Position [30, 193, 60, 207]
}
Block {
BlockType Constant
Name "Constant"
Position [25, 135, 55, 165]
Value "5"
}
Block {
BlockType Constant
Name "Constant1"
Position [180, 135, 210, 165]
Value "4"
}
Block {
BlockType Constant
Name "Constant2"
Position [480, 135, 510, 165]
Value "2"
}
Block {
BlockType Constant
Name "Constant3"
Position [345, 135, 375, 165]
Value "3"
}
Block {
BlockType Constant
Name "Constant4"
Position [635, 135, 665, 165]
}
Block {
BlockType Constant
Name "Constant5"
Position [635, 185, 665, 215]
Value "6"
}
Block {
BlockType MinMax
Name "MinMax"
Ports [5, 1]
Position [765, 19, 795, 111]
Function "max"
Inputs "5"
}
Block {
BlockType Switch
Name "Switch"
Position [115, 138, 155, 212]
Threshold "(7*pi)/6"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch1"
Position [255, 138, 295, 212]
Criteria "u2 > Threshold"
Threshold "(5*pi)/6"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch2"
Position [550, 138, 590, 212]
Threshold "pi/6"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch3"
Position [415, 138, 455, 212]
Threshold "pi/2"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch4"
Position [705, 138, 745, 212]
Threshold "(-pi)/6"
InputSameDT off
}
Block {
BlockType Outport
Name "area"
Position [815, 58, 845, 72]
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "theta"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Switch"
DstPort 3
}
Branch {
Points [0, -25]
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Switch2"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Switch3"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Switch3"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "Switch3"
DstPort 3
}
Branch {
Points [0, -130]
DstBlock "MinMax"
DstPort 2
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "Switch1"
DstPort 3
}
Branch {
Points [0, -150]
DstBlock "MinMax"
DstPort 1
}
}
Line {
SrcBlock "Switch3"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Switch2"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "Switch2"
DstPort 3
}
Branch {
Points [0, -110]
DstBlock "MinMax"
DstPort 3
}
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "Switch4"
DstPort 1
}
Line {
SrcBlock "Constant5"
SrcPort 1
DstBlock "Switch4"
DstPort 3
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Switch4"
DstPort 2
}
Branch {
Points [0, -90]
DstBlock "MinMax"
DstPort 4
}
}
Line {
SrcBlock "MinMax"
SrcPort 1
DstBlock "area"
DstPort 1
}
Line {
SrcBlock "Switch4"
SrcPort 1
DstBlock "MinMax"
DstPort 5
}
}
}
Block {
BlockType SubSystem
Name "角度计算"
Ports [2, 1]
Position [315, 340, 395, 435]
TreatAsAtomicUnit off
System {
Name "角度计算"
Location [647, 138, 1092, 365]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "fai_alf"
Position [25, 43, 55, 57]
}
Block {
BlockType Inport
Name "fai_beta"
Position [25, 88, 55, 102]
Port "2"
}
Block {
BlockType Constant
Name "Constant"
Position [200, 155, 230, 185]
Value "pi"
}
Block {
BlockType Fcn
Name "Fcn"
Position [175, 45, 235, 75]
Expr "atan(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [175, 100, 235, 130]
Expr "atan(u)"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [80, 25, 110, 120]
Inputs "/*"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [265, 105, 285, 125]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Switch
Name "Switch"
Position [335, 55, 365, 85]
Criteria "u2 > Threshold"
InputSameDT off
}
Block {
BlockType Outport
Name "theta"
Position [390, 63, 420, 77]
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 5, 0]
Branch {
Points [0, -15]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "fai_alf"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -35; 255, 0]
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "theta"
DstPort 1
}
Line {
SrcBlock "fai_beta"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Line {
SrcBlock "磁链估算模型"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "角度计算"
DstPort 1
}
Branch {
Points [0, -170]
DstBlock "Subsystem7"
DstPort 2
}
}
Line {
SrcBlock "磁链估算模型"
SrcPort 2
Points [20, 0; 0, -30]
Branch {
DstBlock "角度计算"
DstPort 2
}
Branch {
Points [0, -185]
DstBlock "Subsystem7"
DstPort 3
}
}
Line {
SrcBlock "磁链区判断"
SrcPort 1
Points [10, 0; 0, -65]
DstBlock "invert"
DstPort 2
}
Line {
SrcBlock "角度计算"
SrcPort 1
DstBlock "磁链区判断"
DstPort 1
}
Line {
SrcBlock "Subsystem7"
SrcPort 1
DstBlock "invert"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 4
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
DstBlock "Machines\nMeasurement\nDemux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Subsystem2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Subsystem2"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Subsystem2"
DstPort 3
}
Line {
SrcBlock "Subsystem2"
SrcPort 1
Points [-85, 0; 0, 320]
DstBlock "磁链估算模型"
DstPort 2
}
Line {
SrcBlock "Subsystem2"
SrcPort 2
Points [-100, 0; 0, 350]
DstBlock "磁链估算模型"
DstPort 4
}
Line {
SrcBlock "invert"
SrcPort 4
Points [10, 0; 0, 195]
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "invert"
SrcPort 5
Points [10, 0; 0, 205]
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "invert"
SrcPort 6
Points [10, 0; 0, 215]
DstBlock "Subsystem"
DstPort 3
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Subsystem7"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 2
Points [0, -10]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 1
Points [10, 0; 0, -80]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Demux"
DstPort 1
}
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 3
Points [10, 0; 0, 85]
Branch {
Points [0, 35; -370, 0; 0, -65; -120, 0]
DstBlock "Subsystem7"
DstPort 5
}
Branch {
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "invert"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, 30]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "vbc"
DstPort 1
}
}
Line {
SrcBlock "invert"
SrcPort 2
Points [15, 0; 0, 15; 30, 0]
Branch {
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 2
}
Branch {
Points [0, -80]
DstBlock "vbc"
DstPort 2
}
}
Line {
SrcBlock "invert"
SrcPort 3
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 3
}
Line {
SrcBlock "vbc"
SrcPort 1
DstBlock "vbc (V)"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [-140, 0; 0, -145]
DstBlock "磁链估算模型"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [-140, 0; 0, -145]
DstBlock "磁链估算模型"
DstPort 3
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Subsystem7"
DstPort 4
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -