tests: add Beremiz project used in opcua_test CLI test
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/beremiz.xml Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,4 @@
+<?xml version='1.0' encoding='utf-8'?> +<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="LOCAL://"> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/opcua_0@opcua/baseconfnode.xml Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='utf-8'?> +<BaseParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" IEC_Channel="0" Name="opcua_0"/> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/opcua_0@opcua/confnode.xml Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='utf-8'?> +<OPCUAClient xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/opcua_0@opcua/selected.csv Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,2 @@
+input,TestOut,2,int,2,Double,0 +output,TestIn,2,int,3,Double,0 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/plc.xml Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,208 @@
+<?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="2022-07-16T10:46:25"/> + <contentHeader name="Unnamed" modificationDateTime="2022-07-16T22:47:46"> + <pou name="program0" pouType="program"> + <variable name="LocalVar0" address="%IL0.0"> + <variable name="LocalVar1" address="%QL0.0"> + <variable name="python_poll0"> + <derived name="python_poll"/> + <inVariable localId="1" executionOrderId="0" height="25" width="85" negated="false"> + <position x="160" y="190"/> + <relPosition x="85" y="10"/> + <expression>LocalVar0</expression> + <outVariable localId="2" executionOrderId="0" height="24" width="82" negated="false"> + <position x="238" y="49"/> + <relPosition x="0" y="11"/> + <connection refLocalId="9"> + <position x="238" y="60"/> + <position x="204" y="60"/> + <expression>LocalVar1</expression> + <block localId="4" typeName="python_poll" instanceName="python_poll0" executionOrderId="0" height="60" width="98"> + <position x="658" y="101"/> + <variable formalParameter="TRIG"> + <relPosition x="0" y="29"/> + <connection refLocalId="7"> + <position x="658" y="130"/> + <position x="623" y="130"/> + <variable formalParameter="CODE"> + <relPosition x="0" y="49"/> + <connection refLocalId="6" formalParameter="OUT"> + <position x="658" y="150"/> + <position x="560" y="150"/> + <variable formalParameter="ACK"> + <relPosition x="98" y="29"/> + <variable formalParameter="RESULT"> + <relPosition x="98" y="49"/> + <block localId="5" typeName="LREAL_TO_STRING" executionOrderId="0" height="40" width="130"> + <position x="280" y="170"/> + <variable formalParameter="IN"> + <relPosition x="0" y="30"/> + <connection refLocalId="1"> + <position x="280" y="200"/> + <position x="255" y="200"/> + <position x="255" y="200"/> + <position x="300" y="200"/> + <position x="300" y="200"/> + <position x="245" y="200"/> + <variable formalParameter="OUT"> + <relPosition x="130" y="30"/> + <block localId="6" typeName="CONCAT" executionOrderId="0" height="165" width="63"> + <position x="497" y="108"/> + <variable formalParameter="IN1"> + <relPosition x="0" y="42"/> + <connection refLocalId="3"> + <position x="497" y="150"/> + <position x="330" y="150"/> + <variable formalParameter="IN2"> + <relPosition x="0" y="92"/> + <connection refLocalId="5" formalParameter="OUT"> + <position x="497" y="200"/> + <position x="410" y="200"/> + <variable formalParameter="IN3"> + <relPosition x="0" y="142"/> + <connection refLocalId="8"> + <position x="497" y="250"/> + <position x="225" y="250"/> + <variable formalParameter="OUT"> + <relPosition x="63" y="42"/> + <inVariable localId="7" executionOrderId="0" height="24" width="44" negated="false"> + <position x="579" y="116"/> + <relPosition x="44" y="14"/> + <expression>TRUE</expression> + <inVariable localId="3" executionOrderId="0" height="25" width="180" negated="false"> + <position x="160" y="140"/> + <relPosition x="180" y="10"/> + <expression>'pfunc("'</expression> + <inVariable localId="8" executionOrderId="0" height="25" width="230" negated="false"> + <position x="165" y="240"/> + <relPosition x="230" y="10"/> + <expression>'\n")'</expression> + <inVariable localId="9" executionOrderId="0" height="29" width="45" negated="false"> + <position x="159" y="47"/> + <relPosition x="45" y="13"/> + <expression>3.4</expression> + <configuration name="config"> + <resource name="resource1"> + <task name="task0" priority="0" interval="T#100ms"> + <pouInstance name="instance0" typeName="program0"/> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/py_ext_0@py_ext/baseconfnode.xml Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='utf-8'?> +<BaseParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" IEC_Channel="1" Name="py_ext_0"/> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/projects/opcua_client/py_ext_0@py_ext/pyfile.xml Mon Jul 18 00:38:14 2022 +0200
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='utf-8'?> +<PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> +pfunc("globals section\n") +pfunc("cleanup section\n") +pfunc("start section\n")