<?xml version="1.0" encoding="UTF-8"?>
<net name="ladder" type="iopt-flow">
  <signal id="I1" x="310" y="155" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <signal id="I2" x="460" y="155" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <operation id="op1" x="150" y="80" rot="0" shape="rect" size="20" locked="true">
    <name text="TRUE" off_x="-15" off_y="-5"/>
    <output id="op1.out" name="out" type="boolean" off_x="20" off_y="0" microstep="0" nano-step="1">
      <expression>
        <text>true</text>
        <operand type="literal" value="1"/>
      </expression>
    </output>
  </operation>
  <operation id="o3" x="310" y="80" rot="0" shape="rect" size="30" locked="true">
    <name text="---|/|---" off_x="-15" off_y="-10"/>
    <input id="o3.TRUE" name="TRUE" type="boolean" dynamic="name" off_x="-30" off_y="0"/>
    <input id="o3.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o3.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="2">
      <expression>
        <text>TRUE AND (gate = 0)</text>
        <operand type="signal" idRef="TRUE"/>
        <operator type="and"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="gate"/>
          <operator type="equal"/>
          <operand type="literal" value="0"/>
        </operand>
      </expression>
    </output>
  </operation>
  <operation id="o4" x="460" y="80" rot="0" shape="rect" size="30" locked="true">
    <name text="---| |---" off_x="-15" off_y="-10"/>
    <input id="o4.in" name="in" type="boolean" off_x="-30" off_y="0" min="0" max="1" frac="0"/>
    <input id="o4.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o4.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="3">
      <expression>
        <text>in AND gate</text>
        <operand type="signal" idRef="in"/>
        <operator type="and"/>
        <operand type="signal" idRef="gate"/>
      </expression>
    </output>
  </operation>
  <signal id="O1" x="795" y="80" mode="output" type="boolean" dynamic="type" microstep="0" nano-step="6"/>
  <arc id="a6" type="read" source="op1.out" target="o3.TRUE"/>
  <arc id="a7" type="read" source="I1" target="o3.gate"/>
  <arc id="a8" type="read" source="o3.out" target="o4.in"/>
  <arc id="a9" type="read" source="I2" target="o4.gate"/>
  <signal id="I3" x="310" y="295" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <signal id="I4" x="460" y="295" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <operation id="o13" x="160" y="220" rot="0" shape="rect" size="20" locked="true">
    <name text="TRUE" off_x="-15" off_y="-5"/>
    <output id="o13.out" name="out" type="boolean" off_x="20" off_y="0" microstep="0" nano-step="1">
      <expression>
        <text>true</text>
        <operand type="literal" value="1"/>
      </expression>
    </output>
  </operation>
  <operation id="o14" x="310" y="220" rot="0" shape="rect" size="30" locked="true">
    <name text="---|/|---" off_x="-15" off_y="-10"/>
    <input id="o14.TRUE" name="TRUE" type="boolean" dynamic="name" off_x="-30" off_y="0"/>
    <input id="o14.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o14.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="2">
      <expression>
        <text>TRUE AND (gate = 0)</text>
        <operand type="signal" idRef="TRUE"/>
        <operator type="and"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="gate"/>
          <operator type="equal"/>
          <operand type="literal" value="0"/>
        </operand>
      </expression>
    </output>
  </operation>
  <operation id="o15" x="460" y="220" rot="0" shape="rect" size="30" locked="true">
    <name text="---| |---" off_x="-15" off_y="-10"/>
    <input id="o15.in" name="in" type="boolean" off_x="-30" off_y="0" min="0" max="1" frac="0"/>
    <input id="o15.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o15.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="3">
      <expression>
        <text>in AND gate</text>
        <operand type="signal" idRef="in"/>
        <operator type="and"/>
        <operand type="signal" idRef="gate"/>
      </expression>
    </output>
  </operation>
  <signal id="O2" x="795" y="220" mode="output" type="boolean" dynamic="type" microstep="0" nano-step="5"/>
  <arc id="a17" type="read" source="o13.out" target="o14.TRUE"/>
  <arc id="a18" type="read" source="I3" target="o14.gate"/>
  <arc id="a19" type="read" source="o14.out" target="o15.in"/>
  <arc id="a20" type="read" source="I4" target="o15.gate"/>
  <signal id="I7" x="460" y="430" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <signal id="I6" x="310" y="435" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <operation id="o24" x="460" y="355" rot="0" shape="rect" size="30" locked="true">
    <name text="---|/|---" off_x="-15" off_y="-10"/>
    <input id="o24.in" name="in" type="boolean" off_x="-30" off_y="0" min="0" max="1" frac="0"/>
    <input id="o24.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o24.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="3">
      <expression>
        <text>in AND (gate = 0)</text>
        <operand type="signal" idRef="in"/>
        <operator type="and"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="gate"/>
          <operator type="equal"/>
          <operand type="literal" value="0"/>
        </operand>
      </expression>
    </output>
  </operation>
  <operation id="o25" x="310" y="355" rot="0" shape="rect" size="30" locked="true">
    <name text="---| |---" off_x="-15" off_y="-10"/>
    <input id="o25.in" name="in" type="boolean" off_x="-30" off_y="0" min="0" max="1" frac="0"/>
    <input id="o25.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o25.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="2">
      <expression>
        <text>in AND gate</text>
        <operand type="signal" idRef="in"/>
        <operator type="and"/>
        <operand type="signal" idRef="gate"/>
      </expression>
    </output>
  </operation>
  <arc id="a26" type="read" source="I7" target="o24.gate"/>
  <arc id="a28" type="read" source="I6" target="o25.gate"/>
  <signal id="I5" x="695" y="315" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <operation id="o30" x="695" y="220" rot="0" shape="rect" size="30" locked="true">
    <name text="---| |---" off_x="-15" off_y="-10"/>
    <input id="o30.in" name="in" type="boolean" off_x="-30" off_y="0" min="0" max="1" frac="0"/>
    <input id="o30.gate" name="gate" type="boolean" off_x="0" off_y="25"/>
    <output id="o30.out" name="out" type="boolean" off_x="30" off_y="0" microstep="0" nano-step="5">
      <expression>
        <text>in AND gate</text>
        <operand type="signal" idRef="in"/>
        <operator type="and"/>
        <operand type="signal" idRef="gate"/>
      </expression>
    </output>
  </operation>
  <arc id="a31" type="read" source="I5" target="o30.gate"/>
  <operation id="o32" x="570" y="220" rot="0" shape="circle" size="22" locked="true">
    <name text="OR" off_x="-10" off_y="-8"/>
    <input id="o32.in1" name="in1" type="boolean" off_x="-22" off_y="0" min="0" max="1" frac="0"/>
    <input id="o32.in2" name="in2" type="boolean" off_x="0" off_y="20" min="0" max="1" frac="0"/>
    <output id="o32.out" name="out" type="boolean" off_x="22" off_y="0" microstep="0" nano-step="4">
      <expression>
        <text>in1 OR in2</text>
        <operand type="signal" idRef="in1"/>
        <operator type="or"/>
        <operand type="signal" idRef="in2"/>
      </expression>
    </output>
  </operation>
  <arc id="a33" type="read" source="o15.out" target="o32.in1"/>
  <arc id="a34" type="read" source="o13.out" target="o25.in" c1_x="0" c1_y="70" c2_x="-20" c2_y="0"/>
  <arc id="a35" type="read" source="o25.out" target="o24.in"/>
  <arc id="a36" type="read" source="o24.out" target="o32.in2" c2_x="-5" c2_y="60" c1_x="0" c1_y="0"/>
  <arc id="a37" type="read" source="o32.out" target="o30.in"/>
  <arc id="a38" type="read" source="o30.out" target="O2"/>
  <arc id="a47" type="read" source="o4.out" target="c1.in"/>
  <arc id="a48" type="read" source="c1.out" target="O1"/>
  <component id="c1" class="local/tON.xml" x="685" y="90" width="110" height="60" rot="0" implementation="iopt-flow">
    <name off_x="-55" off_y="-35" text="t_ON_1"/>
    <source_model file="files/tON.xml"/>
    <input id="c1.in" name="in" off_x="-55" off_y="-10" type="boolean"/>
    <input id="c1.delay" name="delay" off_x="-55" off_y="10" type="range" min="0" max="32767"/>
    <output id="c1.out" name="out" off_x="55" off_y="-10" type="boolean"/>
  </component>
  <operation id="o2" x="555" y="100" constant="25" rot="0" shape="rect" size="20">
    <name off_x="-10" off_y="-5" text="25"/>
    <output off_x="20" off_y="0" name="K" id="o2.K" type="range" min="25" max="25" dynamic="none">
      <expression>
        <text>25</text>
        <operand type="literal" value="25"/>
      </expression>
    </output>
  </operation>
  <arc id="a3" type="read" source="o2.K" target="c1.delay"/>
</net>
