<?xml version="1.0" encoding="utf-8"?>
<Document>
  <Engineering version="V18" />
  <SW.Blocks.FB ID="0">
    <AttributeList>
      <AutoNumber>false</AutoNumber>
      <HeaderAuthor>AketzaBarragues</HeaderAuthor>
      <HeaderFamily>ZeusControl</HeaderFamily>
      <HeaderVersion>1.0</HeaderVersion>
      <Interface><Sections xmlns="http://www.siemens.com/automation/Openness/SW/Interface/v5">
  <Section Name="Input">
    <Member Name="Pulso1Seg" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">Pulso 1 Segundo</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="EtapaRecirculacion" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">Etapa de recirculacion</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="EstadoMarcha" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">EstadoMarcha</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="Aceptar" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">Boton aceptar</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="TiempoEntreVentana" Datatype="Int">
      <Comment>
        <MultiLanguageText Lang="es-ES">Tiempo entre ventanas</MultiLanguageText>
      </Comment>
      <StartValue>60</StartValue>
    </Member>
    <Member Name="EstadoDetectorBTD" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">Detector BTD</MultiLanguageText>
      </Comment>
    </Member>
  </Section>
  <Section Name="Output">
    <Member Name="MostrarCartel" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">Mostrar cartel dosificacion SI-100</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="Finalizado" Datatype="Bool">
      <Comment>
        <MultiLanguageText Lang="es-ES">Dosificacion finalizada</MultiLanguageText>
      </Comment>
    </Member>
  </Section>
  <Section Name="InOut" />
  <Section Name="Static">
    <Member Name="s_Etapa" Datatype="Int">
      <Comment>
        <MultiLanguageText Lang="es-ES">Etapa actual</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="s_TiempoEtapa" Datatype="Struct" Remanence="Retain">
      <Member Name="Activar" Datatype="Bool">
        <Comment>
          <MultiLanguageText Lang="es-ES">Activar tiempo</MultiLanguageText>
        </Comment>
      </Member>
      <Member Name="Cumplido" Datatype="Bool">
        <Comment>
          <MultiLanguageText Lang="es-ES">Tiempo de etapa cumplido</MultiLanguageText>
        </Comment>
      </Member>
      <Member Name="Actual" Datatype="Int">
        <Comment>
          <MultiLanguageText Lang="es-ES">Tiempo de etapa actual</MultiLanguageText>
        </Comment>
      </Member>
      <Member Name="SP" Datatype="Int">
        <Comment>
          <MultiLanguageText Lang="es-ES">Set point tiempo etapa</MultiLanguageText>
        </Comment>
      </Member>
      <Member Name="Restante" Datatype="Int">
        <Comment>
          <MultiLanguageText Lang="es-ES">Tiempo de etapa restante</MultiLanguageText>
        </Comment>
      </Member>
    </Member>
  </Section>
  <Section Name="Temp" />
  <Section Name="Constant">
    <Member Name="ETAPA_REPOSO" Datatype="Int">
      <StartValue>0</StartValue>
    </Member>
    <Member Name="ETAPA_MOSTRAR_VENTANA" Datatype="Int">
      <StartValue>5</StartValue>
    </Member>
    <Member Name="ETAPA_ESPERA_APERTURA" Datatype="Int">
      <StartValue>10</StartValue>
    </Member>
    <Member Name="ETAPA_ESPERA_CIERRE" Datatype="Int">
      <StartValue>15</StartValue>
    </Member>
    <Member Name="ETAPA_FIN" Datatype="Int">
      <StartValue>20</StartValue>
    </Member>
  </Section>
</Sections></Interface>
      <MemoryLayout>Optimized</MemoryLayout>
      <MemoryReserve>100</MemoryReserve>
      <Name>FB15156_ZC_DOSIF_SI100_CARTEL</Name>
      <Namespace />
      <Number>15156</Number>
      <ProgrammingLanguage>LAD</ProgrammingLanguage>
      <SetENOAutomatically>false</SetENOAutomatically>
    </AttributeList>
    <ObjectList>
      <MultilingualText ID="1" CompositionName="Comment">
        <ObjectList>
          <MultilingualTextItem ID="2" CompositionName="Items">
            <AttributeList>
              <Culture>es-ES</Culture>
              <Text>Bloque de funcion para gestion de dosificacion SI-100 manual con cartel para confirmar.</Text>
            </AttributeList>
          </MultilingualTextItem>
        </ObjectList>
      </MultilingualText>
      <SW.Blocks.CompileUnit ID="3" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><StructuredText xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StructuredText/v3">
  <LineComment Inserted="true" UId="21">
    <Text UId="22">
============================================================================
 ZEUS CONTROL, S.A.
 (c)Copyright (2023) All Rights Reserved
 -----------------------------------------------------------------------------

 Software:       TIA Portal 16
 Restricciones:  PLC serie 1200/1500


 Nombre:         FB15156_DOSIF_SI100_CARTEL
 Descripcion:    Bloque de funcion para gestion de dosificacion SI-100 manual con cartel para confirmar.

 Change log:
 
     Version     Fecha       Tecnico a cargo
     
     01.00.00    22.11.2022  (ABH)   Primera version
     
 ============================================================================
 </Text>
  </LineComment>
</StructuredText></NetworkSource>
          <ProgrammingLanguage>SCL</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="4" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="5" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="6" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="7" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>@Change log</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="8" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="22">
      <Constant Name="ETAPA_REPOSO" />
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Part Name="Contact" UId="24">
      <Negated Name="operand" />
    </Part>
    <Part Name="Move" UId="25" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
  </Parts>
  <Wires>
    <Wire UId="26">
      <Powerrail />
      <NameCon UId="24" Name="in" />
    </Wire>
    <Wire UId="27">
      <IdentCon UId="21" />
      <NameCon UId="24" Name="operand" />
    </Wire>
    <Wire UId="28">
      <NameCon UId="24" Name="out" />
      <NameCon UId="25" Name="en" />
    </Wire>
    <Wire UId="29">
      <IdentCon UId="22" />
      <NameCon UId="25" Name="in" />
    </Wire>
    <Wire UId="30">
      <NameCon UId="25" Name="out1" />
      <IdentCon UId="23" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="9" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="A" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="B" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="C" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>=============== PARO</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="D" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource />
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="E" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="F" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="10" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="11" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>=============== SECUENCIA</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="12" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="22">
      <Constant Name="ETAPA_REPOSO" />
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="24">
      <Constant Name="ETAPA_MOSTRAR_VENTANA" />
    </Access>
    <Access Scope="LocalVariable" UId="25">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Part Name="Eq" UId="26">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Contact" UId="27" />
    <Part Name="Move" UId="28" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
  </Parts>
  <Wires>
    <Wire UId="29">
      <Powerrail />
      <NameCon UId="26" Name="pre" />
    </Wire>
    <Wire UId="30">
      <IdentCon UId="21" />
      <NameCon UId="26" Name="in1" />
    </Wire>
    <Wire UId="31">
      <IdentCon UId="22" />
      <NameCon UId="26" Name="in2" />
    </Wire>
    <Wire UId="32">
      <NameCon UId="26" Name="out" />
      <NameCon UId="27" Name="in" />
    </Wire>
    <Wire UId="33">
      <IdentCon UId="23" />
      <NameCon UId="27" Name="operand" />
    </Wire>
    <Wire UId="34">
      <NameCon UId="27" Name="out" />
      <NameCon UId="28" Name="en" />
    </Wire>
    <Wire UId="35">
      <IdentCon UId="24" />
      <NameCon UId="28" Name="in" />
    </Wire>
    <Wire UId="36">
      <NameCon UId="28" Name="out1" />
      <IdentCon UId="25" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="13" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="14" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="15" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="16" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Etapa 0 -  Reposo</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="17" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="22">
      <Constant Name="ETAPA_MOSTRAR_VENTANA" />
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="24">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="25">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="26">
      <Symbol>
        <Component Name="Aceptar" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="27">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>10</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="28">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Part Name="Eq" UId="29">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Contact" UId="30" />
    <Part Name="Move" UId="31" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
    <Part Name="Contact" UId="32" />
    <Part Name="Move" UId="33" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
  </Parts>
  <Wires>
    <Wire UId="34">
      <Powerrail />
      <NameCon UId="29" Name="pre" />
    </Wire>
    <Wire UId="35">
      <IdentCon UId="21" />
      <NameCon UId="29" Name="in1" />
    </Wire>
    <Wire UId="36">
      <IdentCon UId="22" />
      <NameCon UId="29" Name="in2" />
    </Wire>
    <Wire UId="37">
      <NameCon UId="29" Name="out" />
      <NameCon UId="30" Name="in" />
    </Wire>
    <Wire UId="38">
      <IdentCon UId="23" />
      <NameCon UId="30" Name="operand" />
    </Wire>
    <Wire UId="39">
      <NameCon UId="30" Name="out" />
      <NameCon UId="31" Name="en" />
      <NameCon UId="32" Name="in" />
    </Wire>
    <Wire UId="40">
      <IdentCon UId="24" />
      <NameCon UId="31" Name="in" />
    </Wire>
    <Wire UId="41">
      <NameCon UId="31" Name="out1" />
      <IdentCon UId="25" />
    </Wire>
    <Wire UId="42">
      <IdentCon UId="26" />
      <NameCon UId="32" Name="operand" />
    </Wire>
    <Wire UId="43">
      <NameCon UId="32" Name="out" />
      <NameCon UId="33" Name="en" />
    </Wire>
    <Wire UId="44">
      <IdentCon UId="27" />
      <NameCon UId="33" Name="in" />
    </Wire>
    <Wire UId="45">
      <NameCon UId="33" Name="out1" />
      <IdentCon UId="28" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="18" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="19" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="1A" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="1B" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Etapa 5 -  Mostrar ventana</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="1C" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="22">
      <Constant Name="ETAPA_ESPERA_APERTURA" />
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="24">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Activar" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="25">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="26">
      <Symbol>
        <Component Name="TiempoEntreVentana" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="27">
      <Constant Name="ETAPA_MOSTRAR_VENTANA" />
    </Access>
    <Access Scope="LocalVariable" UId="28">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="29">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="30">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="31">
      <Symbol>
        <Component Name="EstadoDetectorBTD" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="32">
      <Constant Name="ETAPA_ESPERA_CIERRE" />
    </Access>
    <Access Scope="LocalVariable" UId="33">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="34">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="35">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Part Name="Eq" UId="36">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Contact" UId="37" />
    <Part Name="SCoil" UId="38" />
    <Part Name="Ge" UId="39">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Move" UId="40" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
    <Part Name="Move" UId="41" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
    <Part Name="Contact" UId="42">
      <Negated Name="operand" />
    </Part>
    <Part Name="Move" UId="43" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
    <Part Name="Move" UId="44" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
  </Parts>
  <Wires>
    <Wire UId="45">
      <Powerrail />
      <NameCon UId="36" Name="pre" />
    </Wire>
    <Wire UId="46">
      <IdentCon UId="21" />
      <NameCon UId="36" Name="in1" />
    </Wire>
    <Wire UId="47">
      <IdentCon UId="22" />
      <NameCon UId="36" Name="in2" />
    </Wire>
    <Wire UId="48">
      <NameCon UId="36" Name="out" />
      <NameCon UId="37" Name="in" />
    </Wire>
    <Wire UId="49">
      <IdentCon UId="23" />
      <NameCon UId="37" Name="operand" />
    </Wire>
    <Wire UId="50">
      <NameCon UId="37" Name="out" />
      <NameCon UId="38" Name="in" />
      <NameCon UId="39" Name="pre" />
      <NameCon UId="42" Name="in" />
    </Wire>
    <Wire UId="51">
      <IdentCon UId="24" />
      <NameCon UId="38" Name="operand" />
    </Wire>
    <Wire UId="52">
      <IdentCon UId="25" />
      <NameCon UId="39" Name="in1" />
    </Wire>
    <Wire UId="53">
      <IdentCon UId="26" />
      <NameCon UId="39" Name="in2" />
    </Wire>
    <Wire UId="54">
      <NameCon UId="39" Name="out" />
      <NameCon UId="40" Name="en" />
    </Wire>
    <Wire UId="55">
      <IdentCon UId="27" />
      <NameCon UId="40" Name="in" />
    </Wire>
    <Wire UId="56">
      <NameCon UId="40" Name="eno" />
      <NameCon UId="41" Name="en" />
    </Wire>
    <Wire UId="57">
      <NameCon UId="40" Name="out1" />
      <IdentCon UId="28" />
    </Wire>
    <Wire UId="58">
      <IdentCon UId="29" />
      <NameCon UId="41" Name="in" />
    </Wire>
    <Wire UId="59">
      <NameCon UId="41" Name="out1" />
      <IdentCon UId="30" />
    </Wire>
    <Wire UId="60">
      <IdentCon UId="31" />
      <NameCon UId="42" Name="operand" />
    </Wire>
    <Wire UId="61">
      <NameCon UId="42" Name="out" />
      <NameCon UId="43" Name="en" />
    </Wire>
    <Wire UId="62">
      <IdentCon UId="32" />
      <NameCon UId="43" Name="in" />
    </Wire>
    <Wire UId="63">
      <NameCon UId="43" Name="eno" />
      <NameCon UId="44" Name="en" />
    </Wire>
    <Wire UId="64">
      <NameCon UId="43" Name="out1" />
      <IdentCon UId="33" />
    </Wire>
    <Wire UId="65">
      <IdentCon UId="34" />
      <NameCon UId="44" Name="in" />
    </Wire>
    <Wire UId="66">
      <NameCon UId="44" Name="out1" />
      <IdentCon UId="35" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="1D" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="1E" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="1F" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="20" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Etapa 10 - Esperar a detectar apertura de BTD</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="21" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="22">
      <Constant Name="ETAPA_ESPERA_CIERRE" />
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="24">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="25">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="26">
      <Symbol>
        <Component Name="EstadoDetectorBTD" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="27">
      <Constant Name="ETAPA_FIN" />
    </Access>
    <Access Scope="LocalVariable" UId="28">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Part Name="Eq" UId="29">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Contact" UId="30" />
    <Part Name="Move" UId="31" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
    <Part Name="Contact" UId="32" />
    <Part Name="Move" UId="33" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
  </Parts>
  <Wires>
    <Wire UId="34">
      <Powerrail />
      <NameCon UId="29" Name="pre" />
    </Wire>
    <Wire UId="35">
      <IdentCon UId="21" />
      <NameCon UId="29" Name="in1" />
    </Wire>
    <Wire UId="36">
      <IdentCon UId="22" />
      <NameCon UId="29" Name="in2" />
    </Wire>
    <Wire UId="37">
      <NameCon UId="29" Name="out" />
      <NameCon UId="30" Name="in" />
    </Wire>
    <Wire UId="38">
      <IdentCon UId="23" />
      <NameCon UId="30" Name="operand" />
    </Wire>
    <Wire UId="39">
      <NameCon UId="30" Name="out" />
      <NameCon UId="31" Name="en" />
      <NameCon UId="32" Name="in" />
    </Wire>
    <Wire UId="40">
      <IdentCon UId="24" />
      <NameCon UId="31" Name="in" />
    </Wire>
    <Wire UId="41">
      <NameCon UId="31" Name="out1" />
      <IdentCon UId="25" />
    </Wire>
    <Wire UId="42">
      <IdentCon UId="26" />
      <NameCon UId="32" Name="operand" />
    </Wire>
    <Wire UId="43">
      <NameCon UId="32" Name="out" />
      <NameCon UId="33" Name="en" />
    </Wire>
    <Wire UId="44">
      <IdentCon UId="27" />
      <NameCon UId="33" Name="in" />
    </Wire>
    <Wire UId="45">
      <NameCon UId="33" Name="out1" />
      <IdentCon UId="28" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="22" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="23" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="24" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="25" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Etapa 15 - Esperar a detectar cierre de BTD</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="26" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="22">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="23">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>20</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LiteralConstant" UId="24">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="25">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="26">
      <Symbol>
        <Component Name="Finalizado" />
      </Symbol>
    </Access>
    <Part Name="Contact" UId="27" />
    <Part Name="Eq" UId="28">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Move" UId="29" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
    <Part Name="Coil" UId="30" />
  </Parts>
  <Wires>
    <Wire UId="31">
      <Powerrail />
      <NameCon UId="27" Name="in" />
    </Wire>
    <Wire UId="32">
      <IdentCon UId="21" />
      <NameCon UId="27" Name="operand" />
    </Wire>
    <Wire UId="33">
      <NameCon UId="27" Name="out" />
      <NameCon UId="28" Name="pre" />
    </Wire>
    <Wire UId="34">
      <IdentCon UId="22" />
      <NameCon UId="28" Name="in1" />
    </Wire>
    <Wire UId="35">
      <IdentCon UId="23" />
      <NameCon UId="28" Name="in2" />
    </Wire>
    <Wire UId="36">
      <NameCon UId="28" Name="out" />
      <NameCon UId="29" Name="en" />
      <NameCon UId="30" Name="in" />
    </Wire>
    <Wire UId="37">
      <IdentCon UId="24" />
      <NameCon UId="29" Name="in" />
    </Wire>
    <Wire UId="38">
      <NameCon UId="29" Name="out1" />
      <IdentCon UId="25" />
    </Wire>
    <Wire UId="39">
      <IdentCon UId="26" />
      <NameCon UId="30" Name="operand" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="27" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="28" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="29" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="2A" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Etapa 20 - Finalizado</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="2B" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource />
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="2C" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="2D" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="2E" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="2F" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>=============== TIEMPO DE ETAPA</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="30" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Activar" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="22">
      <Symbol>
        <Component Name="Pulso1Seg" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="SP" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="24">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>32000</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="25">
      <Symbol>
        <Component Name="EstadoMarcha" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="26">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="27">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="28">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="SP" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="29">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Cumplido" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="30">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Activar" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="31">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="SP" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="32">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Actual" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="33">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Restante" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="34">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Restante" />
      </Symbol>
    </Access>
    <Access Scope="LiteralConstant" UId="35">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LiteralConstant" UId="36">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
    <Access Scope="LocalVariable" UId="37">
      <Symbol>
        <Component Name="s_TiempoEtapa" />
        <Component Name="Restante" />
      </Symbol>
    </Access>
    <Part Name="Contact" UId="38" />
    <Part Name="Contact" UId="39" />
    <Part Name="Le" UId="40">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Contact" UId="41" />
    <Part Name="Inc" UId="42" DisabledENO="true">
      <TemplateValue Name="DestType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Ge" UId="43">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Coil" UId="44" />
    <Part Name="RCoil" UId="45" />
    <Part Name="Sub" UId="46" DisabledENO="true">
      <AutomaticTyped Name="SrcType" />
    </Part>
    <Part Name="Lt" UId="47">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Move" UId="48" DisabledENO="true">
      <TemplateValue Name="Card" Type="Cardinality">1</TemplateValue>
    </Part>
  </Parts>
  <Wires>
    <Wire UId="49">
      <Powerrail />
      <NameCon UId="38" Name="in" />
      <NameCon UId="46" Name="en" />
    </Wire>
    <Wire UId="50">
      <IdentCon UId="21" />
      <NameCon UId="38" Name="operand" />
    </Wire>
    <Wire UId="51">
      <NameCon UId="38" Name="out" />
      <NameCon UId="39" Name="in" />
      <NameCon UId="43" Name="pre" />
      <NameCon UId="45" Name="in" />
    </Wire>
    <Wire UId="52">
      <IdentCon UId="22" />
      <NameCon UId="39" Name="operand" />
    </Wire>
    <Wire UId="53">
      <NameCon UId="39" Name="out" />
      <NameCon UId="40" Name="pre" />
    </Wire>
    <Wire UId="54">
      <IdentCon UId="23" />
      <NameCon UId="40" Name="in1" />
    </Wire>
    <Wire UId="55">
      <IdentCon UId="24" />
      <NameCon UId="40" Name="in2" />
    </Wire>
    <Wire UId="56">
      <NameCon UId="40" Name="out" />
      <NameCon UId="41" Name="in" />
    </Wire>
    <Wire UId="57">
      <IdentCon UId="25" />
      <NameCon UId="41" Name="operand" />
    </Wire>
    <Wire UId="58">
      <NameCon UId="41" Name="out" />
      <NameCon UId="42" Name="en" />
    </Wire>
    <Wire UId="59">
      <IdentCon UId="26" />
      <NameCon UId="42" Name="operand" />
    </Wire>
    <Wire UId="60">
      <IdentCon UId="27" />
      <NameCon UId="43" Name="in1" />
    </Wire>
    <Wire UId="61">
      <IdentCon UId="28" />
      <NameCon UId="43" Name="in2" />
    </Wire>
    <Wire UId="62">
      <NameCon UId="43" Name="out" />
      <NameCon UId="44" Name="in" />
    </Wire>
    <Wire UId="63">
      <IdentCon UId="29" />
      <NameCon UId="44" Name="operand" />
    </Wire>
    <Wire UId="64">
      <IdentCon UId="30" />
      <NameCon UId="45" Name="operand" />
    </Wire>
    <Wire UId="65">
      <IdentCon UId="31" />
      <NameCon UId="46" Name="in1" />
    </Wire>
    <Wire UId="66">
      <IdentCon UId="32" />
      <NameCon UId="46" Name="in2" />
    </Wire>
    <Wire UId="67">
      <NameCon UId="46" Name="eno" />
      <NameCon UId="47" Name="pre" />
    </Wire>
    <Wire UId="68">
      <NameCon UId="46" Name="out" />
      <IdentCon UId="33" />
    </Wire>
    <Wire UId="69">
      <IdentCon UId="34" />
      <NameCon UId="47" Name="in1" />
    </Wire>
    <Wire UId="70">
      <IdentCon UId="35" />
      <NameCon UId="47" Name="in2" />
    </Wire>
    <Wire UId="71">
      <NameCon UId="47" Name="out" />
      <NameCon UId="48" Name="en" />
    </Wire>
    <Wire UId="72">
      <IdentCon UId="36" />
      <NameCon UId="48" Name="in" />
    </Wire>
    <Wire UId="73">
      <NameCon UId="48" Name="out1" />
      <IdentCon UId="37" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="31" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="32" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="33" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="34" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Contador tiempo</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="35" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource />
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="36" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="37" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="38" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="39" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>=============== SALIDAS</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="3A" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><FlgNet xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/FlgNet/v4">
  <Parts>
    <Access Scope="LocalVariable" UId="21">
      <Symbol>
        <Component Name="s_Etapa" />
      </Symbol>
    </Access>
    <Access Scope="LocalConstant" UId="22">
      <Constant Name="ETAPA_MOSTRAR_VENTANA" />
    </Access>
    <Access Scope="LocalVariable" UId="23">
      <Symbol>
        <Component Name="EtapaRecirculacion" />
      </Symbol>
    </Access>
    <Access Scope="LocalVariable" UId="24">
      <Symbol>
        <Component Name="MostrarCartel" />
      </Symbol>
    </Access>
    <Part Name="Eq" UId="25">
      <TemplateValue Name="SrcType" Type="Type">Int</TemplateValue>
    </Part>
    <Part Name="Contact" UId="26" />
    <Part Name="Coil" UId="27" />
  </Parts>
  <Wires>
    <Wire UId="28">
      <Powerrail />
      <NameCon UId="25" Name="pre" />
    </Wire>
    <Wire UId="29">
      <IdentCon UId="21" />
      <NameCon UId="25" Name="in1" />
    </Wire>
    <Wire UId="30">
      <IdentCon UId="22" />
      <NameCon UId="25" Name="in2" />
    </Wire>
    <Wire UId="31">
      <NameCon UId="25" Name="out" />
      <NameCon UId="26" Name="in" />
    </Wire>
    <Wire UId="32">
      <IdentCon UId="23" />
      <NameCon UId="26" Name="operand" />
    </Wire>
    <Wire UId="33">
      <NameCon UId="26" Name="out" />
      <NameCon UId="27" Name="in" />
    </Wire>
    <Wire UId="34">
      <IdentCon UId="24" />
      <NameCon UId="27" Name="operand" />
    </Wire>
  </Wires>
</FlgNet></NetworkSource>
          <ProgrammingLanguage>LAD</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="3B" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="3C" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="3D" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="3E" CompositionName="Items">
                <AttributeList>
                  <Culture>es-ES</Culture>
                  <Text>Mostrar cartel</Text>
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <MultilingualText ID="3F" CompositionName="Title">
        <ObjectList>
          <MultilingualTextItem ID="40" CompositionName="Items">
            <AttributeList>
              <Culture>es-ES</Culture>
              <Text>FB15156_ZC_DOSIF_SI100_CARTEL</Text>
            </AttributeList>
          </MultilingualTextItem>
        </ObjectList>
      </MultilingualText>
    </ObjectList>
  </SW.Blocks.FB>
</Document>