559 lines
18 KiB
XML
559 lines
18 KiB
XML
<?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="Bereich_DL" Datatype="Int">
|
|
<Comment>
|
|
<MultiLanguageText Lang="de-DE">Nur für Stammdaten =1!</MultiLanguageText>
|
|
</Comment>
|
|
</Member>
|
|
<Member Name="ID" Datatype="Int" />
|
|
</Section>
|
|
<Section Name="Output">
|
|
<Member Name="Dyn.DB" Datatype="Int" />
|
|
<Member Name="AR_Start" Datatype="DInt" />
|
|
<Member Name="Error" Datatype="Bool" />
|
|
</Section>
|
|
<Section Name="InOut" />
|
|
<Section Name="Temp" />
|
|
<Section Name="Constant" />
|
|
<Section Name="Return">
|
|
<Member Name="Ret_Val" Datatype="Void" />
|
|
</Section>
|
|
</Sections></Interface>
|
|
<MemoryLayout>Optimized</MemoryLayout>
|
|
<Name>DL_Einsprung</Name>
|
|
<Namespace />
|
|
<Number>1004</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="21">
|
|
<StlToken Text="L" />
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>Int</ConstantType>
|
|
<ConstantValue>0</ConstantValue>
|
|
</Constant>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="27">
|
|
<StlToken Text="T" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="Dyn.DB" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="26">
|
|
<StlToken Text="L" />
|
|
<Access Scope="TypedConstant">
|
|
<Constant>
|
|
<ConstantValue>DINT#0</ConstantValue>
|
|
</Constant>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="24">
|
|
<StlToken Text="T" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="AR_Start" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="25">
|
|
<StlToken Text="SET" />
|
|
</StlStatement>
|
|
<StlStatement UId="31">
|
|
<StlToken Text="S" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="Error" />
|
|
</Symbol>
|
|
</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>Inittialisierung</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="23">
|
|
<StlToken Text="L" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="ID" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="60">
|
|
<StlToken Text="T" />
|
|
<Access Scope="GlobalVariable">
|
|
<Symbol>
|
|
<Component Name="MW200" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="62">
|
|
<StlToken Text="EMPTY_LINE" />
|
|
</StlStatement>
|
|
<StlStatement UId="25">
|
|
<StlToken Text="CALL" />
|
|
<Access Scope="Call">
|
|
<CallInfo Name="DatenOut" BlockType="FC">
|
|
<Parameter Name="SSDB" Section="Input" Type="Int">
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="Bereich_DL" />
|
|
</Symbol>
|
|
</Access>
|
|
</Parameter>
|
|
<Parameter Name="SSDW" Section="Input" Type="Int">
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>Int</ConstantType>
|
|
<ConstantValue>0</ConstantValue>
|
|
</Constant>
|
|
</Access>
|
|
</Parameter>
|
|
<Parameter Name="PARA" Section="Input" Type="Word">
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>Word</ConstantType>
|
|
<ConstantValue>16#0000</ConstantValue>
|
|
</Constant>
|
|
</Access>
|
|
<LineComment>
|
|
<Text>Eintrag lesen</Text>
|
|
</LineComment>
|
|
</Parameter>
|
|
<Parameter Name="SEARCHDATEN" Section="Input" Type="Pointer">
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>ARef</ConstantType>
|
|
<ConstantValue>P#M200.0</ConstantValue>
|
|
</Constant>
|
|
</Access>
|
|
</Parameter>
|
|
<Parameter Name="RE_VAL" Section="Output" Type="Byte">
|
|
<Access Scope="GlobalVariable">
|
|
<Symbol>
|
|
<Component Name="MB199" />
|
|
</Symbol>
|
|
</Access>
|
|
</Parameter>
|
|
<Parameter Name="OUTDATEN" Section="Output" Type="Pointer">
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>ARef</ConstantType>
|
|
<ConstantValue>P#M220.0</ConstantValue>
|
|
</Constant>
|
|
</Access>
|
|
</Parameter>
|
|
<Parameter Name="Position" Section="Output" Type="Int">
|
|
<Access Scope="GlobalVariable">
|
|
<Symbol>
|
|
<Component Name="MW196" />
|
|
</Symbol>
|
|
</Access>
|
|
</Parameter>
|
|
</CallInfo>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="42">
|
|
<StlToken Text="EMPTY_LINE" />
|
|
</StlStatement>
|
|
<StlStatement UId="47">
|
|
<StlToken Text="L" />
|
|
<Access Scope="GlobalVariable">
|
|
<Symbol>
|
|
<Component Name="MB199" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="49">
|
|
<StlToken Text="L" />
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>Word</ConstantType>
|
|
<ConstantValue>2#1111111</ConstantValue>
|
|
</Constant>
|
|
<LineComment>
|
|
<Text>Bit 7 ausblenden</Text>
|
|
</LineComment>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="52">
|
|
<StlToken Text="AW" />
|
|
</StlStatement>
|
|
<StlStatement UId="53">
|
|
<StlToken Text="L" />
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>Int</ConstantType>
|
|
<ConstantValue>0</ConstantValue>
|
|
</Constant>
|
|
<LineComment>
|
|
<Text>Fehler vorhanden?</Text>
|
|
</LineComment>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="56">
|
|
<StlToken Text="NE_I" />
|
|
<LineComment>
|
|
<Text>Ja</Text>
|
|
</LineComment>
|
|
</StlStatement>
|
|
<StlStatement UId="43">
|
|
<StlToken Text="Assign" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="Error" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="21">
|
|
<StlToken Text="BEC" />
|
|
</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>ID suchen</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="29">
|
|
<StlToken Text="L" />
|
|
<Access Scope="GlobalVariable">
|
|
<Symbol>
|
|
<Component Name="MW224" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="31">
|
|
<StlToken Text="T" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="Dyn.DB" />
|
|
</Symbol>
|
|
<LineComment>
|
|
<Text>Dyn.DB</Text>
|
|
</LineComment>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="35">
|
|
<StlToken Text="L" />
|
|
<Access Scope="LiteralConstant">
|
|
<Constant>
|
|
<ConstantType>Int</ConstantType>
|
|
<ConstantValue>0</ConstantValue>
|
|
</Constant>
|
|
<LineComment>
|
|
<Text>sinnvoller Wert ?</Text>
|
|
</LineComment>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="38">
|
|
<StlToken Text="LE_I" />
|
|
<LineComment>
|
|
<Text>Nein !</Text>
|
|
</LineComment>
|
|
</StlStatement>
|
|
<StlStatement UId="40">
|
|
<StlToken Text="S" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="Error" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="21">
|
|
<StlToken Text="BEC" />
|
|
</StlStatement>
|
|
<StlStatement UId="27">
|
|
<StlToken Text="EMPTY_LINE" />
|
|
</StlStatement>
|
|
<StlStatement UId="28">
|
|
<StlToken Text="L" />
|
|
<Access Scope="GlobalVariable">
|
|
<Symbol>
|
|
<Component Name="MW226" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="32">
|
|
<StlToken Text="ITD" />
|
|
</StlStatement>
|
|
<StlStatement UId="33">
|
|
<StlToken Text="T" />
|
|
<Access Scope="LocalVariable">
|
|
<Symbol>
|
|
<Component Name="AR_Start" />
|
|
</Symbol>
|
|
</Access>
|
|
</StlStatement>
|
|
<StlStatement UId="26">
|
|
<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>Daten übergeben</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="21">
|
|
<StlToken Text="BE" />
|
|
</StlStatement>
|
|
<StlStatement UId="22">
|
|
<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>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>Bereich-DL: Einsprungs-DW ermitteln</Text>
|
|
</AttributeList>
|
|
</MultilingualTextItem>
|
|
<MultilingualTextItem ID="2C" CompositionName="Items">
|
|
<AttributeList>
|
|
<Culture>en-US</Culture>
|
|
<Text />
|
|
</AttributeList>
|
|
</MultilingualTextItem>
|
|
</ObjectList>
|
|
</MultilingualText>
|
|
</ObjectList>
|
|
</SW.Blocks.FC>
|
|
</Document> |