📄 mras1.mdl
字号:
Block {
BlockType Constant
Name "+10"
Position [315, 249, 340, 271]
NamePlacement "alternate"
ShowName off
Value "0"
VectorParams1D on
}
Block {
BlockType Constant
Name "+11"
Position [315, 274, 340, 296]
NamePlacement "alternate"
ShowName off
Value "0"
VectorParams1D on
}
Block {
BlockType Constant
Name "+2"
Position [315, 204, 340, 226]
NamePlacement "alternate"
ShowName off
Value "1"
VectorParams1D on
}
Block {
BlockType Constant
Name "+6"
Position [315, 109, 340, 131]
NamePlacement "alternate"
ShowName off
Value "1"
VectorParams1D on
}
Block {
BlockType Constant
Name "+7"
Position [315, 134, 340, 156]
NamePlacement "alternate"
ShowName off
Value "0"
VectorParams1D on
}
Block {
BlockType Constant
Name "+8"
Position [315, 39, 340, 61]
NamePlacement "alternate"
ShowName off
Value "1"
VectorParams1D on
}
Block {
BlockType Constant
Name "+9"
Position [315, 64, 340, 86]
NamePlacement "alternate"
ShowName off
Value "1"
VectorParams1D on
}
Block {
BlockType Logic
Name "Log"
Ports [1, 1]
Position [175, 94, 205, 126]
Operator "NOT"
Inputs "2"
}
Block {
BlockType Logic
Name "Log1"
Ports [1, 1]
Position [195, 229, 225, 261]
Operator "NOT"
Inputs "2"
}
Block {
BlockType Logic
Name "Logi"
Ports [2, 1]
Position [235, 102, 265, 133]
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logi1"
Ports [2, 1]
Position [240, 157, 270, 188]
Operator "AND"
Inputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [360, 113, 365, 157]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [360, 43, 365, 87]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [360, 253, 365, 297]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [360, 183, 365, 227]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Relay
Name "Relay"
Position [115, 57, 140, 83]
OnSwitchValue "0.02"
OffSwitchValue "-0.02"
OnOutputValue "1"
OffOutputValue "0"
}
Block {
BlockType Relay
Name "Relay1"
Position [110, 152, 135, 178]
OnSwitchValue "-0.02"
OffSwitchValue "-0.16"
OnOutputValue "1"
OffOutputValue "0"
}
Block {
BlockType SubSystem
Name "SubSystem"
Ports [1, 1, 1]
Position [400, 119, 440, 151]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "SubSystem"
Location [303, 178, 589, 362]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [70, 118, 100, 132]
Port "1"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [125, 75, 145, 95]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Outport
Name "Out1"
Position [170, 118, 200, 132]
Port "1"
OutputWhenDisabled "reset"
InitialOutput "[0 0]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "SubSystem1"
Ports [1, 1, 1]
Position [400, 49, 440, 81]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "SubSystem1"
Location [303, 178, 589, 362]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [70, 118, 100, 132]
Port "1"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [125, 75, 145, 95]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Outport
Name "Out1"
Position [170, 118, 200, 132]
Port "1"
OutputWhenDisabled "reset"
InitialOutput "[0 0]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "SubSystem2"
Ports [1, 1, 1]
Position [400, 259, 440, 291]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "SubSystem2"
Location [301, 180, 587, 364]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [70, 118, 100, 132]
Port "1"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [125, 75, 145, 95]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Outport
Name "Out1"
Position [170, 118, 200, 132]
Port "1"
OutputWhenDisabled "reset"
InitialOutput "[0 0]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "SubSystem3"
Ports [1, 1, 1]
Position [400, 189, 440, 221]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "SubSystem3"
Location [301, 180, 587, 364]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [70, 118, 100, 132]
Port "1"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [125, 75, 145, 95]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Outport
Name "Out1"
Position [170, 118, 200, 132]
Port "1"
OutputWhenDisabled "reset"
InitialOutput "[0 0]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [4, 1]
Position [480, 122, 500, 158]
ShowName off
IconShape "rectangular"
Inputs "++++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [525, 132, 555, 148]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -50]
DstBlock "Relay"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Relay1"
DstPort 1
}
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [0, 10; 15, 0]
Branch {
DstBlock "Log"
DstPort 1
}
Branch {
Points [0, -46]
DstBlock "SubSystem1"
DstPort enable
}
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -40]
DstBlock "Logi"
DstPort 2
}
Branch {
Points [0, 15]
Branch {
Points [0, 65]
DstBlock "Log1"
DstPort 1
}
Branch {
DstBlock "Logi1"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Log"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Logi"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Logi1"
DstPort 1
}
}
Line {
SrcBlock "+6"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "+7"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "SubSystem"
DstPort 1
}
Line {
SrcBlock "+8"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "+9"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "SubSystem1"
DstPort 1
}
Line {
SrcBlock "+10"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "+11"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "SubSystem2"
DstPort 1
}
Line {
SrcBlock "Logi"
SrcPort 1
Points [0, -16]
DstBlock "SubSystem"
DstPort enable
}
Line {
SrcBlock "SubSystem1"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "SubSystem"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "SubSystem2"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 4
}
Line {
SrcBlock "Log1"
SrcPort 1
Points [190, 0]
DstBlock "SubSystem2"
DstPort enable
}
Line {
SrcBlock "+1"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "+2"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "SubSystem3"
DstPort 1
}
Line {
SrcBlock "SubSystem3"
SrcPort 1
Points [10, 0; 0, -60]
DstBlock "Sum"
DstPort 3
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -