📄 testbcirobot3c.mdl
字号:
}
Block {
BlockType Constant
Name "r"
Position [415, 424, 535, 446]
Value "[0 0 0 0 1 0 1 0]"
ShowAdditionalParam on
OutDataTypeMode "double"
}
Block {
BlockType Outport
Name "left"
Position [865, 43, 895, 57]
}
Block {
BlockType Outport
Name "right"
Position [865, 123, 895, 137]
Port "2"
}
Line {
SrcBlock "dark"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 2
}
Line {
SrcBlock "L"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 3
}
Line {
SrcBlock "r"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 4
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "0 ... 3"
DstPort 1
}
Line {
SrcBlock "'0'"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "FreePortComms_RX"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "top centre"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
Name "top right"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 2
DstBlock "Display"
DstPort 2
}
Line {
Name "bottom right"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 3
DstBlock "Display"
DstPort 3
}
Line {
Name "bottom centre"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 4
DstBlock "Display"
DstPort 4
}
Line {
Name "bottom left"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 5
DstBlock "Display"
DstPort 5
}
Line {
Name "top left"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 6
DstBlock "Display"
DstPort 6
}
Line {
Name "centre"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 7
DstBlock "Display"
DstPort 7
}
Line {
Name "dot"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 8
DstBlock "Display"
DstPort 8
}
Line {
SrcBlock "Multiport\nSwitch"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "0 ... 3"
SrcPort 1
Points [50, 0]
Branch {
Points [55, 0]
Branch {
Points [60, 0]
Branch {
DstBlock "Multiport\nSwitch"
DstPort 1
}
Branch {
Points [0, -110]
DstBlock "Relational\nOperator1"
DstPort 2
}
}
Branch {
Points [0, -190]
DstBlock "Relational\nOperator2"
DstPort 2
}
}
Branch {
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Relational\nOperator2"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Data Type Conversion1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator2"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [125, 0; 0, -65]
Branch {
DstBlock "Logical\nOperator1"
DstPort 2
}
Branch {
Points [0, -80]
DstBlock "Logical\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "left"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion1"
SrcPort 1
DstBlock "right"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Direction left"
Ports [1]
Position [775, 84, 870, 136]
BackgroundColor "lightBlue"
AncestorBlock "mc9S12tool/Digital output"
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinStr "6"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Program Files\\Metrowerks\\rtmc9S"
"12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid options)|P"
"in (see hardware manuals for valid options)|Sample time|On-threshold (Von)|Of"
"f-threshold (Voff)"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Port P"
"|Port S|Port T),edit,edit,edit,edit"
MaskTunableValueString "off,off,off,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5;"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitaloutput(por"
"t, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port A|5|0.002|0.5|0.5"
System {
Name "Direction left"
Location [262, 82, 829, 357]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinMask "32"
pinStr "5"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Direction right"
Ports [1]
Position [775, 230, 865, 280]
BackgroundColor "lightBlue"
AncestorBlock "mc9S12tool/Digital output"
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinStr "6"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Program Files\\Metrowerks\\rtmc9S"
"12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid options)|P"
"in (see hardware manuals for valid options)|Sample time|On-threshold (Von)|Of"
"f-threshold (Voff)"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Port P"
"|Port S|Port T),edit,edit,edit,edit"
MaskTunableValueString "off,off,off,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5;"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitaloutput(por"
"t, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port A|7|0.002|0.5|0.5"
System {
Name "Direction right"
Location [262, 81, 702, 272]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinMask "128"
pinStr "7"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
}
}
Block {
BlockType From
Name "From"
Position [660, 503, 725, 517]
BackgroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "mot_ctrl"
}
Block {
BlockType From
Name "From1"
Position [660, 483, 725, 497]
BackgroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "gate_right"
}
Block {
BlockType From
Name "From2"
Position [660, 463, 725, 477]
BackgroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "gate_left"
}
Block {
BlockType From
Name "From3"
Position [660, 443, 725, 457]
BackgroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "pulse_right"
}
Block {
BlockType From
Name "From4"
Position [660, 423, 725, 437]
BackgroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "pulse_left"
}
Block {
BlockType From
Name "From5"
Position [220, 368, 285, 382]
BackgroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "pulse_left"
}
Block {
BlockType From
Name "From6"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -