exemples/csv_read/plc.xml
branchwxPython4
changeset 3711 f68449d64d1c
parent 3708 2299f25779ce
equal deleted inserted replaced
3710:51c2d434e10e 3711:f68449d64d1c
       
     1 <?xml version='1.0' encoding='utf-8'?>
       
     2 <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">
       
     3   <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2022-12-09T12:13:26"/>
       
     4   <contentHeader name="Unnamed" modificationDateTime="2022-12-16T11:30:15">
       
     5     <coordinateInfo>
       
     6       <fbd>
       
     7         <scaling x="5" y="5"/>
       
     8       </fbd>
       
     9       <ld>
       
    10         <scaling x="0" y="0"/>
       
    11       </ld>
       
    12       <sfc>
       
    13         <scaling x="0" y="0"/>
       
    14       </sfc>
       
    15     </coordinateInfo>
       
    16   </contentHeader>
       
    17   <types>
       
    18     <dataTypes/>
       
    19     <pous>
       
    20       <pou name="program0" pouType="program">
       
    21         <interface>
       
    22           <localVars>
       
    23             <variable name="CSV_NAME_0">
       
    24               <type>
       
    25                 <derived name="HMI_STRING"/>
       
    26               </type>
       
    27               <initialValue>
       
    28                 <simpleValue value="'my_int_csv.csv'"/>
       
    29               </initialValue>
       
    30             </variable>
       
    31             <variable name="CSV_NAME_1">
       
    32               <type>
       
    33                 <derived name="HMI_STRING"/>
       
    34               </type>
       
    35               <initialValue>
       
    36                 <simpleValue value="'my_str_csv.csv'"/>
       
    37               </initialValue>
       
    38             </variable>
       
    39             <variable name="CSV_ROWSTR">
       
    40               <type>
       
    41                 <derived name="HMI_STRING"/>
       
    42               </type>
       
    43               <initialValue>
       
    44                 <simpleValue value="'Recipe 5'"/>
       
    45               </initialValue>
       
    46             </variable>
       
    47             <variable name="CSV_COLSTR">
       
    48               <type>
       
    49                 <derived name="HMI_STRING"/>
       
    50               </type>
       
    51               <initialValue>
       
    52                 <simpleValue value="'Ingredient D'"/>
       
    53               </initialValue>
       
    54             </variable>
       
    55             <variable name="CSV_ROWIDX">
       
    56               <type>
       
    57                 <derived name="HMI_INT"/>
       
    58               </type>
       
    59               <initialValue>
       
    60                 <simpleValue value="5"/>
       
    61               </initialValue>
       
    62             </variable>
       
    63             <variable name="CSV_COLIDX">
       
    64               <type>
       
    65                 <derived name="HMI_INT"/>
       
    66               </type>
       
    67               <initialValue>
       
    68                 <simpleValue value="4"/>
       
    69               </initialValue>
       
    70             </variable>
       
    71             <variable name="csv_read_by_string0">
       
    72               <type>
       
    73                 <derived name="csv_read_by_string"/>
       
    74               </type>
       
    75             </variable>
       
    76             <variable name="csv_read_by_int0">
       
    77               <type>
       
    78                 <derived name="csv_read_by_int"/>
       
    79               </type>
       
    80             </variable>
       
    81             <variable name="csv_reload0">
       
    82               <type>
       
    83                 <derived name="csv_reload"/>
       
    84               </type>
       
    85             </variable>
       
    86             <variable name="CSV_RES_0">
       
    87               <type>
       
    88                 <derived name="HMI_STRING"/>
       
    89               </type>
       
    90             </variable>
       
    91             <variable name="CSV_RES_1">
       
    92               <type>
       
    93                 <derived name="HMI_STRING"/>
       
    94               </type>
       
    95             </variable>
       
    96             <variable name="CSV_ACK_0">
       
    97               <type>
       
    98                 <derived name="HMI_BOOL"/>
       
    99               </type>
       
   100             </variable>
       
   101             <variable name="CSV_ACK_1">
       
   102               <type>
       
   103                 <derived name="HMI_BOOL"/>
       
   104               </type>
       
   105             </variable>
       
   106             <variable name="CSV_RELOAD_BTN">
       
   107               <type>
       
   108                 <derived name="HMI_BOOL"/>
       
   109               </type>
       
   110             </variable>
       
   111           </localVars>
       
   112         </interface>
       
   113         <body>
       
   114           <FBD>
       
   115             <block localId="1" typeName="csv_read_by_string" instanceName="csv_read_by_string0" executionOrderId="0" height="100" width="154">
       
   116               <position x="450" y="170"/>
       
   117               <inputVariables>
       
   118                 <variable formalParameter="FILE_NAME">
       
   119                   <connectionPointIn>
       
   120                     <relPosition x="0" y="35"/>
       
   121                     <connection refLocalId="7">
       
   122                       <position x="450" y="205"/>
       
   123                       <position x="390" y="205"/>
       
   124                     </connection>
       
   125                   </connectionPointIn>
       
   126                 </variable>
       
   127                 <variable formalParameter="ROW">
       
   128                   <connectionPointIn>
       
   129                     <relPosition x="0" y="60"/>
       
   130                     <connection refLocalId="8">
       
   131                       <position x="450" y="230"/>
       
   132                       <position x="390" y="230"/>
       
   133                     </connection>
       
   134                   </connectionPointIn>
       
   135                 </variable>
       
   136                 <variable formalParameter="COLUMN">
       
   137                   <connectionPointIn>
       
   138                     <relPosition x="0" y="85"/>
       
   139                     <connection refLocalId="9">
       
   140                       <position x="450" y="255"/>
       
   141                       <position x="390" y="255"/>
       
   142                     </connection>
       
   143                   </connectionPointIn>
       
   144                 </variable>
       
   145               </inputVariables>
       
   146               <inOutVariables/>
       
   147               <outputVariables>
       
   148                 <variable formalParameter="ACK">
       
   149                   <connectionPointOut>
       
   150                     <relPosition x="154" y="35"/>
       
   151                   </connectionPointOut>
       
   152                 </variable>
       
   153                 <variable formalParameter="RESULT">
       
   154                   <connectionPointOut>
       
   155                     <relPosition x="154" y="60"/>
       
   156                   </connectionPointOut>
       
   157                 </variable>
       
   158               </outputVariables>
       
   159             </block>
       
   160             <block localId="2" typeName="csv_read_by_int" instanceName="csv_read_by_int0" executionOrderId="0" height="100" width="155">
       
   161               <position x="450" y="40"/>
       
   162               <inputVariables>
       
   163                 <variable formalParameter="FILE_NAME">
       
   164                   <connectionPointIn>
       
   165                     <relPosition x="0" y="35"/>
       
   166                     <connection refLocalId="4">
       
   167                       <position x="450" y="75"/>
       
   168                       <position x="390" y="75"/>
       
   169                     </connection>
       
   170                   </connectionPointIn>
       
   171                 </variable>
       
   172                 <variable formalParameter="ROW">
       
   173                   <connectionPointIn>
       
   174                     <relPosition x="0" y="60"/>
       
   175                     <connection refLocalId="5">
       
   176                       <position x="450" y="100"/>
       
   177                       <position x="390" y="100"/>
       
   178                     </connection>
       
   179                   </connectionPointIn>
       
   180                 </variable>
       
   181                 <variable formalParameter="COLUMN">
       
   182                   <connectionPointIn>
       
   183                     <relPosition x="0" y="85"/>
       
   184                     <connection refLocalId="6">
       
   185                       <position x="450" y="125"/>
       
   186                       <position x="390" y="125"/>
       
   187                     </connection>
       
   188                   </connectionPointIn>
       
   189                 </variable>
       
   190               </inputVariables>
       
   191               <inOutVariables/>
       
   192               <outputVariables>
       
   193                 <variable formalParameter="ACK">
       
   194                   <connectionPointOut>
       
   195                     <relPosition x="155" y="35"/>
       
   196                   </connectionPointOut>
       
   197                 </variable>
       
   198                 <variable formalParameter="RESULT">
       
   199                   <connectionPointOut>
       
   200                     <relPosition x="155" y="60"/>
       
   201                   </connectionPointOut>
       
   202                 </variable>
       
   203               </outputVariables>
       
   204             </block>
       
   205             <block localId="3" typeName="csv_reload" instanceName="csv_reload0" executionOrderId="0" height="60" width="135">
       
   206               <position x="470" y="334"/>
       
   207               <inputVariables>
       
   208                 <variable formalParameter="TRIG">
       
   209                   <connectionPointIn>
       
   210                     <relPosition x="0" y="31"/>
       
   211                     <connection refLocalId="14">
       
   212                       <position x="470" y="365"/>
       
   213                       <position x="425" y="365"/>
       
   214                     </connection>
       
   215                   </connectionPointIn>
       
   216                 </variable>
       
   217               </inputVariables>
       
   218               <inOutVariables/>
       
   219               <outputVariables>
       
   220                 <variable formalParameter="ACK">
       
   221                   <connectionPointOut>
       
   222                     <relPosition x="135" y="31"/>
       
   223                   </connectionPointOut>
       
   224                 </variable>
       
   225                 <variable formalParameter="RESULT">
       
   226                   <connectionPointOut>
       
   227                     <relPosition x="135" y="51"/>
       
   228                   </connectionPointOut>
       
   229                 </variable>
       
   230               </outputVariables>
       
   231             </block>
       
   232             <inVariable localId="4" executionOrderId="0" height="30" width="110" negated="false">
       
   233               <position x="280" y="60"/>
       
   234               <connectionPointOut>
       
   235                 <relPosition x="110" y="15"/>
       
   236               </connectionPointOut>
       
   237               <expression>CSV_NAME_0</expression>
       
   238             </inVariable>
       
   239             <inVariable localId="5" executionOrderId="0" height="25" width="110" negated="false">
       
   240               <position x="280" y="90"/>
       
   241               <connectionPointOut>
       
   242                 <relPosition x="110" y="10"/>
       
   243               </connectionPointOut>
       
   244               <expression>CSV_ROWIDX</expression>
       
   245             </inVariable>
       
   246             <inVariable localId="6" executionOrderId="0" height="25" width="110" negated="false">
       
   247               <position x="280" y="115"/>
       
   248               <connectionPointOut>
       
   249                 <relPosition x="110" y="10"/>
       
   250               </connectionPointOut>
       
   251               <expression>CSV_COLIDX</expression>
       
   252             </inVariable>
       
   253             <inVariable localId="7" executionOrderId="0" height="30" width="110" negated="false">
       
   254               <position x="280" y="190"/>
       
   255               <connectionPointOut>
       
   256                 <relPosition x="110" y="15"/>
       
   257               </connectionPointOut>
       
   258               <expression>CSV_NAME_1</expression>
       
   259             </inVariable>
       
   260             <inVariable localId="8" executionOrderId="0" height="25" width="110" negated="false">
       
   261               <position x="280" y="220"/>
       
   262               <connectionPointOut>
       
   263                 <relPosition x="110" y="10"/>
       
   264               </connectionPointOut>
       
   265               <expression>CSV_ROWSTR</expression>
       
   266             </inVariable>
       
   267             <inVariable localId="9" executionOrderId="0" height="25" width="110" negated="false">
       
   268               <position x="280" y="245"/>
       
   269               <connectionPointOut>
       
   270                 <relPosition x="110" y="10"/>
       
   271               </connectionPointOut>
       
   272               <expression>CSV_COLSTR</expression>
       
   273             </inVariable>
       
   274             <outVariable localId="10" executionOrderId="0" height="25" width="82" negated="false">
       
   275               <position x="645" y="90"/>
       
   276               <connectionPointIn>
       
   277                 <relPosition x="0" y="10"/>
       
   278                 <connection refLocalId="2" formalParameter="RESULT">
       
   279                   <position x="645" y="100"/>
       
   280                   <position x="605" y="100"/>
       
   281                 </connection>
       
   282               </connectionPointIn>
       
   283               <expression>CSV_RES_0</expression>
       
   284             </outVariable>
       
   285             <outVariable localId="11" executionOrderId="0" height="25" width="82" negated="false">
       
   286               <position x="645" y="65"/>
       
   287               <connectionPointIn>
       
   288                 <relPosition x="0" y="10"/>
       
   289                 <connection refLocalId="2" formalParameter="ACK">
       
   290                   <position x="645" y="75"/>
       
   291                   <position x="605" y="75"/>
       
   292                 </connection>
       
   293               </connectionPointIn>
       
   294               <expression>CSV_ACK_0</expression>
       
   295             </outVariable>
       
   296             <outVariable localId="12" executionOrderId="0" height="25" width="82" negated="false">
       
   297               <position x="645" y="195"/>
       
   298               <connectionPointIn>
       
   299                 <relPosition x="0" y="10"/>
       
   300                 <connection refLocalId="1" formalParameter="ACK">
       
   301                   <position x="645" y="205"/>
       
   302                   <position x="604" y="205"/>
       
   303                 </connection>
       
   304               </connectionPointIn>
       
   305               <expression>CSV_ACK_1</expression>
       
   306             </outVariable>
       
   307             <outVariable localId="13" executionOrderId="0" height="25" width="82" negated="false">
       
   308               <position x="645" y="220"/>
       
   309               <connectionPointIn>
       
   310                 <relPosition x="0" y="10"/>
       
   311                 <connection refLocalId="1" formalParameter="RESULT">
       
   312                   <position x="645" y="230"/>
       
   313                   <position x="604" y="230"/>
       
   314                 </connection>
       
   315               </connectionPointIn>
       
   316               <expression>CSV_RES_1</expression>
       
   317             </outVariable>
       
   318             <inVariable localId="14" executionOrderId="0" height="25" width="125" negated="false">
       
   319               <position x="300" y="355"/>
       
   320               <connectionPointOut>
       
   321                 <relPosition x="125" y="10"/>
       
   322               </connectionPointOut>
       
   323               <expression>CSV_RELOAD_BTN</expression>
       
   324             </inVariable>
       
   325           </FBD>
       
   326         </body>
       
   327       </pou>
       
   328     </pous>
       
   329   </types>
       
   330   <instances>
       
   331     <configurations>
       
   332       <configuration name="config">
       
   333         <resource name="resource1">
       
   334           <task name="task0" priority="0" interval="T#20ms">
       
   335             <pouInstance name="instance0" typeName="program0"/>
       
   336           </task>
       
   337         </resource>
       
   338       </configuration>
       
   339     </configurations>
       
   340   </instances>
       
   341 </project>