📄 foc.mdl
字号:
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [385, 192, 400, 248]
ShowName off
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [110, 150, 140, 180]
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [105, 215, 135, 245]
Operator "cos"
}
Block {
BlockType Outport
Name "ia"
Position [430, 38, 460, 52]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "ib"
Position [445, 163, 475, 177]
Port "2"
IconDisplay "Port number"
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "ib"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [5, 0; 0, -30]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "ia"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [45, 0; 0, -25]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "iq"
SrcPort 1
Points [85, 0; 0, -30; 35, 0]
Branch {
Points [0, 150]
DstBlock "Product3"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 1
}
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
Points [60, 0]
Branch {
Points [0, 35; 85, 0]
DstBlock "Product2"
DstPort 2
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [45, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction1"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 20]
DstBlock "Product3"
DstPort 2
}
Branch {
Points [0, -190]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "id"
SrcPort 1
Points [70, 0]
Branch {
Points [65, 0; 0, 130]
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "teta"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 40]
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Trigonometric\nFunction"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "alfa-beta2abc"
Ports [2, 3]
Position [280, 59, 380, 101]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "alfa-beta2abc"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Id"
Position [15, 73, 45, 87]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Iq"
Position [15, 178, 45, 192]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain"
Position [125, 20, 155, 50]
Gain "sqrt(2/3)"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain1"
Position [125, 70, 155, 100]
Gain "-sqrt(2/3)/2"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain2"
Position [125, 115, 155, 145]
Gain "sqrt(2)/2"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain3"
Position [130, 180, 160, 210]
Gain "-sqrt(2/3)/2"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain4"
Position [135, 230, 165, 260]
Gain "-sqrt(2)/2"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 74, 215, 136]
ShowName off
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [205, 169, 225, 231]
ShowName off
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Ia"
Position [410, 43, 440, 57]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "Ib"
Position [420, 108, 450, 122]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "Ic"
Position [430, 178, 460, 192]
Port "3"
IconDisplay "Port number"
}
Line {
SrcBlock "Id"
SrcPort 1
Points [10, 0]
Branch {
Points [15, 0]
Branch {
Points [20, 0; 0, -45]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Gain1"
DstPort 1
}
}
Branch {
Points [0, 115]
DstBlock "Gain3"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [115, 0; 0, 15]
DstBlock "Ia"
DstPort 1
}
Line {
SrcBlock "Iq"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -55]
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Gain4"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [10, 0; 0, -5]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [90, 0; 0, 10]
DstBlock "Ib"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [10, 0; 0, 5]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [90, 0; 0, -15]
DstBlock "Ic"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "ia"
Position [410, 43, 440, 57]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "ib"
Position [415, 88, 445, 102]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "ic"
Position [420, 128, 450, 142]
Port "3"
IconDisplay "Port number"
}
Line {
SrcBlock "alfa-beta2abc"
SrcPort 3
Points [10, 0; 0, 40]
DstBlock "ic"
DstPort 1
}
Line {
SrcBlock "alfa-beta2abc"
SrcPort 2
Points [5, 0; 0, 15]
DstBlock "ib"
DstPort 1
}
Line {
SrcBlock "alfa-beta2abc"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "ia"
DstPort 1
}
Line {
SrcBlock "teta"
SrcPort 1
Points [20, 0; 0, -30]
DstBlock "VR-1"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
Points [20, 0; 0, 5]
DstBlock "VR-1"
DstPort 2
}
Line {
SrcBlock "id"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "VR-1"
DstPort 1
}
Line {
SrcBlock "VR-1"
SrcPort 2
DstBlock "alfa-beta2abc"
DstPort 2
}
Line {
SrcBlock "VR-1"
SrcPort 1
DstBlock "alfa-beta2abc"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [995, 146, 1020, 324]
Floating off
Location [5, 60, 1029, 737]
Open on
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "3"
YMin "-12.5~-15~500"
YMax "12.5~15~2500"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Speed controler1"
Ports [2, 1]
Position [80, 249, 140, 291]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskPromptString "Kp|Ki"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Kp=@1;Ki=@2;"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -