--- a/tests/svghmi/plc.xml Wed Aug 14 11:05:17 2019 +0200
+++ b/tests/svghmi/plc.xml Wed Aug 14 13:06:03 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-14T10:55:12">
+ <contentHeader name="Unnamed" modificationDateTime="2019-08-14T11:10:01"> @@ -17,10 +17,10 @@
- <pou name="program0" pouType="program">
+ <pou name="MainStuff" pouType="program"> - <variable name="LocalVar0">
+ <variable name="TargetPressure"> <derived name="HMI_INT"/>
@@ -67,23 +67,23 @@
- <inOutVariable localId="1" executionOrderId="0" height="26" width="82" negatedOut="false" negatedIn="false">
+ <inOutVariable localId="1" executionOrderId="0" height="26" width="122" negatedOut="false" negatedIn="false"> <position x="120" y="190"/>
- <relPosition x="0" y="10"/>
+ <relPosition x="0" y="15"/> <connection refLocalId="2" formalParameter="OUT">
- <position x="120" y="200"/>
- <position x="100" y="200"/>
+ <position x="120" y="205"/> + <position x="100" y="205"/> <position x="100" y="140"/>
<position x="328" y="140"/>
- <position x="328" y="200"/>
- <position x="318" y="200"/>
+ <position x="328" y="205"/> + <position x="318" y="205"/> - <relPosition x="82" y="10"/>
+ <relPosition x="122" y="15"/> - <expression>LocalVar0</expression>
+ <expression>TargetPressure</expression> <inVariable localId="3" executionOrderId="0" height="25" width="60" negated="false">
<position x="130" y="225"/>
@@ -92,12 +92,29 @@
<expression>1</expression>
- <block localId="4" typeName="PumpControl" instanceName="Pump0" executionOrderId="0" height="20" width="98">
+ <block localId="4" typeName="PumpControl" instanceName="Pump0" executionOrderId="0" height="40" width="127"> <position x="595" y="50"/>
+ <variable formalParameter="TargetPressure"> + <relPosition x="0" y="30"/> + <connection refLocalId="5"> + <position x="595" y="80"/> + <position x="570" y="80"/> + <inVariable localId="5" executionOrderId="0" height="30" width="125" negated="false"> + <position x="445" y="65"/> + <relPosition x="125" y="15"/> + <expression>TargetPressure</expression> @@ -114,6 +131,15 @@
<derived name="HMI_INT"/>
+ <variable name="TargetPressure"> <derived name="HMI_INT"/>
@@ -206,15 +232,8 @@
<configuration name="config">
<resource name="resource1">
<task name="task0" priority="0" interval="T#20ms">
- <pouInstance name="instance0" typeName="program0"/>
+ <pouInstance name="instance0" typeName="MainStuff"/>
- <variable name="LocalVar0">
- <derived name="HMI_LABEL"/>
--- a/tests/svghmi/svghmi_0@svghmi/gui.svg Wed Aug 14 11:05:17 2019 +0200
+++ b/tests/svghmi/svghmi_0@svghmi/gui.svg Wed Aug 14 13:06:03 2019 +0200
@@ -14,7 +14,7 @@
- sodipodi:docname="default.svg"
+ sodipodi:docname="gui.svg" inkscape:version="0.92.3 (2405546, 2018-03-11)">
@@ -42,8 +42,8 @@
- inkscape:cx="576.80864"
- inkscape:cy="330.28432"
+ inkscape:cx="586.09435" + inkscape:cy="381.71289" inkscape:window-width="1600"
inkscape:window-height="886"
@@ -57,36 +57,61 @@
- id="desc_page0">This is description for page 0
-all lines in the form "name: value"
-are used as js object definition initializer
-after triple opening braces is global JavaScript code
-alert("Hello World");
-after triple closing braces is back to description
+name = "Home"; style="font-style:normal;font-weight:normal;font-size:160px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
inkscape:label="count"><desc
- id="desc5153">path: "count"
-format: "%4.4d"</desc><tspan
+path = "/PRESSURETARGET"; +/* Don't forget to press the "Set" button ! */</desc><tspan
style="stroke-width:1px">8888</tspan></text>
+ style="font-style:normal;font-weight:normal;font-size:160px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><desc +path = "/PUMP/PRESSURE"; +/* Don't forget to press the "Set" button ! */</desc><tspan + style="stroke-width:1px" + sodipodi:role="line">8888</tspan></text> + style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;" + y="197.14285">SetPoint</tspan></text> + style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;" + xml:space="preserve"><tspan + sodipodi:role="line">Actual</tspan></text>