tests/genericmake/plc.xml
branchwxPython4
changeset 3422 700b39cb4525
parent 3405 fdc12f7d27c8
parent 3416 53c66c4aefa3
child 3423 84afcc0ebadd
equal deleted inserted replaced
3405:fdc12f7d27c8 3422:700b39cb4525
     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="2014-01-19T11:14:47" contentDescription="This example shows how you can customize build process by using 'make'.&#10;"/>
       
     4   <contentHeader name="Makefile Example" modificationDateTime="2018-08-24T13:12:10">
       
     5     <coordinateInfo>
       
     6       <fbd>
       
     7         <scaling x="0" y="0"/>
       
     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="LocalVara">
       
    24               <type>
       
    25                 <INT/>
       
    26               </type>
       
    27             </variable>
       
    28             <variable name="LocalVarb">
       
    29               <type>
       
    30                 <INT/>
       
    31               </type>
       
    32             </variable>
       
    33           </localVars>
       
    34         </interface>
       
    35         <body>
       
    36           <FBD>
       
    37             <inVariable localId="1" executionOrderId="0" height="30" width="77" negated="false">
       
    38               <position x="52" y="424"/>
       
    39               <connectionPointOut>
       
    40                 <relPosition x="77" y="15"/>
       
    41               </connectionPointOut>
       
    42               <expression>LocalVara</expression>
       
    43             </inVariable>
       
    44             <outVariable localId="2" executionOrderId="0" height="30" width="77" negated="false">
       
    45               <position x="167" y="424"/>
       
    46               <connectionPointIn>
       
    47                 <relPosition x="0" y="15"/>
       
    48                 <connection refLocalId="1">
       
    49                   <position x="167" y="439"/>
       
    50                   <position x="129" y="439"/>
       
    51                 </connection>
       
    52               </connectionPointIn>
       
    53               <expression>LocalVarb</expression>
       
    54             </outVariable>
       
    55             <comment localId="3" height="385" width="760">
       
    56               <position x="32" y="23"/>
       
    57               <content>
       
    58                 <xhtml:p><![CDATA[This example shows how you can customize build process by using 'make'.
       
    59 
       
    60 Sometimes special steps need to be done to build entire project.
       
    61 But it's not necessary to create another target in Beremiz every time you need to customize something in build process.  Just use for that 'Generic' target and describe all necessary steps in Makefile. 
       
    62 
       
    63 For example, you can 
       
    64  - preprocess generated by Beremiz C source files, 
       
    65  - do some fancy source code transformation using any tools you want, 
       
    66  - use any compiler you want,
       
    67  - call static analyzers,
       
    68  - run integration tests on the project,
       
    69  - upload source code to external build server,
       
    70  - upload to the target and compile it there,
       
    71  - flash/transfer your compiled binary to the target,
       
    72  and much much more.
       
    73 ]]></xhtml:p>
       
    74               </content>
       
    75             </comment>
       
    76           </FBD>
       
    77         </body>
       
    78       </pou>
       
    79     </pous>
       
    80   </types>
       
    81   <instances>
       
    82     <configurations>
       
    83       <configuration name="config">
       
    84         <resource name="resource1">
       
    85           <task name="Tsk" priority="0" interval="T#100ms">
       
    86             <pouInstance name="Inst" typeName="program0"/>
       
    87           </task>
       
    88         </resource>
       
    89       </configuration>
       
    90     </configurations>
       
    91   </instances>
       
    92 </project>