tests/svghmi/plc.xml
author Edouard Tisserant
Tue, 24 Sep 2019 11:58:31 +0200
branchsvghmi
changeset 2784 35eeb1ed105f
parent 2771 361366b891ca
child 2805 e521e0d133d5
permissions -rw-r--r--
Merge default in SVGHMI branch
<?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="2019-09-11T11:54:14">
    <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="Pump0">
              <type>
                <derived name="PumpControl"/>
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <FBD>
            <block localId="2" typeName="ADD" executionOrderId="0" height="60" width="63">
              <position x="255" y="175"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="1">
                      <position x="255" y="205"/>
                      <position x="202" y="205"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="3">
                      <position x="255" y="225"/>
                      <position x="235" y="225"/>
                      <position x="235" y="235"/>
                      <position x="190" y="235"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="63" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inOutVariable localId="1" executionOrderId="0" height="26" width="122" negatedOut="false" negatedIn="false">
              <position x="120" y="190"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="2" formalParameter="OUT">
                  <position x="120" y="205"/>
                  <position x="100" y="205"/>
                  <position x="100" y="140"/>
                  <position x="328" y="140"/>
                  <position x="328" y="205"/>
                  <position x="318" y="205"/>
                </connection>
              </connectionPointIn>
              <connectionPointOut>
                <relPosition x="122" y="15"/>
              </connectionPointOut>
              <expression>TargetPressure</expression>
            </inOutVariable>
            <inVariable localId="3" executionOrderId="0" height="25" width="60" negated="false">
              <position x="130" y="225"/>
              <connectionPointOut>
                <relPosition x="60" y="10"/>
              </connectionPointOut>
              <expression>1</expression>
            </inVariable>
            <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>
          </FBD>
        </body>
      </pou>
      <pou name="PumpControl" pouType="functionBlock">
        <interface>
          <localVars>
            <variable name="Pump">
              <type>
                <derived name="HMI_LABEL"/>
              </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="AddOut">
              <type>
                <derived name="HMI_INT"/>
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <FBD>
            <inOutVariable localId="1" executionOrderId="0" height="30" width="75" negatedOut="false" negatedIn="false">
              <position x="285" y="105"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="2" formalParameter="OUT">
                  <position x="285" y="120"/>
                  <position x="275" y="120"/>
                  <position x="275" y="95"/>
                  <position x="550" y="95"/>
                  <position x="550" y="135"/>
                  <position x="540" y="135"/>
                </connection>
              </connectionPointIn>
              <connectionPointOut>
                <relPosition x="75" y="15"/>
              </connectionPointOut>
              <expression>Pressure</expression>
            </inOutVariable>
            <block localId="2" typeName="ADD" executionOrderId="0" height="60" width="65">
              <position x="475" y="105"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="1">
                      <position x="475" y="135"/>
                      <position x="417" y="135"/>
                      <position x="417" y="120"/>
                      <position x="360" y="120"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="3">
                      <position x="475" y="155"/>
                      <position x="432" y="155"/>
                      <position x="432" y="150"/>
                      <position x="410" y="150"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="65" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="3" executionOrderId="0" height="25" width="30" negated="false">
              <position x="380" y="140"/>
              <connectionPointOut>
                <relPosition x="30" y="10"/>
              </connectionPointOut>
              <expression>23</expression>
            </inVariable>
            <outVariable localId="4" executionOrderId="0" height="30" width="60" negated="false">
              <position x="640" y="135"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="2" formalParameter="OUT">
                  <position x="640" y="150"/>
                  <position x="590" y="150"/>
                  <position x="590" y="135"/>
                  <position x="540" y="135"/>
                </connection>
              </connectionPointIn>
              <expression>AddOut</expression>
            </outVariable>
          </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>