📄 motor2.mdl
字号:
}
Block {
BlockType Lookup
Name "Look-Up\nTable2"
Position [405, 214, 455, 266]
InputValues "[0;pi/6;3*pi/6;7*pi/6;9*pi/6;2*pi]"
OutputValues "[1;1;-1;-1;1;1]"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [590, 111, 600, 209]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Out1"
Position [820, 153, 850, 167]
}
Line {
SrcBlock "in 1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, 80]
DstBlock "Look-Up\nTable2"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Look-Up\nTable"
DstPort 1
}
Branch {
DstBlock "Look-Up\nTable1"
DstPort 1
}
}
Line {
SrcBlock "Look-Up\nTable2"
SrcPort 1
Points [55, 0; 0, -50]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Look-Up\nTable1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Look-Up\nTable"
SrcPort 1
Points [55, 0; 0, 55]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "常数"
Position [675, 223, 695, 247]
NamePlacement "alternate"
Value "pi/6"
}
Block {
BlockType SubSystem
Name "反电势模块"
Ports [2, 1]
Position [465, 164, 565, 206]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "反电势模块"
Location [2, 84, 1014, 715]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in 1"
Position [170, 258, 200, 272]
}
Block {
BlockType Inport
Name "w"
Position [185, 383, 215, 397]
Port "2"
}
Block {
BlockType Gain
Name "Gain"
Position [270, 369, 325, 411]
Gain "0.055"
}
Block {
BlockType Lookup
Name "Look-Up\nTable"
Position [305, 175, 340, 215]
InputValues "[0;pi/6;5*pi/6;pi;7*pi/6;11*pi/6;2*pi]"
OutputValues "[0;1;1;0;-1;-1;0]"
}
Block {
BlockType Lookup
Name "Look-Up\nTable1"
Position [305, 244, 345, 286]
InputValues "[0;3*pi/6;5*pi/6;9*pi/6;11*pi/6;2*pi]"
OutputValues "[-1;-1;1;1;-1;-1]"
}
Block {
BlockType Lookup
Name "Look-Up\nTable2"
Position [305, 315, 345, 355]
InputValues "[0;pi/6;3*pi/6;7*pi/6;9*pi/6;2*pi]"
OutputValues "[1;1;-1;-1;1;1]"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [400, 177, 410, 353]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [445, 256, 490, 289]
InputSameDT off
}
Block {
BlockType Outport
Name "e"
Position [515, 268, 545, 282]
}
Line {
SrcBlock "in 1"
SrcPort 1
Points [40, 0]
Branch {
Points [0, 70]
DstBlock "Look-Up\nTable2"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Look-Up\nTable"
DstPort 1
}
Branch {
DstBlock "Look-Up\nTable1"
DstPort 1
}
}
Line {
SrcBlock "Look-Up\nTable2"
SrcPort 1
Points [35, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Look-Up\nTable1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Look-Up\nTable"
SrcPort 1
Points [40, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [100, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "e"
DstPort 1
}
}
}
Block {
BlockType Integrator
Name "积分模块"
Ports [1, 1]
Position [360, 278, 380, 302]
}
Block {
BlockType Integrator
Name "积分模块1"
Ports [1, 1]
Position [595, 240, 615, 270]
}
Block {
BlockType Integrator
Name "积分模块2"
Ports [1, 1]
Position [650, 244, 670, 266]
}
Block {
BlockType SubSystem
Name "中点电压模块"
Ports [2, 1]
Position [550, 386, 590, 424]
TreatAsAtomicUnit off
System {
Name "中点电压模块"
Location [2, 83, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "e\n"
Position [60, 58, 90, 72]
}
Block {
BlockType Inport
Name "u"
Position [60, 183, 90, 197]
Port "2"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [185, 30, 190, 100]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [185, 152, 190, 228]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Gain
Name "Gain"
Position [495, 106, 525, 134]
Gain "1/3"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [625, 82, 630, 158]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [290, 12, 300, 98]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [290, 138, 300, 222]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [385, 90, 405, 110]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Un"
Position [670, 113, 700, 127]
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [0, 5]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [0, -5]
DstBlock "Sum3"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 5]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [80, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "e\n"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [25, 0; 0, 45]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [90, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [70, 0]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -25]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Un"
DstPort 1
}
Annotation {
Position [580, 244]
}
}
}
Block {
BlockType Outport
Name "i"
Position [420, 333, 450, 347]
}
Block {
BlockType Outport
Name "w\n"
Position [655, 293, 685, 307]
Port "2"
}
Block {
BlockType Outport
Name "o1\n"
Position [735, 283, 765, 297]
Orientation "left"
Port "3"
}
Block {
BlockType Outport
Name "Te"
Position [500, 293, 530, 307]
Port "4"
}
Block {
BlockType Outport
Name "e"
Position [330, 193, 360, 207]
Port "5"
}
Line {
SrcBlock "u"
SrcPort 1
Points [20, 0]
Branch {
Labels [1, 0]
Points [135, 0]
DstBlock "Sum5"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, 65]
DstBlock "中点电压模块"
DstPort 2
}
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "常数"
SrcPort 1
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "中点电压模块"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Sum5"
SrcPort 1
Points [-325, 0; 0, -135]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "e/w模块"
SrcPort 1
Points [-10, 0; 0, 55]
DstBlock "Dot Product"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "o1\n"
DstPort 1
}
Branch {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -