tests/wiimote/plc.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 28 Apr 2016 13:05:57 +0300
changeset 1507 d7f474d10210
parent 1185 b36755d7c19e
child 1689 db7fd90d245c
permissions -rw-r--r--
fix issue with sometimes wrong return code of ProcessLogger


As a result of wrong return code Beremiz gives folowing traceback:
Traceback (most recent call last):
File "./Beremiz.py", line 850, in OnMenu
getattr(self.CTR, method)()
File "/home/developer/WorkData/PLC/beremiz/beremiz/ProjectController.py", line 925, in _Build
IECGenRes = self._Generate_SoftPLC()
File "/home/developer/WorkData/PLC/beremiz/beremiz/ProjectController.py", line 568, in _Generate_SoftPLC
return self._Compile_ST_to_SoftPLC()
File "/home/developer/WorkData/PLC/beremiz/beremiz/ProjectController.py", line 661, in _Compile_ST_to_SoftPLC
C_files.remove("POUS.c")
ValueError: list.remove(x): x not in list

The problem is that both threads (for reading stdout and stderr) call self.Proc.poll(),
that updates internal returncode field. This call is done without any locking and the first thread gets correct result,
but other gets 0 as retval. If 0 gets thread, that afterwards calls callback finish, then wrong return code is returned
to the parent. Now only the thread with a callback polls for the return code, other thread just checked local value.

Additionally function spin() waits now until all threads finish reading their pipes, so the results are always correct.
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     2
<project xmlns="http://www.plcopen.org/xml/tc6.xsd"
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     3
         xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd"
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     4
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     5
         xmlns:xhtml="http://www.w3.org/1999/xhtml">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     6
  <fileHeader companyName="Unknown"
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     7
              productName="Unnamed"
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     8
              productVersion="1"
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
     9
              creationDateTime="2012-09-12T23:30:19"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    10
  <contentHeader name="Unnamed"
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    11
                 modificationDateTime="2013-05-28T18:28:14">
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    12
    <coordinateInfo>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    13
      <fbd>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    14
        <scaling x="5" y="5"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    15
      </fbd>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    16
      <ld>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    17
        <scaling x="0" y="0"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    18
      </ld>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    19
      <sfc>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    20
        <scaling x="0" y="0"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    21
      </sfc>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    22
    </coordinateInfo>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    23
  </contentHeader>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    24
  <types>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    25
    <dataTypes/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    26
    <pous>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    27
      <pou name="main" pouType="program">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    28
        <interface>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    29
          <localVars>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    30
            <variable name="x">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    31
              <type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    32
                <INT/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    33
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    34
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    35
            <variable name="y">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    36
              <type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    37
                <INT/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    38
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    39
            </variable>
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    40
            <variable name="a">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    41
              <type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    42
                <INT/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    43
              </type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    44
            </variable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    45
            <variable name="b">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    46
              <type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    47
                <INT/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    48
              </type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    49
            </variable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    50
            <variable name="c">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    51
              <type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    52
                <INT/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    53
              </type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    54
            </variable>
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    55
            <variable name="b1">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    56
              <type>
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    57
                <WORD/>
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    58
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    59
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    60
            <variable name="b0">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    61
              <type>
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    62
                <WORD/>
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    63
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    64
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    65
          </localVars>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    66
          <externalVars>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    67
            <variable name="WiiNunchuckStickX">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    68
              <type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    69
                <INT/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    70
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    71
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    72
            <variable name="WiiNunchuckStickY">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    73
              <type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    74
                <INT/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    75
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    76
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    77
            <variable name="WiiNunchuckButtons">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    78
              <type>
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    79
                <WORD/>
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    80
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    81
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    82
            <variable name="WiiButtons">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
    83
              <type>
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    84
                <WORD/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    85
              </type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    86
            </variable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    87
            <variable name="WiiNunchuckAccX">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    88
              <type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    89
                <INT/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    90
              </type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    91
            </variable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    92
            <variable name="WiiNunchuckAccY">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    93
              <type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    94
                <INT/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    95
              </type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    96
            </variable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    97
            <variable name="WiiNunchuckAccZ">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    98
              <type>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
    99
                <INT/>
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   100
              </type>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   101
            </variable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   102
          </externalVars>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   103
        </interface>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   104
        <body>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   105
          <FBD>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   106
            <outVariable localId="1" height="30" width="20">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   107
              <position x="345" y="40"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   108
              <connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   109
                <relPosition x="0" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   110
                <connection refLocalId="3">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   111
                  <position x="345" y="55"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   112
                  <position x="295" y="55"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   113
                </connection>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   114
              </connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   115
              <expression>x</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   116
            </outVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   117
            <inVariable localId="3" height="30" width="150">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   118
              <position x="145" y="40"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   119
              <connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   120
                <relPosition x="150" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   121
              </connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   122
              <expression>WiiNunchuckStickX</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   123
            </inVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   124
            <inVariable localId="4" height="30" width="150">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   125
              <position x="145" y="100"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   126
              <connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   127
                <relPosition x="150" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   128
              </connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   129
              <expression>WiiNunchuckStickY</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   130
            </inVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   131
            <inVariable localId="5" height="30" width="155">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   132
              <position x="115" y="175"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   133
              <connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   134
                <relPosition x="155" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   135
              </connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   136
              <expression>WiiNunchuckButtons</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   137
            </inVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   138
            <inVariable localId="6" height="30" width="90">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   139
              <position x="180" y="225"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   140
              <connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   141
                <relPosition x="90" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   142
              </connectionPointOut>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   143
              <expression>WiiButtons</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   144
            </inVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   145
            <outVariable localId="8" height="30" width="20">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   146
              <position x="345" y="100"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   147
              <connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   148
                <relPosition x="0" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   149
                <connection refLocalId="4">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   150
                  <position x="345" y="115"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   151
                  <position x="295" y="115"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   152
                </connection>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   153
              </connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   154
              <expression>y</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   155
            </outVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   156
            <outVariable localId="9" height="30" width="30">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   157
              <position x="345" y="175"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   158
              <connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   159
                <relPosition x="0" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   160
                <connection refLocalId="5">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   161
                  <position x="345" y="190"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   162
                  <position x="270" y="190"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   163
                </connection>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   164
              </connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   165
              <expression>b1</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   166
            </outVariable>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   167
            <outVariable localId="10" height="30" width="30">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   168
              <position x="345" y="225"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   169
              <connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   170
                <relPosition x="0" y="15"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   171
                <connection refLocalId="6">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   172
                  <position x="345" y="240"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   173
                  <position x="270" y="240"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   174
                </connection>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   175
              </connectionPointIn>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   176
              <expression>b0</expression>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   177
            </outVariable>
1185
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   178
            <inVariable localId="11" height="30" width="135">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   179
              <position x="135" y="295"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   180
              <connectionPointOut>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   181
                <relPosition x="135" y="15"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   182
              </connectionPointOut>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   183
              <expression>WiiNunchuckAccX</expression>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   184
            </inVariable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   185
            <inVariable localId="12" height="30" width="135">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   186
              <position x="135" y="340"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   187
              <connectionPointOut>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   188
                <relPosition x="135" y="15"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   189
              </connectionPointOut>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   190
              <expression>WiiNunchuckAccY</expression>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   191
            </inVariable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   192
            <inVariable localId="13" height="30" width="130">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   193
              <position x="140" y="385"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   194
              <connectionPointOut>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   195
                <relPosition x="130" y="15"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   196
              </connectionPointOut>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   197
              <expression>WiiNunchuckAccZ</expression>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   198
            </inVariable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   199
            <outVariable localId="14" height="30" width="20">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   200
              <position x="345" y="295"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   201
              <connectionPointIn>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   202
                <relPosition x="0" y="15"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   203
                <connection refLocalId="11">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   204
                  <position x="345" y="310"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   205
                  <position x="270" y="310"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   206
                </connection>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   207
              </connectionPointIn>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   208
              <expression>a</expression>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   209
            </outVariable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   210
            <outVariable localId="15" height="30" width="20">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   211
              <position x="345" y="340"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   212
              <connectionPointIn>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   213
                <relPosition x="0" y="15"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   214
                <connection refLocalId="12">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   215
                  <position x="345" y="355"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   216
                  <position x="270" y="355"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   217
                </connection>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   218
              </connectionPointIn>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   219
              <expression>b</expression>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   220
            </outVariable>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   221
            <outVariable localId="16" height="30" width="20">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   222
              <position x="345" y="385"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   223
              <connectionPointIn>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   224
                <relPosition x="0" y="15"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   225
                <connection refLocalId="13">
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   226
                  <position x="345" y="400"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   227
                  <position x="270" y="400"/>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   228
                </connection>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   229
              </connectionPointIn>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   230
              <expression>c</expression>
b36755d7c19e Updated wiimote example. Now include nunchuck accel, and buttons are on 16bits
Edouard Tisserant
parents: 1157
diff changeset
   231
            </outVariable>
1157
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   232
          </FBD>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   233
        </body>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   234
        <documentation>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   235
<![CDATA[]]>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   236
        </documentation>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   237
      </pou>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   238
    </pous>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   239
  </types>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   240
  <instances>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   241
    <configurations>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   242
      <configuration name="config">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   243
        <resource name="resource1">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   244
          <task name="tsk1" interval="T#1ms" priority="0">
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   245
            <pouInstance name="inst1" typeName="main"/>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   246
          </task>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   247
        </resource>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   248
      </configuration>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   249
    </configurations>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   250
  </instances>
72d14a74c643 Added wiimote input example using python-cwiid and python PLC global variable access
Edouard Tisserant
parents:
diff changeset
   251
</project>