Compare commits

..

1 Commits

Author SHA1 Message Date
smaugain
0823984900 Ajout des fonctions standard 2026-01-06 17:44:49 +01:00
7 changed files with 3220 additions and 0 deletions

1474
Com/fDisjBlock8Ch.xml Normal file

File diff suppressed because it is too large Load Diff

295
Cpt/fCptFm.xml Normal file
View File

@@ -0,0 +1,295 @@
<?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="InDetFilt" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Entrée comptage</MultiLanguageText>
</Comment>
</Member>
<Member Name="RazCpt" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Raz du compteur</MultiLanguageText>
</Comment>
</Member>
<Member Name="NbParLot" Datatype="UInt">
<Comment>
<MultiLanguageText Lang="fr-FR">Consigne compteur</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Output">
<Member Name="CptOk" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Signal compteur complet</MultiLanguageText>
</Comment>
</Member>
<Member Name="OutCpt" Datatype="UDInt">
<Comment>
<MultiLanguageText Lang="fr-FR">Valeur courante compteur</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="InOut" />
<Section Name="Static">
<Member Name="FmCpt" Datatype="R_TRIG" Version="1.0">
<AttributeList>
<BooleanAttribute Name="SetPoint" SystemDefined="true">true</BooleanAttribute>
</AttributeList>
</Member>
<Member Name="FmRaz" Datatype="R_TRIG" Version="1.0">
<AttributeList>
<BooleanAttribute Name="SetPoint" SystemDefined="true">true</BooleanAttribute>
</AttributeList>
</Member>
<Member Name="ValCpt" Datatype="UDInt" Remanence="Retain">
<Comment>
<MultiLanguageText Lang="fr-FR">Valeur courante compteur</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Temp" />
<Section Name="Constant" />
</Sections></Interface>
<MemoryLayout>Optimized</MemoryLayout>
<MemoryReserve>100</MemoryReserve>
<Name>fCptFm</Name>
<Namespace />
<Number>22</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"> Comptage sur fronts descendants</Text>
</LineComment>
<NewLine UId="23" />
<LineComment UId="24">
<Text UId="25"> Fronts</Text>
</LineComment>
<NewLine UId="26" />
<Access Scope="LocalVariable" UId="27">
<Symbol UId="28">
<Component Name="FmCpt" UId="29" />
</Symbol>
</Access>
<Access Scope="Call" UId="30">
<Instruction UId="31">
<Token Text="(" UId="32" />
<Parameter Name="CLK" UId="33">
<Blank UId="34" />
<Token Text=":=" UId="35" />
<Blank UId="36" />
<Access Scope="LocalVariable" UId="37">
<Symbol UId="38">
<Component Name="InDetFilt" UId="39" />
</Symbol>
</Access>
</Parameter>
<Token Text=")" UId="40" />
</Instruction>
</Access>
<Token Text=";" UId="41" />
<NewLine UId="42" />
<Access Scope="LocalVariable" UId="43">
<Symbol UId="44">
<Component Name="FmRaz" UId="45" />
</Symbol>
</Access>
<Access Scope="Call" UId="46">
<Instruction UId="47">
<Token Text="(" UId="48" />
<Parameter Name="CLK" UId="49">
<Blank UId="50" />
<Token Text=":=" UId="51" />
<Blank UId="52" />
<Access Scope="LocalVariable" UId="53">
<Symbol UId="54">
<Component Name="RazCpt" UId="55" />
</Symbol>
</Access>
</Parameter>
<Token Text=")" UId="56" />
</Instruction>
</Access>
<Token Text=";" UId="57" />
<NewLine UId="58" />
<LineComment UId="59">
<Text UId="60"> Raz Cpt</Text>
</LineComment>
<NewLine UId="61" />
<Token Text="IF" UId="62" />
<Blank UId="63" />
<Access Scope="LocalVariable" UId="64">
<Symbol UId="65">
<Component Name="FmRaz" UId="66" />
<Token Text="." UId="67" />
<Component Name="Q" UId="68" />
</Symbol>
</Access>
<Blank UId="69" />
<Token Text="THEN" UId="70" />
<NewLine UId="71" />
<Blank Num="4" UId="72" />
<Access Scope="LocalVariable" UId="73">
<Symbol UId="74">
<Component Name="ValCpt" UId="75" />
</Symbol>
</Access>
<Blank UId="76" />
<Token Text=":=" UId="77" />
<Blank UId="78" />
<Access Scope="LiteralConstant" UId="79">
<Constant UId="80">
<ConstantValue UId="82">0</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="83" />
<NewLine UId="84" />
<Token Text="END_IF" UId="85" />
<Token Text=";" UId="86" />
<NewLine UId="87" />
<LineComment UId="88">
<Text UId="89"> Increment Cpt</Text>
</LineComment>
<NewLine UId="90" />
<Token Text="IF" UId="91" />
<Blank UId="92" />
<Access Scope="LocalVariable" UId="93">
<Symbol UId="94">
<Component Name="FmCpt" UId="95" />
<Token Text="." UId="96" />
<Component Name="Q" UId="97" />
</Symbol>
</Access>
<Blank UId="98" />
<Token Text="THEN" UId="99" />
<NewLine UId="100" />
<Blank Num="4" UId="101" />
<Access Scope="LocalVariable" UId="102">
<Symbol UId="103">
<Component Name="ValCpt" UId="104" />
</Symbol>
</Access>
<Blank UId="105" />
<Token Text=":=" UId="106" />
<Blank UId="107" />
<Access Scope="LocalVariable" UId="108">
<Symbol UId="109">
<Component Name="ValCpt" UId="110" />
</Symbol>
</Access>
<Blank UId="111" />
<Token Text="+" UId="112" />
<Blank UId="113" />
<Access Scope="LiteralConstant" UId="114">
<Constant UId="115">
<ConstantValue UId="117">1</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="118" />
<NewLine UId="119" />
<Token Text="END_IF" UId="120" />
<Token Text=";" UId="121" />
<NewLine UId="122" />
<LineComment UId="123">
<Text UId="124"> Lot complet</Text>
</LineComment>
<NewLine UId="125" />
<Access Scope="LocalVariable" UId="126">
<Symbol UId="127">
<Component Name="CptOk" UId="128" />
</Symbol>
</Access>
<Blank UId="129" />
<Token Text=":=" UId="130" />
<Blank UId="131" />
<Access Scope="LocalVariable" UId="132">
<Symbol UId="133">
<Component Name="ValCpt" UId="134" />
</Symbol>
</Access>
<Blank UId="135" />
<Token Text="&gt;=" UId="136" />
<Blank UId="137" />
<Access Scope="LocalVariable" UId="138">
<Symbol UId="139">
<Component Name="NbParLot" UId="140" />
</Symbol>
</Access>
<Token Text=";" UId="141" />
<NewLine UId="142" />
<LineComment UId="143">
<Text UId="144"> Sortie</Text>
</LineComment>
<NewLine UId="145" />
<Access Scope="LocalVariable" UId="146">
<Symbol UId="147">
<Component Name="OutCpt" UId="148" />
</Symbol>
</Access>
<Blank UId="149" />
<Token Text=":=" UId="150" />
<Blank UId="151" />
<Access Scope="LocalVariable" UId="152">
<Symbol UId="153">
<Component Name="ValCpt" UId="154" />
</Symbol>
</Access>
<Token Text=";" UId="155" />
<NewLine UId="156" />
</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>

485
Cpt/fCptHoraire.xml Normal file
View File

@@ -0,0 +1,485 @@
<?xml version="1.0" encoding="utf-8"?>
<Document>
<Engineering version="V19" />
<SW.Blocks.FC ID="0">
<AttributeList>
<HeaderAuthor>MAUGAIN</HeaderAuthor>
<HeaderVersion>1.0</HeaderVersion>
<Interface><Sections xmlns="http://www.siemens.com/automation/Openness/SW/Interface/v5">
<Section Name="Input">
<Member Name="On" Datatype="Bool" />
</Section>
<Section Name="Output" />
<Section Name="InOut">
<Member Name="Struct" Datatype="&quot;sCptHoraire&quot;" />
</Section>
<Section Name="Temp">
<Member Name="An" Datatype="Int">
<Comment>
<MultiLanguageText Lang="fr-FR">Nombre d'années</MultiLanguageText>
</Comment>
</Member>
<Member Name="Jrs" Datatype="Int">
<Comment>
<MultiLanguageText Lang="fr-FR">Nombre de jours</MultiLanguageText>
</Comment>
</Member>
<Member Name="Hrs" Datatype="Int">
<Comment>
<MultiLanguageText Lang="fr-FR">Nombre d'heures</MultiLanguageText>
</Comment>
</Member>
<Member Name="Min" Datatype="Int">
<Comment>
<MultiLanguageText Lang="fr-FR">Nombre de minutes</MultiLanguageText>
</Comment>
</Member>
<Member Name="Sec" Datatype="Int">
<Comment>
<MultiLanguageText Lang="fr-FR">Nombre de secondes</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Constant" />
<Section Name="Return">
<Member Name="Ret_Val" Datatype="Void" />
</Section>
</Sections></Interface>
<MemoryLayout>Optimized</MemoryLayout>
<Name>fCptHoraire</Name>
<Namespace />
<Number>10</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>Ce bloc doit être executé par une tache cyclique 1sec</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"> Recopie de l'entrée physique en mémoire du bloc</Text>
</LineComment>
<NewLine UId="23" />
<Access Scope="LocalVariable" UId="24">
<Symbol UId="25">
<Component Name="Struct" UId="26" />
<Token Text="." UId="27" />
<Component Name="On" UId="28" />
</Symbol>
</Access>
<Blank UId="29" />
<Token Text=":=" UId="30" />
<Blank UId="31" />
<Access Scope="LocalVariable" UId="32">
<Symbol UId="33">
<Component Name="On" UId="34" />
</Symbol>
</Access>
<Token Text=";" UId="35" />
<NewLine UId="36" />
<LineComment Inserted="true" UId="37">
<Text UId="38"> Remise à zéro sur front montant</Text>
</LineComment>
<NewLine UId="39" />
<Token Text="IF" UId="40" />
<Blank UId="41" />
<Access Scope="LocalVariable" UId="42">
<Symbol UId="43">
<Component Name="Struct" UId="44" />
<Token Text="." UId="45" />
<Component Name="Raz" UId="46">
<BooleanAttribute Name="HasHash" UId="47">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="48" />
<Token Text="THEN" UId="49" />
<NewLine UId="50" />
<Blank Num="4" UId="51" />
<Access Scope="LocalVariable" UId="52">
<Symbol UId="53">
<Component Name="Struct" UId="54" />
<Token Text="." UId="55" />
<Component Name="ValSec" UId="56">
<BooleanAttribute Name="HasHash" UId="57">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="58" />
<Token Text=":=" UId="59" />
<Blank UId="60" />
<Access Scope="LiteralConstant" UId="61">
<Constant UId="62">
<ConstantValue UId="64">0</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="65" />
<NewLine UId="66" />
<Blank Num="4" UId="67" />
<Access Scope="LocalVariable" UId="68">
<Symbol UId="69">
<Component Name="Struct" UId="70" />
<Token Text="." UId="71" />
<Component Name="Raz" UId="72" />
</Symbol>
</Access>
<Blank UId="73" />
<Token Text=":=" UId="74" />
<Blank UId="75" />
<Access Scope="LiteralConstant" UId="76">
<Constant UId="77">
<ConstantValue UId="79">FALSE</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="80" />
<NewLine UId="81" />
<Token Text="END_IF" UId="82" />
<Token Text=";" UId="83" />
<NewLine Num="2" UId="84" />
<LineComment Inserted="true" UId="85">
<Text UId="86"> Increment comptage </Text>
</LineComment>
<NewLine UId="87" />
<Token Text="IF" UId="88" />
<Blank UId="89" />
<Access Scope="LocalVariable" UId="90">
<Symbol UId="91">
<Component Name="Struct" UId="92" />
<Token Text="." UId="93" />
<Component Name="On" UId="94">
<BooleanAttribute Name="HasHash" UId="95">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="96" />
<Token Text="THEN" UId="97" />
<NewLine UId="98" />
<Blank Num="4" UId="99" />
<Access Scope="LocalVariable" UId="100">
<Symbol UId="101">
<Component Name="Struct" UId="102" />
<Token Text="." UId="103" />
<Component Name="ValSec" UId="104">
<BooleanAttribute Name="HasHash" UId="105">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="106" />
<Token Text=":=" UId="107" />
<Blank UId="108" />
<Access Scope="LocalVariable" UId="109">
<Symbol UId="110">
<Component Name="Struct" UId="111" />
<Token Text="." UId="112" />
<Component Name="ValSec" UId="113">
<BooleanAttribute Name="HasHash" UId="114">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="115" />
<Token Text="+" UId="116" />
<Blank UId="117" />
<Access Scope="LiteralConstant" UId="118">
<Constant UId="119">
<ConstantValue UId="121">1</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="122" />
<NewLine UId="123" />
<Token Text="END_IF" UId="124" />
<Token Text=";" UId="125" />
<NewLine Num="2" UId="126" />
<Access Scope="LocalVariable" UId="127">
<Symbol UId="128">
<Component Name="An" UId="129" />
</Symbol>
</Access>
<Blank UId="130" />
<Token Text=":=" UId="131" />
<Blank UId="132" />
<Access Scope="Call" UId="133">
<Instruction Name="UDINT_TO_INT" UId="134">
<Token Text="(" UId="135" />
<NamelessParameter UId="136">
<Access Scope="LocalVariable" UId="137">
<Symbol UId="138">
<Component Name="Struct" UId="139" />
<Token Text="." UId="140" />
<Component Name="ValSec" UId="141">
<BooleanAttribute Name="HasHash" UId="142">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="143" />
<Token Text="/" UId="144" />
<Blank UId="145" />
<Access Scope="LiteralConstant" UId="146">
<Constant UId="147">
<ConstantValue UId="149">31536000</ConstantValue>
</Constant>
</Access>
</NamelessParameter>
<Token Text=")" UId="151" />
</Instruction>
</Access>
<Token Text=";" UId="152" />
<Blank UId="153" />
<LineComment Inserted="true" UId="154">
<Text UId="155"> 3600*24*365 Secondes divisées par ( heures * jours * années ) </Text>
</LineComment>
<NewLine UId="156" />
<Access Scope="LocalVariable" UId="157">
<Symbol UId="158">
<Component Name="Jrs" UId="159" />
</Symbol>
</Access>
<Blank UId="160" />
<Token Text=":=" UId="161" />
<Blank UId="162" />
<Access Scope="Call" UId="163">
<Instruction Name="UDINT_TO_INT" UId="164">
<Token Text="(" UId="165" />
<NamelessParameter UId="166">
<Access Scope="LocalVariable" UId="167">
<Symbol UId="168">
<Component Name="Struct" UId="169" />
<Token Text="." UId="170" />
<Component Name="ValSec" UId="171">
<BooleanAttribute Name="HasHash" UId="172">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="173" />
<Token Text="/" UId="174" />
<Blank UId="175" />
<Access Scope="LiteralConstant" UId="176">
<Constant UId="177">
<ConstantValue UId="179">86400</ConstantValue>
</Constant>
</Access>
<Blank UId="180" />
<Token Text="MOD" UId="181" />
<Blank UId="182" />
<Access Scope="LiteralConstant" UId="183">
<Constant UId="184">
<ConstantValue UId="186">365</ConstantValue>
</Constant>
</Access>
</NamelessParameter>
<Token Text=")" UId="188" />
</Instruction>
</Access>
<Token Text=";" UId="189" />
<Blank UId="190" />
<LineComment Inserted="true" UId="191">
<Text UId="192"> 3600*24 Reste de la division des secondes divisées par ( heures * jours </Text>
</LineComment>
<NewLine UId="193" />
<Access Scope="LocalVariable" UId="194">
<Symbol UId="195">
<Component Name="Hrs" UId="196" />
</Symbol>
</Access>
<Blank UId="197" />
<Token Text=":=" UId="198" />
<Blank UId="199" />
<Access Scope="Call" UId="200">
<Instruction Name="UDINT_TO_INT" UId="201">
<Token Text="(" UId="202" />
<NamelessParameter UId="203">
<Access Scope="LocalVariable" UId="204">
<Symbol UId="205">
<Component Name="Struct" UId="206" />
<Token Text="." UId="207" />
<Component Name="ValSec" UId="208">
<BooleanAttribute Name="HasHash" UId="209">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="210" />
<Token Text="/" UId="211" />
<Blank UId="212" />
<Access Scope="LiteralConstant" UId="213">
<Constant UId="214">
<ConstantValue UId="216">3600</ConstantValue>
</Constant>
</Access>
<Blank UId="217" />
<Token Text="MOD" UId="218" />
<Blank UId="219" />
<Access Scope="LiteralConstant" UId="220">
<Constant UId="221">
<ConstantValue UId="223">24</ConstantValue>
</Constant>
</Access>
</NamelessParameter>
<Token Text=")" UId="225" />
</Instruction>
</Access>
<Token Text=";" UId="226" />
<Blank UId="227" />
<LineComment Inserted="true" UId="228">
<Text UId="229"> Reste de la division des secondes divisées par les heures </Text>
</LineComment>
<NewLine UId="230" />
<Access Scope="LocalVariable" UId="231">
<Symbol UId="232">
<Component Name="Min" UId="233" />
</Symbol>
</Access>
<Blank UId="234" />
<Token Text=":=" UId="235" />
<Blank UId="236" />
<Access Scope="Call" UId="237">
<Instruction Name="UDINT_TO_INT" UId="238">
<Token Text="(" UId="239" />
<NamelessParameter UId="240">
<Access Scope="LocalVariable" UId="241">
<Symbol UId="242">
<Component Name="Struct" UId="243" />
<Token Text="." UId="244" />
<Component Name="ValSec" UId="245">
<BooleanAttribute Name="HasHash" UId="246">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="247" />
<Token Text="/" UId="248" />
<Blank UId="249" />
<Access Scope="LiteralConstant" UId="250">
<Constant UId="251">
<ConstantValue UId="253">60</ConstantValue>
</Constant>
</Access>
<Blank UId="254" />
<Token Text="MOD" UId="255" />
<Blank UId="256" />
<Access Scope="LiteralConstant" UId="257">
<Constant UId="258">
<ConstantValue UId="260">60</ConstantValue>
</Constant>
</Access>
</NamelessParameter>
<Token Text=")" UId="262" />
</Instruction>
</Access>
<Token Text=";" UId="263" />
<Blank UId="264" />
<LineComment Inserted="true" UId="265">
<Text UId="266"> Reste de la division des secondes divisées par les minutes </Text>
</LineComment>
<NewLine UId="267" />
<Access Scope="LocalVariable" UId="268">
<Symbol UId="269">
<Component Name="Sec" UId="270" />
</Symbol>
</Access>
<Blank UId="271" />
<Token Text=":=" UId="272" />
<Blank UId="273" />
<Access Scope="Call" UId="274">
<Instruction Name="UDINT_TO_INT" UId="275">
<Token Text="(" UId="276" />
<NamelessParameter UId="277">
<Access Scope="LocalVariable" UId="278">
<Symbol UId="279">
<Component Name="Struct" UId="280" />
<Token Text="." UId="281" />
<Component Name="ValSec" UId="282">
<BooleanAttribute Name="HasHash" UId="283">true</BooleanAttribute>
</Component>
</Symbol>
</Access>
<Blank UId="284" />
<Token Text="MOD" UId="285" />
<Blank UId="286" />
<Access Scope="LiteralConstant" UId="287">
<Constant UId="288">
<ConstantValue UId="290">60</ConstantValue>
</Constant>
</Access>
</NamelessParameter>
<Token Text=")" UId="292" />
</Instruction>
</Access>
<Token Text=";" UId="293" />
<Blank UId="294" />
<LineComment Inserted="true" UId="295">
<Text UId="296"> reste en secondes </Text>
</LineComment>
<NewLine UId="297" />
<Access Scope="LocalVariable" UId="298">
<Symbol UId="299">
<Component Name="Struct" UId="300" />
<Token Text="." UId="301" />
<Component Name="ValH" UId="302" />
</Symbol>
</Access>
<Blank UId="303" />
<Token Text=":=" UId="304" />
<Blank UId="305" />
<Access Scope="LocalVariable" UId="306">
<Symbol UId="307">
<Component Name="Struct" UId="308" />
<Token Text="." UId="309" />
<Component Name="ValSec" UId="310" />
</Symbol>
</Access>
<Blank UId="311" />
<Token Text="/" UId="312" />
<Blank UId="313" />
<Access Scope="LiteralConstant" UId="314">
<Constant UId="315">
<ConstantValue UId="317">3600</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="318" />
</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>Compteur horaire</Text>
</AttributeList>
</MultilingualTextItem>
</ObjectList>
</MultilingualText>
</ObjectList>
</SW.Blocks.FC>
</Document>

296
Divers/Balise3Coul.xml Normal file
View File

@@ -0,0 +1,296 @@
<?xml version="1.0" encoding="utf-8"?>
<Document>
<Engineering version="V19" />
<SW.Blocks.FC ID="0">
<AttributeList>
<Interface><Sections xmlns="http://www.siemens.com/automation/Openness/SW/Interface/v5">
<Section Name="Input">
<Member Name="InVert" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Déclencheur voyant vert</MultiLanguageText>
</Comment>
</Member>
<Member Name="InJaune" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Déclencheur voyant jaune</MultiLanguageText>
</Comment>
</Member>
<Member Name="InRouge" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Déclencheur voyant rouge</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Output">
<Member Name="OutVert" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Sortie verte balise</MultiLanguageText>
</Comment>
</Member>
<Member Name="OutJaune" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Sortie jaune balise</MultiLanguageText>
</Comment>
</Member>
<Member Name="OutRouge" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Sortie rouge balise</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="InOut" />
<Section Name="Temp">
<Member Name="Etat" Datatype="SInt" />
</Section>
<Section Name="Constant">
<Member Name="ETEINT" Datatype="SInt">
<StartValue>0</StartValue>
</Member>
<Member Name="ROUGE" Datatype="SInt">
<StartValue>1</StartValue>
</Member>
<Member Name="JAUNE" Datatype="SInt">
<StartValue>3</StartValue>
</Member>
<Member Name="VERT" Datatype="SInt">
<StartValue>4</StartValue>
</Member>
</Section>
<Section Name="Return">
<Member Name="Ret_Val" Datatype="Void" />
</Section>
</Sections></Interface>
<MemoryLayout>Optimized</MemoryLayout>
<Name>Balise3Coul</Name>
<Namespace />
<Number>2</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 Inserted="true" UId="21">
<Text UId="22"> Allumage voyants balise de manière distincte et par ordre de priorité </Text>
</LineComment>
<NewLine UId="23" />
<Token Text="IF" UId="24" />
<Blank UId="25" />
<Access Scope="LocalVariable" UId="26">
<Symbol UId="27">
<Component Name="InRouge" UId="28" />
</Symbol>
</Access>
<Blank UId="29" />
<Token Text="THEN" UId="30" />
<NewLine UId="31" />
<Blank Num="2" UId="32" />
<Access Scope="LocalVariable" UId="33">
<Symbol UId="34">
<Component Name="Etat" UId="35" />
</Symbol>
</Access>
<Blank UId="36" />
<Token Text=":=" UId="37" />
<Blank UId="38" />
<Access Scope="LocalConstant" UId="39">
<Constant Name="ROUGE" UId="40" />
</Access>
<Token Text=";" UId="43" />
<NewLine UId="44" />
<Token Text="ELSE" UId="45" />
<NewLine UId="46" />
<Blank Num="2" UId="47" />
<Token Text="IF" UId="48" />
<Blank UId="49" />
<Access Scope="LocalVariable" UId="50">
<Symbol UId="51">
<Component Name="InJaune" UId="52" />
</Symbol>
</Access>
<Blank UId="53" />
<Token Text="THEN" UId="54" />
<NewLine UId="55" />
<Blank Num="4" UId="56" />
<Access Scope="LocalVariable" UId="57">
<Symbol UId="58">
<Component Name="Etat" UId="59" />
</Symbol>
</Access>
<Blank UId="60" />
<Token Text=":=" UId="61" />
<Blank UId="62" />
<Access Scope="LocalConstant" UId="63">
<Constant Name="JAUNE" UId="64" />
</Access>
<Token Text=";" UId="67" />
<NewLine UId="68" />
<Blank Num="2" UId="69" />
<Token Text="ELSE" UId="70" />
<NewLine UId="71" />
<Blank Num="4" UId="72" />
<Token Text="IF" UId="73" />
<Blank UId="74" />
<Access Scope="LocalVariable" UId="75">
<Symbol UId="76">
<Component Name="InVert" UId="77" />
</Symbol>
</Access>
<Blank UId="78" />
<Token Text="THEN" UId="79" />
<NewLine UId="80" />
<Blank Num="6" UId="81" />
<Access Scope="LocalVariable" UId="82">
<Symbol UId="83">
<Component Name="Etat" UId="84" />
</Symbol>
</Access>
<Blank UId="85" />
<Token Text=":=" UId="86" />
<Blank UId="87" />
<Access Scope="LocalConstant" UId="88">
<Constant Name="VERT" UId="89" />
</Access>
<Token Text=";" UId="92" />
<NewLine UId="93" />
<Blank Num="4" UId="94" />
<Token Text="ELSE" UId="95" />
<NewLine UId="96" />
<Blank Num="6" UId="97" />
<Access Scope="LocalVariable" UId="98">
<Symbol UId="99">
<Component Name="Etat" UId="100" />
</Symbol>
</Access>
<Blank UId="101" />
<Token Text=":=" UId="102" />
<Blank UId="103" />
<Access Scope="LocalConstant" UId="104">
<Constant Name="ETEINT" UId="105" />
</Access>
<Token Text=";" UId="108" />
<NewLine UId="109" />
<Blank Num="4" UId="110" />
<Token Text="END_IF" UId="111" />
<Token Text=";" UId="112" />
<NewLine UId="113" />
<Blank Num="2" UId="114" />
<Token Text="END_IF" UId="115" />
<Token Text=";" UId="116" />
<NewLine UId="117" />
<Token Text="END_IF" UId="118" />
<Token Text=";" UId="119" />
<NewLine Num="2" UId="120" />
<Access Scope="LocalVariable" UId="121">
<Symbol UId="122">
<Component Name="OutVert" UId="123" />
</Symbol>
</Access>
<Blank UId="124" />
<Token Text=":=" UId="125" />
<Blank UId="126" />
<Access Scope="LocalVariable" UId="127">
<Symbol UId="128">
<Component Name="Etat" UId="129" />
</Symbol>
</Access>
<Blank UId="130" />
<Token Text="=" UId="131" />
<Blank UId="132" />
<Access Scope="LocalConstant" UId="133">
<Constant Name="VERT" UId="134" />
</Access>
<Token Text=";" UId="137" />
<NewLine UId="138" />
<Access Scope="LocalVariable" UId="139">
<Symbol UId="140">
<Component Name="OutJaune" UId="141" />
</Symbol>
</Access>
<Blank UId="142" />
<Token Text=":=" UId="143" />
<Blank UId="144" />
<Access Scope="LocalVariable" UId="145">
<Symbol UId="146">
<Component Name="Etat" UId="147" />
</Symbol>
</Access>
<Blank UId="148" />
<Token Text="=" UId="149" />
<Blank UId="150" />
<Access Scope="LocalConstant" UId="151">
<Constant Name="JAUNE" UId="152" />
</Access>
<Token Text=";" UId="155" />
<NewLine UId="156" />
<Access Scope="LocalVariable" UId="157">
<Symbol UId="158">
<Component Name="OutRouge" UId="159" />
</Symbol>
</Access>
<Blank UId="160" />
<Token Text=":=" UId="161" />
<Blank UId="162" />
<Access Scope="LocalVariable" UId="163">
<Symbol UId="164">
<Component Name="Etat" UId="165" />
</Symbol>
</Access>
<Blank UId="166" />
<Token Text="=" UId="167" />
<Blank UId="168" />
<Access Scope="LocalConstant" UId="169">
<Constant Name="ROUGE" UId="170" />
</Access>
<Token Text=";" UId="173" />
<NewLine UId="174" />
</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.FC>
</Document>

197
Divers/fAOM.xml Normal file
View File

@@ -0,0 +1,197 @@
<?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="iAM" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Sélecteur Auto ou Manu</MultiLanguageText>
</Comment>
</Member>
<Member Name="iAuto" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Ordre en automatique</MultiLanguageText>
</Comment>
</Member>
<Member Name="iForc" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Forçage Manu à 1</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="Output">
<Member Name="oOrdre" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Pilotage actionneur</MultiLanguageText>
</Comment>
</Member>
<Member Name="oManu" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">Forcé à 1</MultiLanguageText>
</Comment>
</Member>
<Member Name="oNotAuto" Datatype="Bool">
<Comment>
<MultiLanguageText Lang="fr-FR">En cours de forçage</MultiLanguageText>
</Comment>
</Member>
</Section>
<Section Name="InOut" />
<Section Name="Static" />
<Section Name="Temp" />
<Section Name="Constant" />
</Sections></Interface>
<MemoryLayout>Optimized</MemoryLayout>
<MemoryReserve>100</MemoryReserve>
<Name>fAOM</Name>
<Namespace />
<Number>44</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">
<Access Scope="LocalVariable" UId="21">
<Symbol UId="22">
<Component Name="oOrdre" UId="23" />
</Symbol>
</Access>
<Blank UId="24" />
<Token Text=":=" UId="25" />
<Blank UId="26" />
<Token Text="(" UId="27" />
<Token Text="NOT" UId="28" />
<Blank UId="29" />
<Access Scope="LocalVariable" UId="30">
<Symbol UId="31">
<Component Name="iAM" UId="32" />
</Symbol>
</Access>
<Blank UId="33" />
<Token Text="AND" UId="34" />
<Blank UId="35" />
<Access Scope="LocalVariable" UId="36">
<Symbol UId="37">
<Component Name="iAuto" UId="38" />
</Symbol>
</Access>
<Token Text=")" UId="39" />
<Blank UId="40" />
<Token Text="OR" UId="41" />
<Blank UId="42" />
<Token Text="(" UId="43" />
<Access Scope="LocalVariable" UId="44">
<Symbol UId="45">
<Component Name="iAM" UId="46" />
</Symbol>
</Access>
<Blank UId="47" />
<Token Text="AND" UId="48" />
<Blank UId="49" />
<Access Scope="LocalVariable" UId="50">
<Symbol UId="51">
<Component Name="iForc" UId="52" />
</Symbol>
</Access>
<Token Text=")" UId="53" />
<Token Text=";" UId="54" />
<NewLine UId="55" />
<Access Scope="LocalVariable" UId="56">
<Symbol UId="57">
<Component Name="oManu" UId="58" />
</Symbol>
</Access>
<Blank UId="59" />
<Token Text=":=" UId="60" />
<Blank UId="61" />
<Access Scope="LocalVariable" UId="62">
<Symbol UId="63">
<Component Name="iAM" UId="64" />
</Symbol>
</Access>
<Blank UId="65" />
<Token Text="AND" UId="66" />
<Blank UId="67" />
<Access Scope="LocalVariable" UId="68">
<Symbol UId="69">
<Component Name="iForc" UId="70" />
</Symbol>
</Access>
<Token Text=";" UId="71" />
<Blank UId="72" />
<LineComment UId="73">
<Text UId="74"> Forcé à 1</Text>
</LineComment>
<NewLine UId="75" />
<Access Scope="LocalVariable" UId="76">
<Symbol UId="77">
<Component Name="oNotAuto" UId="78" />
</Symbol>
</Access>
<Blank UId="79" />
<Token Text=":=" UId="80" />
<Blank UId="81" />
<Access Scope="LocalVariable" UId="82">
<Symbol UId="83">
<Component Name="iAM" UId="84" />
</Symbol>
</Access>
<Token Text=";" UId="85" />
<Blank UId="86" />
<LineComment UId="87">
<Text UId="88"> Pas en mode auto (signalisation au moins un forçage)</Text>
</LineComment>
<NewLine UId="89" />
</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>

366
Divers/fBlinkG7.xml Normal file
View 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>

107
Divers/fSetBit.xml Normal file
View File

@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Document>
<Engineering version="V19" />
<SW.Blocks.FC ID="0">
<AttributeList>
<Interface><Sections xmlns="http://www.siemens.com/automation/Openness/SW/Interface/v5">
<Section Name="Input">
<Member Name="In" Datatype="Bool" />
</Section>
<Section Name="Output" />
<Section Name="InOut">
<Member Name="Out" Datatype="Bool" />
</Section>
<Section Name="Temp" />
<Section Name="Constant" />
<Section Name="Return">
<Member Name="Ret_Val" Datatype="Void" />
</Section>
</Sections></Interface>
<MemoryLayout>Optimized</MemoryLayout>
<Name>fSetBit</Name>
<Namespace />
<Number>21</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">
<Token Text="IF" UId="21" />
<Blank UId="22" />
<Access Scope="LocalVariable" UId="23">
<Symbol UId="24">
<Component Name="In" UId="25" />
</Symbol>
</Access>
<Blank UId="26" />
<Token Text="THEN" UId="27" />
<NewLine UId="28" />
<Blank Num="4" UId="29" />
<Access Scope="LocalVariable" UId="30">
<Symbol UId="31">
<Component Name="Out" UId="32" />
</Symbol>
</Access>
<Blank UId="33" />
<Token Text=":=" UId="34" />
<Blank UId="35" />
<Access Scope="LiteralConstant" UId="36">
<Constant UId="37">
<ConstantValue UId="39">TRUE</ConstantValue>
</Constant>
</Access>
<Token Text=";" UId="40" />
<NewLine UId="41" />
<Token Text="END_IF" UId="42" />
<Token Text=";" UId="43" />
</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.FC>
</Document>