📄 psbpmmotor.mdl
字号:
Name "vb"
Position [330, 68, 360, 82]
Port "2"
InitialOutput "0"
}
Block {
BlockType Outport
Name "vc"
Position [330, 98, 360, 112]
Port "3"
InitialOutput "0"
}
Line {
SrcBlock "Demux2"
SrcPort 1
DstBlock "compar"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [20, 0; 0, 35]
DstBlock "compar1"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 3
Points [10, 0; 0, 70]
DstBlock "compar2"
DstPort 1
}
Line {
SrcBlock "Demux3"
SrcPort 3
DstBlock "compar2"
DstPort 2
}
Line {
SrcBlock "Demux3"
SrcPort 2
Points [40, 0; 0, -40]
DstBlock "compar1"
DstPort 2
}
Line {
SrcBlock "Demux3"
SrcPort 1
Points [30, 0; 0, -75]
DstBlock "compar"
DstPort 2
}
Line {
SrcBlock "vab"
SrcPort 1
DstBlock "va"
DstPort 1
}
Line {
SrcBlock "compar"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "vab"
DstPort 1
}
Line {
SrcBlock "compar1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "compar2"
SrcPort 1
Points [10, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "vbc"
DstPort 1
}
Line {
SrcBlock "vab"
SrcPort 2
Points [5, 0]
DstBlock "Bus Bar 2"
DstPort 1
}
Line {
SrcBlock "Bus Bar 2"
SrcPort 1
DstBlock "vb"
DstPort 1
}
Line {
SrcBlock "vbc"
SrcPort 1
Points [5, 0]
DstBlock "Bus Bar 2"
DstPort 2
}
Line {
SrcBlock "vbc"
SrcPort 2
DstBlock "vc"
DstPort 1
}
Line {
SrcBlock "iabc"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "iref"
SrcPort 1
DstBlock "Demux3"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Permanent Magnet\nSynchronous Machine"
Tag "PoWeRsYsTeMbLoCk"
Ports [4, 1]
Position [530, 59, 600, 131]
SourceBlock "powerlib2/Machines/Permanent Magnet\nSynchronou"
"s Machine"
SourceType "PM Synchronous Machine"
x1 "2.875"
x2 "[8.5e-3, 8.5e-3]"
x3 "0.175"
x4 "[ 0.8e-3, 0, 4 ]"
PSBOutputType "0"
}
Block {
BlockType Step
Name "Step"
Position [485, 116, 500, 134]
Time "0.04"
Before "3"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [90, 60, 110, 80]
ShowName off
Inputs "+-"
}
Block {
BlockType Scope
Name "Te (N.m)"
Ports [1]
Position [780, 125, 810, 155]
BackgroundColor "green"
Location [545, 502, 790, 694]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-20"
YMax "35"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "dq2abc"
Ports [4, 1]
Position [250, 56, 320, 144]
TreatAsAtomicUnit off
System {
Name "dq2abc"
Location [641, 450, 913, 653]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "iqref"
Position [15, 30, 35, 50]
}
Block {
BlockType Inport
Name "idref"
Position [15, 70, 35, 90]
Port "2"
}
Block {
BlockType Inport
Name "ioref"
Position [15, 110, 35, 130]
Port "3"
}
Block {
BlockType Inport
Name "the"
Position [15, 150, 35, 170]
Port "4"
}
Block {
BlockType Fcn
Name "Fcn"
Position [120, 50, 160, 70]
Expr "u(1)*cos(u(4)) + u(2)*sin(u(4)) + u(3)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [120, 90, 160, 110]
Expr "u(1)*cos(u(4)-2*pi/3) + u(2)*sin(u(4)-2*pi/"
"3) + u(3)"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [120, 130, 160, 150]
Expr "u(1)*cos(u(4)+2*pi/3) + u(2)*sin(u(4)+2*pi/"
"3) + u(3)"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [65, 21, 95, 179]
ShowName off
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [180, 41, 205, 159]
ShowName off
Inputs "3"
}
Block {
BlockType Outport
Name "iabcr"
Position [225, 90, 245, 110]
InitialOutput "0"
}
Line {
SrcBlock "the"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "ioref"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "idref"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "iqref"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 0; 0, 40]
DstBlock "Fcn2"
DstPort 1
}
}
Branch {
Points [0, 0; 0, -40]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "iabcr"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "ioref"
Position [195, 100, 215, 120]
ShowName off
Value "0"
}
Block {
BlockType Scope
Name "is_abc (A)"
Ports [1]
Position [780, 15, 810, 45]
BackgroundColor "green"
Location [24, 501, 269, 693]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-30"
YMax "35"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Constant
Name "speed ref"
Position [20, 53, 50, 77]
Value "700"
}
Block {
BlockType Reference
Name "vbc"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [465, 178, 490, 202]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "1"
}
Block {
BlockType Scope
Name "vbc (V)"
Ports [1]
Position [520, 175, 550, 205]
BackgroundColor "green"
Location [31, 509, 278, 702]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-500"
YMax "500"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Scope
Name "we (rad/s)"
Ports [1]
Position [780, 70, 810, 100]
BackgroundColor "green"
Location [1, 56, 1153, 829]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.06"
YMin "695"
YMax "700.5"
DataFormat "Structure"
LimitDataPoints off
}
Line {
SrcBlock "ioref"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -20]
DstBlock "dq2abc"
DstPort 2
}
Branch {
DstBlock "dq2abc"
DstPort 3
}
}
Line {
SrcBlock "speed ref"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Fuzzy-PID"
SrcPort 1
DstBlock "dq2abc"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 4
}
Line {
SrcBlock "dq2abc"
SrcPort 1
DstBlock "PWM inv."
DstPort 2
}
Line {
SrcBlock "PWM inv."
SrcPort 1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 1
}
Line {
SrcBlock "PWM inv."
SrcPort 2
Points [0, 0; 20, 0]
Branch {
Points [0, 100]
DstBlock "vbc"
DstPort 1
}
Branch {
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 2
}
}
Line {
SrcBlock "PWM inv."
SrcPort 3
Points [0, 0; 30, 0]
Branch {
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 3
}
Branch {
Points [0, 90]
DstBlock "vbc"
DstPort 2
}
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
DstBlock "Machines\nMeasurement\nDemux"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 1
Points [20, 0; 0, -35]
Branch {
Points [-365, 0; 0, 40]
DstBlock "PWM inv."
DstPort 1
}
Branch {
DstBlock "is_abc (A)"
DstPort 1
}
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 4
Points [80, 0]
DstBlock "Te (N.m)"
DstPort 1
}
Line {
SrcBlock "vbc"
SrcPort 1
DstBlock "vbc (V)"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 2
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "we (rad/s)"
DstPort 1
}
Branch {
Points [0, 190; -690, 0; 0, -200]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 3
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [10, 0; 0, 135; -515, 0; 0, -110]
DstBlock "dq2abc"
DstPort 4
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Fuzzy-PID"
DstPort 1
}
Annotation {
Name "Permanent magnet synchronous motor fed by PWM i"
"nverter"
Position [296, 295]
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Double click on the Help button (?) for details"
Position [301, 315]
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -