tests/wiimote/plc.xml
changeset 1157 72d14a74c643
child 1185 b36755d7c19e
equal deleted inserted replaced
1156:9708ed2a4ac2 1157:72d14a74c643
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project xmlns="http://www.plcopen.org/xml/tc6.xsd"
       
     3          xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd"
       
     4          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
     5          xmlns:xhtml="http://www.w3.org/1999/xhtml">
       
     6   <fileHeader companyName="Unknown"
       
     7               productName="Unnamed"
       
     8               productVersion="1"
       
     9               creationDateTime="2012-09-12T23:30:19"/>
       
    10   <contentHeader name="Unnamed"
       
    11                  modificationDateTime="2013-05-16T17:17:49">
       
    12     <coordinateInfo>
       
    13       <fbd>
       
    14         <scaling x="5" y="5"/>
       
    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="main" pouType="program">
       
    28         <interface>
       
    29           <localVars>
       
    30             <variable name="x">
       
    31               <type>
       
    32                 <INT/>
       
    33               </type>
       
    34             </variable>
       
    35             <variable name="y">
       
    36               <type>
       
    37                 <INT/>
       
    38               </type>
       
    39             </variable>
       
    40             <variable name="b1">
       
    41               <type>
       
    42                 <BYTE/>
       
    43               </type>
       
    44             </variable>
       
    45             <variable name="b0">
       
    46               <type>
       
    47                 <BYTE/>
       
    48               </type>
       
    49             </variable>
       
    50           </localVars>
       
    51           <externalVars>
       
    52             <variable name="WiiNunchuckStickX">
       
    53               <type>
       
    54                 <INT/>
       
    55               </type>
       
    56             </variable>
       
    57             <variable name="WiiNunchuckStickY">
       
    58               <type>
       
    59                 <INT/>
       
    60               </type>
       
    61             </variable>
       
    62             <variable name="WiiNunchuckButtons">
       
    63               <type>
       
    64                 <BYTE/>
       
    65               </type>
       
    66             </variable>
       
    67             <variable name="WiiButtons">
       
    68               <type>
       
    69                 <BYTE/>
       
    70               </type>
       
    71             </variable>
       
    72           </externalVars>
       
    73         </interface>
       
    74         <body>
       
    75           <FBD>
       
    76             <outVariable localId="1" height="30" width="20">
       
    77               <position x="345" y="40"/>
       
    78               <connectionPointIn>
       
    79                 <relPosition x="0" y="15"/>
       
    80                 <connection refLocalId="3">
       
    81                   <position x="345" y="55"/>
       
    82                   <position x="295" y="55"/>
       
    83                 </connection>
       
    84               </connectionPointIn>
       
    85               <expression>x</expression>
       
    86             </outVariable>
       
    87             <inVariable localId="3" height="30" width="150">
       
    88               <position x="145" y="40"/>
       
    89               <connectionPointOut>
       
    90                 <relPosition x="150" y="15"/>
       
    91               </connectionPointOut>
       
    92               <expression>WiiNunchuckStickX</expression>
       
    93             </inVariable>
       
    94             <inVariable localId="4" height="30" width="150">
       
    95               <position x="145" y="100"/>
       
    96               <connectionPointOut>
       
    97                 <relPosition x="150" y="15"/>
       
    98               </connectionPointOut>
       
    99               <expression>WiiNunchuckStickY</expression>
       
   100             </inVariable>
       
   101             <inVariable localId="5" height="30" width="155">
       
   102               <position x="115" y="175"/>
       
   103               <connectionPointOut>
       
   104                 <relPosition x="155" y="15"/>
       
   105               </connectionPointOut>
       
   106               <expression>WiiNunchuckButtons</expression>
       
   107             </inVariable>
       
   108             <inVariable localId="6" height="30" width="90">
       
   109               <position x="180" y="225"/>
       
   110               <connectionPointOut>
       
   111                 <relPosition x="90" y="15"/>
       
   112               </connectionPointOut>
       
   113               <expression>WiiButtons</expression>
       
   114             </inVariable>
       
   115             <outVariable localId="8" height="30" width="20">
       
   116               <position x="345" y="100"/>
       
   117               <connectionPointIn>
       
   118                 <relPosition x="0" y="15"/>
       
   119                 <connection refLocalId="4">
       
   120                   <position x="345" y="115"/>
       
   121                   <position x="295" y="115"/>
       
   122                 </connection>
       
   123               </connectionPointIn>
       
   124               <expression>y</expression>
       
   125             </outVariable>
       
   126             <outVariable localId="9" height="30" width="30">
       
   127               <position x="345" y="175"/>
       
   128               <connectionPointIn>
       
   129                 <relPosition x="0" y="15"/>
       
   130                 <connection refLocalId="5">
       
   131                   <position x="345" y="190"/>
       
   132                   <position x="270" y="190"/>
       
   133                 </connection>
       
   134               </connectionPointIn>
       
   135               <expression>b1</expression>
       
   136             </outVariable>
       
   137             <outVariable localId="10" height="30" width="30">
       
   138               <position x="345" y="225"/>
       
   139               <connectionPointIn>
       
   140                 <relPosition x="0" y="15"/>
       
   141                 <connection refLocalId="6">
       
   142                   <position x="345" y="240"/>
       
   143                   <position x="270" y="240"/>
       
   144                 </connection>
       
   145               </connectionPointIn>
       
   146               <expression>b0</expression>
       
   147             </outVariable>
       
   148           </FBD>
       
   149         </body>
       
   150         <documentation>
       
   151 <![CDATA[]]>
       
   152         </documentation>
       
   153       </pou>
       
   154     </pous>
       
   155   </types>
       
   156   <instances>
       
   157     <configurations>
       
   158       <configuration name="config">
       
   159         <resource name="resource1">
       
   160           <task name="tsk1" interval="T#1ms" priority="0">
       
   161             <pouInstance name="inst1" typeName="main"/>
       
   162           </task>
       
   163         </resource>
       
   164       </configuration>
       
   165     </configurations>
       
   166   </instances>
       
   167 </project>