<?xml version="1.0" encoding="UTF-8"?>
<net name="dist_system0__main" type="iopt-flow">
  <component id="c1" class="local/IOX8.xml" x="230" y="170" width="180" height="200" rot="0" implementation="iopt-flow" target="distributed" res_location="node1">
    <name off_x="-90" off_y="-105" text="IOX8_DIPSW"/>
    <source_model file="files/IOX8.xml"/>
    <input id="c1.Enb" name="Enb" off_x="-90" off_y="-80" type="boolean"/>
    <input id="c1.I1" name="I1" off_x="-90" off_y="-60" type="boolean"/>
    <input id="c1.I2" name="I2" off_x="-90" off_y="-40" type="boolean"/>
    <input id="c1.I3" name="I3" off_x="-90" off_y="-20" type="boolean"/>
    <input id="c1.I4" name="I4" off_x="-90" off_y="0" type="boolean"/>
    <input id="c1.I5" name="I5" off_x="-90" off_y="20" type="boolean"/>
    <input id="c1.I6" name="I6" off_x="-90" off_y="40" type="boolean"/>
    <input id="c1.I7" name="I7" off_x="-90" off_y="60" type="boolean"/>
    <input id="c1.I8" name="I8" off_x="-90" off_y="80" type="boolean"/>
    <output id="c1.O1" name="O1" off_x="90" off_y="-80" type="boolean"/>
    <output id="c1.O2" name="O2" off_x="90" off_y="-60" type="boolean"/>
    <output id="c1.O3" name="O3" off_x="90" off_y="-40" type="boolean"/>
    <output id="c1.O4" name="O4" off_x="90" off_y="-20" type="boolean"/>
    <output id="c1.O5" name="O5" off_x="90" off_y="0" type="boolean"/>
    <output id="c1.O6" name="O6" off_x="90" off_y="20" type="boolean"/>
    <output id="c1.O7" name="O7" off_x="90" off_y="40" type="boolean"/>
    <output id="c1.O8" name="O8" off_x="90" off_y="60" type="boolean"/>
  </component>
  <component id="c001" class="local/IOX8.xml" x="875" y="150" width="180" height="200" rot="0" implementation="iopt-flow" target="distributed" res_location="node2">
    <name off_x="-90" off_y="-105" text="IOX8_LEDS"/>
    <source_model file="files/IOX8.xml"/>
    <input id="c001.Enb" name="Enb" off_x="-90" off_y="-80" type="boolean"/>
    <input id="c001.I1" name="I1" off_x="-90" off_y="-60" type="boolean"/>
    <input id="c001.I2" name="I2" off_x="-90" off_y="-40" type="boolean"/>
    <input id="c001.I3" name="I3" off_x="-90" off_y="-20" type="boolean"/>
    <input id="c001.I4" name="I4" off_x="-90" off_y="0" type="boolean"/>
    <input id="c001.I5" name="I5" off_x="-90" off_y="20" type="boolean"/>
    <input id="c001.I6" name="I6" off_x="-90" off_y="40" type="boolean"/>
    <input id="c001.I7" name="I7" off_x="-90" off_y="60" type="boolean"/>
    <input id="c001.I8" name="I8" off_x="-90" off_y="80" type="boolean"/>
    <output id="c001.O1" name="O1" off_x="90" off_y="-80" type="boolean"/>
    <output id="c001.O2" name="O2" off_x="90" off_y="-60" type="boolean"/>
    <output id="c001.O3" name="O3" off_x="90" off_y="-40" type="boolean"/>
    <output id="c001.O4" name="O4" off_x="90" off_y="-20" type="boolean"/>
    <output id="c001.O5" name="O5" off_x="90" off_y="0" type="boolean"/>
    <output id="c001.O6" name="O6" off_x="90" off_y="20" type="boolean"/>
    <output id="c001.O7" name="O7" off_x="90" off_y="40" type="boolean"/>
    <output id="c001.O8" name="O8" off_x="90" off_y="60" type="boolean"/>
  </component>
  <arc id="a007" type="read" source="c002.Led1" target="c001.I1"/>
  <arc id="a008" type="read" source="c002.Led2" target="c001.I2"/>
  <arc id="a009" type="read" source="c002.Led3" target="c001.I3"/>
  <arc id="a010" type="read" source="c002.Led4" target="c001.I4"/>
  <arc id="a011" type="read" source="c002.Led5" target="c001.I5"/>
  <arc id="a012" type="read" source="c002.Led6" target="c001.I6"/>
  <arc id="a013" type="read" source="c002.Led7" target="c001.I7"/>
  <arc id="a014" type="read" source="c002.Led8" target="c001.I8"/>
  <arc id="a015" type="read" source="c1.O4" target="c002.Enable"/>
  <operation id="o018" x="380" y="90" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="Evt1"/>
    <input off_x="-16" off_y="0" name="O1" id="o018.O1" type="boolean" dynamic="all"/>
    <output off_x="16" off_y="0" name="out" id="o018.out" type="event" min="0" max="1" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="O1" delay="1"/>
        <operator type="equal"/>
        <operand type="literal" value="0"/>
        <operator type="and"/>
        <operand type="signal" idRef="O1"/>
        <operator type="equal"/>
        <operand type="literal" value="1"/>
        <text>O1[-1] = 0 AND O1 = 1</text>
      </expression>
    </output>
  </operation>
  <arc id="a019" type="read" source="c1.O1" target="o018.O1"/>
  <arc id="a020" type="read" source="o018.out" target="c002.Rst"/>
  <operation id="o021" x="455" y="110" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="Evt2"/>
    <input off_x="-16" off_y="0" name="O2" id="o021.O2" type="boolean" dynamic="all"/>
    <output off_x="16" off_y="0" name="out" id="o021.out" type="event" min="0" max="1" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="O2" delay="1"/>
        <operator type="equal"/>
        <operand type="literal" value="0"/>
        <operator type="and"/>
        <operand type="signal" idRef="O2"/>
        <operator type="equal"/>
        <operand type="literal" value="1"/>
        <text>O2[-1] = 0 AND O2 = 1</text>
      </expression>
    </output>
  </operation>
  <operation id="o022" x="380" y="130" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="Evt3"/>
    <input off_x="-16" off_y="0" name="O3" id="o022.O3" type="boolean" dynamic="all"/>
    <output off_x="16" off_y="0" name="out" id="o022.out" type="event" min="0" max="1" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="O3" delay="1"/>
        <operator type="equal"/>
        <operand type="literal" value="0"/>
        <operator type="and"/>
        <operand type="signal" idRef="O3"/>
        <operator type="equal"/>
        <operand type="literal" value="1"/>
        <text>O3[-1] = 0 AND O3 = 1</text>
      </expression>
    </output>
  </operation>
  <arc id="a023" type="read" source="c1.O2" target="o021.O2"/>
  <arc id="a024" type="read" source="o021.out" target="c002.IncSpd"/>
  <arc id="a025" type="read" source="c1.O3" target="o022.O3"/>
  <arc id="a026" type="read" source="o022.out" target="c002.DecSpd"/>
  <arc id="a038" type="read" source="c1.O4" target="c001.Enb" view="symbolic"/>
  <component id="c002" class="local/Kit.xml" x="620" y="170" width="180" height="200" rot="0" implementation="iopt-flow" target="default">
    <name off_x="-90" off_y="-105" text="Kit_0"/>
    <source_model file="files/Kit.xml"/>
    <input id="c002.Rst" name="Rst" type="event" off_x="-90" off_y="-80"/>
    <input id="c002.IncSpd" name="IncSpd" type="event" off_x="-90" off_y="-60"/>
    <input id="c002.DecSpd" name="DecSpd" type="event" off_x="-90" off_y="-40"/>
    <input id="c002.Enable" name="Enable" off_x="-90" off_y="-20" type="boolean"/>
    <output id="c002.Led1" name="Led1" off_x="90" off_y="-80" type="boolean"/>
    <output id="c002.Led2" name="Led2" off_x="90" off_y="-60" type="boolean"/>
    <output id="c002.Led3" name="Led3" off_x="90" off_y="-40" type="boolean"/>
    <output id="c002.Led4" name="Led4" off_x="90" off_y="-20" type="boolean"/>
    <output id="c002.Led5" name="Led5" off_x="90" off_y="0" type="boolean"/>
    <output id="c002.Led6" name="Led6" off_x="90" off_y="20" type="boolean"/>
    <output id="c002.Led7" name="Led7" off_x="90" off_y="40" type="boolean"/>
    <output id="c002.Led8" name="Led8" off_x="90" off_y="60" type="boolean" on_error="-32768"/>
    <output id="c002.Speed" name="Speed" off_x="90" off_y="80" type="range" min="1" max="10" on_error="0"/>
  </component>
</net>
