📄 dtcpm20.mdl
字号:
SrcPort 1
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Phim_B"
SrcPort 1
Points [40, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -45]
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
}
Line {
SrcBlock "Phim_A"
SrcPort 1
Points [10, 0]
Branch {
Points [30, 0]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 130; 320, 0]
DstBlock "Switch"
DstPort 2
}
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [550, 253, 575, 277]
Value "0"
}
Block {
BlockType Constant
Name "Constant1"
Position [20, 285, 45, 305]
NamePlacement "alternate"
Value "310"
}
Block {
BlockType Constant
Name "Constant2"
Position [115, 229, 130, 251]
Value "3"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [470, 36, 475, 74]
Orientation "left"
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Reference
Name "Discrete\nPI Controller"
Ports [1, 1]
Position [330, 265, 355, 295]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nPI Controller"
SourceType "Discrete PI Controller"
Kp "3"
Ki "10"
Par_Limits "[20 -20]"
Init "0"
Ts "50e-6"
}
Block {
BlockType SubSystem
Name "Error signal of torque and \nflux linkage (outp"
"ut S) "
Ports [5, 1]
Position [380, 228, 440, 362]
BackgroundColor "orange"
TreatAsAtomicUnit off
System {
Name "Error signal of torque and \nflux linkage (ou"
"tput S) "
Location [314, 261, 970, 603]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "93"
Block {
BlockType Inport
Name "T_A"
Position [125, 297, 160, 313]
}
Block {
BlockType Inport
Name "Phim_G"
Position [130, 73, 160, 87]
Port "2"
}
Block {
BlockType Inport
Name "Tg"
Position [125, 228, 155, 242]
Port "3"
}
Block {
BlockType Inport
Name "Phim_B"
Position [70, 158, 100, 172]
Port "4"
}
Block {
BlockType Inport
Name "Phim_A"
Position [55, 188, 85, 202]
Port "5"
}
Block {
BlockType Constant
Name "Constant"
Position [335, 180, 365, 210]
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [510, 280, 600, 310]
Decimation "1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [207, 120, 233, 150]
Orientation "up"
Expr "sqrt(u(1)^2+u(2)^2)"
}
Block {
BlockType Gain
Name "Gain"
Position [405, 105, 435, 135]
Orientation "down"
NamePlacement "alternate"
Gain "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [175, 148, 185, 212]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [210, 70, 230, 90]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [210, 225, 230, 245]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [410, 169, 430, 211]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Relay
Name "磁连滑环"
Position [300, 65, 330, 95]
OnSwitchValue "0.001"
OffSwitchValue "-0.001"
OnOutputValue "0"
OffOutputValue "1"
}
Block {
BlockType Relay
Name "转矩滑环"
Position [305, 220, 335, 250]
OnSwitchValue "0.005"
OffSwitchValue "-0.005"
OnOutputValue "0"
OffOutputValue "1"
}
Block {
BlockType Outport
Name "S"
Position [525, 183, 555, 197]
}
Line {
SrcBlock "Phim_B"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Phim_A"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [30, 0]
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "磁连滑环"
DstPort 1
}
Line {
SrcBlock "Tg"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "转矩滑环"
DstPort 1
}
Line {
SrcBlock "磁连滑环"
SrcPort 1
Points [85, 0]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 20; -25, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "转矩滑环"
SrcPort 1
Points [55, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "S"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Display"
DstPort 1
}
}
Line {
SrcBlock "Phim_G"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "T_A"
SrcPort 1
Points [55, 0]
DstBlock "Sum1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Inverter"
Ports [2, 6]
Position [460, 206, 525, 334]
BackgroundColor "orange"
TreatAsAtomicUnit off
System {
Name "Inverter"
Location [-10, 74, 1002, 715]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "S"
Position [25, 188, 55, 202]
}
Block {
BlockType Inport
Name "Range"
Position [30, 213, 60, 227]
Port "2"
}
Block {
BlockType Constant
Name "Constant"
Position [225, 175, 255, 205]
}
Block {
BlockType Reference
Name "DC Voltage Source"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 1]
Position [720, 145, 740, 180]
Orientation "up"
SourceBlock "powerlib2/Electrical\nSources/DC Voltage So"
"urce"
SourceType "DC Voltage Source"
V "310"
mesure "Voltage"
PSBOutputType "1"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [400, 111, 455, 139]
DataType "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [400, 261, 455, 289]
DataType "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion2"
Position [410, 381, 465, 409]
DataType "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion3"
Position [595, 111, 650, 139]
DataType "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion4"
Position [590, 261, 645, 289]
DataType "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion5"
Position [595, 381, 650, 409]
DataType "double"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [240, 20, 330, 50]
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [395, 15, 485, 45]
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [395, 155, 485, 185]
Decimation "1"
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [400, 340, 490, 370]
Decimation "1"
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [755, 300, 845, 330]
Decimation "1"
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [865, 75, 955, 105]
Decimation "1"
}
Block {
BlockType Reference
Name "Ground (output)"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [734, 210, 766, 240]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [515, 109, 545, 141]
Operator "NOT"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [505, 259, 535, 291]
Operator "NOT"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [1, 1]
Position [505, 379, 535, 411]
Operator "NOT"
AllPortsSameDT off
}
Block {
BlockType Lookup2D
Name "Look-Up\nTable (2-D)"
Position [95, 182, 150, 233]
RowIndex "[1:4]"
ColumnIndex "[1:6]"
OutputValues "[1 5 4 6 2 3;2 3 1 5 4 6;5 4 6 2 3 1;6 2 3 "
"1 5 4]"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Lookup2D
Name "Look-Up\nTable (2-D)1"
Position [295, 72, 350, 123]
RowIndex "[1 2]"
ColumnIndex "[1 2 3 4 5 6]"
OutputValues "[0 0 0 1 1 1;0 0 0 0 0 0]"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Lookup2D
Name "Look-Up\nTable (2-D)2"
Position [295, 172, 350, 223]
RowIndex "[1:2]"
ColumnIndex "[1:6]"
OutputValues "[0 1 1 0 0 1;0 0 0 0 0 0]"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Lookup2D
Name "Look-Up\nTable (2-D)3"
Position [305, 307, 360, 358]
RowIndex "[1:2]"
ColumnIndex "[1:6]"
OutputValues "[1 0 1 0 1 0;0 0 0 0 0 0]"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [690, 67, 700, 423]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Universal Bridge"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 3]
Position [785, 158, 845, 262]
SourceBlock "powerlib2/Power\nElectronics/Universal Brid"
"ge"
SourceType "Universal Bridge"
arms "3"
confi "ABC as output terminals"
injcc "1e5"
cf "inf"
device "Ideal Switches"
Ron "1e-3"
Lon "0"
VFs "[ 0 0 ]"
Vf "0"
gtoparameters "[ 10e-6 , 20e-6 ]"
igbtparameters "[ 1e-6 , 2e-6 ]"
mesure "None"
PSBOutputType "111"
}
Block {
BlockType Outport
Name "Ua"
Position [875, 168, 905, 182]
}
Block {
BlockType Outport
Name "Ub"
Position [875, 203, 905, 217]
Port "2"
}
Block {
BlockType Outport
Name "Uc"
Position [875, 238, 905, 252]
Port "3"
}
Block {
BlockType Outport
Name "Sa"
Position [925, 38, 955, 52]
Port "4"
}
Block {
BlockType Outport
Name "Sb"
Position [930, 198, 960, 212]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -