?? pmsminv.mdl
字號(hào):
"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 "PIDd1"
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 "Proportional"
SrcPort 1
Points [65, 0; 0, 40]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Integral"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [20, 0; 0, -55]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "Integral"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Proportional"
DstPort 1
}
}
Branch {
Points [0, 65]
DstBlock "D"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "D"
SrcPort 1
DstBlock "Derivative"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [70, 218, 105, 247]
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [320, 180, 340, 200]
ShowName off
IconShape "round"
Inputs "-|+"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [325, 255, 345, 275]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [510, 180, 530, 200]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [535, 255, 555, 275]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [765, 435, 785, 455]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType SubSystem
Name "calculate Ploss"
Ports [4, 1]
Position [355, 477, 460, 553]
TreatAsAtomicUnit off
System {
Name "calculate Ploss"
Location [20, 89, 1009, 727]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Ids"
Position [70, 98, 100, 112]
}
Block {
BlockType Inport
Name "Iqs"
Position [70, 368, 100, 382]
Port "2"
}
Block {
BlockType Inport
Name "wr"
Position [75, 188, 105, 202]
Port "3"
}
Block {
BlockType Inport
Name "Ploss mth"
Position [70, 468, 100, 482]
Port "4"
}
Block {
BlockType Gain
Name "1.5*Rs"
Position [505, 395, 535, 425]
Gain "1.5*Rs"
Port {
PortNumber 1
Name "Pcu loss"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "1.5/Rc"
Position [485, 180, 515, 210]
Gain "1.5/Rc"
Port {
PortNumber 1
Name "Pcore loss"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
}
}
Block {
BlockType Gain
Name "1/Rc"
Position [275, 190, 305, 220]
Gain "1/Rc"
}
Block {
BlockType Constant
Name "Constant"
Position [90, 244, 110, 266]
Value "Fmf"
}
Block {
BlockType Constant
Name "Constant1"
Position [690, 270, 720, 300]
}
Block {
BlockType Gain
Name "Gain"
Position [125, 290, 155, 320]
Gain "Ld"
}
Block {
BlockType Gain
Name "Gain2"
Position [145, 115, 175, 145]
Gain "Lq"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [815, 190, 845, 220]
InitialCondition "1"
LimitOutput on
UpperSaturationLimit "1"
LowerSaturationLimit "0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [200, 188, 225, 217]
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [200, 124, 230, 151]
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [285, 257, 315, 288]
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [275, 144, 305, 171]
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [200, 423, 225, 452]
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [195, 48, 220, 77]
}
Block {
BlockType Product
Name "Product6"
Ports [2, 1]
Position [675, 184, 710, 226]
ShowName off
Inputs "*/"
InputSameDT off
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [665, 84, 695, 116]
BackgroundColor "green"
Location [278, 448, 602, 687]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
YMax "11000"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [155, 245, 175, 265]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [335, 195, 355, 215]
ShowName off
IconShape "round"
Inputs "|-+"
Port {
PortNumber 1
Name "Iq"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [330, 95, 350, 115]
ShowName off
IconShape "round"
Inputs "|++"
Port {
PortNumber 1
Name "Id"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [440, 185, 460, 205]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [460, 400, 480, 420]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [595, 185, 615, 205]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [740, 195, 760, 215]
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Outport
Name "Is/ Islim"
Position [900, 198, 930, 212]
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [5, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "wr"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, -45]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "1/Rc"
DstPort 1
}
Branch {
Points [0, 60]
Branch {
Points [0, 15]
DstBlock "Product2"
DstPort 2
}
Branch {
DstBlock "Product2"
DstPort 1
}
}
}
Line {
SrcBlock "1/Rc"
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -