📄 dtc.mdl
字号:
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, -55]
Branch {
DstBlock "1+Lsita/L"
DstPort 1
}
Branch {
Points [0, -25]
Branch {
Points [435, 0; 0, 75]
DstBlock "Product6"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "phisq"
DstPort 1
}
}
}
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [10, 0]
Branch {
Points [25, 0]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, 65]
Branch {
DstBlock "1+Lsita/L1"
DstPort 1
}
Branch {
Points [0, 35; 415, 0; 0, -195]
DstBlock "Product5"
DstPort 2
}
}
}
Branch {
Points [0, -55]
DstBlock "phisd"
DstPort 1
}
}
Line {
SrcBlock "Usq"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Rr/Lsita"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Rr/Lsita"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -5]
Branch {
Points [0, -30; -175, 0]
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, 85; -75, 0]
DstBlock "Product1"
DstPort 2
}
}
Branch {
Points [20, 0]
Branch {
DstBlock "phirq"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Sum8"
DstPort 2
}
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Rr/Lsita1"
DstPort 1
}
Line {
SrcBlock "Rr/Lsita1"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Integrator3"
DstPort 1
}
Line {
SrcBlock "Integrator3"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "phird"
DstPort 1
}
Branch {
Points [0, -15]
Branch {
Points [0, -70]
DstBlock "Product4"
DstPort 2
}
Branch {
Points [95, 0]
DstBlock "Sum9"
DstPort 1
}
}
Branch {
Points [0, 35; -180, 0]
DstBlock "Sum3"
DstPort 2
}
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "Product6"
SrcPort 1
Points [10, 0; 0, 5]
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Product5"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Te"
DstPort 1
}
Branch {
Points [0, 80; -125, 0; 0, 35]
DstBlock "Sum7"
DstPort 1
}
}
Line {
SrcBlock "TI"
SrcPort 1
DstBlock "Sum7"
DstPort 2
}
Line {
SrcBlock "Sum7"
SrcPort 1
DstBlock "np/J"
DstPort 1
}
Line {
SrcBlock "np/J"
SrcPort 1
DstBlock "Integrator5"
DstPort 1
}
Line {
SrcBlock "Integrator5"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 110; -900, 0; 0, -185; 400, 0; 0, -5]
Branch {
DstBlock "Product4"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 1
}
}
Branch {
DstBlock "Gain3"
DstPort 1
}
}
Line {
SrcBlock "1+Lsita/L"
SrcPort 1
DstBlock "Sum8"
DstPort 1
}
Line {
SrcBlock "1+Lsita/L1"
SrcPort 1
DstBlock "Sum9"
DstPort 2
}
Line {
SrcBlock "Sum9"
SrcPort 1
DstBlock "1/Lsita1"
DstPort 1
}
Line {
SrcBlock "1/Lsita1"
SrcPort 1
Points [0, -5]
Branch {
Points [0, -200]
DstBlock "Product6"
DstPort 2
}
Branch {
Points [0, 5; 30, 0]
Branch {
DstBlock "isd"
DstPort 1
}
Branch {
Points [0, 70; -670, 0; 0, -95]
DstBlock "Rs1"
DstPort 1
}
}
}
Line {
SrcBlock "Sum8"
SrcPort 1
DstBlock "1/Lsita"
DstPort 1
}
Line {
SrcBlock "1/Lsita"
SrcPort 1
Points [0, 5]
Branch {
Points [0, 85]
DstBlock "Product5"
DstPort 1
}
Branch {
Points [0, -5; 45, 0]
Branch {
DstBlock "isq"
DstPort 1
}
Branch {
Points [0, -65; -735, 0; 0, 130]
DstBlock "Rs"
DstPort 1
}
}
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "n"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "扇区判断"
Ports [1, 1]
Position [275, 150, 335, 180]
FunctionName "sector"
}
Block {
BlockType SubSystem
Name "转矩调节"
Ports [1, 1]
Position [375, 251, 450, 279]
TreatAsAtomicUnit off
System {
Name "转矩调节"
Location [0, 82, 1012, 743]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Delta_Te "
Position [25, 53, 55, 67]
}
Block {
BlockType Relay
Name "Relay"
Position [195, 45, 225, 75]
OnSwitchValue "2"
OffSwitchValue "0"
}
Block {
BlockType Relay
Name "Relay1"
Position [195, 95, 225, 125]
OnSwitchValue "0"
OffSwitchValue "-2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [255, 51, 275, 104]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "TK"
Position [345, 73, 375, 87]
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Delta_Te "
SrcPort 1
Points [90, 0]
Branch {
Points [0, 50]
DstBlock "Relay1"
DstPort 1
}
Branch {
DstBlock "Relay"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "TK"
DstPort 1
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [0, -20]
DstBlock "Sum"
DstPort 2
}
Annotation {
Position [643, 122]
}
}
}
Block {
BlockType Step
Name "转矩给定2"
Position [70, 290, 100, 320]
Time "0.2"
Before "10"
After "50"
SampleTime "0"
}
Block {
BlockType Outport
Name "Te1"
Position [165, 73, 195, 87]
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "扇区判断"
DstPort 1
}
Line {
SrcBlock "扇区判断"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "磁链调节 "
DstPort 1
}
Line {
SrcBlock "磁链调节 "
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "查表函数"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [200, 0]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "转矩调节"
DstPort 1
}
Branch {
Points [0, 65; 170, 0; 0, -35]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Con"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "S-Function3"
DstPort 1
}
Line {
SrcBlock "S-Function3"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 1
DstBlock "Subsystem3"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 2
DstBlock "Subsystem3"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 3
DstBlock "Subsystem3"
DstPort 3
}
Line {
SrcBlock "Subsystem3"
SrcPort 1
Points [10, 0; 0, -50; -205, 0]
Branch {
Points [-370, 0; 0, -5]
Branch {
Points [0, -35]
DstBlock "Te1"
DstPort 1
}
Branch {
Points [-50, 0; 0, 125]
DstBlock "电机模型"
DstPort 2
}
}
Branch {
Points [0, -50]
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "转矩调节"
SrcPort 1
DstBlock "Data "
DstPort 1
}
Line {
SrcBlock "Data "
SrcPort 1
Points [15, 0]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "电机模型"
SrcPort 7
Points [5, 0; 55, 0]
Branch {
Points [0, -35]
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "转矩给定2"
SrcPort 1
DstBlock "电机模型"
DstPort 3
}
Line {
SrcBlock "Con2"
SrcPort 1
Points [45, 0; 0, -30]
DstBlock "Subsystem1"
DstPort 2
}
Line {
SrcBlock "查表函数"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "电机模型"
SrcPort 8
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Subsystem3"
SrcPort 2
Points [20, 0; 0, -90; -350, 0]
Branch {
Points [-260, 0]
DstBlock "电机模型"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "电机模型"
SrcPort 2
Points [25, 0; 0, -25; 15, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "XY Graph"
DstPort 1
}
}
Line {
SrcBlock "电机模型"
SrcPort 1
Points [0, -15; 20, 0]
Branch {
Points [15, 0; 0, 40]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -50]
DstBlock "XY Graph"
DstPort 2
}
}
Line {
SrcBlock "电机模型"
SrcPort 3
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "电机模型"
SrcPort 4
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 0, 15]
Branch {
DstBlock "Subsystem1"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Scope2"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -