<?xml version="1.0" encoding="UTF-8"?>
<net name="exemplo1" type="iopt-flow">
  <signal id="Start" x="270" y="170" mode="input" type="boolean" min="0" max="1" frac="0" value="0" dynamic="none" io_pin="12"/>
  <signal id="Botao" x="75" y="240" mode="input" type="boolean" min="0" max="1" frac="0" value="0" dynamic="none" io_pin="21"/>
  <signal id="Led" x="535" y="370" mode="output" type="boolean" min="0" max="1" frac="0" value="0" dynamic="none"/>
  <place id="p004" x="375" y="100" init_marking="1">
    <name off_x="-10" off_y="-10" text="Inicio"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <transition id="t005" x="375" y="165" priority="0">
    <name off_x="-10" off_y="-10" text="Iniciar"/>
    <comment off_x="0" off_y="20" text="-"/>
  </transition>
  <place id="p006" x="380" y="245" init_marking="0">
    <name off_x="-10" off_y="-10" text="Desligado"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <place id="p007" x="385" y="370" init_marking="0">
    <name off_x="-10" off_y="-10" text="Ligado"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <transition id="t008" x="310" y="305" priority="0">
    <name off_x="-10" off_y="-10" text="On"/>
    <comment off_x="0" off_y="20" text="-"/>
  </transition>
  <transition id="t009" x="460" y="300" priority="0">
    <name off_x="-10" off_y="-10" text="Off"/>
    <comment off_x="0" off_y="20" text="-"/>
  </transition>
  <arc id="a010" type="normal" source="p004" target="t005"/>
  <arc id="a011" type="normal" source="t005" target="p006"/>
  <arc id="a012" type="normal" source="p006" target="t008"/>
  <arc id="a013" type="normal" source="t008" target="p007"/>
  <arc id="a014" type="normal" source="p007" target="t009"/>
  <arc id="a015" type="normal" source="t009" target="p006"/>
  <arc id="a016" type="read" source="Start" target="t005"/>
  <arc id="a017" type="read" source="p007" target="Led"/>
  <signal id="Botao2" x="50" y="355" mode="input" type="boolean" min="0" max="1" frac="0" value="0" dynamic="none" io_pin="26"/>
  <arc id="a031" type="read" source="Botao" target="t008"/>
  <arc id="a032" type="read" source="Botao2" target="t008"/>
  <operation id="o033" x="230" y="250" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="o033"/>
    <input off_x="-16" off_y="0" name="Botao" id="o033.Botao" type="boolean" min="0" max="1" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o033.out" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="Botao" neg="true"/>
        <text>NOT(Botao)</text>
      </expression>
    </output>
  </operation>
  <operation id="o034" x="240" y="385" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="o033"/>
    <input off_x="-16" off_y="0" name="Botao2" id="o034.Botao2" type="boolean" min="0" max="1" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o034.out" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="Botao2" neg="true"/>
        <text>NOT(Botao2)</text>
      </expression>
    </output>
  </operation>
  <arc id="a035" type="read" source="Botao" target="o033.Botao"/>
  <arc id="a036" type="read" source="o033.out" target="t009"/>
  <arc id="a037" type="read" source="Botao2" target="o034.Botao2"/>
  <arc id="a038" type="read" source="o034.out" target="t009"/>
</net>
