📄 bldc.mdl
字号:
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Reference
Name "Mux"
Ports [2, 1]
Position [340, 167, 380, 198]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontSize 12
SourceBlock "AC7DriveInternalModels/Mux"
SourceType "SubSystem"
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"
}
Block {
BlockType BusSelector
Name "Output Bus\nSelector"
Ports [1, 1]
Position [760, 216, 765, 254]
ShowName off
OutputSignals "Rotor speed wm (rad/s)"
Port {
PortNumber 1
Name "<Rotor speed wm (rad/s)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Permanent Magnet\nSynchronous Machine"
Ports [1, 1, 0, 0, 0, 3]
Position [655, 262, 725, 338]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Machines/Permanent Magnet\nSynchronous Machine"
SourceType "Permanent Magnet Synchronous Machine"
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"
FluxDistribution "Trapezoidal"
MechanicalLoad "Torque Tm"
PresetModel "No"
ShowDetailedParameters on
Resistance "0.2"
Inductance "8.5e-3"
dqInductances "[8.5e-3,8.5e-3]"
MachineConstant "Flux linkage established by magnets (V.s)"
Flux "0.175"
VoltageCst "146.6077"
TorqueCst "1.4"
Flat "120"
Mechanical "[0.089,0.005,4]"
PolePairs "4"
InitialConditions "[0,0,0,0]"
TsPowergui "0"
TsBlock "-1"
}
Block {
BlockType RateTransition
Name "Rate Transition"
Position [620, 261, 635, 279]
NamePlacement "alternate"
OutPortSampleTime "Ts"
}
Block {
BlockType Reference
Name "Rectifier_3ph"
Ports [0, 0, 0, 0, 0, 3, 2]
Position [95, 245, 155, 325]
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
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"
Arms "3"
SnubberResistance "10e3"
SnubberCapacitance "20e-9"
Device "Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0, 0 ]"
ForwardVoltage "1.3"
GTOparameters "[ 10e-6, 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "All voltages and currents"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Speed Controller"
Ports [2, 2]
Position [145, 80, 245, 180]
NamePlacement "alternate"
FontName "Arial"
FontSize 12
SourceBlock "DriveInternalModels/AC drives/Speed Controller AC67/Speed Controller"
SourceType "Speed 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"
SwK "Speed regulation"
ramp "[-1000,1000]"
kp "3.3"
ki "300"
fc "285"
ctrl_sat "[-17.8,17.8]"
Tsc "140e-6"
}
Block {
BlockType Reference
Name "Three-phase Inverter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [335, 248, 395, 332]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontSize 12
SourceBlock "AC7DriveInternalModels/Three-phase Inverter"
SourceType "SPSdrives Converter"
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"
Arms "3"
SnubberResistance "5000"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[0.8,0.8]"
ForwardVoltage "0"
GTOparameters "[10e-6,20e-6]"
IGBTParameters "[1e-6,2e-6]"
Measurements "All voltages and currents"
converterType "Inverter"
Inductance "8.5e-3"
Flux "0.175"
Resistance "0.2"
}
Block {
BlockType PMIOPort
Name "A"
Position [15, 247, 45, 263]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "B"
Position [15, 282, 45, 298]
Port "2"
Side "Right"
}
Block {
BlockType PMIOPort
Name "C"
Tag "PMCPort"
Position [15, 321, 45, 339]
Port "3"
Side "Left"
}
Block {
BlockType Outport
Name "Motor"
Position [895, 293, 930, 307]
FontSize 12
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Conv."
Position [295, 233, 330, 247]
FontSize 12
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Ctrl"
Position [280, 148, 315, 162]
FontSize 12
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Wm"
Position [890, 228, 925, 242]
FontSize 12
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
LineType "Connection"
SrcBlock "Braking chopper"
SrcPort RConn2
DstBlock "Three-phase Inverter"
DstPort RConn2
}
Line {
LineType "Connection"
SrcBlock "Braking chopper"
SrcPort RConn1
Points [20, 0; 0, -15]
DstBlock "Three-phase Inverter"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort LConn3
DstBlock "Measures"
DstPort RConn3
}
Line {
LineType "Connection"
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort LConn2
DstBlock "Measures"
DstPort RConn2
}
Line {
LineType "Connection"
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort LConn1
DstBlock "Measures"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Rectifier_3ph"
SrcPort RConn2
DstBlock "Braking chopper"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Rectifier_3ph"
SrcPort RConn1
DstBlock "Braking chopper"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "A"
SrcPort RConn1
Points [0, 5]
DstBlock "Rectifier_3ph"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "B"
SrcPort RConn1
Points [0, -5]
DstBlock "Rectifier_3ph"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "C"
SrcPort RConn1
Points [0, -20]
DstBlock "Rectifier_3ph"
DstPort LConn3
}
Line {
LineType "Connection"
SrcBlock "Three-phase Inverter"
SrcPort LConn1
DstBlock "Measures"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Three-phase Inverter"
SrcPort LConn2
DstBlock "Measures"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Three-phase Inverter"
SrcPort LConn3
Points [30, 0]
DstBlock "Measures"
DstPort LConn3
}
Line {
Name "<Rotor speed wm (rad/s)>"
Labels [0, 0]
SrcBlock "Output Bus\nSelector"
SrcPort 1
DstBlock "Wm"
DstPort 1
}
Line {
Name "Hall effect"
Labels [0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 1
Points [-65, 0]
DstBlock "Current Controller"
DstPort 2
}
Line {
SrcBlock "Braking chopper"
SrcPort 1
Points [5, -10; 0, -5]
DstBlock "Conv."
DstPort 1
}
Line {
SrcBlock "SP"
SrcPort 1
DstBlock "Speed Controller"
DstPort 2
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -65]
Branch {
DstBlock "Output Bus\nSelector"
DstPort 1
}
Branch {
Points [0, -5; -320, 0; 0, -40]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -55]
Branch {
Points [0, -5]
DstBlock "Bus\nSelector1"
DstPort 1
}
Branch {
Points [0, -120]
DstBlock "Bus\nSelector"
DstPort 1
}
}
}
Branch {
DstBlock "Motor"
DstPort 1
}
}
Line {
SrcBlock "Measures"
SrcPort 1
Points [45, 0]
DstBlock "Current Controller"
DstPort 3
}
Line {
SrcBlock "Speed Controller"
SrcPort 1
Points [320, 0]
DstBlock "Current Controller"
DstPort 1
}
Line {
SrcBlock "Tm"
SrcPort 1
DstBlock "Rate Transition"
DstPort 1
}
Line {
SrcBlock "Speed Controller"
SrcPort 2
DstBlock "Ctrl"
DstPort 1
}
Line {
SrcBlock "Current Controller"
SrcPort 1
Points [0, 5]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [-10, 0; 0, 30; 85, 0]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -