<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href='http://gres.uninova.pt/iopt-flow/show-pf.xsl' type='text/xsl' ?>
<net name="xxx" type="iopt-flow">
  <arc id="a3" type="read" source="c2.ResetQEnc" target="c1.xyz" c1_x="60" c1_y="5" c2_x="-125" c2_y="5"/>
  <arc id="a4" type="read" source="c2.Speed" target="c1.xxxxxx"/>
  <arc id="a5" type="read" source="c2.Counter" target="c1.s1" c2_x="-85" c2_y="10" c1_x="75" c1_y="25"/>
  <signal id="s7" x="120" y="115" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <component id="c2" class="local/SpeedCtrl.xml" x="400" y="160" width="130" height="100" rot="0" implementation="iopt-flow">
    <name off_x="-65" off_y="-55" text="c2"/>
    <source_model file="files/SpeedCtrl.xml"/>
    <input id="c2.SpeedPosMode" name="SpeedPosMode" off_x="-65" off_y="-30" type="boolean" microstep="0" nano-step="0"/>
    <input id="c2.RefInput" name="RefInput" off_x="-65" off_y="-10" type="range" min="0" max="1023" microstep="0" nano-step="1"/>
    <output id="c2.Counter" name="Counter" off_x="65" off_y="-30" type="range" min="0" max="16" microstep="1" nano-step="1"/>
    <output id="c2.Speed" name="Speed" off_x="65" off_y="-10" type="range" min="-50" max="50" microstep="0" nano-step="2"/>
    <output id="c2.RefPos" name="RefPos" off_x="65" off_y="10" type="range" min="0" max="1023" microstep="0" nano-step="3"/>
    <output id="c2.ResetQEnc" name="ResetQEnc" off_x="65" off_y="30" type="boolean" microstep="0" nano-step="2"/>
  </component>
  <signal id="s1" x="120" y="195" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <operation id="o2" x="220" y="165" rot="0" shape="arrow" size="24">
    <name off_x="-10" off_y="5" text="o2"/>
    <input off_x="-24" off_y="-8" name="s7" id="o2.s7" type="boolean" min="0" max="1" dynamic="all"/>
    <input off_x="-24" off_y="8" name="s1" id="o2.s1" type="boolean" min="0" max="1" dynamic="all"/>
    <output off_x="24" off_y="0" name="out" id="o2.out" type="range" min="-32768" max="32767" dynamic="type" microstep="0" nano-step="1">
      <expression>
        <text>s7 + s1</text>
        <operand type="signal" idRef="s7"/>
        <operator type="add"/>
        <operand type="signal" idRef="s1"/>
      </expression>
    </output>
  </operation>
  <arc id="a6" type="read" source="s1" target="o2.s1"/>
  <arc id="a7" type="read" source="o2.out" target="c2.RefInput"/>
  <arc id="a8" type="read" source="s7" target="o2.s7"/>
  <operation id="o1" x="225" y="275" rot="0" shape="arrow" size="24">
    <name off_x="-10" off_y="5" text="o1"/>
    <input off_x="-24" off_y="-8" name="s7" id="o1.s7" type="boolean" min="0" max="1" dynamic="all"/>
    <input off_x="-24" off_y="8" name="s1" id="o1.s1" type="boolean" min="0" max="1" dynamic="all"/>
    <output off_x="24" off_y="0" name="out" id="o1.out" type="event" min="0" max="1" dynamic="type" frac="0" microstep="0" nano-step="1">
      <expression>
        <operand type="signal" idRef="s7"/>
        <operator type="more"/>
        <operand type="signal" idRef="s1"/>
        <text>s7 &gt; s1</text>
      </expression>
    </output>
  </operation>
  <arc id="a2" type="read" source="s7" target="o1.s7"/>
  <arc id="a9" type="read" source="s1" target="o1.s1"/>
  <arc id="a10" type="read" source="o1.out" target="c1.e1"/>
  <arc id="a11" type="read" source="o1.out" target="c1.ie00"/>
  <signal id="s2" x="795" y="305" mode="output" type="range" min="-32768" max="32767" dynamic="type" microstep="1" nano-step="3"/>
  <arc id="a12" type="read" source="c1.os1" target="s2"/>
  <signal id="s13" x="790" y="360" mode="output" type="boolean" min="0" max="1" dynamic="type" microstep="1" nano-step="2"/>
  <arc id="a14" type="read" source="c1.os3" target="s13"/>
  <component id="c1" class="local/sample_XXYYZZ" x="675" y="300" width="150" height="140" rot="0" implementation="iopt-flow">
    <name off_x="-75" off_y="-75" text="c1"/>
    <source_model file="files/sample_XXYYZZ"/>
    <input id="c1.ie00" name="ie00" type="event" off_x="-75" off_y="-50"/>
    <input id="c1.e1" name="e1" type="event" off_x="-75" off_y="-30"/>
    <input id="c1.xyz" name="xyz" off_x="-75" off_y="-10" type="boolean"/>
    <input id="c1.xxxxxx" name="xxxxxx" off_x="-75" off_y="10" type="boolean"/>
    <input id="c1.s1" name="s1" off_x="-75" off_y="30" type="boolean"/>
    <input id="c1.s2" name="s2" off_x="-75" off_y="50" type="boolean"/>
    <output id="c1.eox1" name="eox1" type="event" off_x="75" off_y="-50" microstep="0" nano-step="1"/>
    <output id="c1.e2" name="e2" type="event" off_x="75" off_y="-30" microstep="0" nano-step="1"/>
    <output id="c1.os0" name="os0" off_x="75" off_y="-10" type="range" min="-32768" max="32767" microstep="0" nano-step="3"/>
    <output id="c1.os1" name="os1" off_x="75" off_y="10" type="range" min="-32768" max="32767" microstep="1" nano-step="3"/>
    <output id="c1.os3" name="os3" off_x="75" off_y="30" type="boolean" microstep="1" nano-step="2"/>
  </component>
  <component id="c3" class="local/xxx_CX" x="310" y="390" width="100" height="40" rot="0" implementation="iopt-flow">
    <name off_x="-50" off_y="-25" text="CX_?"/>
    <source_model file="files/xxx_CX"/>
    <input id="c3.is0" name="is0" off_x="-50" off_y="0" type="boolean"/>
    <output id="c3.os0" name="os0" off_x="50" off_y="0" type="boolean" microstep="0" nano-step="0"/>
  </component>
</net>
