📄 foc.mdl
字号:
SrcPort 1
Points [35, 0; 0, 5]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [35, 0; 0, 25]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Uc"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 40]
DstBlock "Gain4"
DstPort 1
}
Branch {
Points [35, 0; 0, -90]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Ub"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 70]
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [45, 0; 0, -60]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Ua"
SrcPort 1
Points [60, 0; 0, -30]
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "i"
Position [605, 48, 635, 62]
}
Block {
BlockType Outport
Name "Te"
Position [565, 98, 595, 112]
Port "2"
}
Block {
BlockType Outport
Name "w"
Position [760, 133, 790, 147]
Port "3"
}
Block {
BlockType Outport
Name "pos"
Position [565, 158, 595, 172]
Port "4"
}
Line {
SrcBlock "Ua"
SrcPort 1
Points [0, 20]
DstBlock "abctoab"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "i"
DstPort 1
}
Line {
SrcBlock "Ub"
SrcPort 1
Points [0, -5]
DstBlock "abctoab"
DstPort 2
}
Line {
SrcBlock "Uc"
SrcPort 1
DstBlock "abctoab"
DstPort 3
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
Points [5, 0]
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "Tl"
SrcPort 1
DstBlock "Subsystem1"
DstPort 5
}
Line {
SrcBlock "Subsystem1"
SrcPort 3
Points [5, 0]
DstBlock "pos"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 2
Points [100, 0]
Branch {
Points [0, 160; -440, 0]
DstBlock "Subsystem"
DstPort 2
}
Branch {
DstBlock "w"
DstPort 1
}
}
Line {
SrcBlock "Subsystem2"
SrcPort 3
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Subsystem2"
SrcPort 2
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Subsystem2"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [90, 0; 0, 70]
DstBlock "Subsystem1"
DstPort 3
}
Line {
SrcBlock "Subsystem"
SrcPort 3
Points [95, 0]
DstBlock "Subsystem1"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 4
Points [15, 0]
Branch {
Points [35, 0; 0, -25]
DstBlock "Subsystem2"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Subsystem1"
DstPort 4
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -15]
DstBlock "Subsystem2"
DstPort 1
}
Branch {
Points [20, 0; 0, 70]
DstBlock "Subsystem1"
DstPort 2
}
}
Line {
SrcBlock "abctoab"
SrcPort 2
Points [0, 25]
DstBlock "Subsystem"
DstPort 3
}
Line {
SrcBlock "abctoab"
SrcPort 1
Points [10, 0; 0, 15]
DstBlock "Subsystem"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [995, 146, 1020, 324]
Location [5, 60, 1029, 737]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "3"
YMin "-12.5~-15~500"
YMax "12.5~15~2500"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
}
Block {
BlockType SubSystem
Name "Speed controler1"
Ports [2, 1]
Position [80, 249, 140, 291]
TreatAsAtomicUnit 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;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "30|5"
System {
Name "Speed controler1"
Location [433, 403, 931, 686]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "w*"
Position [35, 83, 65, 97]
}
Block {
BlockType Inport
Name "w"
Position [40, 138, 70, 152]
Port "2"
}
Block {
BlockType Gain
Name "Gain"
Position [220, 65, 250, 95]
Gain "Kp"
}
Block {
BlockType Gain
Name "Gain1"
Position [225, 130, 255, 160]
Gain "Ki"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [295, 130, 325, 160]
}
Block {
BlockType Saturate
Name "Saturation"
Position [405, 85, 435, 115]
UpperLimit "20"
LowerLimit "-20"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [115, 102, 140, 158]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [365, 71, 385, 129]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Te"
Position [470, 93, 500, 107]
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [30, 0; 0, -5]
Branch {
Points [0, -25]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [45, 0; 0, 20]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "w*"
SrcPort 1
Points [15, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Te"
DstPort 1
}
}
}
Block {
BlockType Step
Name "Step"
Position [15, 240, 45, 270]
Before "250"
After "150"
SampleTime "0"
}
Block {
BlockType Step
Name "Step1"
Position [710, 390, 740, 420]
Time "2"
After "5"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [6, 3]
Position [640, 197, 745, 298]
TreatAsAtomicUnit off
MaskPromptString "Vd"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Vd=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "780"
System {
Name "Subsystem"
Location [2, 84, 1014, 716]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 13, 50, 27]
}
Block {
BlockType Inport
Name "In2"
Position [20, 68, 50, 82]
Port "2"
}
Block {
BlockType Inport
Name "In3"
Position [15, 128, 45, 142]
Port "3"
}
Block {
BlockType Inport
Name "In4"
Position [20, 168, 50, 182]
Port "4"
}
Block {
BlockType Inport
Name "In5"
Position [15, 213, 45, 227]
Port "5"
}
Block {
BlockType Inport
Name "In6"
Position [20, 248, 50, 262]
Port "6"
}
Block {
BlockType Constant
Name "Constant"
Position [355, 94, 400, 126]
Value "0.5*Vd"
}
Block {
BlockType Constant
Name "Constant1"
Position [355, 154, 400, 186]
Value "-0.5*Vd"
}
Block {
BlockType Gain
Name "Gain"
Position [620, 100, 650, 130]
Gain "2/3"
}
Block {
BlockType Gain
Name "Gain1"
Position [625, 155, 655, 185]
Gain "1/3"
}
Block {
BlockType Gain
Name "Gain2"
Position [625, 375, 655, 405]
Gain "2/3"
}
Block {
BlockType Gain
Name "Gain3"
Position [625, 230, 655, 260]
Gain "2/3"
}
Block {
BlockType Gain
Name "Gain4"
Position [625, 290, 655, 320]
Gain "1/3"
}
Block {
BlockType Gain
Name "Gain5"
Position [625, 435, 655, 465]
Gain "1/3"
}
Block {
BlockType Relay
Name "Relay"
Position [210, 30, 240, 60]
OnSwitchValue "0.001"
OffSwitchValue "-0.001"
OffOutputValue "-1"
}
Block {
BlockType Relay
Name "Relay1"
Position [200, 125, 230, 155]
OnSwitchValue "0.001"
OffSwitchValue "0.001"
OffOutputValue "-1"
}
Block {
BlockType Relay
Name "Relay2"
Position [225, 210, 255, 240]
OnSwitchValue "0.001"
OffSwitchValue "0.001"
OffOutputValue "-1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [130, 14, 150, 76]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [125, 114, 145, 176]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -