📄 vecto_control.mdl
字号:
Name "Iabc (A)"
PropagatedSignals "Stator current is_a (A), Stator current is_b "
"(A), Stator current is_c (A)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector1"
Ports [1, 2]
Position [195, 421, 200, 459]
ShowName off
OutputSignals "Mechanical.Rotor speed (wm),Mechanical.Electrom"
"agnetic torque Te (N*m)"
Port {
PortNumber 1
Name "<Rotor speed (wm)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "<Electromagnetic torque Te (N*m)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector2"
Ports [1, 1]
Position [465, 395, 470, 425]
ShowName off
OutputSignals "Stator current is_a (A)"
Port {
PortNumber 1
Name "<Stator current is_a (A)>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Constant\nspeed"
Position [730, 105, 760, 125]
Orientation "left"
ForegroundColor "blue"
NamePlacement "alternate"
Value "120"
SampleTime "Ts"
}
Block {
BlockType Constant
Name "Constant\ntorque"
Position [180, 105, 210, 125]
ForegroundColor "blue"
NamePlacement "alternate"
Value "0"
SampleTime "0"
}
Block {
BlockType Goto
Name "Goto"
Position [450, 501, 495, 519]
BackgroundColor "[0.501961, 1.000000, 1.000000]"
ShowName off
GotoTag "Speed"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [450, 471, 495, 489]
BackgroundColor "[0.501961, 1.000000, 1.000000]"
ShowName off
GotoTag "Iabc"
TagVisibility "global"
}
Block {
BlockType InitialCondition
Name "IC"
Position [720, 125, 745, 165]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
Value "0"
}
Block {
BlockType Reference
Name "IGBT Inverter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [465, 221, 530, 314]
BackgroundColor "orange"
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 [180, 221, 270, 314]
Orientation "left"
BackgroundColor "yellow"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Machines/Asynchronous Machine\nSI Unit"
"s"
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, 50 ]"
Stator "[ 0.087 0.8e-3 ]"
Rotor "[ 0.228 0.8e-3 ]"
Lm "34.7e-3"
Mechanical "[1.662 0.1 2 ]"
PolePairs "2"
InitialConditions "[ 1, 0 , 0 , 0 , 0 , 0 , 0 , 0 ]"
Units "1"
LoadFlowParameters "0"
SimulateSaturation off
Saturation "[0 0;0 0]"
}
Block {
BlockType SubSystem
Name "More Info"
Ports []
Position [570, 515, 597, 540]
DropShadow on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "More Info"
Location [2, 78, 1278, 943]
Open off
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"
Annotation {
Name "H. Le-Huy (Universite Laval, Quebec)"
Position [25, 50]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
Annotation {
Name "Case study : Variable-Frequency Induction M"
"otor Drive"
Position [24, 27]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Circuit Description"
Position [24, 77]
HorizontalAlignment "left"
VerticalAlignment "top"
ForegroundColor "blue"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Demonstration"
Position [24, 217]
HorizontalAlignment "left"
VerticalAlignment "top"
ForegroundColor "blue"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "The induction motor is fed by a current-con"
"trolled PWM inverter which is built using a Universal Bridge block. \nThe mot"
"or drives a mechanical load characterized by inertia J, friction coeficient B"
", and load torque TL . \nThe speed control loop"
" uses a proportional-integral controller to produce the quadrature-axis curre"
"nt reference \niq* which controls the motor torque. The motor flux is contro"
"lled by the direct-axis current reference id*.\nBlock DQ-ABC is used to conve"
"rt id* and iq* into current references ia*, ib*, and ic* for the current regu"
"lator. \nCurrent and Voltage Measurement blocks provide signals for visual"
"ization purpose. \nMotor current, speed, and torque signals are ava"
"ilable at the output of the 'Asynchronous Machine' block. "
Position [23, 98]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
Annotation {
Name "Motor starting"
Position [24, 247]
HorizontalAlignment "left"
VerticalAlignment "top"
ForegroundColor "blue"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "Start the simulation. Observe the motor cur"
"rent, voltage, and speed during the starting on the scope.\nAt the end of the"
" simulation time (3 s), the system has reached its steady-state. "
Position [24, 271]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
Annotation {
Name "Response to a change in reference speed and"
" load torque"
Position [24, 327]
HorizontalAlignment "left"
VerticalAlignment "top"
ForegroundColor "blue"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "The initial conditions state vector `xIniti"
"al' to start with wm = 120 rad/s and TL = 0 N.m has been saved in the 'power_"
"acdrive_init.mat' file.\nThis file is automatically loaded in your workspac"
"e when you start the simulation (see Model Properties).\nIn order to use the"
"se initial conditions you have to enable them. Check the Simulation/Configura"
"tion Parameters menu , \nthen select \"Data Import/Export\" and check \"Initi"
"al state\".\n\nNow, double click the two Manual Switch blocks to switch from "
" the \"Constant speed \" and \"Constant torque\" blocks to the Step blocks."
"\n(Reference speed wref changed from 120 to 160 rad/s at t = 0.2 s and load t"
"orque changed from 0 to 200 N.m at t= 1.8s).\nRestart the simulation and ob"
"serve the drive response to successive changes in speed reference and load to"
"rque. "
Position [29, 361]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [700, 191, 705, 229]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType RateLimiter
Name "Rate Limiter"
Position [655, 130, 685, 160]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
RisingSlewLimit "400"
FallingSlewLimit "-400"
LinearizeAsGain off
}
Block {
BlockType Reference
Name "Reference\nspeed\nselection\n(rad/s)"
Ports [2, 1]
Position [535, 100, 575, 160]
Orientation "left"
ForegroundColor "blue"
NamePlacement "alternate"
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 "0"
action "0"
varsize off
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [570, 375, 615, 465]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [252, 109, 1070, 660]
Open on
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
TimeRange "0.03497142857142865"
YMin "-1000~-75~180.5~20"
YMax "1000~75~182.75~120"
SaveToWorkspace on
SaveName "simu_vector"
DataFormat "StructureWithTime"
LimitDataPoints off
Decimation "20"
SampleTime "5e-6"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [740, 207, 770, 263]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [594, 360, 1244, 819]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1813139931740614"
YMin "99.935"
YMax "100"
SaveToWorkspace on
SaveName "simu_vector3"
DataFormat "StructureWithTime"
LimitDataPoints off
Decimation "20"
SampleTime "5e-6"
}
Block {
BlockType Step
Name "Speed\nstep1"
Position [795, 135, 825, 155]
Orientation "left"
ForegroundColor "blue"
Time "0.8"
Before "300"
After "300"
SampleTime "0"
}
Block {
BlockType Reference
Name "Torque\nselection\n(N.m)"
Ports [2, 1]
Position [255, 99, 290, 161]
ForegroundColor "blue"
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 "Torque\nstep"
Position [180, 135, 210, 155]
ForegroundColor "blue"
Time "0.8"
Before "200"
After "200"
SampleTime "0"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [410, 462, 430, 498]
NamePlacement "alternate"
ShowName off
SampleTime "Ts"
}
Block {
BlockType Reference
Name "VDC\n(780 V)"
Description "source block"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -