📄 bldc.mdl
字号:
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)"
LogicDataType "uint(8)"
OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as input"
LockScale off
RndMeth "Floor"
}
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 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"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ac7_example"
Location [293, 287, 1089, 683]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "220V 60Hz"
Ports [0, 0, 0, 0, 0, 0, 3]
Position [30, 114, 110, 186]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/Three-Phase Source"
SourceType "Three-Phase Source"
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"
Voltage "220"
PhaseAngle "0"
Frequency "60"
InternalConnection "Yg"
SpecifyImpedance off
Resistance "0.02"
Inductance "0.05e-3"
ShortCircuitLevel "100e6"
BaseVoltage "25e3"
XRratio "7"
}
Block {
BlockType Reference
Name "Machine terminal\nvoltages"
Ports [0, 1, 0, 0, 0, 1]
Position [585, 236, 625, 274]
SourceBlock "powerlib/Measurements/Multimeter"
SourceType "MultimeterPSB"
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"
PhasorSimulation off
OutputType "Complex"
sel "1"
L "32"
Gain "0"
yselected "{}"
PSBOutputType "1"
PSBequivalent "0"
AxesSetting "[0,0.1,-100,100]"
Display "0"
SavedBlockNames "-11"
}
Block {
BlockType SubSystem
Name "More Info"
Ports []
Position [705, 320, 732, 345]
DropShadow on
OpenFcn "showdemo(bdroot(gcb))"
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "More Info"
Location [440, 484, 835, 623]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Annotation {
Position [771, 566]
}
}
}
Block {
BlockType Reference
Name "PI gain calculator"
Ports []
Position [330, 259, 398, 315]
FontName "Arial"
FontSize 12
SourceBlock "AC7DriveInternalModels/PI gain calculator"
SourceType "Speed regulator gain calculator"
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"
mec "[0.089 0.005 4]"
specs on
ele "[0.2 8.5e-3]"
lam "0.175"
open_loop off
zeta "0.99"
Trd "0.13/5"
check off
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [675, 49, 750, 131]
Floating off
Location [6, 55, 1286, 993]
Open off
NumInputPorts "4"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
TimeRange "2"
YMin "-15~300~-20~305.5"
YMax "10~440~12.5~307.75"
SaveToWorkspace on
SaveName "simout"
DataFormat "StructureWithTime"
LimitDataPoints off
Decimation "25"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [685, 234, 740, 276]
ShowName off
Floating off
Location [572, 408, 896, 647]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "Speed"
Ports [0, 1]
Position [50, 45, 95, 65]
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 "[300 0]"
}
Block {
BlockType Reference
Name "Speed-Torque curve"
Ports []
Position [465, 259, 532, 317]
Orientation "left"
FontName "Arial"
FontSize 12
SourceBlock "AC7DriveInternalModels/Speed-Torque curve"
SourceType "Torque vs speed curve"
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"
ele "[0.2 8.5e-3]"
Flux "0.175"
mec "[0.089 0.005 4]"
Vdc "310"
Tmax "17.8"
accel "1000"
check off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 4, 0, 0, 0, 2, 1]
Position [240, 46, 360, 194]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem"
Location [134, 306, 1082, 723]
Open on
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 "SP"
Position [50, 149, 80, 161]
FontSize 12
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Tm"
Position [570, 264, 600, 276]
NamePlacement "alternate"
FontSize 12
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Braking chopper"
Ports [0, 1, 0, 0, 0, 2, 2]
Position [175, 244, 265, 326]
NamePlacement "alternate"
FontName "Arial"
FontSize 12
SourceBlock "DriveInternalModels/AC drives/Braking chopper"
SourceType "Braking chopper"
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"
chopa "320"
chopd "310"
freq_chop "4000"
cap_bus "2000e-6"
br "8"
}
Block {
BlockType BusSelector
Name "Bus\nSelector"
Ports [1, 1]
Position [630, 47, 635, 73]
Orientation "left"
NamePlacement "alternate"
ShowName off
OutputSignals "Rotor speed wm (rad/s)"
Port {
PortNumber 1
Name "<Rotor speed wm (rad/s)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector1"
Ports [1, 1]
Position [640, 160, 645, 190]
Orientation "left"
NamePlacement "alternate"
ShowName off
OutputSignals "Hall effect signal h_a,Hall effect signal h_b,Hall effect signal h_c"
OutputAsBus on
Port {
PortNumber 1
Name "Hall effect"
PropagatedSignals "Hall effect signal h_a, Hall effect signal h_b, Hall effect signal h_c"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Current Controller"
Ports [3, 1]
Position [455, 119, 555, 221]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontSize 12
SourceBlock "AC7DriveInternalModels/Current Controller"
SourceType "Current Controller"
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"
nb_p "4"
lambda "0.175"
freq_max "20e3"
Ts_vect "20e-6"
h "0.01"
}
Block {
BlockType Reference
Name "Measures"
Ports [0, 1, 0, 0, 0, 3, 3]
Position [455, 264, 520, 336]
FontSize 12
SourceBlock "electricdrivelib/AC drives/Brushless DC Motor Drive/Measures"
SourceType "SubSystem"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -