<?xml version="1.0"?>
<net name="EVPPOK" type="iopt-flow">
  <component id="c1" class="local/Event_LT_to_GT.xml" x="400" y="375" width="160" height="160" rot="0" implementation="iopt-flow" target="default">
    <name off_x="-80" off_y="-85" text="Event_LT_to_GT_?"/>
    <source_model file="files/Event_LT_to_GT.xml"/>
    <input id="c1.signal" name="signal" off_x="-80" off_y="-60" type="range" min="-1000" max="1000"/>
    <input id="c1.k" name="k" off_x="-80" off_y="-40" type="range" min="0" max="1000"/>
    <input id="c1.delta" name="delta" off_x="-80" off_y="-20" type="range" min="0" max="100"/>
    <input id="c1.Valid_In" name="Valid_In" off_x="-80" off_y="0" type="boolean"/>
    <input id="c1.condition" name="condition" off_x="-80" off_y="20" type="boolean"/>
    <input id="c1.max" name="max" off_x="-80" off_y="40" type="range" min="0" max="100"/>
    <input id="c1.min" name="min" off_x="-80" off_y="60" type="range" min="0" max="100"/>
    <output id="c1.evout" name="evout" type="event" off_x="80" off_y="-60"/>
    <output id="c1.MevOut" name="MevOut" type="event" off_x="80" off_y="-40"/>
    <output id="c1.ValidOut" name="ValidOut" off_x="80" off_y="-20" type="range" min="-32768" max="32767"/>
  </component>
  <component id="c001" class="local/Event_GT_to_LT.xml" x="400" y="130" width="160" height="160" rot="0" implementation="iopt-flow" target="default">
    <name off_x="-80" off_y="-85" text="Event_GT_to_LT_?"/>
    <source_model file="files/Event_GT_to_LT.xml"/>
    <input id="c001.signal" name="signal" off_x="-80" off_y="-60" type="range" min="-1000" max="1000"/>
    <input id="c001.k" name="k" off_x="-80" off_y="-40" type="range" min="0" max="1000"/>
    <input id="c001.delta" name="delta" off_x="-80" off_y="-20" type="range" min="0" max="100"/>
    <input id="c001.Valid_In" name="Valid_In" off_x="-80" off_y="0" type="boolean"/>
    <input id="c001.condition" name="condition" off_x="-80" off_y="20" type="boolean"/>
    <input id="c001.max" name="max" off_x="-80" off_y="40" type="range" min="0" max="100"/>
    <input id="c001.min" name="min" off_x="-80" off_y="60" type="range" min="0" max="100"/>
    <output id="c001.evout" name="evout" type="event" off_x="80" off_y="-60"/>
    <output id="c001.MevOut" name="MevOut" type="event" off_x="80" off_y="-40"/>
    <output id="c001.ValidOut" name="ValidOut" off_x="80" off_y="-20" type="range" min="-32768" max="32767"/>
  </component>
  <signal id="SinalSensor" x="190" y="65" mode="input" type="range" min="0" max="1" frac="0" value="0" dynamic="none"/>
  <arc id="a003" type="read" source="SinalSensor" target="c001.signal" view="symbolic"/>
  <arc id="a004" type="read" source="SinalSensor" target="c1.signal" view="symbolic"/>
  <signal id="Referencia" x="50" y="170" mode="input" type="range" min="0" max="1" frac="0" value="0" dynamic="none"/>
  <operation id="o008" x="60" y="60" constant="0" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="0"/>
    <output off_x="20" off_y="0" name="K" id="o008.K" type="range" min="0" max="0" dynamic="none">
      <expression>
        <text>0</text>
        <operand type="literal" value="0"/>
      </expression>
    </output>
  </operation>
  <arc id="a009" type="read" source="o008.K" target="c001.delta" view="symbolic"/>
  <arc id="a010" type="read" source="o008.K" target="c1.delta" view="symbolic"/>
  <arc id="a011" type="read" source="o008.K" target="c1.min" view="symbolic"/>
  <arc id="a012" type="read" source="o008.K" target="c001.min" view="symbolic"/>
  <operation id="o013" x="60" y="105" constant="1" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="1"/>
    <output off_x="20" off_y="0" name="K" id="o013.K" type="range" min="1" max="1" dynamic="none">
      <expression>
        <text>1</text>
        <operand type="literal" value="1"/>
      </expression>
    </output>
  </operation>
  <arc id="a014" type="read" source="o013.K" target="c001.Valid_In" view="symbolic"/>
  <arc id="a015" type="read" source="o013.K" target="c1.Valid_In" view="symbolic"/>
  <arc id="a016" type="read" source="o013.K" target="c001.condition" view="symbolic"/>
  <arc id="a017" type="read" source="o013.K" target="c1.condition" view="symbolic"/>
  <arc id="a018" type="read" source="o013.K" target="c1.max" view="symbolic"/>
  <arc id="a019" type="read" source="o013.K" target="c001.max" view="symbolic"/>
  <operation id="op1" x="170" y="180" rot="0" shape="arrow" size="25" locked="true">
    <name text="+" off_x="-10" off_y="3"/>
    <comment text="Add 2 range values" off_x="0" off_y="0"/>
    <input id="op1.Referencia" name="Referencia" type="range" dynamic="all" min="0" max="1" off_x="-25" off_y="-10" frac="0"/>
    <input id="op1.Tolerancia" name="Tolerancia" type="range" dynamic="all" min="0" max="1" off_x="-25" off_y="10" frac="0"/>
    <output id="op1.out" name="out" type="range" min="-32768" max="32767" off_x="25" off_y="0">
      <expression>
        <text>Referencia + Tolerancia</text>
        <operand type="signal" idRef="Referencia"/>
        <operator type="add"/>
        <operand type="signal" idRef="Tolerancia"/>
      </expression>
    </output>
  </operation>
  <signal id="Tolerancia" x="55" y="255" mode="input" type="range" min="0" max="1" frac="0" value="0" dynamic="none"/>
  <operation id="o022" x="170" y="250" rot="0" shape="arrow" size="25" locked="true">
    <name text="-" off_x="-5" off_y="-3"/>
    <input id="o022.Referencia" name="Referencia" type="range" dynamic="all" min="0" max="1" off_x="-25" off_y="-10" frac="0"/>
    <input id="o022.Tolerancia" name="Tolerancia" type="range" dynamic="all" min="0" max="1" off_x="-25" off_y="10" frac="0"/>
    <output id="o022.out" name="out" type="range" min="-32768" max="32767" off_x="25" off_y="0">
      <expression>
        <text>Referencia - Tolerancia</text>
        <operand type="signal" idRef="Referencia"/>
        <operator type="sub"/>
        <operand type="signal" idRef="Tolerancia"/>
      </expression>
    </output>
  </operation>
  <arc id="a023" type="read" source="op1.out" target="c001.k"/>
  <arc id="a024" type="read" source="o022.out" target="c1.k"/>
  <arc id="a025" type="read" source="Referencia" target="op1.Referencia"/>
  <arc id="a026" type="read" source="Tolerancia" target="op1.Tolerancia"/>
  <arc id="a027" type="read" source="Referencia" target="o022.Referencia"/>
  <arc id="a028" type="read" source="Tolerancia" target="o022.Tolerancia"/>
  <operation id="o029" x="640" y="240" rot="0" shape="arrow" size="65" locked="true">
    <name text="OR" off_x="-32" off_y="-13"/>
    <input id="o029.MevOut" name="MevOut" type="event" dynamic="name" off_x="-65" off_y="-26" min="0" max="1" frac="0"/>
    <input id="o029.MevOut_B" name="MevOut_B" type="event" dynamic="name" off_x="-65" off_y="26" min="0" max="1" frac="0"/>
    <output id="o029.out" name="out" type="event" off_x="65" off_y="0" min="0" max="1" frac="0">
      <expression>
        <text>MevOut OR MevOut_B</text>
        <operand type="signal" idRef="MevOut"/>
        <operator type="or"/>
        <operand type="signal" idRef="MevOut_B"/>
      </expression>
    </output>
  </operation>
  <arc id="a031" type="read" source="c001.MevOut" target="o029.MevOut"/>
  <arc id="a032" type="read" source="c1.MevOut" target="o029.MevOut_B"/>
  <event id="POK" x="785" y="240" mode="output"/>
  <arc id="a035" type="read" source="o029.out" target="POK"/>
</net>
