tests/wxGlade/plc.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 17 Nov 2016 13:48:04 +0300
changeset 1565 894f31f8ca64
parent 1454 29b02164e65d
child 1690 cfac9d1c3571
permissions -rw-r--r--
make about dialog boxes use standard wx about dialogs

Any information in dialog can be easily changed without much effort
and the dialog can be easy translated.

Unfortunately on Windows there is no good standard about dialog,
therefore own implementation is used there.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://www.plcopen.org/xml/tc6.xsd"
         xmlns:xhtml="http://www.w3.org/1999/xhtml"
         xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd">
  <fileHeader companyName="beremiz"
              productName="Beremiz"
              productVersion="0.0"
              creationDateTime="2008-12-14T16:21:19"/>
  <contentHeader name="Beremiz Python Support Tests"
                 modificationDateTime="2009-10-08T10:58:12">
    <coordinateInfo>
      <pageSize x="1024" y="1024"/>
      <fbd>
        <scaling x="5" y="5"/>
      </fbd>
      <ld>
        <scaling x="5" y="5"/>
      </ld>
      <sfc>
        <scaling x="5" y="5"/>
      </sfc>
    </coordinateInfo>
  </contentHeader>
  <types>
    <dataTypes/>
    <pous>
      <pou name="main_pytest" pouType="program">
        <interface>
          <localVars>
            <variable name="python1">
              <type>
                <derived name="python_poll"/>
              </type>
            </variable>
            <variable name="counter">
              <type>
                <INT/>
              </type>
            </variable>
            <variable name="Block1">
              <type>
                <derived name="python_poll"/>
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <FBD>
            <block localId="24" width="125" height="90" typeName="python_poll" instanceName="python1">
              <position x="480" y="115"/>
              <inputVariables>
                <variable formalParameter="TRIG">
                  <connectionPointIn>
                    <relPosition x="0" y="35"/>
                    <connection refLocalId="25">
                      <position x="480" y="150"/>
                      <position x="420" y="150"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="CODE">
                  <connectionPointIn>
                    <relPosition x="0" y="70"/>
                    <connection refLocalId="26">
                      <position x="480" y="185"/>
                      <position x="420" y="185"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="ACK">
                  <connectionPointOut>
                    <relPosition x="125" y="35"/>
                  </connectionPointOut>
                </variable>
                <variable formalParameter="RESULT">
                  <connectionPointOut>
                    <relPosition x="125" y="70"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="25" height="30" width="100">
              <position x="320" y="135"/>
              <connectionPointOut>
                <relPosition x="100" y="15"/>
              </connectionPointOut>
              <expression>BOOL#TRUE</expression>
            </inVariable>
            <inVariable localId="26" height="30" width="400">
              <position x="20" y="170"/>
              <connectionPointOut>
                <relPosition x="400" y="15"/>
              </connectionPointOut>
              <expression>'int(HMIFrame.checkbox_1.GetValue())'</expression>
            </inVariable>
            <inVariable localId="27" height="30" width="40">
              <position x="510" y="355"/>
              <connectionPointOut>
                <relPosition x="40" y="15"/>
              </connectionPointOut>
              <expression>')'</expression>
            </inVariable>
            <inVariable localId="28" height="30" width="330">
              <position x="125" y="265"/>
              <connectionPointOut>
                <relPosition x="330" y="15"/>
              </connectionPointOut>
              <expression>'HMIFrame.spin_ctrl_1.SetValue('</expression>
            </inVariable>
            <block localId="30" width="145" height="60" typeName="STRING_TO_INT">
              <position x="670" y="135"/>
              <inputVariables>
                <variable formalParameter="EN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="24" formalParameter="ACK">
                      <position x="670" y="165"/>
                      <position x="640" y="165"/>
                      <position x="640" y="150"/>
                      <position x="605" y="150"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="24" formalParameter="RESULT">
                      <position x="670" y="185"/>
                      <position x="605" y="185"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="ENO">
                  <connectionPointOut>
                    <relPosition x="145" y="30"/>
                  </connectionPointOut>
                </variable>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="145" y="50"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <block localId="32" width="80" height="80" typeName="ADD">
              <position x="110" y="300"/>
              <inputVariables>
                <variable formalParameter="EN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="38" formalParameter="OUT">
                      <position x="110" y="330"/>
                      <position x="100" y="330"/>
                      <position x="100" y="230"/>
                      <position x="1140" y="230"/>
                      <position x="1140" y="165"/>
                      <position x="1130" y="165"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="39">
                      <position x="110" y="350"/>
                      <position x="65" y="350"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="70"/>
                    <connection refLocalId="33">
                      <position x="110" y="370"/>
                      <position x="100" y="370"/>
                      <position x="100" y="390"/>
                      <position x="315" y="390"/>
                      <position x="315" y="350"/>
                      <position x="295" y="350"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="ENO">
                  <connectionPointOut>
                    <relPosition x="80" y="30"/>
                  </connectionPointOut>
                </variable>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="80" y="50"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <block localId="34" width="80" height="100" typeName="CONCAT">
              <position x="580" y="280"/>
              <inputVariables>
                <variable formalParameter="EN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="35" formalParameter="ENO">
                      <position x="580" y="310"/>
                      <position x="495" y="310"/>
                      <position x="495" y="330"/>
                      <position x="475" y="330"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="28">
                      <position x="580" y="330"/>
                      <position x="537" y="330"/>
                      <position x="537" y="280"/>
                      <position x="455" y="280"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="70"/>
                    <connection refLocalId="35" formalParameter="OUT">
                      <position x="580" y="350"/>
                      <position x="475" y="350"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN3">
                  <connectionPointIn>
                    <relPosition x="0" y="90"/>
                    <connection refLocalId="27">
                      <position x="580" y="370"/>
                      <position x="550" y="370"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="ENO">
                  <connectionPointOut>
                    <relPosition x="80" y="30"/>
                  </connectionPointOut>
                </variable>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="80" y="50"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inOutVariable localId="33" height="35" width="85">
              <position x="210" y="335"/>
              <connectionPointIn>
                <relPosition x="0" y="15"/>
                <connection refLocalId="32" formalParameter="OUT">
                  <position x="210" y="350"/>
                  <position x="190" y="350"/>
                </connection>
              </connectionPointIn>
              <connectionPointOut>
                <relPosition x="85" y="15"/>
              </connectionPointOut>
              <expression>counter</expression>
            </inOutVariable>
            <block localId="35" width="145" height="60" typeName="INT_TO_STRING">
              <position x="330" y="300"/>
              <inputVariables>
                <variable formalParameter="EN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="32" formalParameter="ENO">
                      <position x="330" y="330"/>
                      <position x="190" y="330"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN">
                  <connectionPointIn>
                    <relPosition x="0" y="50"/>
                    <connection refLocalId="33">
                      <position x="330" y="350"/>
                      <position x="295" y="350"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="ENO">
                  <connectionPointOut>
                    <relPosition x="145" y="30"/>
                  </connectionPointOut>
                </variable>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="145" y="50"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <block localId="36" width="125" height="90" typeName="python_poll" instanceName="Block1">
              <position x="710" y="275"/>
              <inputVariables>
                <variable formalParameter="TRIG">
                  <connectionPointIn>
                    <relPosition x="0" y="35"/>
                    <connection refLocalId="34" formalParameter="ENO">
                      <position x="710" y="310"/>
                      <position x="660" y="310"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="CODE">
                  <connectionPointIn>
                    <relPosition x="0" y="70"/>
                    <connection refLocalId="34" formalParameter="OUT">
                      <position x="710" y="345"/>
                      <position x="690" y="345"/>
                      <position x="690" y="330"/>
                      <position x="660" y="330"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="ACK">
                  <connectionPointOut>
                    <relPosition x="125" y="35"/>
                  </connectionPointOut>
                </variable>
                <variable formalParameter="RESULT">
                  <connectionPointOut>
                    <relPosition x="125" y="70"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <block localId="37" width="125" height="45" typeName="INT_TO_BOOL">
              <position x="870" y="170"/>
              <inputVariables>
                <variable formalParameter="IN">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="30" formalParameter="OUT">
                      <position x="870" y="200"/>
                      <position x="845" y="200"/>
                      <position x="845" y="185"/>
                      <position x="815" y="185"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="125" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <block localId="38" width="80" height="65" typeName="AND">
              <position x="1050" y="135"/>
              <inputVariables>
                <variable formalParameter="IN1">
                  <connectionPointIn>
                    <relPosition x="0" y="30"/>
                    <connection refLocalId="30" formalParameter="ENO">
                      <position x="1050" y="165"/>
                      <position x="815" y="165"/>
                    </connection>
                  </connectionPointIn>
                </variable>
                <variable formalParameter="IN2">
                  <connectionPointIn>
                    <relPosition x="0" y="55"/>
                    <connection refLocalId="37" formalParameter="OUT">
                      <position x="1050" y="190"/>
                      <position x="1025" y="190"/>
                      <position x="1025" y="200"/>
                      <position x="995" y="200"/>
                    </connection>
                  </connectionPointIn>
                </variable>
              </inputVariables>
              <inOutVariables/>
              <outputVariables>
                <variable formalParameter="OUT">
                  <connectionPointOut>
                    <relPosition x="80" y="30"/>
                  </connectionPointOut>
                </variable>
              </outputVariables>
            </block>
            <inVariable localId="39" height="30" width="60">
              <position x="5" y="335"/>
              <connectionPointOut>
                <relPosition x="60" y="15"/>
              </connectionPointOut>
              <expression>INT#1</expression>
            </inVariable>
          </FBD>
        </body>
      </pou>
    </pous>
  </types>
  <instances>
    <configurations>
      <configuration name="config">
        <resource name="res_pytest">
          <task name="pytest_task" interval="t#100ms" priority="0"/>
          <pouInstance name="pytest_instance" typeName="main_pytest"/>
        </resource>
      </configuration>
    </configurations>
  </instances>
</project>