📄 pm_dtc_sorno_learn_it4_16.mdl
字号:
Name "PI regulator"
Ports [1, 1]
Position [665, 511, 705, 579]
Orientation "left"
BackgroundColor "green"
FontName "Arial"
SourceBlock "mylibrary/PI regulator"
SourceType "PI regulator"
Ki "0.0001"
Kp "1.25"
}
Block {
BlockType Reference
Name "PI regulator2"
Ports [1, 1]
Position [985, 511, 1030, 559]
Orientation "left"
BackgroundColor "green"
FontName "Arial"
SourceBlock "mylibrary/PI regulator1"
SourceType "PI regulator"
Ki "10"
Kp "0.0001"
}
Block {
BlockType Reference
Name "PMSM1"
Ports [3, 9]
Position [230, 28, 340, 212]
BackgroundColor "lightBlue"
SourceBlock "mylibrary/PMSM1"
SourceType "Permanent Magnet Synchronous Motor"
r1 "20.51"
Ld "0.1133"
Lq "0.1295"
phif "1"
np "2"
J "0.01"
}
Block {
BlockType Relay
Name "Relay"
Position [275, 360, 305, 390]
Orientation "left"
OnSwitchValue "0.0005"
OffSwitchValue "-0.0005"
}
Block {
BlockType Relay
Name "Relay1"
Position [275, 530, 305, 560]
Orientation "left"
OnSwitchValue "0.005"
OffSwitchValue "-0.005"
}
Block {
BlockType Saturate
Name "Saturation"
Position [570, 530, 600, 560]
Orientation "left"
UpperLimit "5"
LowerLimit "-5"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [355, 381, 385, 419]
Orientation "left"
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [330, 536, 360, 574]
Orientation "left"
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [730, 526, 760, 564]
Orientation "left"
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [170, 91, 200, 129]
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [165, 146, 195, 184]
Inputs "+-"
}
Block {
BlockType Scope
Name "TEr"
Ports [1]
Position [360, 105, 390, 135]
Location [675, 467, 999, 706]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-3"
YMax "2.5"
DataFormat "Array"
}
Block {
BlockType Scope
Name "Te_g"
Ports [1]
Position [665, 460, 695, 490]
Location [418, 196, 742, 435]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "375 "
YMax "750 "
DataFormat "Array"
}
Block {
BlockType Scope
Name "Tee"
Ports [1]
Position [440, 500, 470, 530]
Orientation "down"
NamePlacement "alternate"
Location [278, 502, 602, 741]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "4.4"
YMax "5.3"
DataFormat "Array"
}
Block {
BlockType Scope
Name "Tee1"
Ports [1]
Position [500, 575, 530, 605]
Orientation "down"
NamePlacement "alternate"
Location [881, 481, 1205, 720]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "4"
YMax "6"
DataFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [305, 755, 365, 785]
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Scope
Name "Ua"
Ports [1]
Position [95, 185, 125, 215]
Location [418, 196, 742, 435]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0 "
YMax "400 "
DataFormat "Array"
}
Block {
BlockType Scope
Name "Ub"
Ports [1]
Position [85, 230, 115, 260]
Location [418, 196, 742, 435]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0 "
YMax "400 "
DataFormat "Array"
}
Block {
BlockType Scope
Name "Uc"
Ports [1]
Position [115, 275, 145, 305]
Location [418, 196, 742, 435]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0 "
YMax "225 "
DataFormat "Array"
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [845, 197, 880, 233]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
xmin "-2"
xmax "2"
ymin "-2"
ymax "2"
st "-1"
}
Block {
BlockType Reference
Name "cal_area"
Ports [2, 2]
Position [375, 300, 450, 355]
Orientation "left"
BackgroundColor "green"
SourceBlock "mylibrary/cal_area"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Reference
Name "cal_sector1"
Ports [3, 1]
Position [130, 492, 220, 578]
Orientation "left"
BackgroundColor "green"
SourceBlock "mylibrary/cal_sector"
SourceType "cal_sector"
Vdc "514.8"
}
Block {
BlockType Scope
Name "idr"
Ports [1]
Position [370, 145, 400, 175]
Location [900, 374, 1224, 613]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-0.5"
YMax "2.5"
DataFormat "Array"
}
Block {
BlockType Reference
Name "inv_abc_abi1"
Ports [1, 2]
Position [520, 23, 585, 92]
BackgroundColor "lightBlue"
SourceBlock "mylibrary/inv_abc_abi1"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Reference
Name "inv_abc_abv1"
Ports [1, 2]
Position [505, 188, 570, 257]
BackgroundColor "lightBlue"
SourceBlock "mylibrary/inv_abc_abv1"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Scope
Name "iqr"
Ports [1]
Position [415, 125, 445, 155]
Location [418, 196, 742, 435]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0 "
YMax "2.5 "
DataFormat "Array"
}
Block {
BlockType Scope
Name "n"
Ports [1]
Position [445, 185, 475, 215]
Location [328, 519, 652, 758]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
YMax "1200"
DataFormat "Array"
}
Block {
BlockType Reference
Name "phi_dq_s"
Ports [2, 1]
Position [500, 370, 550, 425]
Orientation "left"
BackgroundColor "lightBlue"
SourceBlock "mylibrary/phi_dq_s"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Scope
Name "phis"
Ports [1]
Position [430, 420, 460, 450]
Location [347, 211, 671, 450]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0.975"
YMax "1.025"
DataFormat "Array"
}
Block {
BlockType Constant
Name "phis_g"
Position [455, 375, 475, 395]
Orientation "left"
Value "0.8"
}
Block {
BlockType Reference
Name "sensorless_phi_d1"
Ports [4, 4]
Position [660, 194, 730, 276]
BackgroundColor "lightBlue"
SourceBlock "mylibrary/sensorless_phi_d"
SourceType "cal_phidq"
np "2"
theta0 "0"
phi0 "0.8"
rs "20.51"
}
Block {
BlockType Scope
Name "speed"
Ports [1]
Position [855, 460, 885, 490]
Location [872, 295, 1196, 534]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
YMax "2250"
DataFormat "Array"
}
Block {
BlockType Constant
Name "speed_g"
Position [810, 538, 835, 572]
Orientation "left"
Value "1500"
}
Block {
BlockType Scope
Name "thetar"
Ports [1]
Position [370, 165, 400, 195]
Location [159, 324, 483, 563]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0 "
YMax "0.5 "
DataFormat "Array"
}
Block {
BlockType Scope
Name "thetar1"
Ports [1]
Position [430, 210, 460, 240]
Location [328, 519, 652, 758]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -