📄 untitled127.mdl
字号:
FontSize 12
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [555, 87, 565, 203]
ShowName off
FontSize 12
CollapseMode "All dimensions"
}
Block {
BlockType Terminator
Name "Terminator_1"
Position [940, 255, 985, 265]
ShowName off
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [220, 164, 235, 186]
ShowName off
FontSize 12
SampleTime "Tsc"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [220, 269, 235, 291]
ShowName off
FontSize 12
SampleTime "Tsc"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold5"
Position [220, 104, 235, 126]
ShowName off
FontSize 12
SampleTime "Tsc"
}
Block {
BlockType Outport
Name "Flux*"
Position [940, 33, 970, 47]
FontSize 12
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Torque*"
Position [940, 138, 970, 152]
FontSize 12
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 3
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 1
}
Line {
Name "Error"
Labels [1, 1]
SrcBlock "Multiport\nSwitch2"
SrcPort 1
DstBlock "Bus\nCreator3"
DstPort 3
}
Line {
Name "Reference"
Labels [-1, 1]
SrcBlock "Multiport\nSwitch1"
SrcPort 1
DstBlock "Bus\nCreator3"
DstPort 4
}
Line {
SrcBlock "Zero-Order\nHold3"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 45]
DstBlock "Multiport\nSwitch1"
DstPort 3
}
Branch {
Points [350, 0; 0, -120]
DstBlock "Multiport\nSwitch"
DstPort 3
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 1
}
Line {
SrcBlock "Multiport\nSwitch"
SrcPort 1
DstBlock "Ctrl sat."
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold5"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 195]
DstBlock "Multiport\nSwitch1"
DstPort 2
}
Branch {
Points [15, 0]
Branch {
Points [0, -75]
DstBlock "Abs"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "Rate Limiter"
SrcPort 1
DstBlock "Zero-Order\nHold5"
DstPort 1
}
Line {
SrcBlock "N*"
SrcPort 1
Points [65, 0; 0, 10]
DstBlock "IC"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Low pass filter"
DstPort 1
}
Line {
SrcBlock "IC"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 165]
DstBlock "Zero-Order\nHold3"
DstPort 1
}
Branch {
DstBlock "Rate Limiter"
DstPort 1
}
}
Line {
SrcBlock "Rate Transition1"
SrcPort 1
DstBlock "Flux*"
DstPort 1
}
Line {
Name "Flux reference (Wb)"
SrcBlock "Flux table"
SrcPort 1
Points [155, 0]
Branch {
DstBlock "Rate Transition1"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, 200]
DstBlock "Bus\nCreator3"
DstPort 2
}
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Flux table"
DstPort 1
}
Line {
SrcBlock "Proportional gain"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Discrete-Time\nIntegrator2"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "N"
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 60]
Branch {
Points [0, 100]
DstBlock "Multiport\nSwitch2"
DstPort 2
}
Branch {
DstBlock "Proportional gain"
DstPort 1
}
}
Branch {
DstBlock "Integral gain"
DstPort 1
}
}
Line {
SrcBlock "Integral gain"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator2"
DstPort 1
}
Line {
Name "Torque reference (Nm)"
SrcBlock "Ctrl sat."
SrcPort 1
Points [5, 0]
Branch {
Labels [2, 0]
Points [0, 60]
DstBlock "Bus\nCreator3"
DstPort 1
}
Branch {
DstBlock "Torque*"
DstPort 1
}
}
Line {
SrcBlock "Low pass filter"
SrcPort 1
Points [15, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Bus\nCreator3"
SrcPort 1
DstBlock "Terminator_1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Speed reference"
Ports [0, 1]
Position [75, 151, 140, 169]
NamePlacement "alternate"
FontSize 12
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Speed reference"
Location [664, 452, 898, 532]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Timer"
Ports [0, 1]
Position [45, 16, 90, 54]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Control \nBlocks/Timer"
SourceType "Timer"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
t "[0 1]"
e "[500 0]"
}
Block {
BlockType Outport
Name " "
Position [160, 28, 190, 42]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Timer"
SrcPort 1
DstBlock " "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [4, 3]
Position [515, 67, 585, 263]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [145, 144, 1138, 720]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Torque*"
Position [25, 38, 55, 52]
FontSize 12
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "I_ab"
Position [15, 138, 45, 152]
FontSize 12
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Flux*"
Position [25, 83, 55, 97]
FontSize 12
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "V_abc"
Position [15, 213, 45, 227]
FontSize 12
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [855, 390, 945, 420]
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [805, 455, 895, 485]
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [810, 305, 900, 335]
Decimation "1"
Lockdown off
}
Block {
BlockType SubSystem
Name "Flux & Torque hysteresis"
Ports [4, 2]
Position [290, 21, 390, 194]
NamePlacement "alternate"
FontSize 12
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Flux & Torque hysteresis"
Location [374, 204, 1005, 476]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Torque*"
Position [30, 38, 60, 52]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Flux*"
Position [30, 198, 60, 212]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Torque"
Position [30, 78, 60, 92]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -