Ajout des fonctions standard

This commit is contained in:
smaugain
2026-01-06 17:44:49 +01:00
parent 88bb0bbf6a
commit 0823984900
7 changed files with 3220 additions and 0 deletions

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>