📄 pidex3.mdl
字号:
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "127"
Block {
BlockType Inport
Name "er"
Position [15, 93, 45, 107]
}
Block {
BlockType Constant
Name "Constant"
Position [110, 109, 135, 131]
ShowName off
Value "0"
}
Block {
BlockType Derivative
Name "Derivative"
Position [230, 135, 260, 165]
ShowName off
}
Block {
BlockType Gain
Name "Gain"
Position [80, 85, 120, 115]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [90, 36, 120, 64]
ShowName off
Gain "Kp"
}
Block {
BlockType Gain
Name "Gain2"
Position [90, 135, 120, 165]
ShowName off
Gain "Kd"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [255, 95, 275, 125]
ShowName off
}
Block {
BlockType Saturate
Name "Saturation"
Position [365, 100, 385, 120]
ShowName off
UpperLimit "sat"
LowerLimit "-sat"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [315, 100, 335, 120]
ShowName off
IconShape "round"
Inputs "+++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [335, 165, 355, 185]
Orientation "left"
ShowName off
IconShape "round"
Inputs "-+"
}
Block {
BlockType Switch
Name "Switch"
Position [180, 91, 210, 129]
InputSameDT off
}
Block {
BlockType Outport
Name "c"
Position [410, 103, 440, 117]
InitialOutput "0"
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [200, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "er"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -50]
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Gain2"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [60, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Derivative"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Saturation"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "c"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [-185, 0; 0, -65]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Annotation {
Name "antiwindup action by stopping integration"
Position [195, 81]
}
Annotation {
Name "limiter"
Position [371, 84]
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [95, 90, 115, 110]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Step
Name "input"
Position [25, 85, 55, 115]
ForegroundColor "darkGreen"
Time ".05"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "plant"
Ports [1, 1]
Position [240, 66, 350, 134]
BackgroundColor "orange"
ShowName off
TreatAsAtomicUnit off
MaskPromptString "Gain|Time constant [s]|Time delay [s]"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Ka=@1;Ta=@2;Td=@3;"
MaskDisplay "disp('PLANT3')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|0.25|0.05"
System {
Name "plant"
Location [566, 536, 944, 686]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "136"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
ForegroundColor "red"
}
Block {
BlockType TransferFcn
Name "G(s)"
Position [80, 27, 140, 63]
ForegroundColor "red"
Numerator "[Ka]"
Denominator "[Ta 1]"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [175, 30, 205, 60]
ForegroundColor "red"
DelayTime "Td"
BufferSize "2048"
}
Block {
BlockType Outport
Name "Out1"
Position [230, 38, 260, 52]
ForegroundColor "red"
}
Line {
SrcBlock "G(s)"
SrcPort 1
DstBlock "Transport\nDelay"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "G(s)"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "response"
Ports [1]
Position [460, 68, 490, 112]
ForegroundColor "darkGreen"
Location [631, 605, 1125, 822]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "System response 3"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "0"
YMax "1.5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Line {
SrcBlock "plant"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Labels [1, 0]
Points [0, 75; -275, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID controller"
DstPort 1
}
Line {
SrcBlock "PID controller"
SrcPort 1
DstBlock "plant"
DstPort 1
}
Line {
SrcBlock "input"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -55; 305, 0; 0, 35]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "response"
DstPort 1
}
Annotation {
Name "EXAMPLE 3"
Position [259, 24]
ForegroundColor "white"
BackgroundColor "blue"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Kpu = 8.5\n Tu = 0.19"
Position [485, 158]
FontName "Arial"
FontSize 16
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -