📄 dcmotspdb.mdl
字号:
Line {
SrcBlock "we"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -55]
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [180, 120, 200, 140]
ShowName off
IconShape "round"
Inputs "|+-"
Port {
PortNumber 1
Name "we"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [335, 120, 355, 140]
ShowName off
IconShape "round"
Inputs "|+-"
Port {
PortNumber 1
Name "ie"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Step
Name "Tl"
Position [410, 165, 440, 195]
Time "0.07"
SampleTime "0"
}
Block {
BlockType Scope
Name "current"
Ports [1]
Position [360, 39, 390, 71]
Location [580, 134, 1124, 433]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Armature current [A]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.1"
YMin "-25"
YMax "25"
DataFormat "StructureWithTime"
MaxDataPoints "15000"
}
Block {
BlockType SubSystem
Name "cycle\n average"
Ports [1, 1]
Position [465, 20, 505, 50]
ForegroundColor "blue"
TreatAsAtomicUnit off
System {
Name "cycle\n average"
Location [544, 522, 961, 676]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "sig"
Position [25, 38, 55, 52]
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [80, 30, 110, 60]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [260, 35, 280, 55]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay 1/fo"
Position [225, 70, 255, 100]
DelayTime "1/1000"
}
Block {
BlockType Gain
Name "fo"
Position [135, 28, 180, 62]
Gain "1000"
}
Block {
BlockType Outport
Name "ave"
Position [305, 38, 335, 52]
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "fo"
DstPort 1
}
Line {
SrcBlock "fo"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Transport\nDelay 1/fo"
DstPort 1
}
}
Line {
SrcBlock "sig"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay 1/fo"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "ave"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "space vector"
Ports []
Position [57, 210, 125, 276]
ForegroundColor "orange"
DropShadow on
ShowName off
OpenFcn "close all,figure(1),plot(t,spd(:,1),'-r',t,spd("
":,2),'-b'),grid,xlabel('TIME [s]'),ylabel('SPEED [rad/s]'),figure(2),plot(t,c"
"ur(:,1),'-r',t,cur(:,2),'-b'),grid,xlabel('TIME [s]'),ylabel('CURRENT [A]')"
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "disp('Plots')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "space vector"
Location [81, 508, 528, 696]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Scope
Name "speed"
Ports [1]
Position [200, 44, 230, 76]
Location [28, 134, 571, 433]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "Speed [rad/s]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.1"
YMin "-150"
YMax "150"
DataFormat "StructureWithTime"
MaxDataPoints "15000"
}
Block {
BlockType Scope
Name "va"
Ports [1]
Position [550, 49, 580, 81]
Location [580, 499, 1123, 786]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Armature voltage [V]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.1"
YMin "-80"
YMax "80"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
MaxDataPoints "6000"
}
Block {
BlockType Outport
Name "spd"
Position [200, 13, 230, 27]
}
Block {
BlockType Outport
Name "cur"
Position [360, 13, 390, 27]
Port "2"
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "speed"
DstPort 1
}
Branch {
DstBlock "spd"
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "current"
DstPort 1
}
Branch {
DstBlock "cur"
DstPort 1
}
}
Line {
Name "wc"
Labels [0, 1]
SrcBlock "Look-Up\nTable"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Mux1"
DstPort 1
}
}
Line {
Name "we"
Labels [1, 0]
SrcBlock "Sum3"
SrcPort 1
DstBlock "Speed controller"
DstPort 1
}
Line {
Name "ie"
Labels [0, 1]
SrcBlock "Sum4"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
Name "va"
Labels [0, 0]
SrcBlock "Relay"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "cycle\n average"
DstPort 1
}
Branch {
Labels [1, 0]
Points [50, 0]
Branch {
DstBlock "DC \nMOTOR"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Mux3"
DstPort 2
}
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Look-Up\nTable"
DstPort 1
}
Line {
SrcBlock "Speed controller"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum4"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "Mux2"
DstPort 1
}
}
Line {
Name "wm"
Labels [1, 0]
SrcBlock "DC \nMOTOR"
SrcPort 2
Points [45, 0; 0, 80; -250, 0]
Branch {
Points [-270, 0]
Branch {
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [-35, 0]
DstBlock "Mux1"
DstPort 2
}
}
Branch {
DstBlock "Sign"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "DC \nMOTOR"
DstPort 2
}
Line {
SrcBlock "Tl"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
Name "ia"
Labels [0, 0]
SrcBlock "DC \nMOTOR"
SrcPort 1
Points [15, 0; 0, 110; -335, 0]
Branch {
DstBlock "Sum4"
DstPort 2
}
Branch {
Points [-30, 0; 0, -170]
DstBlock "Mux2"
DstPort 2
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "va"
DstPort 1
}
Line {
SrcBlock "cycle\n average"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Annotation {
Name "voltage"
Position [563, 38]
}
Annotation {
Name "speed loop"
Position [304, 280]
FontSize 12
}
Annotation {
Name "current loop"
Position [390, 251]
FontSize 12
}
Annotation {
Name "CASCADE SPEED CONTROL OF A DC MOTOR DRIVE"
Position [409, 308]
ForegroundColor "red"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -