📄 dianliuzhihuanbijiaofa.mdl
字号:
Name "Fcn1"
Position [170, 115, 210, 135]
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 [170, 155, 210, 175]
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 [110, 46, 140, 204]
ShowName off
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [230, 66, 255, 184]
ShowName off
Inputs "3"
}
Block {
BlockType Outport
Name "iabcr"
Position [275, 115, 295, 135]
IconDisplay "Port number"
BusOutputAsStruct off
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; 5, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Fcn2"
DstPort 1
}
}
Branch {
Points [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 [210, 200, 230, 220]
ShowName off
Value "0"
}
Block {
BlockType SubSystem
Name "iqref"
Ports [1, 1]
Position [225, 158, 250, 182]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "PI Controller"
MaskPromptString "Integral|Proportional:|Minimum and maximum outp"
"uts:"
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 "2.6|50| [-30, 30]"
MaskTabNameString ",,"
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]
Port "1"
IconDisplay "Port number"
LatchInput off
}
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]
IconDisplay "Port number"
BusOutputAsStruct off
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 Reference
Name "vbc"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [500, 258, 525, 282]
AttributesFormatString "\\n"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Scope
Name "vbc (V)"
Ports [1]
Position [575, 255, 605, 285]
BackgroundColor "green"
Location [4, 54, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-500"
YMax "500"
SaveName "ScopeData3"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Scope
Name "vbc (V)1"
Ports [1]
Position [815, 215, 845, 245]
BackgroundColor "green"
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "2"
YMax "4"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Scope
Name "vbc (V)2"
Ports [1]
Position [910, 145, 940, 175]
BackgroundColor "green"
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-1.5"
YMax "3.75"
SaveName "ScopeData1"
DataFormat "Structure"
LimitDataPoints off
}
Line {
LineType "Connection"
Points [465, 185; 65, 0]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort LConn2
Branch {
ConnectType "SRC_DEST"
SrcBlock "PWM\nInverter"
SrcPort RConn2
Points [15, 0; 10, 0]
}
Branch {
ConnectType "SRC_SRC"
Points [0, 80]
DstBlock "vbc"
DstPort LConn1
}
}
Line {
LineType "Connection"
Points [475, 205; 0, 70; 10, 0]
DstBlock "vbc"
DstPort LConn2
Branch {
ConnectType "SRC_DEST"
SrcBlock "PWM\nInverter"
SrcPort RConn3
Points [15, 0; 20, 0]
}
Branch {
ConnectType "SRC_SRC"
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort LConn3
}
}
Line {
SrcBlock "ioref"
SrcPort 1
Points [20, 0; 5, 0]
Branch {
DstBlock "dq2abc"
DstPort 2
}
Branch {
DstBlock "dq2abc"
DstPort 3
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "iqref"
DstPort 1
}
Line {
SrcBlock "Speed Ref"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "iqref"
SrcPort 1
DstBlock "dq2abc"
DstPort 1
}
Line {
SrcBlock "dq2abc"
SrcPort 1
DstBlock "PWM\nInverter"
DstPort 2
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "PWM\nInverter"
SrcPort RConn1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort LConn1
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
DstBlock "Machines\nMeasurement\nDemux"
DstPort 1
}
Line {
SrcBlock "vbc"
SrcPort 1
DstBlock "vbc (V)"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 4
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [10, 0; 0, 110; -605, 0]
DstBlock "dq2abc"
DstPort 4
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 2
DstBlock "vbc (V)2"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 3
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [0, -60; -795, 0; 0, 80; 70, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 1
Points [0, -25; -400, 0]
DstBlock "PWM\nInverter"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 5
Points [15, 0; 0, 25]
DstBlock "vbc (V)1"
DstPort 1
}
Annotation {
Name "Permanent magnet synchronous motor fed by PWM i"
"nverter"
Position [411, 390]
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -