📄 s4.mdl
字号:
BlockType Mux
Name "Mux2"
Position [135, 255, 160, 330]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux3"
Position [520, 87, 545, 173]
Inputs "3"
}
Block {
BlockType Mux
Name "Mux4"
Position [520, 194, 540, 261]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux5"
Position [520, 279, 540, 346]
Inputs "2"
}
Block {
BlockType Integrator
Name "psid_"
Position [390, 127, 420, 153]
ExternalReset none
InitialConditionSource internal
InitialCondition "Psido"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "psipkd_"
Position [395, 282, 425, 308]
ExternalReset none
InitialConditionSource internal
InitialCondition "Psikdo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Out_psid"
Position [585, 45, 605, 65]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_id"
Position [835, 220, 855, 240]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_psimd"
Position [835, 120, 855, 140]
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_iplkd"
Position [835, 305, 855, 325]
Port "4"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "In_wrpsiq"
SrcPort 1
Points [20, 0; 0, -20]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "In_vd"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "psid_"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "psipkd_"
DstPort 1
}
Line {
SrcBlock "psid_"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 65; -320, 0; 0, -30]
DstBlock "Mux"
DstPort 4
}
Branch {
Points [10, 0; 0, -40]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [45, 0; 0, 70]
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [10, 0; 0, -85]
DstBlock "Out_psid"
DstPort 1
}
}
Line {
SrcBlock "psipkd_"
SrcPort 1
Points [0, 0]
Branch {
Points [30, 0; 0, 65; -350, 0; 0, -50]
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [30, 0; 0, -135]
DstBlock "Mux3"
DstPort 3
}
Branch {
DstBlock "Mux5"
DstPort 1
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "Fcn5"
DstPort 1
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 245; -295, 0; 0, -45]
DstBlock "Mux5"
DstPort 2
}
Branch {
Points [10, 0; 0, 145; -295, 0; 0, -30]
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [10, 0; 0, 245; -700, 0; 0, -100]
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [10, 0; 0, -50; -675, 0; 0, 20]
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Out_psimd"
DstPort 1
}
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "Out_id"
DstPort 1
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "Out_iplkd"
DstPort 1
}
Line {
SrcBlock "In_Ipm"
SrcPort 1
Points [375, 0; 0, -105]
DstBlock "Mux3"
DstPort 2
}
}
}
Block {
BlockType Product
Name "prod1"
Position [165, 148, 185, 172]
Orientation left
Inputs "2"
}
Block {
BlockType Product
Name "prod2"
Position [165, 193, 185, 222]
Orientation left
Inputs "2"
}
Block {
BlockType SubSystem
Name "q_cct"
Position [155, 53, 195, 127]
ShowPortLabels off
System {
Name "q_cct"
Location [25, 69, 829, 482]
Open off
ScreenColor white
Block {
BlockType Inport
Name "In_vq"
Position [50, 105, 70, 125]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "In_wrpsid"
Position [50, 160, 70, 180]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [180, 125, 375, 155]
Expr "wb*(u[2]-u[3]+(rs/xls)*(u[1]-u[4]))"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [180, 246, 365, 274]
Expr "wb*rpkq*(u[1]-u[2])/xplkq"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [565, 146, 720, 174]
Expr "xMQ*(u[1]/xls+u[2]/xplkq)"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [575, 237, 665, 263]
Expr "(u[1]-u[2])/xls"
}
Block {
BlockType Mux
Name "Mux"
Position [135, 86, 160, 189]
Inputs "4"
}
Block {
BlockType Mux
Name "Mux2"
Position [130, 220, 155, 295]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux3"
Position [515, 124, 540, 191]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux4"
Position [515, 214, 540, 281]
Inputs "2"
}
Block {
BlockType Integrator
Name "psipkq_"
Position [390, 247, 420, 273]
ExternalReset none
InitialConditionSource internal
InitialCondition "Psikqo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "psiq_"
Position [390, 127, 420, 153]
ExternalReset none
InitialConditionSource internal
InitialCondition "Psiqo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Out_psiq"
Position [585, 45, 605, 65]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_iq"
Position [830, 240, 850, 260]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_psimq"
Position [830, 150, 850, 170]
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "In_wrpsid"
SrcPort 1
Points [20, 0; 0, -20]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "In_vq"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "psiq_"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "psipkq_"
DstPort 1
}
Line {
SrcBlock "psiq_"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 65; -320, 0; 0, -30]
DstBlock "Mux"
DstPort 4
}
Branch {
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [45, 0; 0, 90]
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [10, 0; 0, -85]
DstBlock "Out_psiq"
DstPort 1
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 0]
Branch {
Points [65, 0; 0, 185; -295, 0; 0, -80]
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [65, 0; 0, 185; -700, 0; 0, -105]
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [65, 0; 0, -80; -675, 0; 0, 20]
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Out_psimq"
DstPort 1
}
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "Out_iq"
DstPort 1
}
Line {
SrcBlock "psipkq_"
SrcPort 1
Points [0, 0]
Branch {
Points [35, 0; 0, 60; -350, 0; 0, -45]
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [35, 0; 0, -85]
DstBlock "Mux3"
DstPort 2
}
}
}
}
Block {
BlockType Outport
Name "iq_motor"
Position [340, 80, 360, 100]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "delta"
Position [450, 235, 470, 255]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "wr/wb"
Position [500, 260, 520, 280]
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Tem"
Position [455, 285, 475, 305]
Port "4"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "(wr-we)/wb"
Position [495, 310, 515, 330]
Port "5"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "id_motor"
Position [260, 310, 280, 330]
Port "6"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Tmech"
SrcPort 1
DstBlock "Rotor"
DstPort 5
}
Line {
SrcBlock "q_cct"
SrcPort 2
Points [0, 0]
Branch {
Points [90, 0; 0, 150]
DstBlock "Rotor"
DstPort 1
}
Branch {
DstBlock "iq_motor"
DstPort 1
}
}
Line {
SrcBlock "Rotor"
SrcPort 1
DstBlock "delta"
DstPort 1
}
Line {
SrcBlock "Rotor"
SrcPort 4
DstBlock "(wr-we)/wb"
DstPort 1
}
Line {
SrcBlock "Rotor"
SrcPort 3
DstBlock "Tem"
DstPort 1
}
Line {
SrcBlock "d_cct"
SrcPort 2
Points [0, 0]
Branch {
Points [45, 0; 0, 20]
DstBlock "Rotor"
DstPort 4
}
Branch {
Points [45, 0; 0, 40]
DstBlock "id_motor"
DstPort 1
}
}
Line {
SrcBlock "prod1"
SrcPort 1
Points [-40, 0; 0, -50]
DstBlock "q_cct"
DstPort 2
}
Line {
SrcBlock "vq"
SrcPort 1
DstBlock "q_cct"
DstPort 1
}
Line {
SrcBlock "d_cct"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Rotor"
DstPort 2
}
Branch {
Points [40, 0; 0, -95]
DstBlock "prod1"
DstPort 2
}
}
Line {
SrcBlock "Rotor"
SrcPort 2
Points [0, 0]
Branch {
DstBlock "wr/wb"
DstPort 1
}
Branch {
Points [15, 0; 0, -115]
DstBlock "prod1"
DstPort 1
}
Branch {
Points [15, 0; 0, -70]
DstBlock "prod2"
DstPort 1
}
}
Line {
SrcBlock "q_cct"
SrcPort 1
Points [0, 0]
Branch {
Points [55, 0; 0, 215]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -