📄 s5.mdl
字号:
Position [435, 104, 600, 126]
Expr "-u[1]/2 -sqrt(3)*u[2]/2"
}
Block {
BlockType Fcn
Name "qds2c"
Position [435, 159, 605, 181]
Expr "-u[1]/2 +sqrt(3)*u[2]/2 "
}
Block {
BlockType Outport
Name "ia"
Position [640, 49, 665, 71]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "ib"
Position [645, 104, 670, 126]
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "ic"
Position [645, 158, 670, 182]
Port "3"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "qds2c"
SrcPort 1
DstBlock "ic"
DstPort 1
}
Line {
SrcBlock "qds2b"
SrcPort 1
DstBlock "ib"
DstPort 1
}
Line {
SrcBlock "qds2a"
SrcPort 1
DstBlock "ia"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0; 0, 55]
DstBlock "qds2c"
DstPort 1
}
Branch {
Points [15, 0; 0, -55]
DstBlock "qds2a"
DstPort 1
}
Branch {
DstBlock "qds2b"
DstPort 1
}
}
Line {
SrcBlock "qdr2ds"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "qdr2qs"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [5, 0; 0, 35]
DstBlock "qdr2ds"
DstPort 1
}
Branch {
Points [5, 0; 0, -40]
DstBlock "qdr2qs"
DstPort 1
}
}
Line {
SrcBlock "id"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "iq"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "sin(thetar)"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "cos(thetar)"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Annotation {
Position [252, 27]
VerticalAlignment top
Text "qdr2qds"
}
Annotation {
Position [532, 27]
VerticalAlignment top
Text "qds2abc"
}
}
}
Block {
BlockType Gain
Name "vag"
Position [515, 155, 535, 175]
Gain "400*Zb"
}
Block {
BlockType Gain
Name "vbg"
Position [510, 190, 530, 210]
Gain "400*Zb"
}
Block {
BlockType Gain
Name "vcg"
Position [510, 235, 530, 255]
Gain "400*Zb"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -25]
DstBlock "Selector"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "abc2qd0"
SrcPort 3
Points [0, 50]
DstBlock "T"
DstPort 1
}
Line {
SrcBlock "pm_motor"
SrcPort 4
Points [0, 0]
Branch {
Points [45, 0]
DstBlock "Mux"
DstPort 8
}
Branch {
DstBlock "osc"
DstPort 1
}
}
Line {
SrcBlock "pm_motor"
SrcPort 3
Points [15, 0; 0, -105; -50, 0]
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "pm_motor"
SrcPort 2
Points [70, 0; 0, -10]
DstBlock "qdr2abc"
DstPort 2
}
Line {
SrcBlock "Rate Limiter"
SrcPort 1
Points [0, 0]
Branch {
Points [-35, 0; 0, 40]
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [-35, 0; 0, 255]
DstBlock "Vs-Tem"
DstPort 1
}
}
Line {
SrcBlock "Torque \nCommand"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Rate Limiter"
DstPort 1
}
Branch {
Points [-15, 0; 0, -15]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Satd"
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0; 0, -145; 85, 0]
DstBlock "Mux"
DstPort 4
}
Branch {
Points [15, 0; 0, -70]
DstBlock "qdr2abc1"
DstPort 2
}
}
Line {
SrcBlock "Current\nController2"
SrcPort 1
DstBlock "Satd"
DstPort 1
}
Line {
SrcBlock "Satq"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -75]
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "qdr2abc1"
DstPort 1
}
}
Line {
SrcBlock "Current\nController1"
SrcPort 1
DstBlock "Satq"
DstPort 1
}
Line {
SrcBlock "Feedback"
SrcPort 3
Points [0, 0]
Branch {
Points [-30, 0; 0, -285; 155, 0]
DstBlock "Mux"
DstPort 5
}
Branch {
Points [-290, 0; 0, -30]
DstBlock "Sum4"
DstPort 2
}
}
Line {
SrcBlock "vag"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, -40; 50, 0]
DstBlock "Mux"
DstPort 6
}
Branch {
DstBlock "abc2qd0"
DstPort 1
}
}
Line {
SrcBlock "Feedback"
SrcPort 1
Points [-115, 0; 0, -40; -125, 0; 0, -165]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Feedback"
SrcPort 2
Points [-165, 0; 0, -95; -50, 0; 0, -35]
DstBlock "Sum3"
DstPort 3
}
Line {
SrcBlock "Feedback"
SrcPort 4
Points [-350, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 35; -55, 0]
DstBlock "Id-Iq"
DstPort 1
}
Branch {
DstBlock "Current\nController1"
DstPort 1
}
}
Line {
SrcBlock "Torque\ncontroller"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "vcg"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "abc2qd0"
DstPort 3
}
Line {
SrcBlock "vbg"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "abc2qd0"
DstPort 2
}
Line {
SrcBlock "osc"
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0; 0, 110; -270, 0; 0, -140]
DstBlock "abc2qd0"
DstPort 4
}
Branch {
Points [15, 0; 0, 110; -460, 0; 0, -155]
DstBlock "qdr2abc1"
DstPort 3
}
Branch {
Points [15, 0; 0, 125]
DstBlock "Feedback"
DstPort 1
}
Branch {
Points [40, 0; 0, -40]
DstBlock "qdr2abc"
DstPort 3
}
}
Line {
SrcBlock "osc"
SrcPort 2
Points [0, 0]
Branch {
Points [0, 65; -430, 0]
DstBlock "qdr2abc1"
DstPort 4
}
Branch {
Points [50, 0; 0, -40]
DstBlock "qdr2abc"
DstPort 4
}
Branch {
Points [0, 120]
DstBlock "Feedback"
DstPort 2
}
Branch {
Points [0, 65; -250, 0; 0, -95]
DstBlock "abc2qd0"
DstPort 5
}
}
Line {
SrcBlock "Id-Iq"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Flux \ncontroller"
SrcPort 1
Points [-5, 0; 0, -60; -55, 0; 0, -60]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Vs-Tem"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Flux \ncontroller"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Current\nController2"
DstPort 1
}
Line {
SrcBlock "qdr2abc"
SrcPort 3
Points [0, 0]
Branch {
Points [0, 210]
DstBlock "Feedback"
DstPort 5
}
Branch {
Points [0, 90; -475, 0; 0, -80]
DstBlock "Sa2"
DstPort 1
}
}
Line {
SrcBlock "qdr2abc"
SrcPort 2
Points [0, 0]
Branch {
Points [25, 0; 0, 220]
DstBlock "Feedback"
DstPort 4
}
Branch {
Points [25, 0; 0, 120; -495, 0; 0, -130]
DstBlock "Sa1"
DstPort 1
}
}
Line {
SrcBlock "qdr2abc"
SrcPort 1
Points [0, 0]
Branch {
Points [20, 0; 0, -50; -100, 0]
DstBlock "Mux"
DstPort 9
}
Branch {
Points [35, 0; 0, 225; -480, 0]
DstBlock "Feedback"
DstPort 3
}
Branch {
Points [35, 0; 0, 150; -500, 0; 0, -170]
DstBlock "Sa"
DstPort 1
}
}
Line {
SrcBlock "qdr2abc1"
SrcPort 3
Points [5, 0; 0, 20]
DstBlock "Sa2"
DstPort 2
}
Line {
SrcBlock "qdr2abc1"
SrcPort 2
DstBlock "Sa1"
DstPort 2
}
Line {
SrcBlock "Tmech"
SrcPort 1
DstBlock "pm_motor"
DstPort 4
}
Line {
SrcBlock "Ipm"
SrcPort 1
DstBlock "pm_motor"
DstPort 3
}
Line {
SrcBlock "pm_motor"
SrcPort 1
DstBlock "qdr2abc"
DstPort 1
}
Line {
SrcBlock "abc2qd0"
SrcPort 1
DstBlock "pm_motor"
DstPort 1
}
Line {
SrcBlock "abc2qd0"
SrcPort 2
DstBlock "pm_motor"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Torque\ncontroller"
DstPort 1
}
Line {
SrcBlock "Sa2"
SrcPort 1
DstBlock "vcg"
DstPort 1
}
Line {
SrcBlock "Sa"
SrcPort 1
DstBlock "vag"
DstPort 1
}
Line {
SrcBlock "Sa1"
SrcPort 1
DstBlock "vbg"
DstPort 1
}
Line {
SrcBlock "qdr2abc1"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Sa"
DstPort 2
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [0, -5; -45, 0]
DstBlock "Mux"
DstPort 1
}
Annotation {
Position [745, 226]
VerticalAlignment top
Text "Tem"
}
Annotation {
Position [745, 251]
VerticalAlignment top
Text "wr/wb"
}
Annotation {
Position [830, 241]
VerticalAlignment top
Text "cos (wrt)"
}
Annotation {
Position [830, 261]
VerticalAlignment top
Text "sin (wrt)"
}
Annotation {
Position [750, 191]
VerticalAlignment top
Text "id"
}
Annotation {
Position [750, 161]
VerticalAlignment
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -