📄 pll_dsc0.mdl
字号:
Branch {
Points [0, 60]
DstBlock "emod"
DstPort 1
}
}
Line {
SrcBlock "eabc"
SrcPort 1
DstBlock "Secuencia\npositiva1"
DstPort 1
}
Line {
SrcBlock "Secuencia\npositiva1"
SrcPort 1
DstBlock "Secuencia\npositiva2"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [10, 0]
DstBlock "edq_p"
DstPort 1
}
Line {
SrcBlock "Mux6"
SrcPort 1
Points [0, 0]
DstBlock "edq_n"
DstPort 1
}
Annotation {
Name "Metodo de DSC"
Position [342, 61]
UseDisplayTextAsClickCallback off
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Transformacion invariante\nen potencia"
Position [117, 287]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Outport
Name "wt"
Position [650, 83, 680, 97]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vdqpos"
Position [365, 203, 395, 217]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vdqneg"
Position [420, 315, 440, 335]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Block {
BlockType Outport
Name "zero"
Position [245, 340, 265, 360]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
Name "W"
Labels [0, 1]
SrcBlock "Discrete PI Controller"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Branch {
Points [0, 160]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Discrete \n2nd-Order\nFilter"
DstPort 1
}
}
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Vabc "
SrcPort 1
Points [20, 0]
Branch {
DstBlock "abc -> dqp"
DstPort 1
}
Branch {
Points [0, 265]
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "wt"
DstPort 1
}
Branch {
Points [0, 75; -520, 0; 0, -50]
DstBlock "abc -> dqp"
DstPort 2
}
}
Line {
SrcBlock "abc -> dqp"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Demux"
DstPort 1
}
Branch {
Points [0, 120]
Branch {
Points [15, 0]
DstBlock "Divide"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Scope"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
DstBlock "Discrete PI Controller"
DstPort 1
}
Line {
SrcBlock "Divide"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Vdqpos"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "abc -> dqp"
SrcPort 3
Points [10, 0; 0, 95]
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "Discrete \n2nd-Order\nFilter"
SrcPort 1
Points [55, 0; 0, -25]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "zero"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "abc -> dqp"
SrcPort 2
Points [30, 0; 0, 225]
DstBlock "Vdqneg"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PLL without DSC discreto 3\nnormalizado con la "
"amplitud"
Ports [1, 2]
Position [150, 515, 215, 630]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "PLL without DSC discreto 3\nnormalizado con l"
"a amplitud"
Location [2, 86, 1270, 976]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc "
Position [15, 78, 45, 92]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Constant
Name "Constant1"
Position [260, 118, 295, 142]
NamePlacement "alternate"
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant4"
Position [470, 103, 505, 127]
NamePlacement "alternate"
ShowName off
Value "2*pi"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [275, 66, 280, 104]
BackgroundColor "black"
ShowName off
Outputs "2"
Port {
PortNumber 2
Name "Vq"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Discrete \n2nd-Order\nFilter"
Ports [1, 1]
Position [530, 257, 580, 293]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/D"
"iscrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels on
FilterType "Lowpass"
Fo "25"
Zeta "0.707"
Ts "Ts"
Initialize on
Vac_Init "[0 0 Finit]"
Vdc_Init "Finit"
PlotResponse off
param1 "[1 500 0.1]"
}
Block {
BlockType SubSystem
Name "Discrete PI Controller"
Ports [1, 1]
Position [360, 47, 420, 103]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
Port {
PortNumber 1
Name "W"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "Discrete PI Controller"
Location [210, 473, 820, 625]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Error"
Position [15, 93, 45, 107]
FontSize 12
FontWeight "bold"
IconDisplay "Port number"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [145, 84, 180, 116]
IntegratorMethod "Integration: Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Kp4"
Position [95, 36, 140, 64]
ShowName off
Gain "kp_a"
}
Block {
BlockType Gain
Name "Kp5"
Position [75, 84, 110, 116]
ShowName off
Gain "ki_a"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [270, 25, 300, 125]
ShowName off
}
Block {
BlockType Outport
Name "Out"
Position [365, 68, 395, 82]
FontSize 12
FontWeight "bold"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Kp4"
SrcPort 1
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Kp5"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Error"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -50]
DstBlock "Kp4"
DstPort 1
}
Branch {
DstBlock "Kp5"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Sum6"
DstPort 2
}
}
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [470, 57, 510, 93]
ShowName off
IntegratorMethod "Integration: Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "Phase_Init*pi/180"
SampleTime "Ts"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [265, 197, 295, 228]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [560, 55, 590, 135]
ShowName off
Operator "mod"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [355, 271, 385, 304]
Floating off
Location [-3, 52, 1277, 989]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-400~-1.5"
YMax "400~1.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [710, 226, 740, 259]
Floating off
Location [5, 52, 1285, 989]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-50~-50"
YMax "500~400"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -