📄 dcstart1.mdl
字号:
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "Info"
Ports []
Position [60, 186, 111, 226]
ForegroundColor "green"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('INFO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Info"
Location [121, 270, 485, 362]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "This demo simulates the starting of a DC mo"
"tor\nwith automatic starter\n(5 hp 240V 1200 rpm)\nrated torque Tr = 30 N.m\n"
"The starter is simulated by a speed-dependent \neffective armature resistance"
" using a look-up table."
Position [186, 44]
FontName "Arial"
FontSize 11
}
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [310, 95, 340, 125]
ShowName off
Port {
PortNumber 1
Name "ia"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [580, 95, 610, 125]
ShowName off
Port {
PortNumber 1
Name "wm"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Kt"
Position [385, 95, 415, 125]
Gain "1.85"
Port {
PortNumber 1
Name "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Kv"
Position [385, 290, 415, 320]
Orientation "left"
Gain "1.85"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [280, 152, 310, 183]
Orientation "left"
}
Block {
BlockType Gain
Name "Ra"
Position [215, 155, 245, 185]
Orientation "left"
Gain "0.60"
}
Block {
BlockType Reference
Name "Slider\nGain"
Ports [1, 1]
Position [65, 85, 95, 115]
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
low "0"
gain "1"
high "1"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [185, 100, 205, 120]
ShowName off
IconShape "round"
Inputs "|+--"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [440, 100, 460, 120]
ShowName off
IconShape "round"
Inputs "|+--"
}
Block {
BlockType Constant
Name "Tl"
Position [385, 155, 415, 185]
Value "15"
}
Block {
BlockType Gain
Name "Vr\n"
Position [125, 85, 155, 115]
Gain "240"
Port {
PortNumber 1
Name "va"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "current"
Ports [1]
Position [390, 29, 420, 61]
Location [556, 133, 1125, 417]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "4"
YMin "0"
YMax "35"
DataFormat "StructureWithTime"
}
Block {
BlockType Lookup
Name "kr"
Position [385, 220, 415, 250]
Orientation "left"
InputValues "[0 65 65 97.3 97.3 113.5 113.5 121.6 121.6 130]"
OutputValues "[12.5 12.5 6.25 6.25 3.125 3.125 1.5625 1.5625 "
"1 1]"
}
Block {
BlockType Scope
Name "speed"
Ports [1]
Position [670, 94, 700, 126]
Location [557, 481, 1128, 788]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "4"
YMin "-10"
YMax "150"
DataFormat "StructureWithTime"
}
Block {
BlockType Constant
Name "v"
Position [15, 85, 45, 115]
}
Line {
SrcBlock "Kv"
SrcPort 1
Points [-206, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Ra"
SrcPort 1
Points [-15, 0]
DstBlock "Sum"
DstPort 3
}
Line {
Name "wm"
Labels [0, 1]
SrcBlock "Integrator1"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 60]
Branch {
DstBlock "Bm"
DstPort 1
}
Branch {
Points [0, 65]
Branch {
Points [0, 70]
DstBlock "Kv"
DstPort 1
}
Branch {
DstBlock "kr"
DstPort 1
}
}
}
Branch {
DstBlock "speed"
DstPort 1
}
}
Line {
Name "Te"
Labels [-1, 1]
SrcBlock "Kt"
SrcPort 1
Points [9, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
Name "Tf"
Labels [0, 0]
SrcBlock "Bm"
SrcPort 1
Points [-60, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Tl"
SrcPort 1
Points [9, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Ra"
DstPort 1
}
Line {
SrcBlock "Slider\nGain"
SrcPort 1
DstBlock "Vr\n"
DstPort 1
}
Line {
Name "va"
SrcBlock "Vr\n"
SrcPort 1
Points [14, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "v"
SrcPort 1
DstBlock "Slider\nGain"
DstPort 1
}
Line {
SrcBlock "kr"
SrcPort 1
Points [-15, 0; 0, -60]
DstBlock "Product"
DstPort 2
}
Line {
Name "ia"
Labels [1, 0]
SrcBlock "Integrator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Kt"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "current"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Product"
DstPort 1
}
}
Line {
Name "ia"
Labels [0, 0]
SrcBlock "1/La"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/La"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/J"
DstPort 1
}
Line {
Name "wm"
SrcBlock "1/J"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Annotation {
Name "DC MOTOR START"
Position [108, 29]
ForegroundColor "red"
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -