This commit is contained in:
wikano
2025-12-04 23:08:12 +01:00
parent 869f498daf
commit 1532753042
3 changed files with 191 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ns1="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2025-11-14T09:46:22"/>
<contentHeader name="Unnamed" modificationDateTime="2025-12-04T22:50:02">
<contentHeader name="Unnamed" modificationDateTime="2025-12-04T23:07:16">
<coordinateInfo>
<fbd>
<scaling x="10" y="10"/>
@@ -678,7 +678,7 @@
<derived name="TON"/>
</type>
</variable>
<variable name="secours_c_ok">
<variable name="req_secours_ok">
<type>
<BOOL/>
</type>
@@ -708,6 +708,16 @@
<BOOL/>
</type>
</variable>
<variable name="WAIT15">
<type>
<TIME/>
</type>
</variable>
<variable name="TON3">
<type>
<derived name="TON"/>
</type>
</variable>
</localVars>
</interface>
<body>
@@ -837,25 +847,25 @@
<variable>Pump_def</variable>
</coil>
<leftPowerRail localId="13" width="10" height="40">
<position x="60" y="210"/>
<position x="70" y="240"/>
<connectionPointOut formalParameter="">
<relPosition x="10" y="20"/>
</connectionPointOut>
</leftPowerRail>
<inVariable localId="14" width="50" height="30" negated="false">
<position x="70" y="270"/>
<position x="80" y="300"/>
<connectionPointOut>
<relPosition x="50" y="10"/>
</connectionPointOut>
<expression>WAIT7</expression>
</inVariable>
<coil localId="8" negated="false" width="21" height="20" executionOrderId="0">
<position x="150" y="220"/>
<position x="160" y="250"/>
<connectionPointIn>
<relPosition x="0" y="10"/>
<connection refLocalId="13">
<position x="150" y="230"/>
<position x="70" y="230"/>
<position x="160" y="260"/>
<position x="80" y="260"/>
</connection>
</connectionPointIn>
<connectionPointOut>
@@ -864,14 +874,14 @@
<variable>Pump_def</variable>
</coil>
<block localId="15" typeName="TON" instanceName="TON0" width="50" height="60">
<position x="240" y="200"/>
<position x="250" y="230"/>
<inputVariables>
<variable formalParameter="IN">
<connectionPointIn>
<relPosition x="0" y="30"/>
<connection refLocalId="8">
<position x="240" y="230"/>
<position x="171" y="230"/>
<position x="250" y="260"/>
<position x="181" y="260"/>
</connection>
</connectionPointIn>
</variable>
@@ -879,10 +889,10 @@
<connectionPointIn>
<relPosition x="0" y="50"/>
<connection refLocalId="14">
<position x="240" y="250"/>
<position x="180" y="250"/>
<position x="180" y="280"/>
<position x="120" y="280"/>
<position x="250" y="280"/>
<position x="190" y="280"/>
<position x="190" y="310"/>
<position x="130" y="310"/>
</connection>
</connectionPointIn>
</variable>
@@ -902,12 +912,12 @@
</outputVariables>
</block>
<coil localId="16" negated="false" width="21" height="20">
<position x="340" y="220"/>
<position x="350" y="250"/>
<connectionPointIn>
<relPosition x="0" y="10"/>
<connection refLocalId="15" formalParameter="Q">
<position x="340" y="230"/>
<position x="290" y="230"/>
<position x="350" y="260"/>
<position x="300" y="260"/>
</connection>
</connectionPointIn>
<connectionPointOut>
@@ -1395,7 +1405,7 @@
<connectionPointOut>
<relPosition x="21" y="10"/>
</connectionPointOut>
<variable>secours_c_ok</variable>
<variable>req_secours_ok</variable>
</coil>
<coil localId="12" negated="false" width="21" height="20" executionOrderId="0">
<position x="570" y="240"/>
@@ -1744,6 +1754,109 @@
</connectionPointOut>
<variable>req_enc_ok</variable>
</coil>
<leftPowerRail localId="56" width="10" height="40" executionOrderId="0">
<position x="60" y="450"/>
<connectionPointOut formalParameter="">
<relPosition x="10" y="20"/>
</connectionPointOut>
</leftPowerRail>
<inVariable localId="58" width="60" height="30" negated="false" executionOrderId="0">
<position x="70" y="510"/>
<connectionPointOut>
<relPosition x="60" y="20"/>
</connectionPointOut>
<expression>WAIT15</expression>
</inVariable>
<coil localId="59" negated="false" width="21" height="20" executionOrderId="0">
<position x="150" y="460"/>
<connectionPointIn>
<relPosition x="0" y="10"/>
<connection refLocalId="56">
<position x="150" y="470"/>
<position x="70" y="470"/>
</connection>
</connectionPointIn>
<connectionPointOut>
<relPosition x="21" y="10"/>
</connectionPointOut>
<variable>only_one_run</variable>
</coil>
<block localId="60" typeName="TON" instanceName="TON3" width="50" height="60" executionOrderId="0">
<position x="240" y="440"/>
<inputVariables>
<variable formalParameter="IN">
<connectionPointIn>
<relPosition x="0" y="30"/>
<connection refLocalId="59">
<position x="240" y="470"/>
<position x="171" y="470"/>
</connection>
</connectionPointIn>
</variable>
<variable formalParameter="PT">
<connectionPointIn>
<relPosition x="0" y="50"/>
<connection refLocalId="58">
<position x="240" y="490"/>
<position x="230" y="490"/>
<position x="230" y="530"/>
<position x="130" y="530"/>
</connection>
</connectionPointIn>
</variable>
</inputVariables>
<inOutVariables/>
<outputVariables>
<variable formalParameter="Q">
<connectionPointOut>
<relPosition x="50" y="30"/>
</connectionPointOut>
</variable>
<variable formalParameter="ET">
<connectionPointOut>
<relPosition x="50" y="50"/>
</connectionPointOut>
</variable>
</outputVariables>
</block>
<coil localId="62" negated="true" width="21" height="20">
<position x="350" y="460"/>
<connectionPointIn>
<relPosition x="0" y="10"/>
<connection refLocalId="60" formalParameter="Q">
<position x="350" y="470"/>
<position x="290" y="470"/>
</connection>
</connectionPointIn>
<connectionPointOut>
<relPosition x="21" y="10"/>
</connectionPointOut>
<variable>only_one_run</variable>
</coil>
<comment localId="63" height="40" width="120">
<position x="210" y="540"/>
<content>
<xhtml:p><![CDATA[req_failure]]></xhtml:p>
</content>
</comment>
<comment localId="61" height="40" width="140">
<position x="210" y="320"/>
<content>
<xhtml:p><![CDATA[req_delai_grace]]></xhtml:p>
</content>
</comment>
<comment localId="64" height="40" width="110">
<position x="290" y="150"/>
<content>
<xhtml:p><![CDATA[set_pump_def]]></xhtml:p>
</content>
</comment>
<comment localId="65" height="40" width="140">
<position x="860" y="160"/>
<content>
<xhtml:p><![CDATA[set_only_one_run]]></xhtml:p>
</content>
</comment>
</LD>
</body>
</pou>