--- a/tests/python/plc.xml Thu Jun 12 17:50:30 2014 +0200
+++ b/tests/python/plc.xml Thu Jun 12 18:15:04 2014 +0200
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:21:19"/>
- <contentHeader name="Beremiz Python Support Tests" modificationDateTime="2014-03-27T09:15:55">
+ <contentHeader name="Beremiz Python Support Tests" modificationDateTime="2014-06-12T17:48:28"> <pageSize x="1024" y="1024"/>
@@ -44,6 +44,11 @@
+ <dataType name="datatype0"> <pou name="main_pytest" pouType="program">
@@ -54,6 +59,11 @@
+ <variable name="fefvsd"> + <derived name="datatype0"/> <variable name="pytest_var2">
@@ -895,6 +905,10 @@
<variable formalParameter="IN1" negated="true">
<relPosition x="0" y="35"/>
+ <connection refLocalId="50"> + <position x="365" y="1100"/> + <position x="305" y="1100"/> <variable formalParameter="IN2">
@@ -927,6 +941,10 @@
<position x="510" y="1085"/>
<relPosition x="0" y="15"/>
+ <connection refLocalId="51" formalParameter="OUT"> + <position x="510" y="1100"/> + <position x="435" y="1100"/> <expression>Global_RS.S</expression>
@@ -934,6 +952,10 @@
<position x="510" y="1200"/>
<relPosition x="0" y="15"/>
+ <connection refLocalId="41" formalParameter="OUT"> + <position x="510" y="1215"/> + <position x="435" y="1215"/> <expression>Global_RS.R1</expression>
@@ -950,6 +972,10 @@
<variable formalParameter="IN1">
<relPosition x="0" y="35"/>
+ <connection refLocalId="24"> + <position x="365" y="1215"/> + <position x="305" y="1215"/> <variable formalParameter="IN2">
@@ -1094,12 +1120,46 @@
<expression>23</expression>
- <comment localId="60" height="40" width="500">
- <position x="120" y="1020"/>
- <xhtml:p><![CDATA[Test for access to Gobal FB variables is disabled, as broken in matiec]]></xhtml:p>
+ <block localId="61" typeName="function0" executionOrderId="0" height="45" width="110"> + <position x="1680" y="255"/> + <variable formalParameter="LocalVar0"> + <relPosition x="0" y="30"/> + <connection refLocalId="62"> + <position x="1680" y="285"/> + <position x="1640" y="285"/> + <variable formalParameter="OUT"> + <relPosition x="110" y="30"/> + <inVariable localId="62" executionOrderId="0" height="30" width="55" negated="false"> + <position x="1585" y="270"/> + <relPosition x="55" y="15"/> + <expression>fefvsd</expression> + <outVariable localId="63" executionOrderId="0" height="30" width="55" negated="false"> + <position x="1825" y="270"/> + <relPosition x="0" y="15"/> + <connection refLocalId="61" formalParameter="OUT"> + <position x="1825" y="285"/> + <position x="1790" y="285"/> + <expression>fefvsd</expression> @@ -1213,6 +1273,26 @@
+ <pou name="function0" pouType="function"> + <derived name="datatype0"/> + <variable name="LocalVar0"> + <derived name="datatype0"/> + <xhtml:p><![CDATA[function0 := LocalVar0;