📄 smpm3.mdl
字号:
Position [79, 10]
}
}
}
Block {
BlockType Scope
Name "dq-currents"
Ports [1]
Position [865, 21, 900, 69]
NamePlacement "alternate"
Location [105, 113, 575, 413]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Currents [A]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.05"
YMin "-2"
YMax "12"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
MaxDataPoints "25000"
}
Block {
BlockType SubSystem
Name "dq2abc"
Ports [2, 1]
Position [290, 91, 350, 144]
ForegroundColor "red"
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "iref"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "dq2abc"
Location [641, 431, 1031, 678]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "dq"
Position [20, 82, 50, 98]
}
Block {
BlockType Inport
Name "theta"
Position [20, 177, 50, 193]
Port "2"
}
Block {
BlockType Fcn
Name "Fcn"
Position [165, 22, 220, 58]
Expr "u(1)*cos(u(3))-u(2)*sin(u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [165, 87, 220, 123]
Expr "u(1)*cos(u(3)-2*pi/3)-u(2)*sin(u(3)-2*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [165, 157, 220, 193]
Expr "u(1)*cos(u(3)+2*pi/3)-u(2)*sin(u(3)+2*pi/3)"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [125, 77, 130, 128]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [125, 147, 130, 198]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [3, 1]
Position [270, 75, 275, 135]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "abc"
Position [300, 98, 330, 112]
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "dq"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Mux4"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [25, 0; 0, 45]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "abc"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [25, 0; 0, -50]
DstBlock "Mux5"
DstPort 3
}
Line {
SrcBlock "theta"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [0, -70]
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 2
}
Branch {
DstBlock "Mux1"
DstPort 2
}
}
}
}
}
Block {
BlockType SubSystem
Name "dq2abc1"
Ports [2, 1]
Position [850, 131, 910, 184]
ForegroundColor "red"
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "i"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "dq2abc1"
Location [637, 435, 994, 660]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "dq"
Position [20, 82, 50, 98]
}
Block {
BlockType Inport
Name "theta"
Position [20, 177, 50, 193]
Port "2"
}
Block {
BlockType Fcn
Name "Fcn"
Position [165, 22, 220, 58]
Expr "u(1)*cos(u(3))-u(2)*sin(u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [165, 87, 220, 123]
Expr "u(1)*cos(u(3)-2*pi/3)-u(2)*sin(u(3)-2*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [165, 157, 220, 193]
Expr "u(1)*cos(u(3)+2*pi/3)-u(2)*sin(u(3)+2*pi/3)"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [125, 77, 130, 128]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [125, 147, 130, 198]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [3, 1]
Position [270, 75, 275, 135]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "abc"
Position [305, 98, 335, 112]
}
Line {
SrcBlock "theta"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -70]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 2
}
}
Branch {
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [25, 0; 0, -50]
DstBlock "Mux5"
DstPort 3
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "abc"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [25, 0; 0, 45]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "dq"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Mux4"
DstPort 1
}
}
}
}
Block {
BlockType Constant
Name "idref"
Position [25, 43, 55, 67]
Value "0"
}
Block {
BlockType SubSystem
Name "info"
Ports []
Position [92, 325, 181, 407]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "info"
Location [18, 153, 545, 363]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "98"
Annotation {
Name "A three-phase motor rated 1.1 KW, 220 V, 30"
"00 rpm is fed by a PWM inverter. In this demo, \nthe whole system is buildt e"
"ntirely with standard Simulink blocks (without resort to blocksets).\nThe ini"
"tial load torque is set at the nominal value (3 N.m) and steps down to 1 N.m "
"at t=0.03s.\nTwo control loops are used: the inner loop regulates the current"
"s and the outer loop controls\nthe speed.\nField orientation is obtained by s"
"etting id_ref to zero. The torque command iq_ref is derived\nfrom the speed"
" controller."
Position [20, 100]
HorizontalAlignment "left"
VerticalAlignment "top"
FontName "Arial"
FontSize 12
}
Annotation {
Name "This demonstration illustrates the use of t"
"he PMSM in a closed-loop\nspeed and current control on a 1.1 kW 3000 rpm ind"
"ustrial motor. "
Position [249, 27]
FontSize 12
FontWeight "bold"
}
Annotation {
Name "(adapted from Power System Blockset demo)"
Position [255, 55]
FontSize 11
}
Annotation {
Name "Circuit Description"
Position [89, 82]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
}
}
Block {
BlockType Saturate
Name "limiter"
Position [175, 133, 205, 157]
UpperLimit "10"
LowerLimit "-10"
}
Block {
BlockType Gain
Name "p/2"
Position [1060, 201, 1105, 239]
ForegroundColor "blue"
Gain "4"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "smpm"
Ports [3, 3]
Position [610, 94, 765, 246]
BackgroundColor "yellow"
ShowName off
TreatAsAtomicUnit off
MaskPromptString "Armature resistance [Ohm]|Q_axis inductance [H]"
"|D_axis inductance [H}|PM flux [Wb]|Number of poles"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Ra=@1;Lq=@2;Ld=@3;phim=@4;p=@5;"
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
"),[-.5 -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('PM\\nSYNCHRONOUS\\nMOTOR')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2.875|8.5e-3|8.5e-3|0.175|8"
System {
Name "smpm"
Location [587, 512, 1041, 765]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "59"
Block {
BlockType Inport
Name "vd"
Position [35, 123, 65, 137]
}
Block {
BlockType Inport
Name "vq"
Position [35, 323, 65, 337]
Port "2"
}
Block {
BlockType Inport
Name "wmec"
Position [15, 68, 45, 82]
Port "3"
}
Block {
BlockType Gain
Name "1/Ld"
Position [255, 113, 305, 147]
ShowName off
Gain "1/Ld"
}
Block {
BlockType Gain
Name "1/Lq"
Position [255, 313, 300, 347]
ShowName off
Gain "1/Lq"
}
Block {
BlockType Gain
Name "1/Lq1"
Position [495, 123, 550, 157]
ShowName off
Gain "Ld-Lq"
}
Block {
BlockType Gain
Name "Gain"
Position [280, 170, 310, 200]
Orientation "left"
ShowName off
Gain "Ra"
}
Block {
BlockType Gain
Name "Gain1"
Position [275, 380, 305, 410]
Orientation "left"
ShowName off
Gain "Ra"
}
Block {
BlockType Gain
Name "Gain2"
Position [610, 168, 670, 202]
ShowName off
Gain "0.75*p"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [325, 115, 355, 145]
ShowName off
Port {
PortNumber 1
Name "id"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [325, 315, 355, 345]
ShowName off
Port {
PortNumber 1
Name "iq"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Lq"
Position [235, 25, 265, 55]
Orientation "left"
ShowName off
Gain "Lq"
}
Block {
BlockType Gain
Name "Lq1"
Position [240, 230, 270, 260]
Orientation "left"
ShowName off
Gain "Ld"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [150, 52, 180, 83]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [155, 262, 185, 293]
ShowName off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [435, 212, 465, 243]
ShowName off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -