<?xml version="1.0" encoding="UTF-8"?>
<net name="Test" type="iopt-flow">
  <operation id="o1" x="130" y="240" constant="200" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="200"/>
    <output off_x="20" off_y="0" name="K" id="o1_K" type="range" min="200" max="200" dynamic="none" microstep="0" nano-step="1">
      <expression>
        <text>200</text>
        <operand type="literal" value="200"/>
      </expression>
    </output>
  </operation>
  <arc id="a2" type="read" source="o1_K" target="c1_Period"/>
  <signal id="DC" x="170" y="260" mode="input" type="range" min="0" max="4095" frac="0" value="0" dynamic="none" microstep="0" nano-step="0"/>
  <arc id="a4" type="read" source="DC" target="c1_DC"/>
  <operation id="o5" x="220" y="280" constant="10" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="10"/>
    <output off_x="20" off_y="0" name="K" id="o5_K" type="range" min="10" max="10" dynamic="none" microstep="0" nano-step="1">
      <expression>
        <text>10</text>
        <operand type="literal" value="10"/>
      </expression>
    </output>
  </operation>
  <arc id="a6" type="read" source="o5_K" target="c1_DeadTime"/>
  <signal id="Enb" x="170" y="220" mode="input" type="boolean" min="0" max="1" microstep="0" nano-step="0"/>
  <arc id="a8" type="read" source="Enb" target="c1_Enable"/>
  <event id="Rst" x="135" y="200" mode="input" microstep="0" nano-step="0"/>
  <arc id="a10" type="read" source="Rst" target="c1_Rst"/>
  <signal id="LO" x="550" y="240" mode="output" type="boolean" dynamic="type" microstep="0" nano-step="3"/>
  <arc id="a13" type="read" source="c1_OutL" target="LO"/>
  <signal id="HO" x="520" y="260" mode="output" type="boolean" dynamic="type" microstep="0" nano-step="3"/>
  <arc id="a15" type="read" source="c1_OutH" target="HO"/>
  <signal id="c1_Enable" x="40" y="70" mode="internal" type="boolean" min="0" max="1" component-id="c1" component-mode="input" microstep="0" nano-step="1"/>
  <arc id="c1_a2" type="read" source="c1_Enable" target="c1_c1_Enable" component-id="c1"/>
  <signal id="c1_Period" x="75" y="90" mode="internal" type="range" min="1" max="4096" frac="0" value="1" dynamic="none" component-id="c1" component-mode="input" microstep="0" nano-step="1"/>
  <arc id="c1_a4" type="read" source="c1_Period" target="c1_c1_Period" component-id="c1"/>
  <event id="c1_Rst" x="75" y="50" mode="internal" component-id="c1" component-mode="input" microstep="0" nano-step="1"/>
  <arc id="c1_a6" type="read" source="c1_Rst" target="c1_c1_Rst" component-id="c1"/>
  <signal id="c1_DC" x="45" y="175" mode="internal" type="range" min="0" max="4095" frac="0" value="1" dynamic="none" component-id="c1" component-mode="input" microstep="0" nano-step="1"/>
  <signal id="c1_DeadTime" x="45" y="255" mode="internal" type="range" min="0" max="255" frac="0" value="0" dynamic="none" component-id="c1" component-mode="input" microstep="0" nano-step="1"/>
  <signal id="c1_OutH" x="295" y="240" mode="internal" type="boolean" min="0" max="1" dynamic="type" frac="0" component-id="c1" component-mode="output" microstep="0" nano-step="2"/>
  <signal id="c1_OutL" x="295" y="165" mode="internal" type="boolean" min="0" max="1" dynamic="type" frac="0" component-id="c1" component-mode="output" microstep="0" nano-step="2"/>
  <operation id="c1_o11" x="180" y="165" rot="0" shape="arrow" size="24" component-id="c1">
    <name off_x="-10" off_y="5" text="o11"/>
    <input off_x="-24" off_y="-8" name="Cntr" id="c1_o11_Cntr" type="range" min="0" max="4095" dynamic="all"/>
    <input off_x="-24" off_y="8" name="DC" id="c1_o11_DC" type="range" min="0" max="4095" dynamic="all" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="c1_o11_out" type="boolean" min="0" max="1" dynamic="none" frac="0" microstep="0" nano-step="2">
      <expression>
        <operand type="signal" idRef="Cntr"/>
        <operator type="less"/>
        <operand type="signal" idRef="DC"/>
        <text>Cntr &lt; DC</text>
      </expression>
    </output>
  </operation>
  <arc id="c1_a12" type="read" source="c1_c1_Cntr" target="c1_o11_Cntr" view="symbolic" component-id="c1"/>
  <arc id="c1_a13" type="read" source="c1_DC" target="c1_o11_DC" component-id="c1"/>
  <operation id="c1_o15" x="185" y="240" rot="0" shape="arrow" size="32" component-id="c1">
    <name off_x="-10" off_y="5" text="o15"/>
    <input off_x="-32" off_y="-16" name="Cntr" id="c1_o15_Cntr" type="range" min="0" max="4095" dynamic="all"/>
    <input off_x="-32" off_y="0" name="DC" id="c1_o15_DC" type="range" min="0" max="4095" dynamic="all" frac="0"/>
    <input off_x="-32" off_y="16" name="DeadTime" id="c1_o15_DeadTime" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <output off_x="32" off_y="0" name="out" id="c1_o15_out" type="boolean" min="0" max="1" dynamic="none" frac="0" microstep="0" nano-step="2">
      <expression>
        <operand type="signal" idRef="Cntr"/>
        <operator type="more"/>
        <operand type="signal" idRef="DC"/>
        <operator type="add"/>
        <operand type="signal" idRef="DeadTime"/>
        <text>Cntr &gt; DC + DeadTime</text>
      </expression>
    </output>
  </operation>
  <arc id="c1_a16" type="read" source="c1_o11_out" target="c1_OutL" component-id="c1"/>
  <arc id="c1_a17" type="read" source="c1_c1_Cntr" target="c1_o15_Cntr" view="symbolic" component-id="c1"/>
  <arc id="c1_a18" type="read" source="c1_DC" target="c1_o15_DC" component-id="c1"/>
  <arc id="c1_a19" type="read" source="c1_DeadTime" target="c1_o15_DeadTime" component-id="c1"/>
  <arc id="c1_a20" type="read" source="c1_o15_out" target="c1_OutH" component-id="c1"/>
  <event id="c1_Start" x="340" y="70" mode="internal" component-id="c1" component-mode="output" microstep="0" nano-step="0"/>
  <event id="c1_Center" x="370" y="50" mode="internal" component-id="c1" component-mode="output" microstep="0" nano-step="0"/>
  <arc id="c1_a23" type="read" source="c1_c1_Max" target="c1_Center" component-id="c1"/>
  <arc id="c1_a24" type="read" source="c1_c1_Min" target="c1_Start" component-id="c1"/>
  <place id="c1_c1_c1_p1" x="680" y="125" init_marking="1" component-id="c1.c1.c1" tr_fire_dep="true">
    <name off_x="-10" off_y="-10" text="PCntUp"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <place id="c1_c1_c1_p2" x="680" y="230" init_marking="0" component-id="c1.c1.c1">
    <name off_x="-10" off_y="-10" text="PCntDown"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <transition id="c1_c1_c1_t3" x="730" y="175" priority="0" component-id="c1.c1.c1" microstep="0">
    <name off_x="-10" off_y="-10" text="TMax"/>
    <comment off_x="0" off_y="20" text="-"/>
  </transition>
  <transition id="c1_c1_c1_t4" x="620" y="175" priority="0" component-id="c1.c1.c1" microstep="0">
    <name off_x="-10" off_y="-10" text="TMin"/>
    <comment off_x="0" off_y="20" text="-"/>
  </transition>
  <signal id="c1_c1_c1_Period" x="460" y="185" mode="internal" type="range" min="1" max="4096" frac="0" value="1024" dynamic="none" component-id="c1.c1.c1" component-mode="input" microstep="0" nano-step="0" tr_fire_dep="true"/>
  <signal id="c1_c1_c1_Cntr" x="945" y="90" mode="internal" type="range" min="0" max="4095" dynamic="none" frac="0" value="0" component-id="c1.c1.c1" component-mode="output" microstep="0" nano-step="1" dep_place="true" tr_fire_dep="true"/>
  <event id="c1_c1_c1_Rst" x="670" y="55" mode="internal" component-id="c1.c1.c1" component-mode="input" microstep="0" nano-step="0" tr_fire_dep="true"/>
  <signal id="c1_c1_c1_Enable" x="705" y="75" mode="internal" type="boolean" min="0" max="1" component-id="c1.c1.c1" component-mode="input" microstep="0" nano-step="0" tr_fire_dep="true"/>
  <arc id="c1_c1_c1_a11" type="normal" source="c1_c1_c1_p1" target="c1_c1_c1_t3" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a12" type="normal" source="c1_c1_c1_t3" target="c1_c1_c1_p2" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a13" type="normal" source="c1_c1_c1_p2" target="c1_c1_c1_t4" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a14" type="normal" source="c1_c1_c1_t4" target="c1_c1_c1_p1" component-id="c1.c1.c1"/>
  <operation id="c1_c1_c1_o16" x="840" y="90" rot="0" shape="arrow" size="48" component-id="c1.c1.c1">
    <name off_x="-10" off_y="5" text="o16"/>
    <input off_x="-48" off_y="-32" name="Rst" id="c1_c1_c1_o16_Rst" type="range" min="-32768" max="32767" dynamic="all" tr_fire_dep="true"/>
    <input off_x="-48" off_y="-16" name="Enable" id="c1_c1_c1_o16_Enable" type="boolean" min="0" max="1" dynamic="all" tr_fire_dep="true"/>
    <input off_x="-48" off_y="0" name="p1" id="c1_c1_c1_o16_p1" type="range" min="-32768" max="32767" dynamic="all" dep_place="true" tr_fire_dep="true"/>
    <input off_x="-48" off_y="16" name="p2" id="c1_c1_c1_o16_p2" type="range" min="-32768" max="32767" dynamic="all" dep_place="true"/>
    <input off_x="-48" off_y="32" name="Cntr_in" id="c1_c1_c1_o16_Cntr_in" type="range" min="0" max="4095" dynamic="type" frac="0" dep_place="true"/>
    <output off_x="48" off_y="0" name="out" id="c1_c1_c1_o16_out" type="range" min="0" max="4095" dynamic="none" frac="0" microstep="0" nano-step="1" dep_place="true" tr_fire_dep="true">
      <expression>
        <operand type="literal" value="0"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Rst"/>
        </operand>
        <text>0 WHEN (Rst)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="Cntr_in" delay="1"/>
        <operator type="when"/>
        <operand type="signal" idRef="Enable"/>
        <operator type="equal"/>
        <operand type="literal" value="0"/>
        <text>Cntr_in[-1] WHEN (Enable = 0)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="Cntr_in" delay="1"/>
        <operator type="add"/>
        <operand type="literal" value="1"/>
        <operator type="when"/>
        <operand type="signal" idRef="p1"/>
        <text>Cntr_in[-1] + 1 WHEN (p1)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="Cntr_in" delay="1"/>
        <operator type="sub"/>
        <operand type="literal" value="1"/>
        <text>Cntr_in[-1] - 1 OTHERWISE</text>
      </expression>
    </output>
  </operation>
  <arc id="c1_c1_c1_a17" type="read" source="c1_c1_c1_Rst" target="c1_c1_c1_o16_Rst" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a18" type="read" source="c1_c1_c1_Enable" target="c1_c1_c1_o16_Enable" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a19" type="read" source="c1_c1_c1_p1" target="c1_c1_c1_o16_p1" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a21" type="read" source="c1_c1_c1_p2" target="c1_c1_c1_o16_p2" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a22" type="read" source="c1_c1_c1_o16_out" target="c1_c1_c1_o16_Cntr_in" view="symbolic" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a23" type="read" source="c1_c1_c1_o16_out" target="c1_c1_c1_Cntr" component-id="c1.c1.c1"/>
  <operation id="c1_c1_c1_o26" x="540" y="175" rot="0" shape="arrow" size="24" component-id="c1.c1.c1">
    <name off_x="-10" off_y="5" text="o26"/>
    <input off_x="-24" off_y="-8" name="Cntr" id="c1_c1_c1_o26_Cntr" type="range" min="0" max="4095" dynamic="all" frac="0" dep_place="true" tr_fire_dep="true"/>
    <input off_x="-24" off_y="8" name="Period" id="c1_c1_c1_o26_Period" type="range" min="1" max="4096" dynamic="all" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="c1_c1_c1_o26_out" type="range" min="0" max="4096" dynamic="type" frac="0" microstep="0" nano-step="2" dep_place="true" tr_fire_dep="true">
      <expression>
        <operand type="signal" idRef="Cntr"/>
        <operator type="less-or-equal"/>
        <operand type="literal" value="0"/>
        <text>Cntr &lt;= 0</text>
      </expression>
    </output>
  </operation>
  <arc id="c1_c1_c1_a27" type="read" source="c1_c1_c1_Period" target="c1_c1_c1_o26_Period" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a28" type="read" source="c1_c1_c1_Cntr" target="c1_c1_c1_o26_Cntr" view="symbolic" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a29" type="read" source="c1_c1_c1_o26_out" target="c1_c1_c1_t4" component-id="c1.c1.c1"/>
  <operation id="c1_c1_c1_o30" x="540" y="245" rot="0" shape="arrow" size="24" component-id="c1.c1.c1">
    <name off_x="-10" off_y="5" text="o26"/>
    <input off_x="-24" off_y="-8" name="Cntr_B" id="c1_c1_c1_o30_Cntr_B" type="range" min="0" max="4095" dynamic="all" frac="0" dep_place="true" tr_fire_dep="true"/>
    <input off_x="-24" off_y="8" name="Period_B" id="c1_c1_c1_o30_Period_B" type="range" min="1" max="4096" dynamic="all" frac="0" tr_fire_dep="true"/>
    <output off_x="24" off_y="0" name="out" id="c1_c1_c1_o30_out" type="range" min="0" max="4096" dynamic="type" frac="0" microstep="0" nano-step="2" dep_place="true" tr_fire_dep="true">
      <expression>
        <operand type="signal" idRef="Cntr_B"/>
        <operator type="more-or-equal"/>
        <operand type="signal" idRef="Period_B"/>
        <text>Cntr_B &gt;= Period_B</text>
      </expression>
    </output>
  </operation>
  <arc id="c1_c1_c1_a31" type="read" source="c1_c1_c1_Period" target="c1_c1_c1_o30_Period_B" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a32" type="read" source="c1_c1_c1_Cntr" target="c1_c1_c1_o30_Cntr_B" view="symbolic" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a33" type="read" source="c1_c1_c1_o30_out" target="c1_c1_c1_t3" component-id="c1.c1.c1"/>
  <event id="c1_c1_c1_Max" x="945" y="170" mode="internal" component-id="c1.c1.c1" component-mode="output" microstep="1" nano-step="0"/>
  <event id="c1_c1_c1_Min" x="945" y="235" mode="internal" component-id="c1.c1.c1" component-mode="output" microstep="1" nano-step="0"/>
  <arc id="c1_c1_c1_a3" type="read" source="c1_c1_c1_t3" target="c1_c1_c1_Max" view="symbolic" component-id="c1.c1.c1"/>
  <arc id="c1_c1_c1_a4" type="read" source="c1_c1_c1_t4" target="c1_c1_c1_Min" view="symbolic" component-id="c1.c1.c1"/>
</net>
