📄 s5.mdl
字号:
SrcBlock "wr/wb"
SrcPort 1
Points [0, 0]
Branch {
Points [35, 0; 0, 135; 110, 0; 0, -30]
DstBlock "Product1"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "sin"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [-20, 0; 0, -70]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "cos"
DstPort 1
}
Line {
SrcBlock "cos"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [20, 0; 0, 35]
DstBlock "cos_thetar"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, 70]
DstBlock "Gain1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "pm_motor"
Position [670, 156, 710, 284]
ShowPortLabels off
System {
Name "pm_motor"
Location [125, 82, 659, 455]
Open off
ScreenColor white
Block {
BlockType Inport
Name "vq"
Position [60, 65, 80, 85]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "vd"
Position [55, 250, 75, 270]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Ipm"
Position [55, 300, 75, 320]
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Tmech"
Position [295, 310, 315, 330]
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "Rotor"
Position [345, 230, 395, 330]
ShowPortLabels off
System {
Name "Rotor"
Location [67, 127, 626, 395]
Open off
ScreenColor white
Block {
BlockType Inport
Name "iq"
Position [85, 85, 105, 105]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "psid "
Position [85, 120, 105, 140]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "psiq"
Position [85, 160, 105, 180]
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "id"
Position [85, 200, 105, 220]
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Tmech"
Position [85, 45, 105, 65]
Port "5"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Gain
Name "1/2H"
Position [315, 110, 385, 150]
Gain "1/(2*H)"
}
Block {
BlockType Gain
Name "D"
Position [320, 58, 395, 92]
Orientation left
Gain "Domega"
}
Block {
BlockType Product
Name "Prod"
Position [145, 114, 160, 136]
Inputs "2"
}
Block {
BlockType Product
Name "Prod2"
Position [145, 165, 160, 185]
Inputs "2"
}
Block {
BlockType Sum
Name "Sum12"
Position [185, 101, 205, 199]
Inputs "+-"
}
Block {
BlockType Sum
Name "Tacc"
Position [275, 100, 295, 160]
Inputs "-++"
}
Block {
BlockType Integrator
Name "wr/wb"
Position [410, 111, 440, 149]
ExternalReset none
InitialConditionSource internal
InitialCondition "wrbywbo"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Tem"
Position [275, 188, 300, 212]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "wr/wb "
Position [510, 120, 530, 140]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "wr/wb"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "wr/wb "
DstPort 1
}
Branch {
Points [15, 0; 0, -55]
DstBlock "D"
DstPort 1
}
}
Line {
SrcBlock "Tmech"
SrcPort 1
Points [130, 0; 0, 75]
DstBlock "Tacc"
DstPort 2
}
Line {
SrcBlock "Sum12"
SrcPort 1
Points [0, 0]
Branch {
Points [35, 0; 0, 50]
DstBlock "Tem"
DstPort 1
}
Branch {
DstBlock "Tacc"
DstPort 3
}
}
Line {
SrcBlock "id"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Prod2"
DstPort 2
}
Line {
SrcBlock "psiq"
SrcPort 1
DstBlock "Prod2"
DstPort 1
}
Line {
SrcBlock "psid "
SrcPort 1
DstBlock "Prod"
DstPort 2
}
Line {
SrcBlock "iq"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Prod"
DstPort 1
}
Line {
SrcBlock "Prod"
SrcPort 1
DstBlock "Sum12"
DstPort 1
}
Line {
SrcBlock "Tacc"
SrcPort 1
DstBlock "1/2H"
DstPort 1
}
Line {
SrcBlock "1/2H"
SrcPort 1
DstBlock "wr/wb"
DstPort 1
}
Line {
SrcBlock "Prod2"
SrcPort 1
DstBlock "Sum12"
DstPort 2
}
Line {
SrcBlock "D"
SrcPort 1
Points [-60, 0; 0, 35]
DstBlock "Tacc"
DstPort 1
}
Annotation {
Position [227, 137]
VerticalAlignment top
Text "Tem_"
}
}
}
Block {
BlockType Terminator
Name "T"
Position [230, 115, 240, 125]
}
Block {
BlockType Terminator
Name "T1"
Position [205, 305, 215, 315]
}
Block {
BlockType SubSystem
Name "d_cct"
Position [150, 248, 190, 322]
ShowPortLabels off
System {
Name "d_cct"
Location [-18, 169, 786, 508]
Open off
ScreenColor white
Block {
BlockType Inport
Name "In_vd"
Position [50, 105, 70, 125]
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "In_wrpsiq"
Position [50, 160, 70, 180]
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "In_Ipm"
Position [50, 225, 70, 245]
Port "3"
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 "Fcn3"
Position [565, 113, 735, 147]
Expr "xMD*(u[1]/xls+u[2])"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [570, 217, 660, 243]
Expr "(u[1]-u[2])/xls"
}
Block {
BlockType Mux
Name "Mux"
Position [135, 86, 160, 189]
Inputs "4"
}
Block {
BlockType Mux
Name "Mux3"
Position [520, 91, 545, 169]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux4"
Position [520, 194, 540, 261]
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 Outport
Name "Out_psid"
Position [585, 45, 605, 65]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_id"
Position [795, 220, 815, 240]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_psimd"
Position [795, 120, 815, 140]
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "In_Ipm"
SrcPort 1
Points [375, 0; 0, -85]
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "Out_id"
DstPort 1
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Out_psimd"
DstPort 1
}
Branch {
Points [15, 0; 0, -50; -640, 0; 0, 20]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [15, 0; 0, 145; -260, 0; 0, -30]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "psid_"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, -85]
DstBlock "Out_psid"
DstPort 1
}
Branch {
Points [45, 0; 0, 70]
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [10, 0; 0, -30]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [10, 0; 0, 65; -320, 0; 0, -30]
DstBlock "Mux"
DstPort 4
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "psid_"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "In_vd"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "In_wrpsiq"
SrcPort 1
Points [20, 0; 0, -20]
DstBlock "Mux"
DstPort 3
}
}
}
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, 57, 195, 133]
ShowPortLabels off
System {
Name "q_cct"
Location [27, 133, 824, 484]
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 "Fcn4"
Position [540, 202, 630, 228]
Expr "(u[1]-u[2])/xls"
}
Block {
BlockType Fcn
Name "Fcn5"
Position [510, 127, 600, 153]
Expr "xMQ*u[1]/xls"
}
Block {
BlockType Mux
Name "Mux"
Position [135, 86, 160, 189]
Inputs "4"
}
Block {
BlockType Mux
Name "Mux4"
Position [495, 179, 520, 246]
Inputs "2"
}
Block {
BlockType Integrator
Name "psiq_"
Position [390, 127, 420, 153]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -