📄 motor.mdl
字号:
}
Block {
BlockType MultiPortSwitch
Inputs "4"
zeroidx off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "motor"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AC Voltage Source3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [200, 183, 235, 207]
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels on
Amplitude "311"
Phase "0"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "AC Voltage Source4"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [200, 233, 235, 257]
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels on
Amplitude "311"
Phase "-120"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "AC Voltage Source5"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [200, 278, 235, 302]
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels on
Amplitude "311"
Phase "120"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Asynchronous Machine\nSI Units1"
Ports [1, 1, 0, 0, 0, 3]
Position [295, 201, 375, 289]
SourceBlock "powerlib/Machines/Asynchronous Machine\nSI Unit"
"s"
SourceType "Asynchronous Machine"
ShowPortLabels on
PresetModel "No"
ShowDetailedParameters on
RotorType "Squirrel-cage"
ReferenceFrame "Rotor"
NominalParameters "[3*746 220 60]"
Stator "[0.435 2.0e-3]"
Rotor "[0.816 2.0e-3]"
Lm "69.31e-3"
Mechanical "[0.089 0 2]"
InitialConditions "[ 1,0 0,0,0 0,0,0 ] "
Units "1"
LoadFlowParameters "0"
}
Block {
BlockType Constant
Name "Constant4"
Position [410, 170, 440, 200]
Orientation "left"
NamePlacement "alternate"
Value "8.84"
}
Block {
BlockType Gain
Name "Gain"
Position [545, 245, 575, 275]
Gain "2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Machines\nMeasurement\nDemux"
Ports [1, 4]
Position [445, 187, 505, 303]
SourceBlock "powerlib/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
ShowPortLabels on
machType "Asynchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 off
sm2 on
sm3 off
sm4 off
sm5 off
sm6 on
sm7 off
sm8 on
sm9 off
sm10 off
sm11 off
sm115 off
sm12 off
sm13 off
sm14 off
asm1 on
asm2 off
asm3 off
asm4 off
asm5 on
asm6 off
asm7 off
asm8 off
asm9 on
asm10 on
asm11 off
pmsm1 on
pmsm2 on
pmsm3 on
pmsm4 on
pmsm5 on
pmsm6 on
lastType "1"
}
Block {
BlockType Scope
Name "Scope2"
Ports [4]
Position [690, 201, 720, 289]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "ir(A)"
axes2 "is(A)"
axes3 "wm"
axes4 "Tm"
}
TimeRange "1"
YMin "-10~-0.4~-25~-0.01"
YMax "10~0.4~0~0.01"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [405, 94, 435, 126]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [560, 111, 600, 149]
InputPortWidth "3"
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [560, 181, 600, 219]
InputPortWidth "3"
}
Block {
BlockType Constant
Name "Tm1"
Position [290, 145, 320, 175]
Orientation "down"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Ports [0, 1, 0, 0, 0, 2]
Position [295, 98, 320, 122]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Line {
LineType "Connection"
Points [255, 195; 10, 0; 0, 40; 15, 0]
DstBlock "Asynchronous Machine\nSI Units1"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
Points [0, -90]
DstBlock "Voltage Measurement1"
DstPort LConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "AC Voltage Source3"
SrcPort RConn1
Points [0, 0; 5, 0]
}
}
Line {
LineType "Connection"
Points [255, 245; 20, 0; 0, 10; 5, 0]
DstBlock "Asynchronous Machine\nSI Units1"
DstPort LConn2
Branch {
ConnectType "SRC_SRC"
Points [-5, 0; 0, -130]
DstBlock "Voltage Measurement1"
DstPort LConn2
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "AC Voltage Source4"
SrcPort RConn1
Points [0, 0; 5, 0]
}
}
Line {
LineType "Connection"
Points [165, 245; 20, 0]
DstBlock "AC Voltage Source4"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
Points [0, 45]
DstBlock "AC Voltage Source5"
DstPort LConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "AC Voltage Source3"
SrcPort LConn1
Points [-20, 0; 0, 50]
}
}
Line {
LineType "Connection"
SrcBlock "Asynchronous Machine\nSI Units1"
SrcPort LConn3
Points [-15, 0; 0, 15]
DstBlock "AC Voltage Source5"
DstPort RConn1
}
Line {
SrcBlock "Voltage Measurement1"
SrcPort 1
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Asynchronous Machine\nSI Units1"
SrcPort 1
DstBlock "Machines\nMeasurement\nDemux"
DstPort 1
}
Line {
SrcBlock "Tm1"
SrcPort 1
Points [0, 10; -25, 0]
DstBlock "Asynchronous Machine\nSI Units1"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [20, 0; 0, 85]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Selector3"
SrcPort 1
Points [10, 0; 0, 35]
DstBlock "Scope2"
DstPort 2
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 3
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 4
Points [80, 0; 0, -15]
DstBlock "Scope2"
DstPort 4
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 2
Points [15, 0; 0, -30]
DstBlock "Selector3"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 1
Points [5, 0; 0, -70]
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [95, 0]
DstBlock "Scope2"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -