tests/projects/modbus_test_tcp/plc.xml
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 25 May 2024 15:28:48 +0200
changeset 3950 79bdee48ced8
parent 3926 a6ec38dcbfb5
permissions -rw-r--r--
Python runtime: ensure that python thread finished before returning from StopPLC.
3926
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     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">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     3
  <fileHeader companyName="Beremiz" productName="Beremiz" productVersion="1" creationDateTime="2018-07-27T13:19:12"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     4
  <contentHeader name="Modbus" modificationDateTime="2024-04-04T17:20:49">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     5
    <coordinateInfo>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     6
      <fbd>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     7
        <scaling x="0" y="0"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     8
      </fbd>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     9
      <ld>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    10
        <scaling x="0" y="0"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    11
      </ld>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    12
      <sfc>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    13
        <scaling x="0" y="0"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    14
      </sfc>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    15
    </coordinateInfo>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    16
  </contentHeader>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    17
  <types>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    18
    <dataTypes/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    19
    <pous>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    20
      <pou name="program0" pouType="program">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    21
        <interface>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    22
          <localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    23
            <variable name="Counter">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    24
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    25
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    26
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    27
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    28
            <variable name="CounterReadBack">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    29
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    30
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    31
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    32
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    33
          </localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    34
          <localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    35
            <variable name="MasterWriteToReg0" address="%QW0.0.0.0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    36
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    37
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    38
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    39
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    40
            <variable name="MasterReadFromReg1" address="%IW0.0.1.0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    41
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    42
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    43
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    44
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    45
            <variable name="SlaveHoldReg0" address="%IW0.1.0.0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    46
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    47
                <WORD/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    48
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    49
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    50
            <variable name="SlaveInputReg0" address="%QW0.1.1.0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    51
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    52
                <WORD/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    53
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    54
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    55
          </localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    56
          <localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    57
            <variable name="CTU0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    58
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    59
                <derived name="CTU"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    60
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    61
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    62
            <variable name="Generator0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    63
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    64
                <derived name="Generator"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    65
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    66
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    67
            <variable name="TestAllEqual0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    68
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    69
                <derived name="TestAllEqual"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    70
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    71
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    72
          </localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    73
        </interface>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    74
        <body>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    75
          <FBD>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    76
            <comment localId="4" height="109" width="350">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    77
              <position x="102" y="438"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    78
              <content>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    79
                <xhtml:p><![CDATA[Modbus TCP Master writes counter value to one holding register on Modbus TCP Slave and reads it back from other input register.]]></xhtml:p>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    80
              </content>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    81
            </comment>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    82
            <comment localId="3" height="407" width="680">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    83
              <position x="21" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    84
              <content>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    85
                <xhtml:p><![CDATA[This examples shows how to work with Modbus extension. It uses Modbus TCP, but the same functions are available for Modbus RTU as well. Buth protocols are supported.
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    86
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    87
Modbus extensions requires native Modbus RTU/TCP library to be installed nearby Beremiz.
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    88
Following directory structure is expected:
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    89
<Parent directory>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    90
  "beremiz"
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    91
  "Modbus"
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    92
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    93
If Modbus library is installed elsewhere, then place corresponding paths
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    94
in CFLAGS/LDFLAGS in project settings.
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    95
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    96
For GNU/Linux to install Modbus library in parent directory run following commands:
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    97
$ hg clone https://bitbucket.org/mjsousa/modbus Modbus
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    98
$ cd Modbus
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    99
$ make
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   100
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   101
After that Modbus extension is ready to be used in Beremiz projects.]]></xhtml:p>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   102
              </content>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   103
            </comment>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   104
            <block localId="5" typeName="CTU" instanceName="CTU0" executionOrderId="0" height="80" width="52">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   105
              <position x="346" y="605"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   106
              <inputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   107
                <variable formalParameter="CU" edge="rising">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   108
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   109
                    <relPosition x="0" y="30"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   110
                    <connection refLocalId="6" formalParameter="OUT">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   111
                      <position x="346" y="635"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   112
                      <position x="303" y="635"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   113
                    </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   114
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   115
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   116
                <variable formalParameter="R">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   117
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   118
                    <relPosition x="0" y="50"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   119
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   120
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   121
                <variable formalParameter="PV">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   122
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   123
                    <relPosition x="0" y="70"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   124
                    <connection refLocalId="7">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   125
                      <position x="346" y="675"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   126
                      <position x="324" y="675"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   127
                      <position x="324" y="703"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   128
                      <position x="302" y="703"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   129
                    </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   130
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   131
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   132
              </inputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   133
              <inOutVariables/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   134
              <outputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   135
                <variable formalParameter="Q">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   136
                  <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   137
                    <relPosition x="52" y="30"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   138
                  </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   139
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   140
                <variable formalParameter="CV">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   141
                  <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   142
                    <relPosition x="52" y="50"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   143
                  </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   144
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   145
              </outputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   146
            </block>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   147
            <block localId="6" typeName="Generator" instanceName="Generator0" executionOrderId="0" height="60" width="82">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   148
              <position x="224" y="605"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   149
              <inputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   150
                <variable formalParameter="PON">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   151
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   152
                    <relPosition x="0" y="30"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   153
                    <connection refLocalId="1">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   154
                      <position x="224" y="635"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   155
                      <position x="154" y="635"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   156
                    </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   157
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   158
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   159
                <variable formalParameter="POFF">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   160
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   161
                    <relPosition x="0" y="50"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   162
                    <connection refLocalId="1">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   163
                      <position x="224" y="655"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   164
                      <position x="189" y="655"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   165
                      <position x="189" y="635"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   166
                      <position x="154" y="635"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   167
                    </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   168
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   169
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   170
              </inputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   171
              <inOutVariables/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   172
              <outputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   173
                <variable formalParameter="OUT">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   174
                  <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   175
                    <relPosition x="82" y="30"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   176
                  </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   177
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   178
              </outputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   179
            </block>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   180
            <inVariable localId="1" executionOrderId="0" height="30" width="138" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   181
              <position x="16" y="620"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   182
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   183
                <relPosition x="138" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   184
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   185
              <expression>T#1s</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   186
            </inVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   187
            <inVariable localId="7" executionOrderId="0" height="30" width="138" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   188
              <position x="164" y="688"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   189
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   190
                <relPosition x="138" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   191
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   192
              <expression>32767</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   193
            </inVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   194
            <inOutVariable localId="2" executionOrderId="0" height="30" width="138" negatedOut="false" negatedIn="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   195
              <position x="544" y="640"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   196
              <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   197
                <relPosition x="0" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   198
                <connection refLocalId="5" formalParameter="CV">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   199
                  <position x="544" y="655"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   200
                  <position x="398" y="655"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   201
                </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   202
              </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   203
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   204
                <relPosition x="138" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   205
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   206
              <expression>Counter</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   207
            </inOutVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   208
            <outVariable localId="8" executionOrderId="0" height="30" width="146" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   209
              <position x="762" y="640"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   210
              <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   211
                <relPosition x="0" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   212
                <connection refLocalId="2">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   213
                  <position x="762" y="655"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   214
                  <position x="682" y="655"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   215
                </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   216
              </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   217
              <expression>MasterWriteToReg0</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   218
            </outVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   219
            <inVariable localId="9" executionOrderId="0" height="30" width="154" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   220
              <position x="81" y="747"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   221
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   222
                <relPosition x="154" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   223
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   224
              <expression>MasterReadFromReg1</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   225
            </inVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   226
            <comment localId="11" height="109" width="350">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   227
              <position x="85" y="825"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   228
              <content>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   229
                <xhtml:p><![CDATA[Modbus TCP Slave just copies received register value from holding register to input register.]]></xhtml:p>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   230
              </content>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   231
            </comment>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   232
            <inVariable localId="12" executionOrderId="0" height="30" width="152" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   233
              <position x="82" y="970"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   234
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   235
                <relPosition x="152" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   236
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   237
              <expression>SlaveHoldReg0</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   238
            </inVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   239
            <outVariable localId="13" executionOrderId="0" height="30" width="123" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   240
              <position x="548" y="970"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   241
              <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   242
                <relPosition x="0" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   243
                <connection refLocalId="12">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   244
                  <position x="548" y="985"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   245
                  <position x="234" y="985"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   246
                </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   247
              </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   248
              <expression>SlaveInputReg0</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   249
            </outVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   250
            <block localId="14" typeName="TestAllEqual" instanceName="TestAllEqual0" executionOrderId="0" width="106" height="100">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   251
              <position x="763" y="712"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   252
              <inputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   253
                <variable formalParameter="in0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   254
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   255
                    <relPosition x="0" y="30"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   256
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   257
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   258
                <variable formalParameter="in1">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   259
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   260
                    <relPosition x="0" y="50"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   261
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   262
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   263
                <variable formalParameter="in2">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   264
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   265
                    <relPosition x="0" y="70"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   266
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   267
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   268
                <variable formalParameter="success">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   269
                  <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   270
                    <relPosition x="0" y="90"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   271
                  </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   272
                </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   273
              </inputVariables>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   274
              <inOutVariables/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   275
              <outputVariables/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   276
            </block>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   277
            <inOutVariable localId="10" executionOrderId="0" width="137" height="30" negatedOut="false" negatedIn="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   278
              <position x="547" y="747"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   279
              <connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   280
                <relPosition x="0" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   281
                <connection refLocalId="9">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   282
                  <position x="547" y="762"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   283
                  <position x="235" y="762"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   284
                </connection>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   285
              </connectionPointIn>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   286
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   287
                <relPosition x="137" y="15"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   288
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   289
              <expression>CounterReadBack</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   290
            </inOutVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   291
            <inVariable localId="15" executionOrderId="0" width="26" height="24" negated="false">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   292
              <position x="705" y="770"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   293
              <connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   294
                <relPosition x="26" y="12"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   295
              </connectionPointOut>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   296
              <expression>5</expression>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   297
            </inVariable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   298
          </FBD>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   299
        </body>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   300
      </pou>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   301
      <pou name="Generator" pouType="functionBlock">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   302
        <interface>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   303
          <outputVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   304
            <variable name="OUT">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   305
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   306
                <BOOL/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   307
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   308
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   309
          </outputVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   310
          <inputVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   311
            <variable name="PON">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   312
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   313
                <TIME/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   314
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   315
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   316
            <variable name="POFF">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   317
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   318
                <TIME/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   319
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   320
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   321
          </inputVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   322
          <localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   323
            <variable name="T1">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   324
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   325
                <derived name="TON"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   326
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   327
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   328
            <variable name="T2">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   329
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   330
                <derived name="TOF"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   331
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   332
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   333
          </localVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   334
        </interface>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   335
        <body>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   336
          <ST>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   337
            <xhtml:p><![CDATA[T1( IN := NOT T2.Q, PT := POFF);
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   338
T2( IN := T1.Q,     PT := PON);
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   339
OUT := T2.Q;]]></xhtml:p>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   340
          </ST>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   341
        </body>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   342
      </pou>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   343
      <pou name="TestAllEqual" pouType="functionBlock">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   344
        <interface>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   345
          <inputVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   346
            <variable name="in0">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   347
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   348
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   349
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   350
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   351
            <variable name="in1">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   352
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   353
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   354
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   355
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   356
            <variable name="in2">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   357
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   358
                <INT/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   359
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   360
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   361
            <variable name="success">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   362
              <type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   363
                <BOOL/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   364
              </type>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   365
            </variable>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   366
          </inputVars>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   367
        </interface>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   368
        <body>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   369
          <ST>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   370
            <xhtml:p><![CDATA[IF in0 = in1 AND in1 = in2 AND NOT(success) THEN
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   371
  success := TRUE;
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   372
  { printf("TEST OK\n"); fflush(stdout); }
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   373
END_IF;]]></xhtml:p>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   374
          </ST>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   375
        </body>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   376
      </pou>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   377
    </pous>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   378
  </types>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   379
  <instances>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   380
    <configurations>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   381
      <configuration name="config">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   382
        <resource name="resource1">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   383
          <task name="task0" priority="0" interval="T#20ms">
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   384
            <pouInstance name="instance0" typeName="program0"/>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   385
          </task>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   386
        </resource>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   387
      </configuration>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   388
    </configurations>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   389
  </instances>
a6ec38dcbfb5 Modbus: add CI test + test project
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   390
</project>