?? pmsminv.mdl
字號:
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [375, 277, 415, 348]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [695, 237, 725, 268]
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [695, 347, 725, 378]
Inputs "+-"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [485, 290, 515, 320]
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [485, 355, 515, 385]
Operator "cos"
}
Block {
BlockType Outport
Name "Xd"
Position [755, 358, 785, 372]
}
Block {
BlockType Outport
Name "Xq"
Position [750, 248, 780, 262]
Port "2"
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Xd"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Xq"
DstPort 1
}
Line {
SrcBlock "XABC"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [30, 0; 0, 20; 95, 0]
Branch {
Points [0, -110]
DstBlock "Gain3"
DstPort 1
}
Branch {
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Trigonometric\nFunction1"
SrcPort 1
Points [0, 0; 70, 0]
Branch {
Points [0, -140]
DstBlock "Product Xsa*cosa"
DstPort 2
}
Branch {
Points [0, 35]
DstBlock "Product3 Xsb*cosa"
DstPort 2
}
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [0, -25]
DstBlock "Product1 Xsb*sina"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "Product2 Xsa*sina"
DstPort 2
}
}
Line {
SrcBlock "theta"
SrcPort 1
Points [0, 0; 0, -70]
Branch {
Points [0, -65]
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Branch {
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
}
Line {
SrcBlock "Product Xsa*cosa"
SrcPort 1
Points [30, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Product1 Xsb*sina"
SrcPort 1
Points [30, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [15, 0; 0, 15]
Branch {
DstBlock "Product Xsa*cosa"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Product2 Xsa*sina"
DstPort 1
}
}
Line {
SrcBlock "Gain5"
SrcPort 1
Points [0, 10; 45, 0]
Branch {
DstBlock "Product1 Xsb*sina"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Product3 Xsb*cosa"
DstPort 1
}
}
Line {
SrcBlock "Product2 Xsa*sina"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Product3 Xsb*cosa"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [60, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [40, 0; 0, -20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [20, 0]
DstBlock "Gain5"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Annotation {
Name "ia"
Position [523, 194]
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [185, 65, 215, 95]
BackgroundColor "cyan"
ShowName off
Value "2"
}
Block {
BlockType Constant
Name "Constant1"
Position [185, 110, 215, 140]
BackgroundColor "cyan"
ShowName off
Value "120"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [680, 216, 685, 334]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType SubSystem
Name "GCU"
Ports [7, 1]
Position [515, 218, 645, 332]
TreatAsAtomicUnit off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "GCU"
Location [9, 90, 1001, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Is"
Position [15, 218, 45, 232]
}
Block {
BlockType Inport
Name "Id"
Position [285, 153, 315, 167]
Port "2"
}
Block {
BlockType Inport
Name "Iq"
Position [300, 318, 330, 332]
Port "3"
}
Block {
BlockType Inport
Name "Wr"
Position [185, 378, 215, 392]
Port "4"
}
Block {
BlockType Inport
Name "Udc"
Position [715, 303, 745, 317]
Port "5"
}
Block {
BlockType Inport
Name "θ"
Position [560, 293, 590, 307]
Port "6"
}
Block {
BlockType Inport
Name "Ploss"
Position [200, 538, 230, 552]
Port "7"
}
Block {
BlockType Constant
Name "Constant2"
Position [700, 490, 730, 520]
ShowName off
Value "0.99"
}
Block {
BlockType Scope
Name "Ids,Iqs"
Ports [2]
Position [365, 606, 395, 639]
BackgroundColor "green"
Location [490, 408, 814, 647]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-3~99.6"
YMax "-0.5~100"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [655, 430, 685, 460]
Orientation "left"
ShowName off
InitialCondition "1"
LimitOutput on
UpperSaturationLimit "1"
LowerSaturationLimit "0"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [925, 184, 930, 246]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "PIDd"
Ports [1, 1]
Position [405, 175, 435, 205]
BackgroundColor "yellow"
AncestorBlock "simulink_extras/Additional\nLinear/PID Cont"
"roller"
TreatAsAtomicUnit off
MaskType "PID Controller"
MaskDescription "Enter expressions for proportional, integra"
"l, and derivative terms.\nP+I/s+Ds"
MaskHelp "This block implements a PID controller wher"
"e parameters are entered for the Proportional, Integral and Derivative terms."
" Unmask this block to see how it works. The derivative term is implemented us"
"ing a true derivative block."
MaskPromptString "Proportional:|Integral:|Derivative:|Limit V"
"oltage"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "P=@1;I=@2;D=@3;Ulim=@4;"
MaskDisplay "disp('PID')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10|1|0|310"
System {
Name "PIDd"
Location [290, 337, 652, 557]
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, 65, 45, 85]
}
Block {
BlockType Gain
Name "D"
Position [95, 129, 115, 151]
Gain "D"
}
Block {
BlockType Derivative
Name "Derivative"
Position [150, 128, 190, 152]
}
Block {
BlockType TransferFcn
Name "Integral"
Position [110, 57, 145, 93]
Numerator "[I]"
Denominator "[1 0]"
}
Block {
BlockType Gain
Name "Proportional"
Position [120, 13, 140, 37]
Gain "P"
}
Block {
BlockType Saturate
Name "Saturation"
Position [285, 60, 310, 90]
UpperLimit "Ulim"
LowerLimit "-Ulim"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [245, 57, 265, 93]
Inputs "+++"
}
Block {
BlockType Outport
Name "Out_1"
Position [330, 65, 350, 85]
InitialOutput "0"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
Line {
SrcBlock "D"
SrcPort 1
DstBlock "Derivative"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 65]
DstBlock "D"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
Points [0, -50]
DstBlock "Proportional"
DstPort 1
}
Branch {
DstBlock "Integral"
DstPort 1
}
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [20, 0; 0, -55]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Integral"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Proportional"
SrcPort 1
Points [65, 0; 0, 40]
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PIDd1"
Ports [1, 1]
Position [410, 250, 440, 280]
BackgroundColor "yellow"
AncestorBlock "simulink_extras/Additional\nLinear/PID Cont"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -