📄 pmsm.mdl
字号:
System {
Name "pmsm"
Location [2, 70, 1022, 720]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [110, 275, 140, 305]
Value "0"
ShowAdditionalParam on
}
Block {
BlockType Constant
Name "Constant1"
Position [50, 335, 80, 365]
Value "3000"
ShowAdditionalParam on
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [575, 141, 580, 179]
Orientation "left"
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Reference
Name "Machines\nMeasurement\nDemux"
Ports [1, 6]
Position [730, 265, 790, 375]
FontSize 10
SourceBlock "powerlib2/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
machType "Permanent magnet synchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 on
sm2 on
sm3 off
sm4 off
sm5 off
sm6 on
sm7 off
sm8 on
sm9 off
sm10 off
sm11 off
sm115 off
sm12 off
sm13 off
sm14 off
asm1 on
asm2 on
asm3 on
asm4 on
asm5 on
asm6 on
asm7 on
asm8 on
asm9 on
asm10 on
asm11 on
pmsm1 on
pmsm2 on
pmsm3 on
pmsm4 on
pmsm5 on
pmsm6 on
lastType "1"
}
Block {
BlockType Reference
Name "PID Controller"
Ports [1, 1]
Position [155, 335, 185, 365]
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
P "1"
I "1"
D "0"
}
Block {
BlockType Reference
Name "PID Controller1"
Ports [1, 1]
Position [265, 335, 295, 365]
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
P "1"
I "1"
D "0"
}
Block {
BlockType Reference
Name "PID Controller2"
Ports [1, 1]
Position [255, 275, 285, 305]
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
P "1"
I "1"
D "0"
}
Block {
BlockType Reference
Name "Permanent Magnet\nSynchronous Machine"
Tag "PoWeRsYsTeMbLoCk"
Ports [4, 1]
Position [610, 282, 680, 353]
FontSize 10
SourceBlock "powerlib2/Machines/Permanent Magnet\nSynchronou"
"s Machine"
SourceType "PM Synchronous Machine"
x1 "5.25"
x2 "[9e-3, 9e-3]"
x3 "0.175"
x4 "[9e-4, 0, 2 ]"
PSBOutputType "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 340, 125, 360]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [185, 280, 205, 300]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [215, 340, 235, 360]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Universal Bridge"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 3]
Position [500, 272, 565, 348]
FontSize 10
SourceBlock "powerlib2/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
arms "3"
confi "ABC as output terminals"
injcc "1e5"
cf "inf"
device "MOSFET / Diodes"
Ron "1e-3"
Lon "0"
VFs "[ 0 0 ]"
Vf "0"
gtoparameters "[ 10e-6 , 20e-6 ]"
igbtparameters "[ 1e-6 , 2e-6 ]"
mesure "None"
PSBOutputType "111"
}
Block {
BlockType Reference
Name "dq0_to_abc\nTransformation"
Ports [2, 1]
Position [390, 489, 455, 551]
FontSize 10
SourceBlock "powerlib_extras/Measurements/dq0_to_abc\nTransf"
"ormation"
SourceType "dq0 to abc Transformation"
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
DstBlock "Machines\nMeasurement\nDemux"
DstPort 1
}
Line {
SrcBlock "Universal Bridge"
SrcPort 2
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 2
}
Line {
SrcBlock "Universal Bridge"
SrcPort 3
Points [10, 0; 0, -10]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 3
}
Line {
SrcBlock "Universal Bridge"
SrcPort 1
Points [10, 0; 0, 10]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 2
Points [25, 0; 0, -130]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [-375, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "PID Controller2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID Controller"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "PID Controller1"
DstPort 1
}
Line {
SrcBlock "PID Controller"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [-345, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 4
Points [15, 0; 0, 105; -695, 0]
DstBlock "Sum"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -