📄 pmsm_simulink_r13.mdl
字号:
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [625, 269, 655, 301]
Orientation "left"
Location [1, 49, 801, 571]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [205, 322, 245, 353]
Orientation "left"
Location [6, 57, 763, 563]
Open off
NumInputPorts "2"
TickLabels "on"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.5 "
YMin "-0.75~0"
YMax "0.75~7.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "500000"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [85, 225, 115, 255]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [115, 95, 145, 125]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [270, 225, 300, 255]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [395, 95, 425, 125]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [400, 225, 430, 255]
ShowName off
IconShape "round"
Inputs "++|"
}
Block {
BlockType Fcn
Name "Vd_1"
Position [245, 139, 390, 161]
NamePlacement "alternate"
Expr "0.04159*u(2)*u(3)"
}
Block {
BlockType Fcn
Name "Vma"
Position [500, 121, 540, 139]
Expr "u(1)*cos(u(3))-u(2)*sin(u(3))"
Port {
PortNumber 1
Name "Vma"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Vmb"
Position [500, 161, 540, 179]
Expr "u(1)*cos(u(3)-2*pi/3)-u(2)*sin(u(3)-2*pi/3)"
Port {
PortNumber 1
Name "Vmb"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Vmc"
Position [500, 201, 540, 219]
Expr "u(1)*cos(u(3)+2*pi/3)-u(2)*sin(u(3)+2*pi/3)"
Port {
PortNumber 1
Name "Vmc"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Fcn
Name "Vq_1"
Position [245, 173, 390, 197]
Expr "(0.4832+0.04159*u(1))*u(3)"
}
Block {
BlockType Constant
Name "W_ref (RPM)"
Position [20, 224, 55, 256]
NamePlacement "alternate"
Value "2000"
}
Line {
Name "Wrpm"
SrcBlock "Gain"
SrcPort 1
Points [0, 0; -15, 0]
Branch {
DstBlock "Integrator"
DstPort 1
}
Branch {
Points [0, 35; -455, 0; 0, -220]
DstBlock "Mux2"
DstPort 3
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; -10, 0]
Branch {
Points [-30, 0]
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -90; -60, 0]
DstBlock "Mux3"
DstPort 3
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [0, 0; -20, 0]
Branch {
DstBlock "Id"
DstPort 1
}
Branch {
DstBlock "Iq"
DstPort 1
}
}
Line {
SrcBlock "Id"
SrcPort 1
Points [0, 0; -50, 0]
Branch {
Points [0, 15]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [-135, 0; 0, -160]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
}
Line {
SrcBlock "Iq"
SrcPort 1
Points [0, 0; -30, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [-20, 0]
Branch {
Points [-125, 0; 0, -195]
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [0, -20]
DstBlock "Scope1"
DstPort 2
}
}
}
Line {
SrcBlock "W_ref (RPM)"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Id_ref"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "PI_Id"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "PI_Id"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PI_W"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "PI_Iq"
DstPort 1
}
Line {
SrcBlock "Vd_1"
SrcPort 1
Points [15, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "PI_Iq"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Vq_1"
SrcPort 1
Points [20, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, -20]
DstBlock "Vd_1"
DstPort 1
}
Branch {
Points [0, 15]
DstBlock "Vq_1"
DstPort 1
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [10, 0; 0, 35]
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [5, 0; 0, -70]
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -40]
DstBlock "Vma"
DstPort 1
}
Branch {
DstBlock "Vmb"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Vmc"
DstPort 1
}
}
Line {
SrcBlock "PI_W"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
Name "Iabc"
SrcBlock "Mux5"
SrcPort 1
Points [5, 0; 0, 130]
Branch {
Points [0, 35]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
Name "Ia"
Labels [0, 0]
SrcBlock "PMSM Motor Drive\nin PSIM"
SrcPort 1
DstBlock "Mux5"
DstPort 1
}
Line {
Name "Ib"
Labels [0, 0]
SrcBlock "PMSM Motor Drive\nin PSIM"
SrcPort 2
DstBlock "Mux5"
DstPort 2
}
Line {
Name "Ic"
Labels [0, 0]
SrcBlock "PMSM Motor Drive\nin PSIM"
SrcPort 3
DstBlock "Mux5"
DstPort 3
}
Line {
Name "Vmb"
Labels [0, 0]
SrcBlock "Vmb"
SrcPort 1
DstBlock "PMSM Motor Drive\nin PSIM"
DstPort 2
}
Line {
Name "Vmc"
Labels [0, 0]
SrcBlock "Vmc"
SrcPort 1
DstBlock "PMSM Motor Drive\nin PSIM"
DstPort 3
}
Line {
Name "Wrpm"
Labels [0, 0]
SrcBlock "PMSM Motor Drive\nin PSIM"
SrcPort 4
Points [55, 0; 0, 155]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 50; -595, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
Name "Vma"
Labels [0, 0]
SrcBlock "Vma"
SrcPort 1
DstBlock "PMSM Motor Drive\nin PSIM"
DstPort 1
}
Annotation {
Name "PMSM Drive Co-Simulated by PSIM and Simulink (c"
"ontrol in Simulink)"
Position [362, 32]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "Note: This file can not be co-simulated by the "
"PSIM demo version."
Position [307, 55]
}
Annotation {
Name "It can be co-simulated by the PSIM full version"
" only!"
Position [303, 72]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -