<?xml version="1.0" encoding="utf-8"?>
<Document>
  <Engineering version="V20" />
  <SW.Blocks.FC ID="0">
    <AttributeList>
      <AutoNumber>false</AutoNumber>
      <HeaderAuthor>AE</HeaderAuthor>
      <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="QuellDB" Datatype="Any">
      <Comment>
        <MultiLanguageText Lang="de-DE">Zeiger, wo Empfangsdaten sind</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="ZielDB" Datatype="Any">
      <Comment>
        <MultiLanguageText Lang="de-DE">Zeiger, wo Auswertesdaten sind</MultiLanguageText>
      </Comment>
    </Member>
    <Member Name="Teleg_Kennung_A" Datatype="DWord" />
    <Member Name="Teleg_Kennung_B" Datatype="DWord" />
    <Member Name="Teleg_Kennung_C" Datatype="Word" />
    <Member Name="AMR_DB" Datatype="Int" />
    <Member Name="AMR_DW" Datatype="Int" />
    <Member Name="Error" Datatype="Bool" />
    <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>
    <Member Name="PLC_ABP" Datatype="Word" />
  </Section>
  <Section Name="Constant" />
  <Section Name="Return">
    <Member Name="Ret_Val" Datatype="Void" />
  </Section>
</Sections></Interface>
      <MemoryLayout>Standard</MemoryLayout>
      <Name>Port1_Telegramme_auswerten</Name>
      <Namespace />
      <Number>9001</Number>
      <ParameterPassing>true</ParameterPassing>
      <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="31">
    <StlToken Text="BEU" />
  </StlStatement>
  <StlStatement UId="32">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="21">
    <LineComment>
      <Text>Kennung A:</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="23">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>1</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="25">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="160" />
    </Access>
  </StlStatement>
  <StlStatement UId="44">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>2</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="30">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="168" />
    </Access>
  </StlStatement>
  <StlStatement UId="34">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>3</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="36">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="176" />
    </Access>
  </StlStatement>
  <StlStatement UId="38">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>4</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="40">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="184" />
    </Access>
  </StlStatement>
  <StlStatement UId="24">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="51">
    <LineComment>
      <Text>Kennung B:</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="53">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>5</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="55">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="192" />
    </Access>
  </StlStatement>
  <StlStatement UId="57">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>6</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="59">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="200" />
    </Access>
  </StlStatement>
  <StlStatement UId="61">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>7</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="63">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="208" />
    </Access>
  </StlStatement>
  <StlStatement UId="65">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>8</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="67">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="216" />
    </Access>
  </StlStatement>
  <StlStatement UId="26">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="70">
    <LineComment>
      <Text>Kennung C:</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="72">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>9</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="74">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="224" />
    </Access>
  </StlStatement>
  <StlStatement UId="76">
    <StlToken Text="L" />
    <Access Scope="GlobalVariable">
      <Symbol>
        <Component Name="SS_Port1_EmpfangsDaten" />
        <Component Name="Port1" />
        <Component Name="TelegrammKennung" AccessModifier="Array">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>DInt</ConstantType>
              <ConstantValue>10</ConstantValue>
            </Constant>
          </Access>
        </Component>
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="78">
    <StlToken Text="T" />
    <Access Scope="Address">
      <Address Area="Local" Type="Byte" BitOffset="232" />
    </Access>
  </StlStatement>
  <StlStatement UId="22">
    <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>Telegrammkopf übergeben</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="24">
    <StlToken Text="L" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="Teleg_Kennung_A" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="26">
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>String</ConstantType>
        <ConstantValue>'BReq'</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="28">
    <StlToken Text="EQ_D" />
  </StlStatement>
  <StlStatement UId="29">
    <StlToken Text="JCN" />
    <Access Scope="Label">
      <Label Name="NoBREQM" />
    </Access>
  </StlStatement>
  <StlStatement UId="31">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="30">
    <StlToken Text="L" />
    <Access Scope="LocalVariable">
      <Symbol>
        <Component Name="Teleg_Kennung_B" />
      </Symbol>
    </Access>
  </StlStatement>
  <StlStatement UId="33">
    <StlToken Text="L" />
    <Access Scope="LiteralConstant">
      <Constant>
        <ConstantType>String</ConstantType>
        <ConstantValue>'M'</ConstantValue>
      </Constant>
    </Access>
  </StlStatement>
  <StlStatement UId="35">
    <StlToken Text="EQ_D" />
  </StlStatement>
  <StlStatement UId="36">
    <StlToken Text="JCN" />
    <Access Scope="Label">
      <Label Name="NoBREQM" />
    </Access>
  </StlStatement>
  <StlStatement UId="27">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="56">
    <LineComment>
      <Text>Gewollten Trolley markieren</Text>
    </LineComment>
    <StlToken Text="COMMENT" />
  </StlStatement>
  <StlStatement UId="39">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="92">
    <StlToken Text="BEU" />
  </StlStatement>
  <StlStatement UId="93">
    <StlToken Text="EMPTY_LINE" />
  </StlStatement>
  <StlStatement UId="94">
    <LabelDeclaration>
      <Label Name="NoBREQM" />
    </LabelDeclaration>
    <StlToken Text="NOP_0" />
  </StlStatement>
  <StlStatement UId="96">
    <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>BReqM-Telegramm ? (VollPuffer auslagern)</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="Unbekannt" />
    </LabelDeclaration>
    <StlToken Text="CALL" />
    <Access Scope="Call">
      <CallInfo Name="DBMOV" BlockType="FC">
        <Token Text="," />
        <LineComment>
          <Text>Letztes ???-Telegramm speichern</Text>
        </LineComment>
        <Parameter Name="QuellDB" Section="Input" Type="Int">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>Int</ConstantType>
              <ConstantValue>9001</ConstantValue>
            </Constant>
          </Access>
        </Parameter>
        <Parameter Name="QuellDW" Section="Input" Type="Int">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>Int</ConstantType>
              <ConstantValue>0</ConstantValue>
            </Constant>
          </Access>
        </Parameter>
        <Parameter Name="ZielDB" Section="Input" Type="Int">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>Int</ConstantType>
              <ConstantValue>9001</ConstantValue>
            </Constant>
          </Access>
        </Parameter>
        <Parameter Name="ZielDW" Section="Input" Type="Int">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>Int</ConstantType>
              <ConstantValue>30</ConstantValue>
            </Constant>
          </Access>
        </Parameter>
        <Parameter Name="Anzahl_DW" Section="Input" Type="Int">
          <Access Scope="LiteralConstant">
            <Constant>
              <ConstantType>Int</ConstantType>
              <ConstantValue>15</ConstantValue>
            </Constant>
          </Access>
        </Parameter>
        <Parameter Name="RE_VAL" Section="Output" Type="Int">
          <Access Scope="GlobalVariable">
            <Symbol>
              <Component Name="MW196" />
            </Symbol>
          </Access>
        </Parameter>
      </CallInfo>
    </Access>
  </StlStatement>
  <StlStatement UId="443">
    <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>Unbekanntes Telegramm</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="752">
    <StlToken Text="BE" />
  </StlStatement>
  <StlStatement UId="753">
    <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>Baustein Ende</Text>
                </AttributeList>
              </MultilingualTextItem>
              <MultilingualTextItem ID="28" CompositionName="Items">
                <AttributeList>
                  <Culture>en-US</Culture>
                  <Text />
                </AttributeList>
              </MultilingualTextItem>
            </ObjectList>
          </MultilingualText>
        </ObjectList>
      </SW.Blocks.CompileUnit>
      <MultilingualText ID="29" CompositionName="Title">
        <ObjectList>
          <MultilingualTextItem ID="2A" CompositionName="Items">
            <AttributeList>
              <Culture>cs-CZ</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
          <MultilingualTextItem ID="2B" CompositionName="Items">
            <AttributeList>
              <Culture>de-DE</Culture>
              <Text>Daten von Empfangs-DB (DB9001/Kanal 1) auswerten</Text>
            </AttributeList>
          </MultilingualTextItem>
          <MultilingualTextItem ID="2C" CompositionName="Items">
            <AttributeList>
              <Culture>en-US</Culture>
              <Text />
            </AttributeList>
          </MultilingualTextItem>
        </ObjectList>
      </MultilingualText>
    </ObjectList>
  </SW.Blocks.FC>
</Document>