📄 foc.mdl
字号:
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "30|5"
MaskTabNameString ","
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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "w*"
Position [35, 83, 65, 97]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "w"
Position [40, 138, 70, 152]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain"
Position [220, 65, 250, 95]
Gain "Kp"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain1"
Position [225, 130, 255, 160]
Gain "Ki"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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 "|+-"
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 [365, 71, 385, 129]
ShowName off
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Te"
Position [470, 93, 500, 107]
IconDisplay "Port number"
}
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 "Subsystem6"
Ports [2, 1]
Position [745, 35, 785, 135]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskPromptString "W1|B1|n1|kd|n2"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "W1=@1;B1=@2;n1=@3;kd=@4;n2=@5;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.5|-0.11|0.03|-0.183|0.03"
MaskTabNameString ",,,,"
System {
Name "Subsystem6"
Location [-88, 107, 924, 597]
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 "Wr*"
Position [25, 58, 55, 72]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Wr"
Position [25, 128, 55, 142]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Derivative
Name "Derivative"
Position [140, 150, 170, 180]
}
Block {
BlockType Gain
Name "Gain"
Position [255, 150, 285, 180]
Gain "kd"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain1"
Position [430, 110, 460, 140]
Gain "n1"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain2"
Position [430, 310, 460, 340]
Gain "n1"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [530, 101, 575, 134]
CollapseMode "All dimensions"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [805, 91, 850, 124]
CollapseMode "All dimensions"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Saturate
Name "Saturation"
Position [935, 195, 965, 225]
UpperLimit "20"
LowerLimit "-20"
}
Block {
BlockType Step
Name "Step"
Position [550, 35, 580, 65]
Time "0"
Before "W1"
After "0"
SampleTime "0"
}
Block {
BlockType Step
Name "Step1"
Position [590, 240, 620, 270]
Time "0"
Before "B1"
After "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [190, 72, 215, 128]
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 [920, 82, 945, 138]
ShowName off
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [350, 97, 375, 153]
ShowName off
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [655, 114, 680, 186]
ShowName off
Inputs "|+++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum4"
Ports [3, 1]
Position [655, 314, 680, 386]
ShowName off
Inputs "|+++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [645, 180, 680, 220]
Orientation "left"
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [655, 405, 690, 445]
Orientation "left"
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out1"
Position [985, 198, 1015, 212]
IconDisplay "Port number"
}
Line {
SrcBlock "Wr*"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 35]
DstBlock "Sum"
DstPort 1
}
Branch {
Points [400, 0]
Branch {
Points [0, 45]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -40; 205, 0; 0, 75]
DstBlock "Product1"
DstPort 1
}
}
}
Line {
SrcBlock "Wr"
SrcPort 1
Points [35, 0; 0, -5]
Branch {
Points [0, 35]
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, -10]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [25, 0; 0, -20]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [95, 0; 0, 25]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 200]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [0, -35; 15, 0]
Branch {
Points [0, 85]
DstBlock "Unit Delay1"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Product"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -