tests/python/plc.xml
changeset 280 f2ef79f3dba0
child 282 2221e99d2f8f
equal deleted inserted replaced
279:47d29c4b55a3 280:f2ef79f3dba0
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
     3          xmlns="http://www.plcopen.org/xml/tc6.xsd"
       
     4          xmlns:xhtml="http://www.w3.org/1999/xhtml"
       
     5          xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd">
       
     6   <fileHeader companyName="LOLITECH"
       
     7               productName="Beremiz"
       
     8               productVersion="0.0"
       
     9               creationDateTime="2008-12-14T16:21:19"/>
       
    10   <contentHeader name="Beremiz Python Support Tests"
       
    11                  modificationDateTime="2008-12-22T23:58:02">
       
    12     <coordinateInfo>
       
    13       <pageSize x="1024" y="1024"/>
       
    14       <fbd>
       
    15         <scaling x="5" y="5"/>
       
    16       </fbd>
       
    17       <ld>
       
    18         <scaling x="5" y="5"/>
       
    19       </ld>
       
    20       <sfc>
       
    21         <scaling x="5" y="5"/>
       
    22       </sfc>
       
    23     </coordinateInfo>
       
    24   </contentHeader>
       
    25   <types>
       
    26     <dataTypes/>
       
    27     <pous>
       
    28       <pou name="main_pytest" pouType="program">
       
    29         <interface>
       
    30           <localVars>
       
    31             <variable name="pytest_var1">
       
    32               <type>
       
    33                 <string/>
       
    34               </type>
       
    35               <initialValue>
       
    36                 <simpleValue value="time.sleep(1)"/>
       
    37               </initialValue>
       
    38             </variable>
       
    39             <variable name="pytest_var2">
       
    40               <type>
       
    41                 <BOOL/>
       
    42               </type>
       
    43             </variable>
       
    44             <variable name="pytest_var3">
       
    45               <type>
       
    46                 <string/>
       
    47               </type>
       
    48             </variable>
       
    49             <variable name="pytest_var4">
       
    50               <type>
       
    51                 <BOOL/>
       
    52               </type>
       
    53             </variable>
       
    54             <variable name="py1">
       
    55               <type>
       
    56                 <derived name="python_eval"/>
       
    57               </type>
       
    58             </variable>
       
    59           </localVars>
       
    60         </interface>
       
    61         <body>
       
    62           <FBD>
       
    63             <outVariable localId="2" height="30" width="120">
       
    64               <position x="760" y="150"/>
       
    65               <connectionPointIn>
       
    66                 <relPosition x="0" y="15"/>
       
    67                 <connection refLocalId="5" formalParameter="RESULT">
       
    68                   <position x="760" y="165"/>
       
    69                   <position x="515" y="165"/>
       
    70                 </connection>
       
    71               </connectionPointIn>
       
    72               <expression>pytest_var3</expression>
       
    73             </outVariable>
       
    74             <inVariable localId="4" height="30" width="120">
       
    75               <position x="35" y="150"/>
       
    76               <connectionPointOut>
       
    77                 <relPosition x="120" y="15"/>
       
    78               </connectionPointOut>
       
    79               <expression>pytest_var1</expression>
       
    80             </inVariable>
       
    81             <block localId="5" width="125" height="80" typeName="python_eval" instanceName="py1">
       
    82               <position x="390" y="100"/>
       
    83               <inputVariables>
       
    84                 <variable formalParameter="TRIG">
       
    85                   <connectionPointIn>
       
    86                     <relPosition x="0" y="35"/>
       
    87                     <connection refLocalId="7" formalParameter="OUT">
       
    88                       <position x="390" y="135"/>
       
    89                       <position x="190" y="135"/>
       
    90                       <position x="190" y="55"/>
       
    91                       <position x="130" y="55"/>
       
    92                     </connection>
       
    93                   </connectionPointIn>
       
    94                 </variable>
       
    95                 <variable formalParameter="CODE">
       
    96                   <connectionPointIn>
       
    97                     <relPosition x="0" y="65"/>
       
    98                     <connection refLocalId="4">
       
    99                       <position x="390" y="165"/>
       
   100                       <position x="155" y="165"/>
       
   101                     </connection>
       
   102                   </connectionPointIn>
       
   103                 </variable>
       
   104               </inputVariables>
       
   105               <inOutVariables/>
       
   106               <outputVariables>
       
   107                 <variable formalParameter="ACK">
       
   108                   <connectionPointOut>
       
   109                     <relPosition x="125" y="35"/>
       
   110                   </connectionPointOut>
       
   111                 </variable>
       
   112                 <variable formalParameter="RESULT">
       
   113                   <connectionPointOut>
       
   114                     <relPosition x="125" y="65"/>
       
   115                   </connectionPointOut>
       
   116                 </variable>
       
   117               </outputVariables>
       
   118             </block>
       
   119             <outVariable localId="6" height="30" width="120">
       
   120               <position x="760" y="120"/>
       
   121               <connectionPointIn>
       
   122                 <relPosition x="0" y="15"/>
       
   123                 <connection refLocalId="5" formalParameter="ACK">
       
   124                   <position x="760" y="135"/>
       
   125                   <position x="515" y="135"/>
       
   126                 </connection>
       
   127               </connectionPointIn>
       
   128               <expression>pytest_var4</expression>
       
   129             </outVariable>
       
   130             <block localId="7" width="70" height="45" typeName="NOT">
       
   131               <position x="60" y="25"/>
       
   132               <inputVariables>
       
   133                 <variable formalParameter="IN">
       
   134                   <connectionPointIn>
       
   135                     <relPosition x="0" y="30"/>
       
   136                     <connection refLocalId="3">
       
   137                       <position x="60" y="55"/>
       
   138                       <position x="45" y="55"/>
       
   139                       <position x="45" y="85"/>
       
   140                       <position x="165" y="85"/>
       
   141                       <position x="165" y="120"/>
       
   142                       <position x="155" y="120"/>
       
   143                     </connection>
       
   144                   </connectionPointIn>
       
   145                 </variable>
       
   146               </inputVariables>
       
   147               <inOutVariables/>
       
   148               <outputVariables>
       
   149                 <variable formalParameter="OUT">
       
   150                   <connectionPointOut>
       
   151                     <relPosition x="70" y="30"/>
       
   152                   </connectionPointOut>
       
   153                 </variable>
       
   154               </outputVariables>
       
   155             </block>
       
   156             <inOutVariable localId="3" height="30" width="120">
       
   157               <position x="35" y="105"/>
       
   158               <connectionPointIn>
       
   159                 <relPosition x="0" y="15"/>
       
   160                 <connection refLocalId="7" formalParameter="OUT">
       
   161                   <position x="35" y="120"/>
       
   162                   <position x="25" y="120"/>
       
   163                   <position x="25" y="15"/>
       
   164                   <position x="210" y="15"/>
       
   165                   <position x="210" y="55"/>
       
   166                   <position x="130" y="55"/>
       
   167                 </connection>
       
   168               </connectionPointIn>
       
   169               <connectionPointOut>
       
   170                 <relPosition x="120" y="15"/>
       
   171               </connectionPointOut>
       
   172               <expression>pytest_var2</expression>
       
   173             </inOutVariable>
       
   174           </FBD>
       
   175         </body>
       
   176       </pou>
       
   177     </pous>
       
   178   </types>
       
   179   <instances>
       
   180     <configurations>
       
   181       <configuration name="conf_pytest">
       
   182         <resource name="res_pytest">
       
   183           <task name="pytest_task" interval="00:00:00.100000" priority="0"/>
       
   184           <pouInstance name="pytest_instance" type="main_pytest"/>
       
   185         </resource>
       
   186       </configuration>
       
   187     </configurations>
       
   188   </instances>
       
   189 </project>