Ajout des fonctions standard
This commit is contained in:
366
Divers/fBlinkG7.xml
Normal file
366
Divers/fBlinkG7.xml
Normal file
@@ -0,0 +1,366 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Document>
|
||||
<Engineering version="V19" />
|
||||
<SW.Blocks.FB ID="0">
|
||||
<AttributeList>
|
||||
<Interface><Sections xmlns="http://www.siemens.com/automation/Openness/SW/Interface/v5">
|
||||
<Section Name="Input">
|
||||
<Member Name="In" Datatype="Bool" />
|
||||
<Member Name="PtOn" Datatype="Time" />
|
||||
<Member Name="PtOff" Datatype="Time" />
|
||||
</Section>
|
||||
<Section Name="Output">
|
||||
<Member Name="Q" Datatype="Bool" />
|
||||
</Section>
|
||||
<Section Name="InOut" />
|
||||
<Section Name="Static">
|
||||
<Member Name="Ton" Datatype="TON_TIME" Version="1.0">
|
||||
<AttributeList>
|
||||
<BooleanAttribute Name="SetPoint" SystemDefined="true">true</BooleanAttribute>
|
||||
</AttributeList>
|
||||
</Member>
|
||||
<Member Name="Tof" Datatype="TON_TIME" Version="1.0">
|
||||
<AttributeList>
|
||||
<BooleanAttribute Name="SetPoint" SystemDefined="true">true</BooleanAttribute>
|
||||
</AttributeList>
|
||||
</Member>
|
||||
<Member Name="G7" Datatype="UInt" />
|
||||
</Section>
|
||||
<Section Name="Temp" />
|
||||
<Section Name="Constant" />
|
||||
</Sections></Interface>
|
||||
<MemoryLayout>Optimized</MemoryLayout>
|
||||
<MemoryReserve>100</MemoryReserve>
|
||||
<Name>fBlinkG7</Name>
|
||||
<Namespace />
|
||||
<Number>25</Number>
|
||||
<ProgrammingLanguage>SCL</ProgrammingLanguage>
|
||||
<SetENOAutomatically>false</SetENOAutomatically>
|
||||
</AttributeList>
|
||||
<ObjectList>
|
||||
<MultilingualText ID="1" CompositionName="Comment">
|
||||
<ObjectList>
|
||||
<MultilingualTextItem ID="2" CompositionName="Items">
|
||||
<AttributeList>
|
||||
<Culture>fr-FR</Culture>
|
||||
<Text />
|
||||
</AttributeList>
|
||||
</MultilingualTextItem>
|
||||
</ObjectList>
|
||||
</MultilingualText>
|
||||
<SW.Blocks.CompileUnit ID="3" CompositionName="CompileUnits">
|
||||
<AttributeList>
|
||||
<NetworkSource><StructuredText xmlns="http://www.siemens.com/automation/Openness/SW/NetworkSource/StructuredText/v4">
|
||||
<LineComment UId="21">
|
||||
<Text UId="22"> Génération d'un créneau asymetrique parametrable</Text>
|
||||
</LineComment>
|
||||
<NewLine UId="23" />
|
||||
<Access Scope="LocalVariable" UId="24">
|
||||
<Symbol UId="25">
|
||||
<Component Name="Ton" UId="26" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Access Scope="Call" UId="27">
|
||||
<Instruction UId="28">
|
||||
<Token Text="(" UId="29" />
|
||||
<Parameter Name="IN" UId="30">
|
||||
<Blank UId="31" />
|
||||
<Token Text=":=" UId="32" />
|
||||
<Blank UId="33" />
|
||||
<Access Scope="LocalVariable" UId="34">
|
||||
<Symbol UId="35">
|
||||
<Component Name="G7" UId="36" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="37" />
|
||||
<Token Text="=" UId="38" />
|
||||
<Blank UId="39" />
|
||||
<Access Scope="LiteralConstant" UId="40">
|
||||
<Constant UId="41">
|
||||
<ConstantValue UId="43">2</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
</Parameter>
|
||||
<Token Text="," UId="44" />
|
||||
<Blank UId="45" />
|
||||
<Parameter Name="PT" UId="46">
|
||||
<Blank UId="47" />
|
||||
<Token Text=":=" UId="48" />
|
||||
<Blank UId="49" />
|
||||
<Access Scope="LocalVariable" UId="50">
|
||||
<Symbol UId="51">
|
||||
<Component Name="PtOn" UId="52" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
</Parameter>
|
||||
<Token Text=")" UId="53" />
|
||||
</Instruction>
|
||||
</Access>
|
||||
<Token Text=";" UId="54" />
|
||||
<NewLine UId="55" />
|
||||
<Access Scope="LocalVariable" UId="56">
|
||||
<Symbol UId="57">
|
||||
<Component Name="Tof" UId="58" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Access Scope="Call" UId="59">
|
||||
<Instruction UId="60">
|
||||
<Token Text="(" UId="61" />
|
||||
<Parameter Name="IN" UId="62">
|
||||
<Blank UId="63" />
|
||||
<Token Text=":=" UId="64" />
|
||||
<Blank UId="65" />
|
||||
<Access Scope="LocalVariable" UId="66">
|
||||
<Symbol UId="67">
|
||||
<Component Name="G7" UId="68" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="69" />
|
||||
<Token Text="=" UId="70" />
|
||||
<Blank UId="71" />
|
||||
<Access Scope="LiteralConstant" UId="72">
|
||||
<Constant UId="73">
|
||||
<ConstantValue UId="75">4</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
</Parameter>
|
||||
<Token Text="," UId="76" />
|
||||
<Blank UId="77" />
|
||||
<Parameter Name="PT" UId="78">
|
||||
<Blank UId="79" />
|
||||
<Token Text=":=" UId="80" />
|
||||
<Blank UId="81" />
|
||||
<Access Scope="LocalVariable" UId="82">
|
||||
<Symbol UId="83">
|
||||
<Component Name="PtOff" UId="84" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
</Parameter>
|
||||
<Token Text=")" UId="85" />
|
||||
</Instruction>
|
||||
</Access>
|
||||
<Token Text=";" UId="86" />
|
||||
<NewLine UId="87" />
|
||||
<Token Text="CASE" UId="88" />
|
||||
<Blank UId="89" />
|
||||
<Access Scope="LocalVariable" UId="90">
|
||||
<Symbol UId="91">
|
||||
<Component Name="G7" UId="92" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="93" />
|
||||
<Token Text="OF" UId="94" />
|
||||
<NewLine UId="95" />
|
||||
<Blank Num="4" UId="96" />
|
||||
<Access Scope="LiteralConstant" UId="97">
|
||||
<Constant UId="98">
|
||||
<ConstantValue UId="100">0</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=":" UId="101" />
|
||||
<NewLine UId="102" />
|
||||
<Blank Num="8" UId="103" />
|
||||
<Token Text="IF" UId="104" />
|
||||
<Blank UId="105" />
|
||||
<Access Scope="LocalVariable" UId="106">
|
||||
<Symbol UId="107">
|
||||
<Component Name="In" UId="108" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="109" />
|
||||
<Token Text="THEN" UId="110" />
|
||||
<NewLine UId="111" />
|
||||
<Blank Num="12" UId="112" />
|
||||
<Access Scope="LocalVariable" UId="113">
|
||||
<Symbol UId="114">
|
||||
<Component Name="G7" UId="115" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="116" />
|
||||
<Token Text=":=" UId="117" />
|
||||
<Blank UId="118" />
|
||||
<Access Scope="LiteralConstant" UId="119">
|
||||
<Constant UId="120">
|
||||
<ConstantValue UId="122">2</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=";" UId="123" />
|
||||
<NewLine UId="124" />
|
||||
<Blank Num="8" UId="125" />
|
||||
<Token Text="END_IF" UId="126" />
|
||||
<Token Text=";" UId="127" />
|
||||
<NewLine UId="128" />
|
||||
<Blank Num="4" UId="129" />
|
||||
<Access Scope="LiteralConstant" UId="130">
|
||||
<Constant UId="131">
|
||||
<ConstantValue UId="133">2</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=":" UId="134" />
|
||||
<NewLine UId="135" />
|
||||
<Blank Num="8" UId="136" />
|
||||
<Token Text="IF" UId="137" />
|
||||
<Blank UId="138" />
|
||||
<Access Scope="LocalVariable" UId="139">
|
||||
<Symbol UId="140">
|
||||
<Component Name="Ton" UId="141" />
|
||||
<Token Text="." UId="142" />
|
||||
<Component Name="Q" UId="143" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="144" />
|
||||
<Token Text="THEN" UId="145" />
|
||||
<NewLine UId="146" />
|
||||
<Blank Num="12" UId="147" />
|
||||
<Access Scope="LocalVariable" UId="148">
|
||||
<Symbol UId="149">
|
||||
<Component Name="G7" UId="150" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="151" />
|
||||
<Token Text=":=" UId="152" />
|
||||
<Blank UId="153" />
|
||||
<Access Scope="LiteralConstant" UId="154">
|
||||
<Constant UId="155">
|
||||
<ConstantValue UId="157">4</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=";" UId="158" />
|
||||
<NewLine UId="159" />
|
||||
<Blank Num="8" UId="160" />
|
||||
<Token Text="END_IF" UId="161" />
|
||||
<Token Text=";" UId="162" />
|
||||
<NewLine UId="163" />
|
||||
<Blank Num="4" UId="164" />
|
||||
<Access Scope="LiteralConstant" UId="165">
|
||||
<Constant UId="166">
|
||||
<ConstantValue UId="168">4</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=":" UId="169" />
|
||||
<NewLine UId="170" />
|
||||
<Blank Num="8" UId="171" />
|
||||
<Token Text="IF" UId="172" />
|
||||
<Blank UId="173" />
|
||||
<Access Scope="LocalVariable" UId="174">
|
||||
<Symbol UId="175">
|
||||
<Component Name="Tof" UId="176" />
|
||||
<Token Text="." UId="177" />
|
||||
<Component Name="Q" UId="178" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="179" />
|
||||
<Token Text="THEN" UId="180" />
|
||||
<NewLine UId="181" />
|
||||
<Blank Num="12" UId="182" />
|
||||
<Access Scope="LocalVariable" UId="183">
|
||||
<Symbol UId="184">
|
||||
<Component Name="G7" UId="185" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="186" />
|
||||
<Token Text=":=" UId="187" />
|
||||
<Blank UId="188" />
|
||||
<Access Scope="LiteralConstant" UId="189">
|
||||
<Constant UId="190">
|
||||
<ConstantValue UId="192">0</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=";" UId="193" />
|
||||
<NewLine UId="194" />
|
||||
<Blank Num="8" UId="195" />
|
||||
<Token Text="END_IF" UId="196" />
|
||||
<Token Text=";" UId="197" />
|
||||
<NewLine UId="198" />
|
||||
<Blank Num="4" UId="199" />
|
||||
<Token Text="ELSE" UId="200" />
|
||||
<NewLine UId="201" />
|
||||
<Blank Num="8" UId="202" />
|
||||
<Access Scope="LocalVariable" UId="203">
|
||||
<Symbol UId="204">
|
||||
<Component Name="G7" UId="205" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="206" />
|
||||
<Token Text=":=" UId="207" />
|
||||
<Blank UId="208" />
|
||||
<Access Scope="LiteralConstant" UId="209">
|
||||
<Constant UId="210">
|
||||
<ConstantValue UId="212">0</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=";" UId="213" />
|
||||
<NewLine UId="214" />
|
||||
<Token Text="END_CASE" UId="215" />
|
||||
<Token Text=";" UId="216" />
|
||||
<NewLine UId="217" />
|
||||
<Access Scope="LocalVariable" UId="218">
|
||||
<Symbol UId="219">
|
||||
<Component Name="Q" UId="220" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="221" />
|
||||
<Token Text=":=" UId="222" />
|
||||
<Blank UId="223" />
|
||||
<Access Scope="LocalVariable" UId="224">
|
||||
<Symbol UId="225">
|
||||
<Component Name="In" UId="226" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="227" />
|
||||
<Token Text="AND" UId="228" />
|
||||
<Blank UId="229" />
|
||||
<Access Scope="LocalVariable" UId="230">
|
||||
<Symbol UId="231">
|
||||
<Component Name="G7" UId="232" />
|
||||
</Symbol>
|
||||
</Access>
|
||||
<Blank UId="233" />
|
||||
<Token Text="=" UId="234" />
|
||||
<Blank UId="235" />
|
||||
<Access Scope="LiteralConstant" UId="236">
|
||||
<Constant UId="237">
|
||||
<ConstantValue UId="239">2</ConstantValue>
|
||||
</Constant>
|
||||
</Access>
|
||||
<Token Text=";" UId="240" />
|
||||
<NewLine Num="2" UId="241" />
|
||||
</StructuredText></NetworkSource>
|
||||
<ProgrammingLanguage>SCL</ProgrammingLanguage>
|
||||
</AttributeList>
|
||||
<ObjectList>
|
||||
<MultilingualText ID="4" CompositionName="Comment">
|
||||
<ObjectList>
|
||||
<MultilingualTextItem ID="5" CompositionName="Items">
|
||||
<AttributeList>
|
||||
<Culture>fr-FR</Culture>
|
||||
<Text />
|
||||
</AttributeList>
|
||||
</MultilingualTextItem>
|
||||
</ObjectList>
|
||||
</MultilingualText>
|
||||
<MultilingualText ID="6" CompositionName="Title">
|
||||
<ObjectList>
|
||||
<MultilingualTextItem ID="7" CompositionName="Items">
|
||||
<AttributeList>
|
||||
<Culture>fr-FR</Culture>
|
||||
<Text />
|
||||
</AttributeList>
|
||||
</MultilingualTextItem>
|
||||
</ObjectList>
|
||||
</MultilingualText>
|
||||
</ObjectList>
|
||||
</SW.Blocks.CompileUnit>
|
||||
<MultilingualText ID="8" CompositionName="Title">
|
||||
<ObjectList>
|
||||
<MultilingualTextItem ID="9" CompositionName="Items">
|
||||
<AttributeList>
|
||||
<Culture>fr-FR</Culture>
|
||||
<Text />
|
||||
</AttributeList>
|
||||
</MultilingualTextItem>
|
||||
</ObjectList>
|
||||
</MultilingualText>
|
||||
</ObjectList>
|
||||
</SW.Blocks.FB>
|
||||
</Document>
|
||||
Reference in New Issue
Block a user