📄 n_test3.mdl
字号:
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [380, 690, 400, 710]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "kd"
Ports [1, 1]
Position [530, 141, 590, 189]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "KDP"
}
Block {
BlockType Reference
Name "kd "
Ports [1, 1]
Position [530, 401, 590, 449]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "KDP"
}
Block {
BlockType Reference
Name "kd "
Ports [1, 1]
Position [515, 666, 575, 714]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "KDP"
}
Block {
BlockType Reference
Name "kp "
Ports [1, 1]
Position [530, 71, 590, 119]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "KPP"
}
Block {
BlockType Reference
Name "kp "
Ports [1, 1]
Position [530, 331, 590, 379]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "KPP"
}
Block {
BlockType Reference
Name "kp "
Ports [1, 1]
Position [515, 601, 575, 649]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "KPP"
}
Block {
BlockType Fcn
Name "pd1"
Position [710, 120, 770, 150]
Expr "u(1)*(u(3)-u(5))+u(2)*(u(4)-u(6))"
SampleTime ".02"
}
Block {
BlockType Fcn
Name "pd2"
Position [710, 380, 770, 410]
Expr "u(1)*(u(3)-u(5))+u(2)*(u(4)-u(6))"
SampleTime ".02"
}
Block {
BlockType Fcn
Name "pd3"
Position [705, 650, 765, 680]
Expr "u(1)*(u(3)-u(5))+u(2)*(u(4)-u(6))"
SampleTime ".02"
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -35]
DstBlock "kp "
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "kd "
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -30]
DstBlock "kp "
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "kd "
DstPort 1
}
}
Line {
SrcBlock "kp "
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "kd "
SrcPort 1
Points [10, 0; 0, -55; 20, 0]
Branch {
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [0, -55]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "kp "
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "kd "
SrcPort 1
Points [10, 0; 0, -50]
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "pd3"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "pd2"
DstPort 1
}
Line {
SrcBlock "Mux6"
SrcPort 1
DstBlock "pd1"
DstPort 1
}
Line {
SrcBlock "kd"
SrcPort 1
Points [10, 0; 0, -55]
Branch {
DstBlock "Mux6"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "kp "
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Mux6"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -35]
DstBlock "kp "
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "kd"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [30, 0; 0, -20]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [30, 0; 0, -25]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Sum5"
SrcPort 1
Points [25, 0; 0, -35]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "From\nWorkspace"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock " "
DstPort 2
}
Branch {
Points [0, 25]
Branch {
Points [0, 5]
DstBlock "Memory"
DstPort 1
}
Branch {
Points [0, 25]
Branch {
DstBlock "Mux5"
DstPort 2
}
Branch {
Points [0, 95; 115, 0]
Branch {
DstBlock " 1"
DstPort 2
}
Branch {
Points [15, 0; 0, 30]
Branch {
Points [0, 5]
DstBlock "Memory3"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Mux9"
DstPort 2
}
}
}
}
}
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "R/D"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock " "
DstPort 1
}
Branch {
Points [0, 40]
DstBlock " "
DstPort 1
}
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Memory"
SrcPort 1
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock " "
DstPort 2
}
Line {
SrcBlock "From\nWorkspace1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 40]
Branch {
Points [0, -5]
DstBlock "Memory1"
DstPort 1
}
Branch {
Points [0, 15]
Branch {
DstBlock "Mux7"
DstPort 2
}
Branch {
Labels [1, 0]
Points [0, 75; 130, 0]
Branch {
DstBlock " 1"
DstPort 2
}
Branch {
Points [0, 45]
Branch {
DstBlock "Memory4"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Mux10"
DstPort 2
}
}
}
}
}
Branch {
DstBlock " "
DstPort 2
}
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "R/D1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock " "
Dst
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -