tests/python/plc.xml
changeset 283 d0e6fc0701fb
parent 282 2221e99d2f8f
child 366 cd90e4c10261
equal deleted inserted replaced
282:2221e99d2f8f 283:d0e6fc0701fb
     6   <fileHeader companyName="LOLITECH"
     6   <fileHeader companyName="LOLITECH"
     7               productName="Beremiz"
     7               productName="Beremiz"
     8               productVersion="0.0"
     8               productVersion="0.0"
     9               creationDateTime="2008-12-14T16:21:19"/>
     9               creationDateTime="2008-12-14T16:21:19"/>
    10   <contentHeader name="Beremiz Python Support Tests"
    10   <contentHeader name="Beremiz Python Support Tests"
    11                  modificationDateTime="2008-12-24T00:54:43">
    11                  modificationDateTime="2008-12-30T00:26:11">
    12     <coordinateInfo>
    12     <coordinateInfo>
    13       <pageSize x="1024" y="1024"/>
    13       <pageSize x="1024" y="1024"/>
    14       <fbd>
    14       <fbd>
    15         <scaling x="5" y="5"/>
    15         <scaling x="5" y="5"/>
    16       </fbd>
    16       </fbd>
    56             <variable name="Block3">
    56             <variable name="Block3">
    57               <type>
    57               <type>
    58                 <derived name="python_eval"/>
    58                 <derived name="python_eval"/>
    59               </type>
    59               </type>
    60             </variable>
    60             </variable>
       
    61             <variable name="pytest_var3">
       
    62               <type>
       
    63                 <BOOL/>
       
    64               </type>
       
    65             </variable>
    61           </localVars>
    66           </localVars>
    62         </interface>
    67         </interface>
    63         <body>
    68         <body>
    64           <FBD>
    69           <FBD>
    65             <inVariable localId="4" height="30" width="160">
    70             <inVariable localId="4" height="30" width="160">
   240             <inVariable localId="14" height="30" width="290">
   245             <inVariable localId="14" height="30" width="290">
   241               <position x="290" y="590"/>
   246               <position x="290" y="590"/>
   242               <connectionPointOut>
   247               <connectionPointOut>
   243                 <relPosition x="290" y="15"/>
   248                 <relPosition x="290" y="15"/>
   244               </connectionPointOut>
   249               </connectionPointOut>
   245               <expression>'sys.stdout.write("90AB\n")'</expression>
   250               <expression>'myprintfunc("90AB\n")'</expression>
   246             </inVariable>
   251             </inVariable>
   247             <block localId="15" width="125" height="80" typeName="python_eval" instanceName="Block3">
   252             <block localId="15" width="125" height="80" typeName="python_eval" instanceName="Block3">
   248               <position x="650" y="542"/>
   253               <position x="650" y="542"/>
   249               <inputVariables>
   254               <inputVariables>
   250                 <variable formalParameter="TRIG">
   255                 <variable formalParameter="TRIG">
   286               <position x="50" y="25"/>
   291               <position x="50" y="25"/>
   287               <content>
   292               <content>
   288 <![CDATA[This example test that, despite of 2T period clock stimulating TRIG pin of pyth_eval blocks, blocks keep executing one after the other, in respect of execution order.]]>
   293 <![CDATA[This example test that, despite of 2T period clock stimulating TRIG pin of pyth_eval blocks, blocks keep executing one after the other, in respect of execution order.]]>
   289               </content>
   294               </content>
   290             </comment>
   295             </comment>
       
   296             <block localId="17" width="80" height="120" typeName="MUX">
       
   297               <position x="1065" y="495"/>
       
   298               <inputVariables>
       
   299                 <variable formalParameter="K">
       
   300                   <connectionPointIn>
       
   301                     <relPosition x="0" y="30"/>
       
   302                     <connection refLocalId="18">
       
   303                       <position x="1065" y="525"/>
       
   304                       <position x="1030" y="525"/>
       
   305                     </connection>
       
   306                   </connectionPointIn>
       
   307                 </variable>
       
   308                 <variable formalParameter="IN0">
       
   309                   <connectionPointIn>
       
   310                     <relPosition x="0" y="50"/>
       
   311                     <connection refLocalId="5" formalParameter="RESULT">
       
   312                       <position x="1065" y="545"/>
       
   313                       <position x="905" y="545"/>
       
   314                       <position x="905" y="250"/>
       
   315                       <position x="775" y="250"/>
       
   316                     </connection>
       
   317                   </connectionPointIn>
       
   318                 </variable>
       
   319                 <variable formalParameter="IN1">
       
   320                   <connectionPointIn>
       
   321                     <relPosition x="0" y="70"/>
       
   322                     <connection refLocalId="8" formalParameter="RESULT">
       
   323                       <position x="1065" y="565"/>
       
   324                       <position x="890" y="565"/>
       
   325                       <position x="890" y="360"/>
       
   326                       <position x="775" y="360"/>
       
   327                     </connection>
       
   328                   </connectionPointIn>
       
   329                 </variable>
       
   330                 <variable formalParameter="IN2">
       
   331                   <connectionPointIn>
       
   332                     <relPosition x="0" y="90"/>
       
   333                     <connection refLocalId="12" formalParameter="RESULT">
       
   334                       <position x="1065" y="585"/>
       
   335                       <position x="875" y="585"/>
       
   336                       <position x="875" y="480"/>
       
   337                       <position x="775" y="480"/>
       
   338                     </connection>
       
   339                   </connectionPointIn>
       
   340                 </variable>
       
   341                 <variable formalParameter="IN3">
       
   342                   <connectionPointIn>
       
   343                     <relPosition x="0" y="110"/>
       
   344                     <connection refLocalId="15" formalParameter="RESULT">
       
   345                       <position x="1065" y="605"/>
       
   346                       <position x="775" y="605"/>
       
   347                     </connection>
       
   348                   </connectionPointIn>
       
   349                 </variable>
       
   350               </inputVariables>
       
   351               <inOutVariables/>
       
   352               <outputVariables>
       
   353                 <variable formalParameter="OUT">
       
   354                   <connectionPointOut>
       
   355                     <relPosition x="80" y="30"/>
       
   356                   </connectionPointOut>
       
   357                 </variable>
       
   358               </outputVariables>
       
   359             </block>
       
   360             <inVariable localId="18" height="30" width="20">
       
   361               <position x="1010" y="510"/>
       
   362               <connectionPointOut>
       
   363                 <relPosition x="20" y="15"/>
       
   364               </connectionPointOut>
       
   365               <expression>3</expression>
       
   366             </inVariable>
       
   367             <outVariable localId="19" height="35" width="125">
       
   368               <position x="1185" y="510"/>
       
   369               <connectionPointIn>
       
   370                 <relPosition x="0" y="15"/>
       
   371                 <connection refLocalId="17" formalParameter="OUT">
       
   372                   <position x="1185" y="525"/>
       
   373                   <position x="1145" y="525"/>
       
   374                 </connection>
       
   375               </connectionPointIn>
       
   376               <expression>pytest_var1</expression>
       
   377             </outVariable>
       
   378             <block localId="21" width="80" height="120" typeName="MUX">
       
   379               <position x="985" y="170"/>
       
   380               <inputVariables>
       
   381                 <variable formalParameter="K">
       
   382                   <connectionPointIn>
       
   383                     <relPosition x="0" y="30"/>
       
   384                     <connection refLocalId="22">
       
   385                       <position x="985" y="200"/>
       
   386                       <position x="950" y="200"/>
       
   387                     </connection>
       
   388                   </connectionPointIn>
       
   389                 </variable>
       
   390                 <variable formalParameter="IN0">
       
   391                   <connectionPointIn>
       
   392                     <relPosition x="0" y="50"/>
       
   393                     <connection refLocalId="5" formalParameter="ACK">
       
   394                       <position x="985" y="220"/>
       
   395                       <position x="775" y="220"/>
       
   396                     </connection>
       
   397                   </connectionPointIn>
       
   398                 </variable>
       
   399                 <variable formalParameter="IN1">
       
   400                   <connectionPointIn>
       
   401                     <relPosition x="0" y="70"/>
       
   402                     <connection refLocalId="8" formalParameter="ACK">
       
   403                       <position x="985" y="240"/>
       
   404                       <position x="805" y="240"/>
       
   405                       <position x="805" y="330"/>
       
   406                       <position x="775" y="330"/>
       
   407                     </connection>
       
   408                   </connectionPointIn>
       
   409                 </variable>
       
   410                 <variable formalParameter="IN2">
       
   411                   <connectionPointIn>
       
   412                     <relPosition x="0" y="90"/>
       
   413                     <connection refLocalId="12" formalParameter="ACK">
       
   414                       <position x="985" y="260"/>
       
   415                       <position x="820" y="260"/>
       
   416                       <position x="820" y="450"/>
       
   417                       <position x="775" y="450"/>
       
   418                     </connection>
       
   419                   </connectionPointIn>
       
   420                 </variable>
       
   421                 <variable formalParameter="IN3">
       
   422                   <connectionPointIn>
       
   423                     <relPosition x="0" y="110"/>
       
   424                     <connection refLocalId="15" formalParameter="ACK">
       
   425                       <position x="985" y="280"/>
       
   426                       <position x="835" y="280"/>
       
   427                       <position x="835" y="575"/>
       
   428                       <position x="775" y="575"/>
       
   429                     </connection>
       
   430                   </connectionPointIn>
       
   431                 </variable>
       
   432               </inputVariables>
       
   433               <inOutVariables/>
       
   434               <outputVariables>
       
   435                 <variable formalParameter="OUT">
       
   436                   <connectionPointOut>
       
   437                     <relPosition x="80" y="30"/>
       
   438                   </connectionPointOut>
       
   439                 </variable>
       
   440               </outputVariables>
       
   441             </block>
       
   442             <inVariable localId="22" height="30" width="20">
       
   443               <position x="930" y="185"/>
       
   444               <connectionPointOut>
       
   445                 <relPosition x="20" y="15"/>
       
   446               </connectionPointOut>
       
   447               <expression>3</expression>
       
   448             </inVariable>
       
   449             <outVariable localId="23" height="35" width="125">
       
   450               <position x="1150" y="185"/>
       
   451               <connectionPointIn>
       
   452                 <relPosition x="0" y="15"/>
       
   453                 <connection refLocalId="21" formalParameter="OUT">
       
   454                   <position x="1150" y="200"/>
       
   455                   <position x="1065" y="200"/>
       
   456                 </connection>
       
   457               </connectionPointIn>
       
   458               <expression>pytest_var3</expression>
       
   459             </outVariable>
   291           </FBD>
   460           </FBD>
   292         </body>
   461         </body>
   293       </pou>
   462       </pou>
   294     </pous>
   463     </pous>
   295   </types>
   464   </types>