📄 pmsm_vector.mdl
字号:
SrcBlock "Sum1"
SrcPort 1
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [25, 0]
DstBlock "Trigonometric\nFunction2"
DstPort 1
}
Line {
SrcBlock "2/3"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, 75; 95, 0]
DstBlock "Sum2"
DstPort 2
}
Branch {
DstBlock "Gain5"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "i*abc"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Gain5"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "de"
SrcPort 1
Points [65, 0]
Branch {
Points [5, 0]
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Branch {
Points [0, 70; 15, 0]
Branch {
Points [0, 70]
DstBlock "Sum2"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "Trigonometric\nFunction2"
SrcPort 1
Points [45, 0; 0, -5]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "is1"
SrcPort 1
Points [285, 0]
Branch {
Points [0, -160]
DstBlock "Product2"
DstPort 2
}
Branch {
Points [25, 0]
Branch {
Points [20, 0; 0, -50]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -105]
DstBlock "Product1"
DstPort 2
}
}
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [180, 205, 200, 225]
ShowName off
Inputs "+-"
}
Block {
BlockType Scope
Name "Te (N.m)"
Ports [1]
Position [790, 195, 820, 225]
BackgroundColor "green"
Floating off
Location [24, 196, 716, 685]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-1"
YMax "2.25"
SaveName "ScopeData2"
DataFormat "Structure"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Constant
Name "ioref1"
Position [225, 165, 245, 185]
ShowName off
Value "2*pi/3"
}
Block {
BlockType SubSystem
Name "iqref"
Ports [1, 1]
Position [225, 203, 250, 227]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
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 "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In_1"
Position [25, 75, 45, 95]
IconDisplay "Port number"
}
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"
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 [790, 90, 820, 120]
BackgroundColor "green"
Floating off
Location [154, 132, 853, 620]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-6"
YMax "6"
SaveName "ScopeData3"
DataFormat "Structure"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Constant
Name "speed ref"
Position [115, 198, 145, 222]
Value "1000"
}
Block {
BlockType Reference
Name "vbc"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [495, 258, 520, 282]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "1"
}
Block {
BlockType Scope
Name "vbc (V)"
Ports [1]
Position [560, 255, 590, 285]
BackgroundColor "green"
Floating off
Location [14, 223, 991, 834]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-400"
YMax "400"
SaveName "ScopeData4"
DataFormat "Structure"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "we (rad/s)"
Ports [1]
Position [790, 145, 820, 175]
BackgroundColor "green"
Floating off
Location [155, 254, 788, 756]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "499.2"
YMax "500.2"
DataFormat "Structure"
LimitDataPoints off
SampleTime "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "iqref"
DstPort 1
}
Line {
SrcBlock "speed ref"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 4
}
Line {
SrcBlock "PWM inv."
SrcPort 1
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 1
}
Line {
SrcBlock "PWM inv."
SrcPort 2
Points [35, 0]
Branch {
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 2
}
Branch {
Points [0, 105]
DstBlock "vbc"
DstPort 1
}
}
Line {
SrcBlock "PWM inv."
SrcPort 3
Points [20, 0]
Branch {
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 3
}
Branch {
Points [0, 95]
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; 0, 0]
Branch {
Points [-345, 0; 0, 40]
DstBlock "PWM inv."
DstPort 1
}
Branch {
DstBlock "is_abc (A)"
DstPort 1
}
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 4
Points [90, 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 {
Points [0, 270; -590, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [20, 0]
DstBlock "we (rad/s)"
DstPort 1
}
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 3
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [10, 0; 0, 135; -465, 0; 0, -160]
DstBlock "Subsystem2"
DstPort 1
}
Line {
SrcBlock "Subsystem2"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "PWM inv."
DstPort 2
}
Branch {
Points [0, 85]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "ioref1"
SrcPort 1
DstBlock "Subsystem2"
DstPort 2
}
Line {
SrcBlock "iqref"
SrcPort 1
Points [30, 0; 0, -20]
DstBlock "Subsystem2"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -