py_ext/pous.xml
changeset 721 ecf4d203c4d4
parent 717 1c23952dbde1
child 1399 4c130dba8366
equal deleted inserted replaced
720:6be032177e2a 721:ecf4d203c4d4
       
     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="Beremiz"
       
     7               productName="Beremiz"
       
     8               productVersion="0.0"
       
     9               creationDateTime="2008-12-14T16:53:26"/>
       
    10   <contentHeader name="Beremiz non-standard POUs library"
       
    11                  modificationDateTime="2008-12-23T22:35:46">
       
    12     <coordinateInfo>
       
    13       <fbd>
       
    14         <scaling x="0" y="0"/>
       
    15       </fbd>
       
    16       <ld>
       
    17         <scaling x="0" y="0"/>
       
    18       </ld>
       
    19       <sfc>
       
    20         <scaling x="0" y="0"/>
       
    21       </sfc>
       
    22     </coordinateInfo>
       
    23   </contentHeader>
       
    24   <types>
       
    25     <dataTypes/>
       
    26     <pous>
       
    27       <pou name="python_eval" pouType="functionBlock">
       
    28         <interface>
       
    29           <inputVars>
       
    30             <variable name="TRIG">
       
    31               <type>
       
    32                 <BOOL/>
       
    33               </type>
       
    34             </variable>
       
    35             <variable name="CODE">
       
    36               <type>
       
    37                 <string/>
       
    38               </type>
       
    39             </variable>
       
    40           </inputVars>
       
    41           <outputVars>
       
    42             <variable name="ACK">
       
    43               <type>
       
    44                 <BOOL/>
       
    45               </type>
       
    46             </variable>
       
    47             <variable name="RESULT">
       
    48               <type>
       
    49                 <string/>
       
    50               </type>
       
    51             </variable>
       
    52           </outputVars>
       
    53           <localVars>
       
    54             <variable name="STATE">
       
    55               <type>
       
    56                 <DWORD/>
       
    57               </type>
       
    58             </variable>
       
    59             <variable name="BUFFER">
       
    60               <type>
       
    61                 <string/>
       
    62               </type>
       
    63             </variable>
       
    64             <variable name="PREBUFFER">
       
    65               <type>
       
    66                 <string/>
       
    67               </type>
       
    68             </variable>
       
    69             <variable name="TRIGM1">
       
    70               <type>
       
    71                 <BOOL/>
       
    72               </type>
       
    73             </variable>
       
    74             <variable name="TRIGGED">
       
    75               <type>
       
    76                 <BOOL/>
       
    77               </type>
       
    78             </variable>
       
    79           </localVars>
       
    80         </interface>
       
    81         <body>
       
    82           <ST>
       
    83 <![CDATA[{extern void __PythonEvalFB(int, PYTHON_EVAL*);__PythonEvalFB(0, data__);}]]>
       
    84           </ST>
       
    85         </body>
       
    86       </pou>
       
    87       <pou name="python_poll" pouType="functionBlock">
       
    88         <interface>
       
    89           <inputVars>
       
    90             <variable name="TRIG">
       
    91               <type>
       
    92                 <BOOL/>
       
    93               </type>
       
    94             </variable>
       
    95             <variable name="CODE">
       
    96               <type>
       
    97                 <string/>
       
    98               </type>
       
    99             </variable>
       
   100           </inputVars>
       
   101           <outputVars>
       
   102             <variable name="ACK">
       
   103               <type>
       
   104                 <BOOL/>
       
   105               </type>
       
   106             </variable>
       
   107             <variable name="RESULT">
       
   108               <type>
       
   109                 <string/>
       
   110               </type>
       
   111             </variable>
       
   112           </outputVars>
       
   113           <localVars>
       
   114             <variable name="STATE">
       
   115               <type>
       
   116                 <DWORD/>
       
   117               </type>
       
   118             </variable>
       
   119             <variable name="BUFFER">
       
   120               <type>
       
   121                 <string/>
       
   122               </type>
       
   123             </variable>
       
   124             <variable name="PREBUFFER">
       
   125               <type>
       
   126                 <string/>
       
   127               </type>
       
   128             </variable>
       
   129             <variable name="TRIGM1">
       
   130               <type>
       
   131                 <BOOL/>
       
   132               </type>
       
   133             </variable>
       
   134             <variable name="TRIGGED">
       
   135               <type>
       
   136                 <BOOL/>
       
   137               </type>
       
   138             </variable>
       
   139           </localVars>
       
   140         </interface>
       
   141         <body>
       
   142           <ST>
       
   143 <![CDATA[{extern void __PythonEvalFB(int, PYTHON_EVAL*);__PythonEvalFB(1,(PYTHON_EVAL*)(void*)data__);}]]>
       
   144           </ST>
       
   145         </body>
       
   146       </pou>
       
   147     <pou name="python_gear" pouType="functionBlock">
       
   148         <interface>
       
   149           <inputVars>
       
   150             <variable name="N">
       
   151               <type>
       
   152                 <USINT/>
       
   153               </type>
       
   154             </variable>
       
   155             <variable name="TRIG">
       
   156               <type>
       
   157                 <BOOL/>
       
   158               </type>
       
   159             </variable>
       
   160             <variable name="CODE">
       
   161               <type>
       
   162                 <string/>
       
   163               </type>
       
   164             </variable>
       
   165           </inputVars>
       
   166           <outputVars>
       
   167             <variable name="ACK">
       
   168               <type>
       
   169                 <BOOL/>
       
   170               </type>
       
   171             </variable>
       
   172             <variable name="RESULT">
       
   173               <type>
       
   174                 <string/>
       
   175               </type>
       
   176             </variable>
       
   177           </outputVars>
       
   178           <localVars>
       
   179             <variable name="py_eval">
       
   180               <type>
       
   181                 <derived name="python_eval"/>
       
   182               </type>
       
   183             </variable>
       
   184             <variable name="COUNTER">
       
   185               <type>
       
   186                 <USINT/>
       
   187               </type>
       
   188             </variable>
       
   189           </localVars>
       
   190         </interface>
       
   191         <body>
       
   192           <FBD>
       
   193             <block localId="1" width="125" height="110" typeName="python_eval" instanceName="py_eval">
       
   194               <position x="525" y="580"/>
       
   195               <inputVariables>
       
   196                 <variable formalParameter="TRIG">
       
   197                   <connectionPointIn>
       
   198                     <relPosition x="0" y="40"/>
       
   199                     <connection refLocalId="7" formalParameter="OUT">
       
   200                       <position x="525" y="620"/>
       
   201                       <position x="495" y="620"/>
       
   202                       <position x="495" y="575"/>
       
   203                       <position x="465" y="575"/>
       
   204                     </connection>
       
   205                   </connectionPointIn>
       
   206                 </variable>
       
   207                 <variable formalParameter="CODE">
       
   208                   <connectionPointIn>
       
   209                     <relPosition x="0" y="85"/>
       
   210                     <connection refLocalId="4">
       
   211                       <position x="525" y="665"/>
       
   212                       <position x="370" y="665"/>
       
   213                     </connection>
       
   214                   </connectionPointIn>
       
   215                 </variable>
       
   216               </inputVariables>
       
   217               <inOutVariables/>
       
   218               <outputVariables>
       
   219                 <variable formalParameter="ACK">
       
   220                   <connectionPointOut>
       
   221                     <relPosition x="125" y="40"/>
       
   222                   </connectionPointOut>
       
   223                 </variable>
       
   224                 <variable formalParameter="RESULT">
       
   225                   <connectionPointOut>
       
   226                     <relPosition x="125" y="85"/>
       
   227                   </connectionPointOut>
       
   228                 </variable>
       
   229               </outputVariables>
       
   230             </block>
       
   231             <inVariable localId="2" height="35" width="25">
       
   232               <position x="435" y="270"/>
       
   233               <connectionPointOut>
       
   234                 <relPosition x="25" y="15"/>
       
   235               </connectionPointOut>
       
   236               <expression>N</expression>
       
   237             </inVariable>
       
   238             <inVariable localId="3" height="35" width="55">
       
   239               <position x="275" y="585"/>
       
   240               <connectionPointOut>
       
   241                 <relPosition x="55" y="15"/>
       
   242               </connectionPointOut>
       
   243               <expression>TRIG</expression>
       
   244             </inVariable>
       
   245             <inVariable localId="4" height="35" width="55">
       
   246               <position x="315" y="650"/>
       
   247               <connectionPointOut>
       
   248                 <relPosition x="55" y="15"/>
       
   249               </connectionPointOut>
       
   250               <expression>CODE</expression>
       
   251             </inVariable>
       
   252             <outVariable localId="5" height="35" width="45">
       
   253               <position x="740" y="605"/>
       
   254               <connectionPointIn>
       
   255                 <relPosition x="0" y="15"/>
       
   256                 <connection refLocalId="1" formalParameter="ACK">
       
   257                   <position x="740" y="620"/>
       
   258                   <position x="650" y="620"/>
       
   259                 </connection>
       
   260               </connectionPointIn>
       
   261               <expression>ACK</expression>
       
   262             </outVariable>
       
   263             <outVariable localId="6" height="35" width="75">
       
   264               <position x="740" y="650"/>
       
   265               <connectionPointIn>
       
   266                 <relPosition x="0" y="15"/>
       
   267                 <connection refLocalId="1" formalParameter="RESULT">
       
   268                   <position x="740" y="665"/>
       
   269                   <position x="650" y="665"/>
       
   270                 </connection>
       
   271               </connectionPointIn>
       
   272               <expression>RESULT</expression>
       
   273             </outVariable>
       
   274             <block localId="7" width="80" height="65" typeName="AND">
       
   275               <position x="385" y="545"/>
       
   276               <inputVariables>
       
   277                 <variable formalParameter="IN1">
       
   278                   <connectionPointIn>
       
   279                     <relPosition x="0" y="30"/>
       
   280                     <connection refLocalId="13" formalParameter="OUT">
       
   281                       <position x="385" y="575"/>
       
   282                       <position x="335" y="575"/>
       
   283                       <position x="335" y="455"/>
       
   284                       <position x="625" y="455"/>
       
   285                       <position x="625" y="285"/>
       
   286                       <position x="615" y="285"/>
       
   287                     </connection>
       
   288                   </connectionPointIn>
       
   289                 </variable>
       
   290                 <variable formalParameter="IN2">
       
   291                   <connectionPointIn>
       
   292                     <relPosition x="0" y="55"/>
       
   293                     <connection refLocalId="3">
       
   294                       <position x="385" y="600"/>
       
   295                       <position x="330" y="600"/>
       
   296                     </connection>
       
   297                   </connectionPointIn>
       
   298                 </variable>
       
   299               </inputVariables>
       
   300               <inOutVariables/>
       
   301               <outputVariables>
       
   302                 <variable formalParameter="OUT">
       
   303                   <connectionPointOut>
       
   304                     <relPosition x="80" y="30"/>
       
   305                   </connectionPointOut>
       
   306                 </variable>
       
   307               </outputVariables>
       
   308             </block>
       
   309             <inVariable localId="9" height="35" width="85">
       
   310               <position x="240" y="330"/>
       
   311               <connectionPointOut>
       
   312                 <relPosition x="85" y="15"/>
       
   313               </connectionPointOut>
       
   314               <expression>COUNTER</expression>
       
   315             </inVariable>
       
   316             <block localId="10" width="80" height="65" typeName="ADD">
       
   317               <position x="380" y="330"/>
       
   318               <inputVariables>
       
   319                 <variable formalParameter="IN1">
       
   320                   <connectionPointIn>
       
   321                     <relPosition x="0" y="30"/>
       
   322                     <connection refLocalId="9">
       
   323                       <position x="380" y="360"/>
       
   324                       <position x="352" y="360"/>
       
   325                       <position x="352" y="345"/>
       
   326                       <position x="325" y="345"/>
       
   327                     </connection>
       
   328                   </connectionPointIn>
       
   329                 </variable>
       
   330                 <variable formalParameter="IN2">
       
   331                   <connectionPointIn>
       
   332                     <relPosition x="0" y="55"/>
       
   333                     <connection refLocalId="11">
       
   334                       <position x="380" y="385"/>
       
   335                       <position x="325" y="385"/>
       
   336                     </connection>
       
   337                   </connectionPointIn>
       
   338                 </variable>
       
   339               </inputVariables>
       
   340               <inOutVariables/>
       
   341               <outputVariables>
       
   342                 <variable formalParameter="OUT">
       
   343                   <connectionPointOut>
       
   344                     <relPosition x="80" y="30"/>
       
   345                   </connectionPointOut>
       
   346                 </variable>
       
   347               </outputVariables>
       
   348             </block>
       
   349             <inVariable localId="11" height="35" width="85">
       
   350               <position x="240" y="370"/>
       
   351               <connectionPointOut>
       
   352                 <relPosition x="85" y="15"/>
       
   353               </connectionPointOut>
       
   354               <expression>USINT#1</expression>
       
   355             </inVariable>
       
   356             <block localId="13" width="80" height="65" typeName="EQ">
       
   357               <position x="535" y="255"/>
       
   358               <inputVariables>
       
   359                 <variable formalParameter="IN1">
       
   360                   <connectionPointIn>
       
   361                     <relPosition x="0" y="30"/>
       
   362                     <connection refLocalId="2">
       
   363                       <position x="535" y="285"/>
       
   364                       <position x="460" y="285"/>
       
   365                     </connection>
       
   366                   </connectionPointIn>
       
   367                 </variable>
       
   368                 <variable formalParameter="IN2">
       
   369                   <connectionPointIn>
       
   370                     <relPosition x="0" y="55"/>
       
   371                     <connection refLocalId="10" formalParameter="OUT">
       
   372                       <position x="535" y="310"/>
       
   373                       <position x="497" y="310"/>
       
   374                       <position x="497" y="360"/>
       
   375                       <position x="460" y="360"/>
       
   376                     </connection>
       
   377                   </connectionPointIn>
       
   378                 </variable>
       
   379               </inputVariables>
       
   380               <inOutVariables/>
       
   381               <outputVariables>
       
   382                 <variable formalParameter="OUT">
       
   383                   <connectionPointOut>
       
   384                     <relPosition x="80" y="30"/>
       
   385                   </connectionPointOut>
       
   386                 </variable>
       
   387               </outputVariables>
       
   388             </block>
       
   389             <block localId="15" width="80" height="135" typeName="SEL">
       
   390               <position x="785" y="245"/>
       
   391               <inputVariables>
       
   392                 <variable formalParameter="G">
       
   393                   <connectionPointIn>
       
   394                     <relPosition x="0" y="40"/>
       
   395                     <connection refLocalId="13" formalParameter="OUT">
       
   396                       <position x="785" y="285"/>
       
   397                       <position x="615" y="285"/>
       
   398                     </connection>
       
   399                   </connectionPointIn>
       
   400                 </variable>
       
   401                 <variable formalParameter="IN0">
       
   402                   <connectionPointIn>
       
   403                     <relPosition x="0" y="75"/>
       
   404                     <connection refLocalId="10" formalParameter="OUT">
       
   405                       <position x="785" y="320"/>
       
   406                       <position x="650" y="320"/>
       
   407                       <position x="650" y="360"/>
       
   408                       <position x="460" y="360"/>
       
   409                     </connection>
       
   410                   </connectionPointIn>
       
   411                 </variable>
       
   412                 <variable formalParameter="IN1">
       
   413                   <connectionPointIn>
       
   414                     <relPosition x="0" y="115"/>
       
   415                     <connection refLocalId="16">
       
   416                       <position x="785" y="360"/>
       
   417                       <position x="760" y="360"/>
       
   418                     </connection>
       
   419                   </connectionPointIn>
       
   420                 </variable>
       
   421               </inputVariables>
       
   422               <inOutVariables/>
       
   423               <outputVariables>
       
   424                 <variable formalParameter="OUT">
       
   425                   <connectionPointOut>
       
   426                     <relPosition x="80" y="40"/>
       
   427                   </connectionPointOut>
       
   428                 </variable>
       
   429               </outputVariables>
       
   430             </block>
       
   431             <inVariable localId="16" height="35" width="85">
       
   432               <position x="675" y="345"/>
       
   433               <connectionPointOut>
       
   434                 <relPosition x="85" y="15"/>
       
   435               </connectionPointOut>
       
   436               <expression>USINT#0</expression>
       
   437             </inVariable>
       
   438             <outVariable localId="17" height="35" width="85">
       
   439               <position x="905" y="270"/>
       
   440               <connectionPointIn>
       
   441                 <relPosition x="0" y="15"/>
       
   442                 <connection refLocalId="15" formalParameter="OUT">
       
   443                   <position x="905" y="285"/>
       
   444                   <position x="865" y="285"/>
       
   445                 </connection>
       
   446               </connectionPointIn>
       
   447               <expression>COUNTER</expression>
       
   448             </outVariable>
       
   449           </FBD>
       
   450         </body>
       
   451       </pou>
       
   452     </pous>
       
   453   </types>
       
   454   <instances>
       
   455     <configurations/>
       
   456   </instances>
       
   457 </project>