📄 s3b.mdl
字号:
YMin "-200"
YMax "200"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows off
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Position [115, 156, 135, 234]
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum1"
Position [445, 27, 465, 83]
Orientation left
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum2"
Position [440, 179, 455, 226]
Inputs "++"
}
Block {
BlockType Sum
Name "Sum3"
Position [195, 45, 210, 80]
Orientation left
Inputs "+-"
}
Block {
BlockType Step
Name "Tmech"
Position [465, 238, 505, 262]
Orientation left
Time "1"
Before "0"
After "-Trated"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [465, 354, 515, 376]
VariableName "y"
Buffer "30000"
Decimation "1"
SampleTime "0"
}
Block {
BlockType Constant
Name "kaphi"
Position [360, 134, 410, 156]
Orientation left
Value "0.6699"
}
Block {
BlockType SubSystem
Name "wm* of hoisting cycle"
Position [525, 28, 590, 52]
Orientation left
ShowPortLabels on
MaskType "Repeating table"
MaskDescription "Repeating table."
MaskHelp "Repeats cycle given in table. Time values "
"should be monotonically increasing."
MaskPromptString "Time values:|Output values:"
MaskStyleString "edit,edit"
MaskVariables "rep_seq_t=@1;rep_seq_y=@2;"
MaskInitialization "period = max(rep_seq_t);\n"
MaskDisplay "plot([rep_seq_t,rep_seq_t+period,rep_seq_t+2*per"
"iod,rep_seq_t(1)+3*period],[rep_seq_y,rep_seq_y,"
"rep_seq_y,rep_seq_y(1)])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate off
MaskIconUnits autoscale
MaskValueString "[0 30 40 50 65 75 85 95 100]|[0 wraise "
"wraise 0 0 wlower wlower 0 0]"
System {
Name "wm* of hoisting cycle"
Location [382, 166, 692, 322]
Open off
ScreenColor white
Block {
BlockType Clock
Name "Clock"
Position [45, 60, 65, 80]
DeleteFcn "simclock BlockIsBeingDestroyed"
PostSaveFcn "simclock Save"
Location [30, 40, 110, 80]
}
Block {
BlockType Fcn
Name "Fcn1"
Position [110, 60, 150, 80]
Expr "rem(u[1],period)"
}
Block {
BlockType Lookup
Name "Look-Up Table"
Position [210, 58, 250, 82]
InputValues "rep_seq_t"
OutputValues "rep_seq_y"
}
Block {
BlockType Outport
Name "out_1"
Position [285, 60, 305, 80]
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Look-Up Table"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Look-Up Table"
DstPort 1
}
}
}
Line {
SrcBlock "wm* of hoisting cycle"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "."
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0; 0, 90; 85, 0]
DstBlock "Mux"
DstPort 4
}
Branch {
DstBlock "Sum2"
DstPort 1
}
}
Line {
SrcBlock "Converter"
SrcPort 1
Points [0, 0]
Branch {
Points [-25, 0; 0, 235; 275, 0]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [-25, 0; 0, 130]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Converter"
DstPort 1
}
Line {
SrcBlock "Ia_limit"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Current controller"
DstPort 1
}
Line {
SrcBlock "Current controller"
SrcPort 1
DstBlock "Ia_limit"
DstPort 1
}
Line {
SrcBlock "Tmech"
SrcPort 1
Points [-40, 0; 0, -35]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Ra"
SrcPort 1
Points [-70, 0; 0, -35]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 75; -45, 0]
DstBlock "Mux"
DstPort 5
}
Branch {
Points [10, 0; 0, -135]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [10, 0; 0, -80]
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "kaphi"
SrcPort 1
Points [0, 0]
Branch {
Points [-15, 0; 0, 35]
DstBlock "."
DstPort 1
}
Branch {
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 10]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 10]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 95; 135, 0]
DstBlock "Mux"
DstPort 3
}
Branch {
Points [10, 0; 0, -105; -55, 0; 0, -20]
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [10, 0; 0, 60]
DstBlock "Ra"
DstPort 1
}
Branch {
DstBlock "."
DstPort 2
}
}
Line {
SrcBlock "1/Laq"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [-135, 0; 0, 35]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "1/J"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "1/J"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/Laq"
DstPort 1
}
Annotation {
Position [302, 182]
VerticalAlignment top
Text "Ia"
}
Annotation {
Position [407, 177]
VerticalAlignment top
Text "Tem"
}
Annotation {
Position [137, 118]
VerticalAlignment top
Text "Ea"
}
Annotation {
Position [492, 27]
VerticalAlignment top
Text "wm*"
}
Annotation {
Position [492, 57]
VerticalAlignment top
Text "wm_"
}
Annotation {
Position [87, 49]
VerticalAlignment top
Text "Va"
}
Annotation {
Position [627, 192]
VerticalAlignment top
Text "wm"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -