This commit is contained in:
2026-07-06 12:57:53 +02:00
commit 80e2887eb6
121 changed files with 130461 additions and 0 deletions
@@ -0,0 +1,777 @@
<?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">
<Member Name="Ink_DB" Datatype="Int">
<Comment>
<MultiLanguageText Lang="de-DE">DB-Nr des Inkremental-Gebers (Zählerbaugruppe) Neu-Sync-Zähler</MultiLanguageText>
</Comment>
</Member>
<Member Name="B_Zaehlen" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="de-DE">Sensor zum Zählen</MultiLanguageText>
</Comment>
</Member>
<Member Name="Antrieb_aktiv" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="de-DE">Antrieb ist aktiv</MultiLanguageText>
</Comment>
</Member>
<Member Name="T_1" Datatype="Timer">
<Comment>
<MultiLanguageText Lang="de-DE">Timer zum Entprellen</MultiLanguageText>
</Comment>
</Member>
<Member Name="T_2" Datatype="Timer">
<Comment>
<MultiLanguageText Lang="de-DE">Timer für Störung</MultiLanguageText>
</Comment>
</Member>
<Member Name="T_3" Datatype="Timer">
<Comment>
<MultiLanguageText Lang="de-DE">Timer für Störung</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Output" />
<Section Name="InOut">
<Member Name="Error" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="de-DE">Zähl-Sensor hat Störung</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Temp" />
<Section Name="Constant" />
<Section Name="Return">
<Member Name="Ret_Val" Datatype="Void" />
</Section>
</Sections></Interface>
<MemoryLayout>Standard</MemoryLayout>
<Name>Sensor-Zähler</Name>
<Namespace />
<Number>100</Number>
<ProgrammingLanguage>STL</ProgrammingLanguage>
</AttributeList>
<ObjectList>
<MultilingualText ID="1" CompositionName="Comment">
<ObjectList>
<MultilingualTextItem ID="2" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text />
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
<SW.Blocks.CompileUnit ID="3" CompositionName="CompileUnits">
<AttributeList>
<NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
<StlStatement UId="22">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="B_Zaehlen" />
</Symbol>
<LineComment>
<Text>Sensor zum Zählen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="25">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Antrieb_aktiv" />
</Symbol>
<LineComment>
<Text>Antrieb ist aktiv</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="28">
<StlToken Text="L" />
<Access Scope="TypedConstant">
<Constant>
<ConstantValue>S5T#350MS</ConstantValue>
</Constant>
</Access>
</StlStatement>
<StlStatement UId="30">
<StlToken Text="OnDelay" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="T_2" />
</Symbol>
<LineComment>
<Text>Timer für Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="33">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="34">
<StlToken Text="AN" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="B_Zaehlen" />
</Symbol>
<LineComment>
<Text>Sensor zum Zählen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="37">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Antrieb_aktiv" />
</Symbol>
<LineComment>
<Text>Antrieb ist aktiv</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="40">
<StlToken Text="L" />
<Access Scope="TypedConstant">
<Constant>
<ConstantValue>S5T#500MS</ConstantValue>
</Constant>
</Access>
</StlStatement>
<StlStatement UId="42">
<StlToken Text="OnDelay" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="T_3" />
</Symbol>
<LineComment>
<Text>Timer für Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="45">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="46">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="T_2" />
</Symbol>
<LineComment>
<Text>Timer für Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="49">
<StlToken Text="S" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Error" />
</Symbol>
<LineComment>
<Text>Zähl-Sensor hat Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="52">
<StlToken Text="S" />
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="SGes" />
<Component Name="Sensor_zu_lang" />
</Symbol>
<LineComment>
<Text>Ursache mitspeichern</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="55">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="56">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="T_3" />
</Symbol>
<LineComment>
<Text>Timer für Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="59">
<StlToken Text="S" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Error" />
</Symbol>
<LineComment>
<Text>Zähl-Sensor hat Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="62">
<StlToken Text="S" />
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="SGes" />
<Component Name="Kein_Signal" />
</Symbol>
<LineComment>
<Text>Ursache mitspeichern</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="65">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="66">
<StlToken Text="AN" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Error" />
</Symbol>
<LineComment>
<Text>Zähl-Sensor hat Störung</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="69">
<StlToken Text="R" />
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="SGes" />
<Component Name="Sensor_zu_lang" />
</Symbol>
</Access>
</StlStatement>
<StlStatement UId="71">
<StlToken Text="R" />
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="SGes" />
<Component Name="Kein_Signal" />
</Symbol>
</Access>
</StlStatement>
<StlStatement UId="73">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
</StatementList></NetworkSource>
<ProgrammingLanguage>STL</ProgrammingLanguage>
</AttributeList>
<ObjectList>
<MultilingualText ID="4" CompositionName="Comment">
<ObjectList>
<MultilingualTextItem ID="5" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text />
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
<MultilingualText ID="6" CompositionName="Title">
<ObjectList>
<MultilingualTextItem ID="7" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text>Störung </Text>
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
</ObjectList>
</SW.Blocks.CompileUnit>
<SW.Blocks.CompileUnit ID="8" CompositionName="CompileUnits">
<AttributeList>
<NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
<StlStatement UId="74">
<StlToken Text="L" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Ink_DB" />
</Symbol>
</Access>
</StlStatement>
<StlStatement UId="76">
<StlToken Text="T" />
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="MW200" />
</Symbol>
</Access>
</StlStatement>
<StlStatement UId="78">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="79">
<StlToken Text="OPEN_DB" />
<Access Scope="Address">
<Indirect Width="Block" Area="DB">
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="MW200" />
</Symbol>
</Access>
</Indirect>
<LineComment>
<Text>Zähler-DB öffnen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="83">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="84">
<StlToken Text="AN" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="B_Zaehlen" />
</Symbol>
<LineComment>
<Text>Sensor zum Zählen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="87">
<StlToken Text="A" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="600" />
<LineComment>
<Text>Sperre Auswertung schon erfolgt</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="90">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="Antrieb_aktiv" />
</Symbol>
<LineComment>
<Text>Antrieb ist aktiv</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="93">
<StlToken Text="L" />
<Access Scope="TypedConstant">
<Constant>
<ConstantValue>S5T#50MS</ConstantValue>
</Constant>
</Access>
</StlStatement>
<StlStatement UId="95">
<StlToken Text="OnDelay" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="T_1" />
</Symbol>
<LineComment>
<Text>Timer zum Entprellen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="98">
<StlToken Text="A" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="T_1" />
</Symbol>
<LineComment>
<Text>Timer zum Entprellen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="101">
<StlToken Text="R" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="600" />
<LineComment>
<Text>Sperre Auswertung schon erfolgt</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="104">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="105">
<StlToken Text="AN" />
<Access Scope="LocalVariable">
<Symbol>
<Component Name="B_Zaehlen" />
</Symbol>
<LineComment>
<Text>Sensor zum Zählen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="108">
<StlToken Text="O" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="600" />
<LineComment>
<Text>Sperre Auswertung schon erfolgt</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="111">
<StlToken Text="BEC" />
</StlStatement>
<StlStatement UId="112">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="113">
<StlToken Text="SET" />
</StlStatement>
<StlStatement UId="114">
<StlToken Text="S" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="600" />
<LineComment>
<Text>Sperre Auswertung schon erfolgt</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="117">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="118">
<StlToken Text="OPEN_DB" />
<Access Scope="Address">
<Indirect Width="Block" Area="DB">
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="MW200" />
</Symbol>
</Access>
</Indirect>
<LineComment>
<Text>Zähler-DB öffnen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="122">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="123">
<StlToken Text="L" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="0" />
</Access>
</StlStatement>
<StlStatement UId="125">
<StlToken Text="ADD" />
<Access Scope="TypedConstant">
<Constant>
<ConstantValue>DINT#1</ConstantValue>
</Constant>
<LineComment>
<Text>Aktueller Zählerwert +1</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="128">
<StlToken Text="T" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="0" />
</Access>
</StlStatement>
<StlStatement UId="130">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="131">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
</StatementList></NetworkSource>
<ProgrammingLanguage>STL</ProgrammingLanguage>
</AttributeList>
<ObjectList>
<MultilingualText ID="9" CompositionName="Comment">
<ObjectList>
<MultilingualTextItem ID="A" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text />
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
<MultilingualText ID="B" CompositionName="Title">
<ObjectList>
<MultilingualTextItem ID="C" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text>Zählen über Sensor</Text>
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
</ObjectList>
</SW.Blocks.CompileUnit>
<SW.Blocks.CompileUnit ID="D" CompositionName="CompileUnits">
<AttributeList>
<NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
<StlStatement UId="132">
<StlToken Text="OPEN_DB" />
<Access Scope="Address">
<Indirect Width="Block" Area="DB">
<Access Scope="GlobalVariable">
<Symbol>
<Component Name="MW200" />
</Symbol>
</Access>
</Indirect>
<LineComment>
<Text>Zähler-DB öffnen</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="136">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="137">
<StlToken Text="L" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="0" />
<LineComment>
<Text>Aktueller Zählerwert</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="140">
<StlToken Text="L" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="608" />
<LineComment>
<Text>Max. Wert erreicht ?</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="143">
<StlToken Text="LE_D" />
<LineComment>
<Text>Nein !</Text>
</LineComment>
</StlStatement>
<StlStatement UId="145">
<StlToken Text="R" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="597" />
<LineComment>
<Text>Ohne Flag-Lauf wurde beendet</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="148">
<StlToken Text="R" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="596" />
<LineComment>
<Text>Flag-Lauf wurde beendet</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="151">
<StlToken Text="JC" />
<Access Scope="Label">
<Label Name="en02" />
<LineComment>
<Text>Keine Inkrementalgeber verbaut, sondern nur Sensor</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="154">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="155">
<StlToken Text="SUB_D" />
<LineComment>
<Text>Restwert als Startwert nehmen !</Text>
</LineComment>
</StlStatement>
<StlStatement UId="157">
<StlToken Text="T" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="0" />
<LineComment>
<Text>Keine Inkrementalgeber verbaut, sondern nur Sensor</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="160">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="161">
<StlToken Text="AN" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="595" />
<LineComment>
<Text>Umschaltung Zähl-Lauf ohne-mit-ohne Flag</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="164">
<StlToken Text="Assign" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="597" />
<LineComment>
<Text>Ohne Flag-Lauf wurde beendet</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="167">
<StlToken Text="A" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="595" />
<LineComment>
<Text>Umschaltung Zähl-Lauf ohne-mit-ohne Flag</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="170">
<StlToken Text="Assign" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="596" />
<LineComment>
<Text>Flag-Lauf wurde beendet</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="173">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="174">
<StlToken Text="AN" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="595" />
<LineComment>
<Text>Umschaltung Zähl-Lauf ohne-mit-ohne Flag</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="177">
<StlToken Text="Assign" />
<Access Scope="Address">
<Address Area="DB" Type="Bool" BitOffset="595" />
</Access>
</StlStatement>
<StlStatement UId="179">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="180">
<LabelDeclaration>
<Label Name="en02" />
</LabelDeclaration>
<StlToken Text="NOP_0" />
</StlStatement>
<StlStatement UId="24">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
<StlStatement UId="182">
<LineComment>
<Text>Neue Bausteine mit DBD80:</Text>
</LineComment>
<StlToken Text="COMMENT" />
</StlStatement>
<StlStatement UId="27">
<StlToken Text="L" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="0" />
<LineComment>
<Text>Aktueller Zählerwert</Text>
</LineComment>
</Access>
</StlStatement>
<StlStatement UId="31">
<StlToken Text="T" />
<Access Scope="Address">
<Address Area="DB" Type="DWord" BitOffset="640" />
</Access>
</StlStatement>
<StlStatement UId="32">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
</StatementList></NetworkSource>
<ProgrammingLanguage>STL</ProgrammingLanguage>
</AttributeList>
<ObjectList>
<MultilingualText ID="E" CompositionName="Comment">
<ObjectList>
<MultilingualTextItem ID="F" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text />
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
<MultilingualText ID="10" CompositionName="Title">
<ObjectList>
<MultilingualTextItem ID="11" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text>Übergabe an Inkrement-Baustein</Text>
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
</ObjectList>
</SW.Blocks.CompileUnit>
<SW.Blocks.CompileUnit ID="12" CompositionName="CompileUnits">
<AttributeList>
<NetworkSource><StatementList xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StatementList/v5">
<StlStatement UId="183">
<StlToken Text="BE" />
</StlStatement>
<StlStatement UId="184">
<StlToken Text="EMPTY_LINE" />
</StlStatement>
</StatementList></NetworkSource>
<ProgrammingLanguage>STL</ProgrammingLanguage>
</AttributeList>
<ObjectList>
<MultilingualText ID="13" CompositionName="Comment">
<ObjectList>
<MultilingualTextItem ID="14" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text />
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
<MultilingualText ID="15" CompositionName="Title">
<ObjectList>
<MultilingualTextItem ID="16" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text>Ende</Text>
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
</ObjectList>
</SW.Blocks.CompileUnit>
<MultilingualText ID="17" CompositionName="Title">
<ObjectList>
<MultilingualTextItem ID="18" CompositionName="Items">
<AttributeList>
<Culture>de-DE</Culture>
<Text>Sensor-Zähler</Text>
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
</ObjectList>
</SW.Blocks.FC>
</Document>