📄 power_svpwm.mdl
字号:
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Gain10"
Position [430, 128, 485, 162]
ShowName off
Gain "1/2/pi"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [520, 225, 550, 305]
ShowName off
Operator "mod"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [695, 248, 700, 317]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [130, 221, 160, 294]
ShowName off
CollapseMode "All dimensions"
RndMeth "Floor"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction5"
Ports [1, 1]
Position [630, 289, 660, 311]
NamePlacement "alternate"
ShowName off
Operator "cos"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction6"
Ports [1, 1]
Position [630, 254, 660, 276]
NamePlacement "alternate"
ShowName off
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [700, 135, 720, 155]
ShowName off
X0 "Finit"
SampleTime "Ts"
}
Block {
BlockType Outport
Name "Freq"
Position [780, 138, 810, 152]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "wt"
Position [775, 213, 805, 227]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Sin_Cos"
Position [770, 278, 800, 292]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [25, 0]
Branch {
Points [0, -40; -575, 0; 0, 120]
DstBlock "Discrete\nVariable Frequency\nMean va"
"lue"
DstPort 1
}
Branch {
DstBlock "Freq"
DstPort 1
}
}
Line {
Name "W"
Labels [0, 0]
SrcBlock "Discrete\nPI Controller"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -100]
DstBlock "Gain10"
DstPort 1
}
Branch {
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
}
Line {
SrcBlock "V(pu)"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Discrete\nVariable Frequency\nMean valu"
"e"
DstPort 2
}
Line {
SrcBlock "Discrete\nVariable Frequency\nMean valu"
"e"
SrcPort 1
DstBlock "Discrete\nPI Controller"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Sin_Cos"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Trigonometric\nFunction6"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Trigonometric\nFunction5"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "wt"
DstPort 1
}
}
Line {
SrcBlock "Trigonometric\nFunction6"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction5"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 35; -570, 0; 0, -60]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Discrete \n2nd-Order\nFilter"
SrcPort 1
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "Gain10"
SrcPort 1
DstBlock "Discrete\nRate Limiter"
DstPort 1
}
Line {
SrcBlock "Discrete\nRate Limiter"
SrcPort 1
DstBlock "Discrete \n2nd-Order\nFilter"
DstPort 1
}
Annotation {
Name "Pierre Giroux, Gilbert Sybille\nPower S"
"ystem Laboratory, IREQ\nHydro-Quebec"
Position [100, 51]
}
Annotation {
Name "Note: sin( a ) * cos( b )= 1/2 * sin( "
"a+b ) + 1/2 * sin(a-b) "
Position [181, 385]
FontSize 12
}
Annotation {
Name "Discrete 1-phase PLL "
Position [109, 19]
FontSize 14
FontWeight "bold"
}
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [130, 73, 155, 107]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "[1]"
OutputSizes "1"
InputPortWidth "3"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [150, 188, 175, 222]
ShowName off
IndexOptions "Index vector (dialog)"
Indices "[1]"
OutputSizes "1"
InputPortWidth "3"
}
Block {
BlockType Terminator
Name "Terminator"
Position [620, 174, 635, 186]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [455, 83, 470, 97]
ShowName off
}
Block {
BlockType Gain
Name "V->pu"
Position [285, 75, 315, 105]
Gain "1/(220*sqrt(2))"
}
Block {
BlockType Outport
Name "Vab"
Position [240, 23, 270, 37]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Ia"
Position [210, 198, 240, 212]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "wm"
Position [385, 253, 415, 267]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Mag"
Position [710, 128, 740, 142]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Freq"
Position [700, 48, 730, 62]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Te"
Position [340, 303, 370, 317]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "PLL"
SrcPort 2
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "PLL"
SrcPort 3
Points [25, 0; 0, 30]
DstBlock "Discrete\nPLL-Driven\n Fundamental Value"
DstPort 2
}
Line {
SrcBlock "V->pu"
SrcPort 1
DstBlock "PLL"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [25, 0]
Branch {
Points [0, -60]
DstBlock "Vab"
DstPort 1
}
Branch {
DstBlock "Discrete \n2nd-Order\nFilter1"
DstPort 1
}
}
Line {
SrcBlock "Discrete\nPLL-Driven\n Fundamental Value"
SrcPort 1
DstBlock "->rms"
DstPort 1
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "->RPM"
SrcPort 1
DstBlock "wm"
DstPort 1
}
Line {
SrcBlock "->rms"
SrcPort 1
DstBlock "Mag"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Ia"
DstPort 1
}
Line {
SrcBlock "Discrete \n2nd-Order\nFilter1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "V->pu"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Discrete\nPLL-Driven\n Fundamental Value"
DstPort 3
}
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Bus\nSelector"
DstPort 1
}
Line {
Name "<Rotor speed (wm)>"
Labels [0, 0]
SrcBlock "Bus\nSelector"
SrcPort 1
DstBlock "->RPM"
DstPort 1
}
Line {
Name "<Electromagnetic torque Te (N*m)>"
Labels [3, 0]
SrcBlock "Bus\nSelector"
SrcPort 2
Points [20, 0; 0, 30]
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "PLL"
SrcPort 1
Points [65, 0]
Branch {
Points [0, 70]
DstBlock "Discrete\nPLL-Driven\n Fundamental Value"
DstPort 1
}
Branch {
DstBlock "Freq"
DstPort 1
}
}
Line {
SrcBlock "Discrete\nPLL-Driven\n Fundamental Value"
SrcPort 2
DstBlock "Terminator"
DstPort 1
}
}
}
Block {
BlockType Step
Name "Speed\nSetpoint\n(RPM)"
Position [60, 115, 90, 145]
ForegroundColor "magenta"
Time "0.1"
Before "1725"
After "1300"
SampleTime "Ts"
}
Block {
BlockType
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -