📄 bldc_08.mdl
字号:
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"
Block {
BlockType Inport
Name "In1"
Position [35, 58, 65, 72]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [80, 40, 110, 55]
Orientation "down"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In3"
Position [25, 108, 55, 122]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Switch
Name "Switch"
Position [120, 60, 150, 90]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [120, 110, 150, 140]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [175, 68, 205, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [175, 118, 205, 132]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 70]
DstBlock "Switch1"
DstPort 3
}
Branch {
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "In3"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -30]
DstBlock "Switch"
DstPort 3
}
Branch {
DstBlock "Switch1"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 0; 0, 15]
Branch {
Points [0, 50]
DstBlock "Switch1"
DstPort 2
}
Branch {
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [0, 0]
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Triangle"
Ports [0, 1]
Position [165, 195, 225, 225]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
rep_seq_t "[0 1/200000 3/200000 1/50000]"
rep_seq_y "[0 1 -1 0]"
}
Block {
BlockType Outport
Name "PWMs"
Position [770, 238, 800, 252]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Triangle"
SrcPort 1
Points [25, 0; 0, -35]
Branch {
Points [0, -50]
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
DstBlock "Relational\nOperator2"
DstPort 2
}
}
Line {
SrcBlock "Duty"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "PWMs"
DstPort 1
}
Line {
SrcBlock "Hall\n"
SrcPort 1
DstBlock "Decoder"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Relational\nOperator2"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator2"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [80, 0]
Branch {
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [0, 90]
Branch {
DstBlock "Subsystem1"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Subsystem2"
DstPort 1
}
}
}
Line {
Labels [0, 0]
SrcBlock "Demux1"
SrcPort 1
Points [50, 0; 0, 60]
Branch {
Points [0, 45]
DstBlock "Subsystem"
DstPort 2
}
Branch {
DstBlock "Abs"
DstPort 1
}
}
Line {
Labels [0, 0]
SrcBlock "Logical\nOperator2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Subsystem"
DstPort 3
}
Branch {
Points [0, 90]
Branch {
DstBlock "Subsystem1"
DstPort 3
}
Branch {
Points [0, 95]
DstBlock "Subsystem2"
DstPort 3
}
}
}
Line {
SrcBlock "Decoder"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [40, 0; 0, 140]
Branch {
Points [0, 45]
DstBlock "Subsystem1"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Abs1"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [30, 0; 0, 225]
Branch {
Points [0, 45]
DstBlock "Subsystem2"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Abs2"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 2
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 2
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Subsystem2"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Subsystem2"
SrcPort 2
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [5, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Product4"
DstPort 2
}
Line {
SrcBlock "Abs1"
SrcPort 1
Points [5, 0]
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Abs2"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [40, 0; 0, 35]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [30, 0; 0, 45]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "Demux3"
DstPort 1
}
Line {
SrcBlock "Demux3"
SrcPort 1
Points [40, 0; 0, 5]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Demux3"
SrcPort 2
Points [40, 0; 0, 15]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Demux4"
DstPort 1
}
Line {
SrcBlock "Demux4"
SrcPort 1
Points [35, 0; 0, -30]
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "Demux4"
SrcPort 2
Points [75, 0]
DstBlock "Mux"
DstPort 6
}
}
}
Block {
BlockType SubSystem
Name "Permanent Magnet\nSynchronous Machine"
Ports [1, 1, 0, 0, 0, 3]
Position [520, 244, 635, 351]
ForegroundColor "white"
AncestorBlock "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
CopyFcn "powericon('psbloadfunction',gcb,'gotofrom','Upd"
"ateGotoTag');"
OpenFcn "power_openblockproxy();"
FontSize 11
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Permanent Magnet Synchronous Machine"
MaskDescription "Implements a 3-phase permanent magnet synchrono"
"us machine with sinusoidal, or trapezoidal flux distribution. The sinusoidal "
"machine is modelled in the dq rotor reference frame and the trapezoidal machi"
"ne is modelled in the abc reference frame. Stator windings are connected in w"
"ye to an internal neutral point.\n\nTm: Mechanical torque, in N.m. Tm > 0 fo"
"r motor mode, Tm < 0 for generator mode.\n\nThe preset models are listed by :"
" Rated torque (Nm) @ rated speed (RPM) and maximum bus voltage (Vdc), continu"
"ous stall torque (Nm)"
MaskHelp "web(psbhelp);"
MaskPromptString "Flux distribution:|Mechanical input:|Preset mod"
"el:|----------------- Show detailed parameters ----------------- |Stator res"
"istance Rs (ohm):|Stator inductance Ls (H)|Inductances [ Ld(H) Lq(H) ]:|Flux "
"induced by magnets (Wb):|Back EMF flat area (degrees)|Inertia, friction facto"
"r and pairs of poles [ J(kg.m^2) F(N.m.s) p() ]:"
MaskStyleString "popup(Sinusoidal|Trapezoidal),popup(Torque Tm|S"
"peed w),popup(No|01: 0.8 Nm 300 Vdc 3000 RPM - 0.8 Nm|02: 1.7 Nm 300 Vdc 37"
"50 RPM - 1.7 Nm|03: 2.8 Nm 300 Vdc 4250 RPM - 3.2 Nm|04: 6 Nm 300 Vdc 4500 "
"RPM - 6 Nm|05: 8 Nm 300 Vdc 2000 RPM - 10 Nm|06: 10 Nm 300 Vdc 2300 RPM - 1"
"4.2 Nm|07: 20 Nm 300 Vdc 2200 RPM - 33.9 Nm|08: 24 Nm 300 Vdc 2300 RPM - 41"
".4 Nm|09: 7.14 Nm 560 Vdc 5000 RPM - 8.3 Nm|10: 7.71 Nm 560 Vdc 5000 RPM - "
"10.2 Nm|11: 26.13 Nm 560 Vdc 3000 RPM - 27.3 Nm|12: 35.17 Nm 560 Vdc 3000 R"
"PM - 37.4 Nm|13: 42.09 Nm 560 Vdc 3000 RPM - 45.6 Nm|14: 67.27 Nm 560 Vdc 1"
"700 RPM - 70.2 Nm|15: 87.75 Nm 560 Vdc 3000 RPM - 97.96 Nm|16: 111 Nm 560 V"
"dc 3000 RPM - 126 Nm),checkbox,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "off,on,off,off,off,off,off,off,off,off"
MaskCallbackString "powericon('PMSynchronousMachineCback',gcb);|pow"
"ericon('PMSynchronousMachineCback',gcb);|powericon('PMSynchronousMachineCback"
"',gcb);|powericon('PMSynchronousMachineCback',gcb);||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,off,on,on,on,off,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,"
MaskVariables "FluxDistribution=@1;MechanicalLoad=@2;PresetMod"
"el=@3;ShowDetailedParameters=@4;Res
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -