📄 smithbuchang.mdl
字号:
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 45, 215, 65]
ShowName off
FontName "Arial"
FontSize 12
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [520, 125, 540, 145]
Orientation "down"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [480, 100, 500, 120]
ShowName off
FontName "Arial"
FontSize 12
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [200, 270, 220, 290]
ShowName off
FontName "Arial"
FontSize 12
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "被控对象"
Position [315, 37, 375, 73]
FontName "Arial"
FontSize 12
Denominator "[20 1]"
}
Block {
BlockType TransferFcn
Name "被控对象1"
Position [320, 262, 380, 298]
FontName "Arial"
FontSize 12
Denominator "[20 1]"
}
Block {
BlockType TransferFcn
Name "补偿"
Position [320, 92, 380, 128]
FontName "Arial"
FontSize 12
Denominator "[20 1]"
}
Block {
BlockType TransportDelay
Name "补偿滞后1"
Position [420, 95, 450, 125]
FontName "Arial"
FontSize 12
DelayTime "4"
}
Block {
BlockType Scope
Name "参数显示"
Ports [1]
Position [560, 39, 590, 71]
FontName "Arial"
FontSize 12
Location [266, 234, 590, 474]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "参数显示1"
Ports [1]
Position [565, 99, 595, 131]
FontName "Arial"
FontSize 12
Location [252, 180, 543, 366]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "参数显示2"
Ports [1]
Position [505, 264, 535, 296]
FontName "Arial"
FontSize 12
Location [266, 234, 567, 412]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Step
Name "给定值"
Position [135, 40, 165, 70]
FontName "Arial"
FontSize 12
Time "0"
After "3"
SampleTime "0"
}
Block {
BlockType Step
Name "给定值1"
Position [140, 265, 170, 295]
FontName "Arial"
FontSize 12
Time "0"
After "3"
SampleTime "0"
}
Block {
BlockType TransportDelay
Name "滞后"
Position [420, 40, 450, 70]
FontName "Arial"
FontSize 12
DelayTime "4"
}
Block {
BlockType TransportDelay
Name "滞后1"
Position [425, 265, 455, 295]
FontName "Arial"
FontSize 12
DelayTime "4"
}
Line {
SrcBlock "给定值"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID 控制器"
DstPort 1
}
Line {
SrcBlock "PID 控制器"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 55]
DstBlock "补偿"
DstPort 1
}
Branch {
DstBlock "被控对象"
DstPort 1
}
}
Line {
SrcBlock "被控对象"
SrcPort 1
DstBlock "滞后"
DstPort 1
}
Line {
SrcBlock "滞后"
SrcPort 1
Points [0, 0; 80, 0]
Branch {
DstBlock "参数显示"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "补偿"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 0]
DstBlock "补偿滞后1"
DstPort 1
}
Branch {
Points [0, 35; 100, 0]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "补偿滞后1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 0, 5]
Branch {
Points [-325, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [20, 0]
DstBlock "参数显示1"
DstPort 1
}
}
Line {
SrcBlock "给定值1"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "PID 控制器1"
DstPort 1
}
Line {
SrcBlock "PID 控制器1"
SrcPort 1
DstBlock "被控对象1"
DstPort 1
}
Line {
SrcBlock "被控对象1"
SrcPort 1
DstBlock "滞后1"
DstPort 1
}
Line {
SrcBlock "滞后1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "参数显示2"
DstPort 1
}
Branch {
Points [0, 45; -265, 0]
DstBlock "Sum3"
DstPort 2
}
}
Annotation {
Name "带smith补偿器控制系统"
Position [361, 167]
FontSize 12
}
Annotation {
Name "单回路控制系统"
Position [341, 344]
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -