tests/python/plc.xml
changeset 1419 d6adca8b6697
parent 1401 611fded24ce4
child 1436 e15ca67197b9
equal deleted inserted replaced
1418:c97dc5281419 1419:d6adca8b6697
     1 <?xml version='1.0' encoding='utf-8'?>
     1 <?xml version='1.0' encoding='utf-8'?>
     2 <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">
     2 <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">
     3   <fileHeader companyName="" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:21:19"/>
     3   <fileHeader companyName="" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:21:19"/>
     4   <contentHeader name="Beremiz Python Support Tests" modificationDateTime="2014-03-27T09:15:55">
     4   <contentHeader name="Beremiz Python Support Tests" modificationDateTime="2014-06-12T17:48:28">
     5     <coordinateInfo>
     5     <coordinateInfo>
     6       <pageSize x="1024" y="1024"/>
     6       <pageSize x="1024" y="1024"/>
     7       <fbd>
     7       <fbd>
     8         <scaling x="5" y="5"/>
     8         <scaling x="5" y="5"/>
     9       </fbd>
     9       </fbd>
    42               <value name="STOP"/>
    42               <value name="STOP"/>
    43             </values>
    43             </values>
    44           </enum>
    44           </enum>
    45         </baseType>
    45         </baseType>
    46       </dataType>
    46       </dataType>
       
    47       <dataType name="datatype0">
       
    48         <baseType>
       
    49           <BOOL/>
       
    50         </baseType>
       
    51       </dataType>
    47     </dataTypes>
    52     </dataTypes>
    48     <pous>
    53     <pous>
    49       <pou name="main_pytest" pouType="program">
    54       <pou name="main_pytest" pouType="program">
    50         <interface>
    55         <interface>
    51           <localVars>
    56           <localVars>
    52             <variable name="pytest_var1">
    57             <variable name="pytest_var1">
    53               <type>
    58               <type>
    54                 <string/>
    59                 <string/>
       
    60               </type>
       
    61             </variable>
       
    62             <variable name="fefvsd">
       
    63               <type>
       
    64                 <derived name="datatype0"/>
    55               </type>
    65               </type>
    56             </variable>
    66             </variable>
    57             <variable name="pytest_var2">
    67             <variable name="pytest_var2">
    58               <type>
    68               <type>
    59                 <BOOL/>
    69                 <BOOL/>
   893               <position x="365" y="1065"/>
   903               <position x="365" y="1065"/>
   894               <inputVariables>
   904               <inputVariables>
   895                 <variable formalParameter="IN1" negated="true">
   905                 <variable formalParameter="IN1" negated="true">
   896                   <connectionPointIn>
   906                   <connectionPointIn>
   897                     <relPosition x="0" y="35"/>
   907                     <relPosition x="0" y="35"/>
       
   908                     <connection refLocalId="50">
       
   909                       <position x="365" y="1100"/>
       
   910                       <position x="305" y="1100"/>
       
   911                     </connection>
   898                   </connectionPointIn>
   912                   </connectionPointIn>
   899                 </variable>
   913                 </variable>
   900                 <variable formalParameter="IN2">
   914                 <variable formalParameter="IN2">
   901                   <connectionPointIn>
   915                   <connectionPointIn>
   902                     <relPosition x="0" y="70"/>
   916                     <relPosition x="0" y="70"/>
   925             </inVariable>
   939             </inVariable>
   926             <outVariable localId="13" height="30" width="105" executionOrderId="0" negated="false">
   940             <outVariable localId="13" height="30" width="105" executionOrderId="0" negated="false">
   927               <position x="510" y="1085"/>
   941               <position x="510" y="1085"/>
   928               <connectionPointIn>
   942               <connectionPointIn>
   929                 <relPosition x="0" y="15"/>
   943                 <relPosition x="0" y="15"/>
       
   944                 <connection refLocalId="51" formalParameter="OUT">
       
   945                   <position x="510" y="1100"/>
       
   946                   <position x="435" y="1100"/>
       
   947                 </connection>
   930               </connectionPointIn>
   948               </connectionPointIn>
   931               <expression>Global_RS.S</expression>
   949               <expression>Global_RS.S</expression>
   932             </outVariable>
   950             </outVariable>
   933             <outVariable localId="20" height="30" width="105" executionOrderId="0" negated="false">
   951             <outVariable localId="20" height="30" width="105" executionOrderId="0" negated="false">
   934               <position x="510" y="1200"/>
   952               <position x="510" y="1200"/>
   935               <connectionPointIn>
   953               <connectionPointIn>
   936                 <relPosition x="0" y="15"/>
   954                 <relPosition x="0" y="15"/>
       
   955                 <connection refLocalId="41" formalParameter="OUT">
       
   956                   <position x="510" y="1215"/>
       
   957                   <position x="435" y="1215"/>
       
   958                 </connection>
   937               </connectionPointIn>
   959               </connectionPointIn>
   938               <expression>Global_RS.R1</expression>
   960               <expression>Global_RS.R1</expression>
   939             </outVariable>
   961             </outVariable>
   940             <inVariable localId="24" height="30" width="105" executionOrderId="0" negated="false">
   962             <inVariable localId="24" height="30" width="105" executionOrderId="0" negated="false">
   941               <position x="200" y="1200"/>
   963               <position x="200" y="1200"/>
   948               <position x="365" y="1180"/>
   970               <position x="365" y="1180"/>
   949               <inputVariables>
   971               <inputVariables>
   950                 <variable formalParameter="IN1">
   972                 <variable formalParameter="IN1">
   951                   <connectionPointIn>
   973                   <connectionPointIn>
   952                     <relPosition x="0" y="35"/>
   974                     <relPosition x="0" y="35"/>
       
   975                     <connection refLocalId="24">
       
   976                       <position x="365" y="1215"/>
       
   977                       <position x="305" y="1215"/>
       
   978                     </connection>
   953                   </connectionPointIn>
   979                   </connectionPointIn>
   954                 </variable>
   980                 </variable>
   955                 <variable formalParameter="IN2">
   981                 <variable formalParameter="IN2">
   956                   <connectionPointIn>
   982                   <connectionPointIn>
   957                     <relPosition x="0" y="70"/>
   983                     <relPosition x="0" y="70"/>
  1092               <connectionPointOut>
  1118               <connectionPointOut>
  1093                 <relPosition x="30" y="15"/>
  1119                 <relPosition x="30" y="15"/>
  1094               </connectionPointOut>
  1120               </connectionPointOut>
  1095               <expression>23</expression>
  1121               <expression>23</expression>
  1096             </inVariable>
  1122             </inVariable>
  1097             <comment localId="60" height="40" width="500">
  1123             <block localId="61" typeName="function0" executionOrderId="0" height="45" width="110">
  1098               <position x="120" y="1020"/>
  1124               <position x="1680" y="255"/>
  1099               <content>
  1125               <inputVariables>
  1100                 <xhtml:p><![CDATA[Test for access to Gobal FB variables is disabled, as broken in matiec]]></xhtml:p>
  1126                 <variable formalParameter="LocalVar0">
  1101               </content>
  1127                   <connectionPointIn>
  1102             </comment>
  1128                     <relPosition x="0" y="30"/>
       
  1129                     <connection refLocalId="62">
       
  1130                       <position x="1680" y="285"/>
       
  1131                       <position x="1640" y="285"/>
       
  1132                     </connection>
       
  1133                   </connectionPointIn>
       
  1134                 </variable>
       
  1135               </inputVariables>
       
  1136               <inOutVariables/>
       
  1137               <outputVariables>
       
  1138                 <variable formalParameter="OUT">
       
  1139                   <connectionPointOut>
       
  1140                     <relPosition x="110" y="30"/>
       
  1141                   </connectionPointOut>
       
  1142                 </variable>
       
  1143               </outputVariables>
       
  1144             </block>
       
  1145             <inVariable localId="62" executionOrderId="0" height="30" width="55" negated="false">
       
  1146               <position x="1585" y="270"/>
       
  1147               <connectionPointOut>
       
  1148                 <relPosition x="55" y="15"/>
       
  1149               </connectionPointOut>
       
  1150               <expression>fefvsd</expression>
       
  1151             </inVariable>
       
  1152             <outVariable localId="63" executionOrderId="0" height="30" width="55" negated="false">
       
  1153               <position x="1825" y="270"/>
       
  1154               <connectionPointIn>
       
  1155                 <relPosition x="0" y="15"/>
       
  1156                 <connection refLocalId="61" formalParameter="OUT">
       
  1157                   <position x="1825" y="285"/>
       
  1158                   <position x="1790" y="285"/>
       
  1159                 </connection>
       
  1160               </connectionPointIn>
       
  1161               <expression>fefvsd</expression>
       
  1162             </outVariable>
  1103           </FBD>
  1163           </FBD>
  1104         </body>
  1164         </body>
  1105       </pou>
  1165       </pou>
  1106       <pou name="C_Pragma" pouType="functionBlock">
  1166       <pou name="C_Pragma" pouType="functionBlock">
  1107         <interface>
  1167         <interface>
  1211           <ST>
  1271           <ST>
  1212             <xhtml:p><![CDATA[NORM := SQRT(IN1 * IN1 + IN2 * IN2);]]></xhtml:p>
  1272             <xhtml:p><![CDATA[NORM := SQRT(IN1 * IN1 + IN2 * IN2);]]></xhtml:p>
  1213           </ST>
  1273           </ST>
  1214         </body>
  1274         </body>
  1215       </pou>
  1275       </pou>
       
  1276       <pou name="function0" pouType="function">
       
  1277         <interface>
       
  1278           <returnType>
       
  1279             <derived name="datatype0"/>
       
  1280           </returnType>
       
  1281           <inputVars>
       
  1282             <variable name="LocalVar0">
       
  1283               <type>
       
  1284                 <derived name="datatype0"/>
       
  1285               </type>
       
  1286             </variable>
       
  1287           </inputVars>
       
  1288         </interface>
       
  1289         <body>
       
  1290           <ST>
       
  1291             <xhtml:p><![CDATA[function0 := LocalVar0;
       
  1292 ]]></xhtml:p>
       
  1293           </ST>
       
  1294         </body>
       
  1295       </pou>
  1216     </pous>
  1296     </pous>
  1217   </types>
  1297   </types>
  1218   <instances>
  1298   <instances>
  1219     <configurations>
  1299     <configurations>
  1220       <configuration name="conf_pytest">
  1300       <configuration name="conf_pytest">