Ajout des fonctions standard
This commit is contained in:
296
Divers/Balise3Coul.xml
Normal file
296
Divers/Balise3Coul.xml
Normal 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
197
Divers/fAOM.xml
Normal 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
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>
|
||||
107
Divers/fSetBit.xml
Normal file
107
Divers/fSetBit.xml
Normal 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>
|
||||
Reference in New Issue
Block a user