andrej@1689: <?xml version='1.0' encoding='utf-8'?> andrej@1689: <project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201"> andrej@1689: <fileHeader companyName="Beremiz" productName="Beremiz" productVersion="1" creationDateTime="2012-09-12T23:30:19"/> andrej@1689: <contentHeader name="Wiimote example" modificationDateTime="2017-06-06T13:10:31"> Edouard@1157: <coordinateInfo> Edouard@1157: <fbd> Edouard@1157: <scaling x="5" y="5"/> Edouard@1157: </fbd> Edouard@1157: <ld> Edouard@1157: <scaling x="0" y="0"/> Edouard@1157: </ld> Edouard@1157: <sfc> Edouard@1157: <scaling x="0" y="0"/> Edouard@1157: </sfc> Edouard@1157: </coordinateInfo> Edouard@1157: </contentHeader> Edouard@1157: <types> Edouard@1157: <dataTypes/> Edouard@1157: <pous> Edouard@1157: <pou name="main" pouType="program"> Edouard@1157: <interface> Edouard@1157: <localVars> Edouard@1157: <variable name="x"> Edouard@1157: <type> Edouard@1157: <INT/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: <variable name="y"> Edouard@1157: <type> Edouard@1157: <INT/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1185: <variable name="a"> Edouard@1185: <type> Edouard@1185: <INT/> Edouard@1185: </type> Edouard@1185: </variable> Edouard@1185: <variable name="b"> Edouard@1185: <type> Edouard@1185: <INT/> Edouard@1185: </type> Edouard@1185: </variable> Edouard@1185: <variable name="c"> Edouard@1185: <type> Edouard@1185: <INT/> Edouard@1185: </type> Edouard@1185: </variable> Edouard@1157: <variable name="b1"> Edouard@1157: <type> Edouard@1185: <WORD/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: <variable name="b0"> Edouard@1157: <type> Edouard@1185: <WORD/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: </localVars> Edouard@1157: <externalVars> Edouard@1157: <variable name="WiiNunchuckStickX"> Edouard@1157: <type> Edouard@1157: <INT/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: <variable name="WiiNunchuckStickY"> Edouard@1157: <type> Edouard@1157: <INT/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: <variable name="WiiNunchuckButtons"> Edouard@1157: <type> Edouard@1185: <WORD/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: <variable name="WiiButtons"> Edouard@1157: <type> Edouard@1185: <WORD/> Edouard@1185: </type> Edouard@1185: </variable> Edouard@1185: <variable name="WiiNunchuckAccX"> Edouard@1185: <type> Edouard@1185: <INT/> Edouard@1185: </type> Edouard@1185: </variable> Edouard@1185: <variable name="WiiNunchuckAccY"> Edouard@1185: <type> Edouard@1185: <INT/> Edouard@1185: </type> Edouard@1185: </variable> Edouard@1185: <variable name="WiiNunchuckAccZ"> Edouard@1185: <type> Edouard@1185: <INT/> Edouard@1157: </type> Edouard@1157: </variable> Edouard@1157: </externalVars> Edouard@1157: </interface> Edouard@1157: <body> Edouard@1157: <FBD> Edouard@1157: <outVariable localId="1" height="30" width="20"> Edouard@1157: <position x="345" y="40"/> Edouard@1157: <connectionPointIn> Edouard@1157: <relPosition x="0" y="15"/> Edouard@1157: <connection refLocalId="3"> Edouard@1157: <position x="345" y="55"/> Edouard@1157: <position x="295" y="55"/> Edouard@1157: </connection> Edouard@1157: </connectionPointIn> Edouard@1157: <expression>x</expression> Edouard@1157: </outVariable> Edouard@1157: <inVariable localId="3" height="30" width="150"> Edouard@1157: <position x="145" y="40"/> Edouard@1157: <connectionPointOut> Edouard@1157: <relPosition x="150" y="15"/> Edouard@1157: </connectionPointOut> Edouard@1157: <expression>WiiNunchuckStickX</expression> Edouard@1157: </inVariable> Edouard@1157: <inVariable localId="4" height="30" width="150"> Edouard@1157: <position x="145" y="100"/> Edouard@1157: <connectionPointOut> Edouard@1157: <relPosition x="150" y="15"/> Edouard@1157: </connectionPointOut> Edouard@1157: <expression>WiiNunchuckStickY</expression> Edouard@1157: </inVariable> Edouard@1157: <inVariable localId="5" height="30" width="155"> Edouard@1157: <position x="115" y="175"/> Edouard@1157: <connectionPointOut> Edouard@1157: <relPosition x="155" y="15"/> Edouard@1157: </connectionPointOut> Edouard@1157: <expression>WiiNunchuckButtons</expression> Edouard@1157: </inVariable> Edouard@1157: <inVariable localId="6" height="30" width="90"> Edouard@1157: <position x="180" y="225"/> Edouard@1157: <connectionPointOut> Edouard@1157: <relPosition x="90" y="15"/> Edouard@1157: </connectionPointOut> Edouard@1157: <expression>WiiButtons</expression> Edouard@1157: </inVariable> Edouard@1157: <outVariable localId="8" height="30" width="20"> Edouard@1157: <position x="345" y="100"/> Edouard@1157: <connectionPointIn> Edouard@1157: <relPosition x="0" y="15"/> Edouard@1157: <connection refLocalId="4"> Edouard@1157: <position x="345" y="115"/> Edouard@1157: <position x="295" y="115"/> Edouard@1157: </connection> Edouard@1157: </connectionPointIn> Edouard@1157: <expression>y</expression> Edouard@1157: </outVariable> Edouard@1157: <outVariable localId="9" height="30" width="30"> Edouard@1157: <position x="345" y="175"/> Edouard@1157: <connectionPointIn> Edouard@1157: <relPosition x="0" y="15"/> Edouard@1157: <connection refLocalId="5"> Edouard@1157: <position x="345" y="190"/> Edouard@1157: <position x="270" y="190"/> Edouard@1157: </connection> Edouard@1157: </connectionPointIn> Edouard@1157: <expression>b1</expression> Edouard@1157: </outVariable> Edouard@1157: <outVariable localId="10" height="30" width="30"> Edouard@1157: <position x="345" y="225"/> Edouard@1157: <connectionPointIn> Edouard@1157: <relPosition x="0" y="15"/> Edouard@1157: <connection refLocalId="6"> Edouard@1157: <position x="345" y="240"/> Edouard@1157: <position x="270" y="240"/> Edouard@1157: </connection> Edouard@1157: </connectionPointIn> Edouard@1157: <expression>b0</expression> Edouard@1157: </outVariable> Edouard@1185: <inVariable localId="11" height="30" width="135"> Edouard@1185: <position x="135" y="295"/> Edouard@1185: <connectionPointOut> Edouard@1185: <relPosition x="135" y="15"/> Edouard@1185: </connectionPointOut> Edouard@1185: <expression>WiiNunchuckAccX</expression> Edouard@1185: </inVariable> Edouard@1185: <inVariable localId="12" height="30" width="135"> Edouard@1185: <position x="135" y="340"/> Edouard@1185: <connectionPointOut> Edouard@1185: <relPosition x="135" y="15"/> Edouard@1185: </connectionPointOut> Edouard@1185: <expression>WiiNunchuckAccY</expression> Edouard@1185: </inVariable> Edouard@1185: <inVariable localId="13" height="30" width="130"> Edouard@1185: <position x="140" y="385"/> Edouard@1185: <connectionPointOut> Edouard@1185: <relPosition x="130" y="15"/> Edouard@1185: </connectionPointOut> Edouard@1185: <expression>WiiNunchuckAccZ</expression> Edouard@1185: </inVariable> Edouard@1185: <outVariable localId="14" height="30" width="20"> Edouard@1185: <position x="345" y="295"/> Edouard@1185: <connectionPointIn> Edouard@1185: <relPosition x="0" y="15"/> Edouard@1185: <connection refLocalId="11"> Edouard@1185: <position x="345" y="310"/> Edouard@1185: <position x="270" y="310"/> Edouard@1185: </connection> Edouard@1185: </connectionPointIn> Edouard@1185: <expression>a</expression> Edouard@1185: </outVariable> Edouard@1185: <outVariable localId="15" height="30" width="20"> Edouard@1185: <position x="345" y="340"/> Edouard@1185: <connectionPointIn> Edouard@1185: <relPosition x="0" y="15"/> Edouard@1185: <connection refLocalId="12"> Edouard@1185: <position x="345" y="355"/> Edouard@1185: <position x="270" y="355"/> Edouard@1185: </connection> Edouard@1185: </connectionPointIn> Edouard@1185: <expression>b</expression> Edouard@1185: </outVariable> Edouard@1185: <outVariable localId="16" height="30" width="20"> Edouard@1185: <position x="345" y="385"/> Edouard@1185: <connectionPointIn> Edouard@1185: <relPosition x="0" y="15"/> Edouard@1185: <connection refLocalId="13"> Edouard@1185: <position x="345" y="400"/> Edouard@1185: <position x="270" y="400"/> Edouard@1185: </connection> Edouard@1185: </connectionPointIn> Edouard@1185: <expression>c</expression> Edouard@1185: </outVariable> andrej@1689: <comment localId="17" height="125" width="500"> andrej@1689: <position x="450" y="30"/> andrej@1689: <content> andrej@1689: <xhtml:p><![CDATA[This example shows interaction of PLC program with Nintendo Wii Remote controller. andrej@1689: andrej@1689: To work this example requires python-cwiid library to be installed.]]></xhtml:p> andrej@1689: </content> andrej@1689: </comment> Edouard@1157: </FBD> Edouard@1157: </body> Edouard@1157: <documentation> andrej@1689: <xhtml:p><![CDATA[]]></xhtml:p> Edouard@1157: </documentation> Edouard@1157: </pou> Edouard@1157: </pous> Edouard@1157: </types> Edouard@1157: <instances> Edouard@1157: <configurations> Edouard@1157: <configuration name="config"> Edouard@1157: <resource name="resource1"> Edouard@1157: <task name="tsk1" interval="T#1ms" priority="0"> Edouard@1157: <pouInstance name="inst1" typeName="main"/> Edouard@1157: </task> Edouard@1157: </resource> Edouard@1157: </configuration> Edouard@1157: </configurations> Edouard@1157: </instances> Edouard@1157: </project>