--- a/tests/svghmi/plc.xml Mon Aug 12 13:09:55 2019 +0200
+++ b/tests/svghmi/plc.xml Tue Aug 13 14:04:13 2019 +0200
@@ -1,7 +1,7 @@
<?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-08-09T11:20:07">
+ <contentHeader name="Unnamed" modificationDateTime="2019-08-13T10:34:09">
<coordinateInfo>
<fbd>
<scaling x="5" y="5"/>
@@ -22,7 +22,12 @@
<localVars>
<variable name="LocalVar0">
<type>
- <DINT/>
+ <derived name="HMI_INT"/>
+ </type>
+ </variable>
+ <variable name="Pump0">
+ <type>
+ <derived name="Pump"/>
</type>
</variable>
</localVars>
@@ -85,7 +90,93 @@
<connectionPointOut>
<relPosition x="60" y="10"/>
</connectionPointOut>
- <expression>DINT#1</expression>
+ <expression>1</expression>
+ </inVariable>
+ <block localId="4" typeName="Pump" instanceName="Pump0" executionOrderId="0" height="20" width="45">
+ <position x="595" y="50"/>
+ <inputVariables/>
+ <inOutVariables/>
+ <outputVariables/>
+ </block>
+ </FBD>
+ </body>
+ </pou>
+ <pou name="Pump" pouType="functionBlock">
+ <interface>
+ <localVars>
+ <variable name="hmi">
+ <type>
+ <derived name="HMI_LABEL"/>
+ </type>
+ </variable>
+ <variable name="Pressure">
+ <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>
</FBD>
</body>