tests/svghmi_widgets/plc.xml
author Edouard Tisserant
Thu, 25 Mar 2021 10:48:24 +0100
branchsvghmi
changeset 3200 75cb73b4a606
parent 3122 229795c03e11
permissions -rw-r--r--
SVGHMI: stop serving HMI open wide on all interfaces. That was a security hole. It is user/developer responsibity to forward connection with for exemple stunnel and make it securely accessible from LAN.
<?xml version='1.0' encoding='utf-8'?>
<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
  <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2019-08-06T14:23:42"/>
  <contentHeader name="Unnamed" modificationDateTime="2020-12-01T09:52:25">
    <coordinateInfo>
      <fbd>
        <scaling x="5" y="5"/>
      </fbd>
      <ld>
        <scaling x="0" y="0"/>
      </ld>
      <sfc>
        <scaling x="0" y="0"/>
      </sfc>
    </coordinateInfo>
  </contentHeader>
  <types>
    <dataTypes/>
    <pous>
      <pou name="MainStuff" pouType="program">
        <interface>
          <localVars>
            <variable name="TargetPressure">
              <type>
                <derived name="HMI_INT"/>
              </type>
            </variable>
            <variable name="selection">
              <type>
                <derived name="HMI_INT"/>
              </type>
            </variable>
            <variable name="Pump0">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump1">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump2">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump3">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump4">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump5">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump6">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
            <variable name="Pump7">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <FBD>
            <block localId="4" typeName="PumpControl" instanceName="Pump0" executionOrderId="0" height="40" width="127">
              <position x="595" y="50"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <inVariable localId="5" executionOrderId="0" height="30" width="125" negated="false">
              <position x="445" y="65"/>
              <connectionPointOut>
                <relPosition x="125" y="15"/>
              </connectionPointOut>
              <expression>TargetPressure</expression>
            </inVariable>
            <block localId="1" typeName="PumpControl" instanceName="Pump1" executionOrderId="0" height="40" width="127">
              <position x="595" y="180"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="210"/>
                      <position x="582" y="210"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <block localId="2" typeName="PumpControl" instanceName="Pump2" executionOrderId="0" height="40" width="127">
              <position x="595" y="110"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="140"/>
                      <position x="582" y="140"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <block localId="3" typeName="PumpControl" instanceName="Pump3" executionOrderId="0" height="40" width="127">
              <position x="595" y="245"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="275"/>
                      <position x="582" y="275"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <block localId="6" typeName="PumpControl" instanceName="Pump4" executionOrderId="0" height="40" width="127">
              <position x="595" y="315"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="345"/>
                      <position x="582" y="345"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <block localId="7" typeName="PumpControl" instanceName="Pump5" executionOrderId="0" height="40" width="127">
              <position x="595" y="395"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="425"/>
                      <position x="582" y="425"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <block localId="8" typeName="PumpControl" instanceName="Pump6" executionOrderId="0" height="40" width="127">
              <position x="595" y="475"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="505"/>
                      <position x="582" y="505"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
            <block localId="9" typeName="PumpControl" instanceName="Pump7" executionOrderId="0" height="40" width="127">
              <position x="595" y="545"/>
              <inputVariables>
                <variable formalParameter="TargetPressure">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="595" y="575"/>
                      <position x="582" y="575"/>
                      <position x="582" y="80"/>
                      <position x="570" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables/>
            </block>
          </FBD>
        </body>
      </pou>
      <pou name="PumpControl" pouType="functionBlock">
        <interface>
          <localVars>
            <variable name="Pump">
              <type>
                <derived name="HMI_NODE"/>
              </type>
            </variable>
            <variable name="Pressure">
              <type>
                <derived name="HMI_INT"/>
              </type>
            </variable>
          </localVars>
          <inputVars>
            <variable name="TargetPressure">
              <type>
                <INT/>
              </type>
            </variable>
          </inputVars>
          <localVars>
            <variable name="Sloth">
              <type>
                <derived name="HMI_INT"/>
              </type>
            </variable>
            <variable name="boolout">
              <type>
                <derived name="HMI_BOOL"/>
              </type>
            </variable>
            <variable name="boolin">
              <type>
                <derived name="HMI_BOOL"/>
              </type>
              <initialValue>
                <simpleValue value="True"/>
              </initialValue>
            </variable>
            <variable name="strout">
              <type>
                <derived name="HMI_STRING"/>
              </type>
            </variable>
            <variable name="strin">
              <type>
                <derived name="HMI_STRING"/>
              </type>
              <initialValue>
                <simpleValue value="blup"/>
              </initialValue>
            </variable>
            <variable name="floating">
              <type>
                <derived name="HMI_REAL"/>
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <FBD>
            <inVariable localId="5" executionOrderId="0" height="30" width="125" negated="false">
              <position x="150" y="100"/>
              <connectionPointOut>
                <relPosition x="125" y="15"/>
              </connectionPointOut>
              <expression>TargetPressure</expression>
            </inVariable>
            <inOutVariable localId="4" executionOrderId="0" height="30" width="60" negatedOut="false" negatedIn="false">
              <position x="510" y="80"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="6" formalParameter="OUT">
                  <position x="510" y="95"/>
                  <position x="470" y="95"/>
                </connection>
              </connectionPointIn>
              <connectionPointOut>
                <relPosition x="60" y="15"/>
              </connectionPointOut>
              <expression>Sloth</expression>
            </inOutVariable>
            <block localId="6" typeName="ADD" executionOrderId="0" height="60" width="65">
              <position x="405" y="65"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="4">
                      <position x="405" y="95"/>
                      <position x="385" y="95"/>
                      <position x="385" y="50"/>
                      <position x="580" y="50"/>
                      <position x="580" y="95"/>
                      <position x="570" y="95"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="7" formalParameter="OUT">
                      <position x="405" y="115"/>
                      <position x="360" y="115"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="1" executionOrderId="0" height="30" width="75" negated="false">
              <position x="150" y="135"/>
              <connectionPointOut>
                <relPosition x="75" y="15"/>
              </connectionPointOut>
              <expression>Pressure</expression>
            </inVariable>
            <block localId="7" typeName="SUB" executionOrderId="0" height="60" width="65">
              <position x="295" y="85"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="5">
                      <position x="295" y="115"/>
                      <position x="275" y="115"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="1">
                      <position x="295" y="135"/>
                      <position x="285" y="135"/>
                      <position x="285" y="150"/>
                      <position x="225" y="150"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="2" executionOrderId="0" height="30" width="60" negated="false">
              <position x="240" y="190"/>
              <connectionPointOut>
                <relPosition x="60" y="15"/>
              </connectionPointOut>
              <expression>Sloth</expression>
            </inVariable>
            <outVariable localId="3" executionOrderId="0" height="30" width="75" negated="false">
              <position x="435" y="205"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="8" formalParameter="OUT">
                  <position x="435" y="220"/>
                  <position x="410" y="220"/>
                </connection>
              </connectionPointIn>
              <expression>Pressure</expression>
            </outVariable>
            <block localId="8" typeName="DIV" executionOrderId="0" height="60" width="65">
              <position x="345" y="190"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="2">
                      <position x="345" y="220"/>
                      <position x="335" y="220"/>
                      <position x="335" y="205"/>
                      <position x="300" y="205"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="9">
                      <position x="345" y="240"/>
                      <position x="300" y="240"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="9" executionOrderId="0" height="30" width="60" negated="false">
              <position x="240" y="225"/>
              <connectionPointOut>
                <relPosition x="60" y="15"/>
              </connectionPointOut>
              <expression>100</expression>
            </inVariable>
            <block localId="10" typeName="CONCAT" executionOrderId="0" height="60" width="65">
              <position x="360" y="345"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="13" formalParameter="OUT">
                      <position x="360" y="375"/>
                      <position x="330" y="375"/>
                      <position x="330" y="332"/>
                      <position x="440" y="332"/>
                      <position x="440" y="300"/>
                      <position x="430" y="300"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="14">
                      <position x="360" y="395"/>
                      <position x="322" y="395"/>
                      <position x="322" y="400"/>
                      <position x="285" y="400"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <outVariable localId="11" executionOrderId="0" height="30" width="58" negated="false">
              <position x="495" y="355"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="10" formalParameter="OUT">
                  <position x="495" y="370"/>
                  <position x="450" y="370"/>
                  <position x="450" y="375"/>
                  <position x="425" y="375"/>
                </connection>
              </connectionPointIn>
              <expression>strout</expression>
            </outVariable>
            <inVariable localId="12" executionOrderId="0" height="30" width="125" negated="false">
              <position x="145" y="285"/>
              <connectionPointOut>
                <relPosition x="125" y="15"/>
              </connectionPointOut>
              <expression>TargetPressure</expression>
            </inVariable>
            <block localId="13" typeName="INT_TO_STRING" executionOrderId="0" height="40" width="115">
              <position x="315" y="270"/>
              <inputVariables>
                <variable formalParameter="IN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="12">
                      <position x="315" y="300"/>
                      <position x="270" y="300"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="115" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="14" executionOrderId="0" height="30" width="50" negated="false">
              <position x="235" y="385"/>
              <connectionPointOut>
                <relPosition x="50" y="15"/>
              </connectionPointOut>
              <expression>strin</expression>
            </inVariable>
            <inVariable localId="15" executionOrderId="0" height="30" width="60" negated="false">
              <position x="690" y="210"/>
              <connectionPointOut>
                <relPosition x="60" y="15"/>
              </connectionPointOut>
              <expression>boolin</expression>
            </inVariable>
            <outVariable localId="16" executionOrderId="0" height="30" width="70" negated="false">
              <position x="915" y="240"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="17" formalParameter="OUT">
                  <position x="915" y="255"/>
                  <position x="880" y="255"/>
                </connection>
              </connectionPointIn>
              <expression>boolout</expression>
            </outVariable>
            <block localId="17" typeName="AND" executionOrderId="0" height="60" width="65">
              <position x="815" y="225"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="15">
                      <position x="815" y="255"/>
                      <position x="762" y="255"/>
                      <position x="762" y="225"/>
                      <position x="750" y="225"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="21" formalParameter="OUT">
                      <position x="815" y="275"/>
                      <position x="750" y="275"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="18" executionOrderId="0" height="30" width="75" negated="false">
              <position x="455" y="260"/>
              <connectionPointOut>
                <relPosition x="75" y="15"/>
              </connectionPointOut>
              <expression>Pressure</expression>
            </inVariable>
            <block localId="19" typeName="MOD" executionOrderId="0" height="60" width="65">
              <position x="585" y="245"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="18">
                      <position x="585" y="275"/>
                      <position x="530" y="275"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="20">
                      <position x="585" y="295"/>
                      <position x="555" y="295"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="20" executionOrderId="0" height="30" width="20" negated="false">
              <position x="535" y="280"/>
              <connectionPointOut>
                <relPosition x="20" y="15"/>
              </connectionPointOut>
              <expression>2</expression>
            </inVariable>
            <block localId="21" typeName="EQ" executionOrderId="0" height="60" width="65">
              <position x="685" y="245"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="19" formalParameter="OUT">
                      <position x="685" y="275"/>
                      <position x="650" y="275"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="22">
                      <position x="685" y="295"/>
                      <position x="670" y="295"/>
                      <position x="670" y="330"/>
                      <position x="650" y="330"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="22" executionOrderId="0" height="30" width="20" negated="false">
              <position x="630" y="315"/>
              <connectionPointOut>
                <relPosition x="20" y="15"/>
              </connectionPointOut>
              <expression>0</expression>
            </inVariable>
            <outVariable localId="23" executionOrderId="0" height="25" width="75" negated="false">
              <position x="935" y="120"/>
              <connectionPointIn>
                <relPosition x="0" y="10"/>
                <connection refLocalId="25" formalParameter="OUT">
                  <position x="935" y="130"/>
                  <position x="922" y="130"/>
                  <position x="922" y="110"/>
                  <position x="910" y="110"/>
                </connection>
              </connectionPointIn>
              <expression>floating</expression>
            </outVariable>
            <inVariable localId="24" executionOrderId="0" height="30" width="60" negated="false">
              <position x="615" y="65"/>
              <connectionPointOut>
                <relPosition x="60" y="15"/>
              </connectionPointOut>
              <expression>Sloth</expression>
            </inVariable>
            <block localId="25" typeName="DIV" executionOrderId="0" height="60" width="65">
              <position x="845" y="80"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="27" formalParameter="OUT">
                      <position x="845" y="110"/>
                      <position x="822" y="110"/>
                      <position x="822" y="80"/>
                      <position x="800" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="26">
                      <position x="845" y="130"/>
                      <position x="810" y="130"/>
                      <position x="810" y="135"/>
                      <position x="800" y="135"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="26" executionOrderId="0" height="30" width="90" negated="false">
              <position x="710" y="120"/>
              <connectionPointOut>
                <relPosition x="90" y="15"/>
              </connectionPointOut>
              <expression>REAL#100.0</expression>
            </inVariable>
            <block localId="27" typeName="INT_TO_REAL" executionOrderId="0" height="40" width="100">
              <position x="700" y="50"/>
              <inputVariables>
                <variable formalParameter="IN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="24">
                      <position x="700" y="80"/>
                      <position x="675" y="80"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="100" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <block localId="28" typeName="EQ" executionOrderId="0" height="60" width="65">
              <position x="410" y="430"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="36">
                      <position x="418" y="460"/>
                      <position x="401" y="460"/>
                      <position x="401" y="435"/>
                      <position x="380" y="435"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="29">
                      <position x="410" y="480"/>
                      <position x="367" y="480"/>
                      <position x="367" y="475"/>
                      <position x="325" y="475"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="29" executionOrderId="0" height="30" width="20" negated="false">
              <position x="305" y="460"/>
              <connectionPointOut>
                <relPosition x="20" y="15"/>
              </connectionPointOut>
              <expression>0</expression>
            </inVariable>
            <inVariable localId="32" executionOrderId="0" height="30" width="20" negated="false">
              <position x="765" y="505"/>
              <connectionPointOut>
                <relPosition x="20" y="15"/>
              </connectionPointOut>
              <expression>0</expression>
            </inVariable>
            <outVariable localId="31" executionOrderId="0" height="30" width="75" negated="false">
              <position x="925" y="460"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="33" formalParameter="OUT">
                  <position x="925" y="475"/>
                  <position x="890" y="475"/>
                </connection>
              </connectionPointIn>
              <expression>Sloth</expression>
            </outVariable>
            <block localId="33" typeName="MUX" executionOrderId="0" height="80" width="65">
              <position x="825" y="445"/>
              <inputVariables>
                <variable formalParameter="K">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="34" formalParameter="OUT">
                      <position x="825" y="475"/>
                      <position x="685" y="475"/>
                      <position x="685" y="465"/>
                      <position x="675" y="465"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN0">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="30">
                      <position x="825" y="495"/>
                      <position x="800" y="495"/>
                      <position x="800" y="485"/>
                      <position x="790" y="485"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="70"/>
                    <connection refLocalId="32">
                      <position x="825" y="515"/>
                      <position x="795" y="515"/>
                      <position x="795" y="520"/>
                      <position x="785" y="520"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="30" executionOrderId="0" height="30" width="75" negated="false">
              <position x="715" y="470"/>
              <connectionPointOut>
                <relPosition x="75" y="15"/>
              </connectionPointOut>
              <expression>Sloth</expression>
            </inVariable>
            <block localId="34" typeName="BOOL_TO_SINT" executionOrderId="0" height="40" width="110">
              <position x="565" y="435"/>
              <inputVariables>
                <variable formalParameter="IN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="28" formalParameter="OUT">
                      <position x="565" y="465"/>
                      <position x="520" y="465"/>
                      <position x="520" y="460"/>
                      <position x="475" y="460"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="110" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <connector name="Connection0" localId="35" height="25" width="125">
              <position x="400" y="140"/>
              <connectionPointIn>
                <relPosition x="0" y="10"/>
                <connection refLocalId="7" formalParameter="OUT">
                  <position x="400" y="150"/>
                  <position x="375" y="150"/>
                  <position x="375" y="115"/>
                  <position x="360" y="115"/>
                </connection>
              </connectionPointIn>
            </connector>
            <continuation name="Connection0" localId="36" height="25" width="125">
              <position x="255" y="425"/>
              <connectionPointOut>
                <relPosition x="125" y="10"/>
              </connectionPointOut>
            </continuation>
          </FBD>
        </body>
      </pou>
    </pous>
  </types>
  <instances>
    <configurations>
      <configuration name="config">
        <resource name="resource1">
          <task name="task0" priority="0" interval="T#20ms">
            <pouInstance name="instance0" typeName="MainStuff"/>
          </task>
        </resource>
      </configuration>
    </configurations>
  </instances>
</project>