<?xml version="1.0" encoding="utf-8"?>
<Document>
  <Engineering version="V20" />
  <SW.Blocks.FC ID="0">
    <AttributeList>
      <AutoNumber>false</AutoNumber>
      <Interface><Sections xmlns="http://www.siemens.com/automation/Openness/SW/Interface/v5">
  <Section Name="Input" />
  <Section Name="Output" />
  <Section Name="InOut" />
  <Section Name="Temp">
    <Member Name="Zufallszahl" Datatype="Int" />
    <Member Name="AMR_DB" Datatype="Int" />
    <Member Name="AMR_DW" Datatype="Int" />
    <Member Name="AR1Zeiger" Datatype="DWord">
      <Comment>
        <MultiLanguageText Lang="de-DE">Statt AR1 (ging nur bis DB-Länge &lt;= 8191 Bytes)</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="AR1Start" Datatype="DInt">
      <Comment>
        <MultiLanguageText Lang="de-DE">Startwert mit Offset 0</MultiLanguageText>
      </Comment>
    </Member>
  </Section>
  <Section Name="Constant" />
  <Section Name="Return">
    <Member Name="Ret_Val" Datatype="Void" />
  </Section>
</Sections></Interface>
      <MemoryLayout>Optimized</MemoryLayout>
      <Name>Simulation_AMR_Trolley_starten</Name>
      <Namespace />
      <Number>29</Number>
      <ProgrammingLanguage>STL</ProgrammingLanguage>
    </AttributeList>
    <ObjectList>
      <MultilingualText ID="1" CompositionName="Comment">
        <ObjectList>
          <MultilingualTextItem ID="2" CompositionName="Items">
            <AttributeList>
              <Culture>cs-CZ</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
          <MultilingualTextItem ID="3" CompositionName="Items">
            <AttributeList>
              <Culture>de-DE</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
          <MultilingualTextItem ID="4" CompositionName="Items">
            <AttributeList>
              <Culture>en-US</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
        </ObjectList>
      </MultilingualText>
      <SW.Blocks.CompileUnit ID="5" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
  <StlStatement UId="40">
    <StlToken Text="A" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="T29" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="46">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="Wartezeit_ok" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="31">
    <StlToken Text="AN" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="Wartezeit_ok" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="56">
    <StlToken Text="L" />
    <Access Scope="TypedConstant">
      <Constant>
        <ConstantValue>s5t#20s</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="58">
    <StlToken Text="OnDelay" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="T29" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="37">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="22">
    <StlToken Text="A" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="aktiv" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="24">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS5_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="29">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS4_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="32">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS3_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="35">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS2_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="38">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS1_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="41">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS3_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="44">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS2_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="47">
    <StlToken Text="Assign" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS1_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Aktiviert" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="25">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="70">
    <StlToken Text="AN" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="aktiv" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="60">
    <StlToken Text="ON" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="Wartezeit_ok" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="50">
    <StlToken Text="BEC" />
  </StlStatement>
  <StlStatement UId="21">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
</StatementList></NetworkSource>
          <ProgrammingLanguage>STL</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="6" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="7" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="8" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="9" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="A" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="B" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="C" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text>Simulation ist aktiv</Text>
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="D" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="E" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
  <StlStatement UId="26">
    <StlToken Text="A" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS5_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="34">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS4_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="36">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS3_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="38">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS2_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="40">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS1_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="42">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS3_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="44">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS2_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="46">
    <StlToken Text="O" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS1_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Trolleys bereit" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="23">
    <StlToken Text="JC" />
    <Access Scope="Label">
      <Label Name="Zufall" />
    </Access>
  </StlStatement>
  <StlStatement UId="57">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="24">
    <StlToken Text="SET" />
  </StlStatement>
  <StlStatement UId="58">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS5_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="61">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS4_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="64">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS3_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="67">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS4_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="70">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DPS1_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="73">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS3_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="76">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS2_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="79">
    <StlToken Text="S" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DMPS1_OmniFahren" />
        <Component Name="Sks_Arbeitsplatz" />
        <Component Name="Dyn" />
        <Component Name="Simulation" />
        <Component Name="Neustart" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="29">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="30">
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>0</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="33">
    <StlToken Text="T" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="AMR" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="31">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="21">
    <StlToken Text="BEU" />
  </StlStatement>
  <StlStatement UId="22">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
</StatementList></NetworkSource>
          <ProgrammingLanguage>STL</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="F" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="10" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="11" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="12" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="13" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="14" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="15" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text>Trolley zum Ausfahren vorhanden?</Text>
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="16" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="17" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
  <StlStatement UId="21">
    <LabelDeclaration>
      <Label Name="Zufall" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="MSekunden" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="27">
    <StlToken Text="SRW" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>4</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="106">
    <StlToken Text="T" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="Zufallszahl" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="39">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="40">
    <StlToken Text="L" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="Zufallszahl" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="42">
    <StlToken Text="JL" />
    <Access Scope="Label">
      <Label Name="Ende" />
    </Access>
  </StlStatement>
  <StlStatement UId="44">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s000" />
      <LineComment>
        <Text>Schritt 0</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="47">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s001" />
      <LineComment>
        <Text>Schritt 1</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="50">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s002" />
      <LineComment>
        <Text>Schritt 2</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="53">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s003" />
      <LineComment>
        <Text>Schritt 3</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="56">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s004" />
      <LineComment>
        <Text>Schritt 4</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="59">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s005" />
      <LineComment>
        <Text>Schritt 5</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="62">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s006" />
      <LineComment>
        <Text>Schritt 6</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="65">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s007" />
      <LineComment>
        <Text>Schritt 7</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="68">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="s008" />
      <LineComment>
        <Text>Schritt 8</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="71">
    <LabelDeclaration>
      <Label Name="Ende" />
    </LabelDeclaration>
    <StlToken Text="BEU" />
    <LineComment>
      <Text>Kein AMR</Text>
    </LineComment>
  </StlStatement>
  <StlStatement UId="73">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="181">
    <LabelDeclaration>
      <Label Name="s000" />
    </LabelDeclaration>
    <StlToken Text="BEU" />
    <LineComment>
      <Text>Kein AMR</Text>
    </LineComment>
  </StlStatement>
  <StlStatement UId="78">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="183">
    <LabelDeclaration>
      <Label Name="s001" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#A500</ConstantValue>
      </Constant>
      <LineComment>
        <Text>PS5</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="93">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="81">
    <LabelDeclaration>
      <Label Name="s002" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#A400</ConstantValue>
      </Constant>
      <LineComment>
        <Text>PS4</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="85">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="96">
    <LabelDeclaration>
      <Label Name="s003" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#A300</ConstantValue>
      </Constant>
      <LineComment>
        <Text>PS3</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="100">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="103">
    <LabelDeclaration>
      <Label Name="s004" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#A200</ConstantValue>
      </Constant>
      <LineComment>
        <Text>PS2</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="107">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="110">
    <LabelDeclaration>
      <Label Name="s005" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#A100</ConstantValue>
      </Constant>
      <LineComment>
        <Text>PS1</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="114">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="117">
    <LabelDeclaration>
      <Label Name="s006" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#B300</ConstantValue>
      </Constant>
      <LineComment>
        <Text>MPS3</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="121">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="124">
    <LabelDeclaration>
      <Label Name="s007" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#B200</ConstantValue>
      </Constant>
      <LineComment>
        <Text>MPS2</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="128">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="131">
    <LabelDeclaration>
      <Label Name="s008" />
    </LabelDeclaration>
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Word</ConstantType>
        <ConstantValue>16#B100</ConstantValue>
      </Constant>
      <LineComment>
        <Text>MPS1</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="135">
    <StlToken Text="JU" />
    <Access Scope="Label">
      <Label Name="AMRCheck" />
    </Access>
  </StlStatement>
  <StlStatement UId="22">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
</StatementList></NetworkSource>
          <ProgrammingLanguage>STL</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="18" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="19" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="1A" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="1B" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="1C" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="1D" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="1E" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text>AMR zufällig ermitteln</Text>
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="1F" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="20" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
  <StlStatement UId="22">
    <LabelDeclaration>
      <Label Name="AMRCheck" />
    </LabelDeclaration>
    <StlToken Text="T" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="AMR" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="24">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="25">
    <StlToken Text="CALL" />
    <Access Scope="Call">
      <CallInfo Name="AMRZeiger_ermitteln" BlockType="FC">
        <Parameter Name="AMR_X" Section="Input" Type="Word">
          <Access Scope="GlobalVariable">
            <Symbol>
              <Component Name="DAMR_Bereich" />
              <Component Name="Simulation" />
              <Component Name="AMR" />
            </Symbol>
          </Access>
        </Parameter>
        <Parameter Name="AMR_DB" Section="Output" Type="Int">
          <Access Scope="LocalVariable">
            <Symbol>
              <Component Name="AMR_DB" />
            </Symbol>
          </Access>
        </Parameter>
        <Parameter Name="AMR_DW" Section="Output" Type="Int">
          <Access Scope="LocalVariable">
            <Symbol>
              <Component Name="AMR_DW" />
            </Symbol>
          </Access>
        </Parameter>
        <Parameter Name="Error" Section="Output" Type="Bool">
          <Access Scope="GlobalVariable">
            <Symbol>
              <Component Name="M199.0" />
            </Symbol>
          </Access>
        </Parameter>
      </CallInfo>
    </Access>
  </StlStatement>
  <StlStatement UId="37">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="26">
    <StlToken Text="A" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="M199.0" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="27">
    <StlToken Text="BEC" />
  </StlStatement>
  <StlStatement UId="69">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="60">
    <LineComment>
      <Text>Ziel-Pointer erzeugen: (PLC-Daten)</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="62">
    <StlToken Text="L" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="AMR_DW" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="64">
    <StlToken Text="ITD" />
  </StlStatement>
  <StlStatement UId="65">
    <StlToken Text="T" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="AR1Start" />
      </Symbol>
      <LineComment>
        <Text>Startwert mit Offset 0</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="44">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="45">
    <LineComment>
      <Text>Hat AMR Trolleys zum Ausfahren?:</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="70">
    <StlToken Text="L" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="AR1Start" />
      </Symbol>
      <LineComment>
        <Text>Startwert mit Offset 0</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="73">
    <StlToken Text="ADD" />
    <Access Scope="TypedConstant">
      <Constant>
        <ConstantValue>DINT#184</ConstantValue>
      </Constant>
      <LineComment>
        <Text>Offset für Simulation</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="76">
    <StlToken Text="SLD" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>3</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="78">
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>3</ConstantValue>
      </Constant>
      <LineComment>
        <Text>Damit DBX_Bit 3</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="81">
    <StlToken Text="OD" />
  </StlStatement>
  <StlStatement UId="82">
    <StlToken Text="T" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="AR1Zeiger" />
      </Symbol>
      <LineComment>
        <Text>Statt Dyn.Bereichsstop (ging nur bis DB-Länge &lt;= 8191 Bytes)</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="85">
    <StlToken Text="OPEN_DB" />
    <Access Scope="Address">
      <Indirect Width="Block" Area="DB">
        <Access Scope="LocalVariable">
          <Symbol>
            <Component Name="AMR_DB" />
          </Symbol>
        </Access>
      </Indirect>
      <LineComment>
        <Text>AMR-DB öffnen</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="91">
    <StlToken Text="AN" />
    <Access Scope="Address">
      <Indirect Width="Bit" Area="DB">
        <Access Scope="LocalVariable">
          <Symbol>
            <Component Name="AR1Zeiger" />
          </Symbol>
        </Access>
      </Indirect>
      <LineComment>
        <Text>Trolleys bereit für Ausfahrt</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="55">
    <StlToken Text="BEC" />
  </StlStatement>
  <StlStatement UId="56">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="57">
    <LineComment>
      <Text>Trolley starten:</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="95">
    <StlToken Text="L" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="AR1Start" />
      </Symbol>
      <LineComment>
        <Text>Startwert mit Offset 0</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="98">
    <StlToken Text="ADD" />
    <Access Scope="TypedConstant">
      <Constant>
        <ConstantValue>DINT#184</ConstantValue>
      </Constant>
      <LineComment>
        <Text>Offset für Simulation</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="101">
    <StlToken Text="SLD" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>3</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="103">
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>Int</ConstantType>
        <ConstantValue>1</ConstantValue>
      </Constant>
      <LineComment>
        <Text>Damit DBX_Bit 1</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="106">
    <StlToken Text="OD" />
  </StlStatement>
  <StlStatement UId="107">
    <StlToken Text="T" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="AR1Zeiger" />
      </Symbol>
      <LineComment>
        <Text>Statt Dyn.Bereichsstop (ging nur bis DB-Länge &lt;= 8191 Bytes)</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="110">
    <StlToken Text="OPEN_DB" />
    <Access Scope="Address">
      <Indirect Width="Block" Area="DB">
        <Access Scope="LocalVariable">
          <Symbol>
            <Component Name="AMR_DB" />
          </Symbol>
        </Access>
      </Indirect>
      <LineComment>
        <Text>AMR-DB öffnen</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="119">
    <StlToken Text="SET" />
  </StlStatement>
  <StlStatement UId="114">
    <StlToken Text="Assign" />
    <Access Scope="Address">
      <Indirect Width="Bit" Area="DB">
        <Access Scope="LocalVariable">
          <Symbol>
            <Component Name="AR1Zeiger" />
          </Symbol>
        </Access>
      </Indirect>
      <LineComment>
        <Text>Trolley starten</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="23">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="21">
    <StlToken Text="SET" />
  </StlStatement>
  <StlStatement UId="47">
    <StlToken Text="R" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="DAMR_Bereich" />
        <Component Name="Simulation" />
        <Component Name="Wartezeit_ok" />
      </Symbol>
      <LineComment>
        <Text>Wartezeit neu starten</Text>
      </LineComment>
    </Access>
  </StlStatement>
  <StlStatement UId="46">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
</StatementList></NetworkSource>
          <ProgrammingLanguage>STL</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="21" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="22" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="23" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="24" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="25" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="26" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="27" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text>AMR bereit ?</Text>
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="28" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <SW.Blocks.CompileUnit ID="29" CompositionName="CompileUnits">
        <AttributeList>
          <NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
  <StlStatement UId="21">
    <StlToken Text="BE" />
  </StlStatement>
  <StlStatement UId="22">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
</StatementList></NetworkSource>
          <ProgrammingLanguage>STL</ProgrammingLanguage>
        </AttributeList>
        <ObjectList>
          <MultilingualText ID="2A" CompositionName="Comment">
            <ObjectList>
              <MultilingualTextItem ID="2B" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="2C" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="2D" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
          <MultilingualText ID="2E" CompositionName="Title">
            <ObjectList>
              <MultilingualTextItem ID="2F" CompositionName="Items">
                <AttributeList>
                  <Culture>cs-CZ</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="30" CompositionName="Items">
                <AttributeList>
                  <Culture>de-DE</Culture>
                  <Text>Ende</Text>
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="31" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <MultilingualText ID="32" CompositionName="Title">
        <ObjectList>
          <MultilingualTextItem ID="33" CompositionName="Items">
            <AttributeList>
              <Culture>cs-CZ</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
          <MultilingualTextItem ID="34" CompositionName="Items">
            <AttributeList>
              <Culture>de-DE</Culture>
              <Text>Simulation zum Starten von Trolleys aus AMRs</Text>
            </AttributeList>
          </MultilingualTextItem>
          <MultilingualTextItem ID="35" CompositionName="Items">
            <AttributeList>
              <Culture>en-US</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
        </ObjectList>
      </MultilingualText>
    </ObjectList>
  </SW.Blocks.FC>
</Document>