📄 eighteen_mod.mdl
字号:
Name "<Electromagnetic torque Te (N*m)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Constant\nspeed"
Position [800, 180, 830, 200]
Orientation "left"
NamePlacement "alternate"
Value "120"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Goto
Name "Goto"
Position [635, 601, 680, 619]
ShowName off
GotoTag "Speed"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [635, 561, 680, 579]
ShowName off
GotoTag "Iabc"
TagVisibility "global"
}
Block {
BlockType Reference
Name "IGBT Inverter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [675, 311, 740, 404]
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 "1000"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0.8 0.8 ]"
ForwardVoltage ".8"
GTOparameters "[ 1e-6 , 1e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Induction Motor\n50 HP / 460 V"
Ports [1, 1, 0, 0, 0, 3]
Position [390, 311, 480, 404]
Orientation "left"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Machines/Asynchronous Machine\nSI Units"
SourceType "Asynchronous 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"
PresetModel "No"
MechanicalLoad "Torque Tm"
ShowDetailedParameters on
RotorType "Squirrel-cage"
ReferenceFrame "Stationary"
NominalParameters "[50*746, 460, 60 ]"
Stator "[ 0.087 0.8e-3 ]"
Rotor "[ 0.228 0.8e-3 ]"
Lm "34.7e-3"
Mechanical "[0.05 0.1 2 ]"
PolePairs "2"
InitialConditions "[ 1, 0 , 0 , 0 , 0 , 0 , 0 , 0 ]"
Units "SI"
LoadFlowParameters "0"
SimulateSaturation off
Saturation "[0 0;0 0]"
TsPowergui "0"
TsBlock "-1"
}
Block {
BlockType Reference
Name "Reference\nspeed\nselection\n(rad/s)"
Ports [2, 1]
Position [725, 175, 765, 235]
Orientation "left"
FontName "Arial"
FontSize 12
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
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"
sw "1"
action "0"
varsize off
}
Block {
BlockType Step
Name "Speed\nstep"
Position [800, 210, 830, 230]
Orientation "left"
Time "0.2"
Before "120"
After "160"
SampleTime "0"
}
Block {
BlockType Reference
Name "Timer"
Ports [0, 1]
Position [280, 206, 325, 244]
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 0.8 1 ]"
e "[0 50 0]"
}
Block {
BlockType UnitDelay
Name "Unit Delay4"
Position [595, 552, 615, 588]
NamePlacement "alternate"
ShowName off
SampleTime "Ts"
}
Block {
BlockType SubSystem
Name "Vector Control"
Ports [1, 1]
Position [585, 180, 675, 230]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontWeight "bold"
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Vector Control"
Location [2, 82, 1270, 748]
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"
Block {
BlockType Inport
Name "speed"
Position [35, 318, 65, 332]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType SubSystem
Name "ABC to dq\nconversion"
Ports [2, 2]
Position [395, 74, 450, 121]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "ABC to dq\nconversion"
Location [220, 231, 594, 356]
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"
Block {
BlockType Inport
Name "Iabc"
Position [15, 83, 45, 97]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Teta"
Position [15, 23, 45, 37]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Fcn
Name "Fcn"
Position [75, 49, 115, 71]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [75, 19, 115, 41]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [255, 25, 285, 55]
ShowName off
Gain "2/3"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain1"
Position [255, 60, 285, 90]
ShowName off
Gain "2/3"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [145, 15, 150, 105]
ShowName off
Inputs "[1 1 3]"
}
Block {
BlockType Fcn
Name "id"
Position [185, 28, 225, 52]
NamePlacement "alternate"
Expr "u[1]*u[3]+(1.7320508*u[2]-u[1])*u[4]*0.5+(-u[1]-1.7320508*u[2])*u[5]*0.5"
}
Block {
BlockType Fcn
Name "iq"
Position [185, 63, 225, 87]
Expr "-u[2]*u[3]+(u[2]+1.7320508*u[1])*u[4]*0.5+(u[2]-1.7320508*u[1])*u[5]*0.5"
}
Block {
BlockType Outport
Name "Id"
Position [315, 33, 345, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Iq"
Position [315, 68, 345, 82]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
InitialOutput "0"
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Teta"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 15]
DstBlock "iq"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "id"
DstPort 1
}
}
Line {
SrcBlock "Iabc"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Id"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Iq"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Current\nRegulator"
Ports [2, 1]
Position [465, 230, 525, 290]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskType "Regulateur de courant a hysteresis"
MaskPromptString "Hysteresis band (A)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "h=@1;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "20"
System {
Name "Current\nRegulator"
Location [251, 575, 715, 769]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -