📄 smpm3.mdl
字号:
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [435, 122, 465, 153]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [210, 120, 230, 140]
ShowName off
IconShape "round"
Inputs "++-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [210, 320, 230, 340]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [115, 260, 135, 280]
ShowName off
IconShape "round"
Inputs "++|"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [570, 175, 590, 195]
ShowName off
IconShape "round"
}
Block {
BlockType Constant
Name "pmflux"
Position [45, 255, 75, 285]
BackgroundColor "orange"
Value "phim"
}
Block {
BlockType Gain
Name "poles/2"
Position [65, 59, 95, 91]
Gain "p/2"
Port {
PortNumber 1
Name "wm"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "id"
Position [685, 73, 715, 87]
}
Block {
BlockType Outport
Name "iq"
Position [695, 388, 725, 402]
Port "2"
}
Block {
BlockType Outport
Name "Te"
Position [690, 178, 720, 192]
Port "3"
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-55, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "vq"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-50, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
Name "id"
Labels [0, 0]
SrcBlock "Integrator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 55]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Lq1"
DstPort 1
}
}
Branch {
DstBlock "Product3"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "id"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Lq"
SrcPort 1
Points [-115, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "vd"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/Lq"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/Ld"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Gain2"
SrcPort 1
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "wmec"
SrcPort 1
DstBlock "poles/2"
DstPort 1
}
Line {
Name "wm"
Labels [0, 0]
SrcBlock "poles/2"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Labels [1, 0]
Points [0, 210]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "1/Ld"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "1/Lq"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
Name "iq"
Labels [0, 0]
SrcBlock "Integrator1"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
Points [0, -95]
Branch {
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, -90]
Branch {
DstBlock "Product3"
DstPort 2
}
Branch {
Points [0, -105]
DstBlock "Lq"
DstPort 1
}
}
}
Branch {
Points [0, 65]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "iq"
DstPort 1
}
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "pmflux"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, -50]
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "1/Lq1"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [110, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "1/Lq1"
SrcPort 1
Points [25, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Lq1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Annotation {
Name "q axis"
Position [278, 287]
ForegroundColor "red"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "d axis"
Position [273, 86]
ForegroundColor "red"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "Te"
Position [672, 178]
}
Annotation {
Name "MODEL OF PM SYNCHRONOUS MACHINE IN ROTOR FR"
"AME"
Position [476, 20]
ForegroundColor "red"
FontSize 14
FontWeight "bold"
}
}
}
Block {
BlockType Scope
Name "speed"
Ports [1]
Position [1015, 136, 1050, 184]
NamePlacement "alternate"
Location [587, 507, 1120, 782]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Speed [rad/s]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.05"
YMin "-50"
YMax "200"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "25000"
}
Block {
BlockType Constant
Name "speed ref"
Position [20, 133, 50, 157]
Value "175"
}
Block {
BlockType Scope
Name "torque"
Ports [1]
Position [855, 321, 890, 369]
Location [588, 114, 1114, 440]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Torques [N.m]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.05"
YMin "0"
YMax "12"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
MaxDataPoints "25000"
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "1/J"
DstPort 1
}
Line {
SrcBlock "1/J"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
Name "wmec"
Labels [2, 0]
SrcBlock "Integrator2"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, -60]
DstBlock "speed"
DstPort 1
}
Branch {
Points [0, 35]
Branch {
DstBlock "Bm"
DstPort 1
}
Branch {
Points [0, 30; -395, 0]
Branch {
Points [0, -65]
DstBlock "smpm"
DstPort 3
}
Branch {
Points [-495, 0]
DstBlock "Sum4"
DstPort 2
}
}
}
Branch {
DstBlock "Integrator1"
DstPort 1
}
}
Line {
SrcBlock "Bm"
SrcPort 1
Points [-60, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "speed ref"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Kp"
DstPort 1
}
Line {
SrcBlock "limiter"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "idref"
SrcPort 1
Points [160, 0; 0, 35]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "dq2abc1"
DstPort 1
}
Branch {
Points [0, -100]
DstBlock "dq-currents"
DstPort 1
}
}
Line {
SrcBlock "smpm"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "smpm"
SrcPort 2
Points [20, 0; 0, -15]
DstBlock "Mux1"
DstPort 2
}
Line {
Name "iref"
Labels [0, 0]
SrcBlock "dq2abc"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
Name "i"
Labels [0, 0]
SrcBlock "dq2abc1"
SrcPort 1
Points [20, 0; 0, -85]
Branch {
Labels [1, 1]
Points [-550, 0]
DstBlock "Sum5"
DstPort 1
}
Branch {
DstBlock "abc-currents"
DstPort 1
}
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Relay3"
DstPort 1
}
Line {
SrcBlock "Relay3"
SrcPort 1
DstBlock "abc2dq"
DstPort 1
}
Line {
SrcBlock "abc2dq"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "smpm"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "p/2"
DstPort 1
}
Line {
SrcBlock "p/2"
SrcPort 1
Points [0, 90; -275, 0]
Branch {
Points [-385, 0]
Branch {
Points [-180, 0; 0, -180]
DstBlock "dq2abc"
DstPort 2
}
Branch {
Points [0, -165]
DstBlock "abc2dq"
DstPort 2
}
}
Branch {
DstBlock "dq2abc1"
DstPort 2
}
}
Line {
SrcBlock "smpm"
SrcPort 3
Points [0, 0; 10, 0]
Branch {
Points [14, 0]
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Mux3"
DstPort 1
}
}
Line {
Name "Tl"
Labels [0, 0]
SrcBlock "Step\nload"
SrcPort 1
Points [0, 0; 34, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
DstBlock "Mux3"
DstPort 2
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "torque"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [15, 0; 0, 25]
DstBlock "smpm"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "dq2abc"
DstPort 1
}
Line {
SrcBlock "Kp"
SrcPort 1
DstBlock "limiter"
DstPort 1
}
Annotation {
Name "VECTOR CONTROL OF A\nPERMANENT MAGNET SYNCHRONO"
"US MOTOR"
Position [475, 381]
ForegroundColor "red"
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Name "theta"
Position [625, 314]
}
Annotation {
Name "wmec"
Position [502, 290]
}
Annotation {
Name "iqref"
Position [238, 126]
}
Annotation {
Name "Field orientation"
Position [73, 27]
ForegroundColor "blue"
}
Annotation {
Name "Torque\ncommand"
Position [234, 161]
ForegroundColor "blue"
}
Annotation {
Name "P controller"
Position [157, 107]
ForegroundColor "blue"
FontName "Arial"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -