📄 dianjimo.mdl
字号:
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 [150, 110, 170, 130]
ShowName off
Value "0"
}
Block {
BlockType SubSystem
Name "iqref"
Ports [1, 1]
Position [145, 68, 170, 92]
ShowName off
TreatAsAtomicUnit off
MaskType "PI Controller"
MaskPromptString "Integral|Proportional:|Minimum and maximum "
"outputs:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskInitialization "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
MaskDisplay "disp('PI')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|100| [-30, 30]"
System {
Name "iqref"
Location [136, 98, 490, 268]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In_1"
Position [25, 75, 45, 95]
}
Block {
BlockType TransferFcn
Name "Integral"
Position [110, 67, 145, 103]
Numerator "[I]"
Denominator "[1 0]"
}
Block {
BlockType Gain
Name "Proportional"
Position [120, 28, 140, 52]
NamePlacement "alternate"
Gain "P"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 53, 255, 77]
UpperLimit "max"
LowerLimit "min"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [180, 15, 200, 110]
}
Block {
BlockType Outport
Name "Out_1"
Position [285, 55, 305, 75]
InitialOutput "0"
}
Line {
SrcBlock "Integral"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [15, 0; 15, 0]
Branch {
DstBlock "Integral"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Proportional"
DstPort 1
}
}
Line {
SrcBlock "Proportional"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "is_abc (A)"
Ports [1]
Position [735, 25, 765, 55]
BackgroundColor "green"
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.06"
YMin "-30"
YMax "35"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Reference
Name "vbc"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [420, 188, 445, 212]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Scope
Name "vbc (V)"
Ports [1]
Position [475, 185, 505, 215]
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, 80, 810, 110]
BackgroundColor "green"
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.06"
YMin "0"
YMax "800"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Outport
Name "Wout"
Position [860, 113, 890, 127]
}
Block {
BlockType Outport
Name "Te"
Position [780, 238, 810, 252]
Port "2"
}
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 "Sum"
SrcPort 1
DstBlock "iqref"
DstPort 1
}
Line {
SrcBlock "iqref"
SrcPort 1
DstBlock "dq2abc"
DstPort 1
}
Line {
SrcBlock "TL"
SrcPort 1
Points [0, -30; 405, 0]
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 [125, 0; 0, 35]
Branch {
DstBlock "Te (N.m)"
DstPort 1
}
Branch {
DstBlock "Te"
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 {
Points [0, 180; -630, 0; 0, -190]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [45, 0]
Branch {
DstBlock "we (rad/s)"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Wout"
DstPort 1
}
}
}
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 "Wref"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -